




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
智能数据总量:根据智能接口规范,统计所有属性的量。例如100个机智能缺失量:就是智能需求的属性缺失的量,以100个机房,10个属性智能数据总量变化量:跟前一天比较省份前置库或统一库数据量的差值数据核查select*fromcheck_tableawherea.缺失数据量<>0;--select*fromzn_check_tableawherea.缺失值<>0anda.是否必填!='O';--智能selectsum(a.数据总量)数据总量总和,sum(a.缺失数据量)和,to_char((sum(a.缺失数据量sum(a.数据总量))*100,'90.99')||'%'fromcheck_tableselectsum(a.数据总量)数据总量总和,sum(a.缺失值)缺失值总和,to_char((sum(a.缺失值)/sum(a.数据总量))*100,'90.99')||'%'缺失比例fromzn_check_tableawherea.是否必填!='O'现状:目前只有在同步人员和部计划后续会先把数据同步到基准库然后往各个省数据库同(新增人员,目前的解决方案:手工同步(全量createtabletemp_staffasselect*fromcreatetabletemp_departmentasselect*fromtruncatetabledepartment;truncatetablestaff;altertableSTAFFmodifyNAMEaltertableSTAFFmodifyDEPARTMENTNUMBER(9);altertableSTAFFmodifyWORKGROUP_IDNUMBER(8);altertableSTAFFmodifyLOGIN_NAMEVARCHAR2(40);insertintodepartmentaselect*fromresltjt_t.department@db33where 895';insertintodepartmentaselect*fromresltjt_t.department@db33wheredept_idininsertintostaff(staff_id,name,title,station,password,department,workgroup_id,site_id,dept_level_id,eff_date,exp_date,state,state_date,ip_limit,ip_subnet,ip_netmask,ip_hostname,pc_limit,pc_id,_serial_nbr,last_date,,phone_no,delete_state,delete_time,remark,staff_alias,login_name,pwd_mod_date,lan_id,loginuid,staff_code,staff_state,last_login_date,erro_times,captcha,validate_time,his_pwd,safe_strategy,identity_id,hr_code)selectstaff_id,name,title,station,password,department,workgroup_id,site_id,dept_level_id,eff_date,exp_date,state,state_date,ip_limit,ip_subnet,ip_netmask,ip_hostname,pc_limit,pc_id,_serial_nbr,last_date,,phone_no,delete_state,delete_time,remark,staff_alias,login_name,pwd_mod_date,lan_id,loginuid,staff_code,staff_state,last_login_date,erro_times,captcha,validate_time,his_pwd,safe_strategy,identity_id,hr_codefromresltjt_t.staff@db33aexists(select1fromresltjt_t.department@db33bwherea.site_id=b.dept_idand 895');insertintostaff(staff_id,name,title,station,password,department,workgroup_id,site_id,dept_level_id,eff_date,exp_date,state,state_date,ip_limit,ip_subnet,ip_netmask,ip_hostname,pc_limit,pc_id,_serial_nbr,last_date,,phone_no,delete_state,delete_time,remark,staff_alias,login_name,pwd_mod_date,lan_id,loginuid,staff_code,staff_state,last_login_date,erro_times,captcha,validate_time,his_pwd,safe_strategy,identity_id,hr_code)selectstaff_id,name,title,station,password,department,workgroup_id,site_id,dept_level_id,eff_date,exp_date,state,state_date,ip_limit,ip_subnet,ip_netmask,ip_hostname,pc_limit,pc_id,_serial_nbr,last_date,,phone_no,delete_state,delete_time,remark,staff_alias,login_name,pwd_mod_date,lan_id,loginuid,staff_code,staff_state,last_login_date,erro_times,captcha,validate_time,his_pwd,safe_strategy,identity_id,hr_codefromresltjt_t.staff@db33awhere staff_idin(11,12,2302);droptablecreatetabletemp_d_rme_portselectmax(port_id)port_id,port_namefromrme_port groupbyport_name,super_res_idhavingcount(*)>1;createindextemp_d_rme_portontemp_d_rme_portdeletefromrme_portawherenotexists(select1fromtemp_d_rme_portbwhere解决方法:根据智能找出问题数据将sysid修改SELECTa.sys_id,a.*FROMtrs_segaWHERE(notexists(SELECT1 trs_sysb WHEREnvl(b.delete_state,0)='0' anda.sys_id=b.sys_id)ora.sys_idisnull)andnvl(a.delete_state,0)='0'移动专业机房类型和id不一解决方法:2080001是机房2080004是放置点根据id中的第五位到第八位确定是机房还是设备放置点来进行更新机房是0205放置点是0208SELECTa.posit_type_id,a.posit_id,a.res_type_id/* intov_qsum16*/FROMrme_eqpaWHEREa.posit_type_idnotin(' ',' ')andselect*frompub_res_typetwhereupdaterme_eqpaseta.posit_type_id=' 'wherea.posit_type_idnotin ',' 控制器与关系缺失于控制器关联的多选关系表insertintoselectfn_sub_key(''),51832prop_spec_id,from(select*fromrme_eqprewherere.res_type_id='6755')re1,sz_check_hubei.chk_rme_eqp_btscreb,(select*fromrme_eqprewherere.res_type_id='2513')re2wherere1.eqp_name=creb.eqp_nameandcreb.bsc_eqp=select*fromRME_EQP_PROPERTY_MULTI_VALUEtwhere ,a1.groupname,a1.role_group_idfromgroup_rolea3,rolegrpa1,rolesa2wherea3.group_id=a1.role_group_idanda3.role_id=a2.role_idanda1.delete_state='0'anda2.delete_state='0'orderbya1.role_group_idselecta4.speciality_id,a4.speciality,a2.role_id,fromrolesa2,pub_specialitya4wherea2.speciality_id=a4.speciality_idanda2.delete_state='0'anda4.delete_state='0'orderbya4.speciality_idselecta4.speciality_id,a4.speciality,a2.role_id,fromrolesa2,pub_specialitya4wherea2.speciality_id=a4.speciality_idanda2.delete_state='0'anda4.delete_state='0'orderbya4.speciality_idupdatetrs_segasetseg_name=(SELECTne_nameFROMtrs_trs_neWHEREtrs_ne_id=a.a_trs_ne_id)'-'(SELECTne_nameFROMtrs_trs_neWHEREtrs_ne_id=创建传输设备和传输关联关--droptablecreatetabletrans_eqp_nm_relaselecttn.nm_id,ttn.trs_ne_id,0fromsz_check_hubei.chk_trans_equip_infoctei,trs_trs_nettn,trs_nmtnwherectei.equip_name=ttn.ne_nameandselectcount(1)fromselectcount(1)frominsertintotrs_nmne(nm_id,trs_ne_id,delete_state)select*fromtrans_eqp_nm_rela;insertintoselectsubstr(tn.nm_id,1,8)||9999999999999999NM_ID, 'NM_NO, ' 'ALIAS,substr(tn.nm_id,1,8)||9999999999999999NMS_ORIG_RES_ID,fromtrs_nmtnwhererownum=1;insertintoselect(selectsubstr(t.nm_id,1,8)||9999999999999999fromtrs_nmtwhere=1),ttn.trs_ne_id,0fromtrs_trs_newherenotexists(selectfromtrans_eqp_nm_relawheretenr.trs_ne_id=创建设备(RME_EQP)和关联关createtableeqp_nm_relationselectpln.nm_id,re.eqp_name,re.res_type_id,pln.nm_name,re.eqp_idfromrme_eqpre,pub_log_nmplnwhereinsertintopub_log_nm_union(nm_id,res_type,res_id,nm_eqp,delete_state)selectenr.nm_id,enr.res_type_id,enr.eqp_id,1,0fromeqp_nm_relationenr;----建立虚拟,并且插入到--建立交换网虚拟insertintoselectsubstr(tn.nm_id,1,8)||9999999999999999
'交换网设备临时统一','交换网设备临时统一','交换网设备临时统一',substr(tn.nm_id,1,8)||9999999999999999frompub_log_nmplnwhere--建立接入网虚拟insertintoselectsubstr(tn.nm_id,18||9999999999999998NM_ID,'接入网设备临时统一','接入网设备临时统一'接入网设备临时统一',substr(tn.nm_id,1,8)||9999999999999998frompub_log_nmplnwhere--建立数据网虚拟insertintoselectsubstr(tn.nm_id,18||9999999999999997NM_ID,'数据网设备临时统一','数据网设备临时统一'数据网设备临时统一',substr(tn.nm_id,1,8)||9999999999999997frompub_log_nmplnwhereinsertintoselectsubstr(tn.nm_id,1,8)||9999999999999996NM_ID, 网设备临时统 '移动网设备临时统一',substr(tn.nm_id,1,8)||9999999999999996frompub_log_nmplnwhere--建立移动无线网虚拟insertintoselectsubstr(tn.nm_id,18||9999999999999995NM_ID,'移动无线网设备临时统一','移动无线网设备临时统一'移动无线网设备临时统一',substr(tn.nm_id,1,8)||9999999999999995frompub_log_nmplnwhere----插入无关联的交换网数据进入设备与关联关系insertintopub_log_nm_union(nm_id,res_type,res_id,nm_eqp,delete_state)select(selectsubstr(tn.nm_id,1,8)||9999999999999999frompub_log_nm),0fromrme_eqpwherenotexists(select1fromeqp_nm_relationenrwhereenr.eqp_id=re.eqp_id)andre.res_type_idin('2800','7684','7690','7689');----插入无关联的接入网数据进入设备与关联关系insertintopub_log_nm_union(nm_id,res_type,res_id,nm_eqp,delete_state)select(selectsubstr(tn.nm_id,1,8)||9999999999999998frompub_log_nm),0fromrme_eqpwherenotexists(select1fromeqp_nm_relationenrwhereenr.eqp_id=re.eqp_id)andre.res_type_idin('2510','2511');----插入无关联的数据网数据进入设备与关联关系insertintopub_log_nm_union(nm_id,res_type,res_id,nm_eqp,delete_state)select(selectsubstr(tn.nm_id,1,8)||9999999999999997frompub_log_nm),0fromrme_eqpwherenotexists(select1fromeqp_nm_relationenrwhereenr.eqp_id=re.eqp_id)andre.res_type_idin('2400','2401','2406','2423','2402','2407');----插入无关联的移动网数据进入设备与关联关系表insertintopub_log_nm_union(nm_id,res_type,res_id,nm_eqp,delete_state)selectselectsubstr(tn.nm_id,1,8)||9999999999999996frompub_log_nm),0fromrme_eqpwherenotexists(select1fromeqp_nm_relationenrwhereenr.eqp_id=re.eqp_id)andre.res_type_idin----插入无关联的移动无线网数据进入设备与关联关系insertintopub_log_nm_union(nm_id,res_type,res_id,nm_eqp,delete_state)select(selectsubstr(tn.nm_id,1,8)||9999999999999995frompub_log_nm),0fromrme_eqpwherenotexists(select1fromeqp_nm_relationenrwhereenr.eqp_id=re.eqp_id)andre.res_type_idin('6714','6729','6713','6755','2513');安置类型与安点不对应问updaterme_eqpaseta.posit_type_id=' 'wheresubstr(a.posit_id,5,4)='0205'anda.res_ty
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 肇庆市实验中学高中历史一:第课马克思主义的诞生教案
- 2025-2030年中国PA6T项目投资风险研究报告
- 2025至2031年中国画毡行业投资前景及策略咨询研究报告
- 2025年中国滴定架市场调查研究报告
- 2025-2030年中国DC电子负载器市场现状分析与竞争战略研究报告
- 许昌陶瓷职业学院《卫生管理统计学》2023-2024学年第一学期期末试卷
- 烟台黄金职业学院《电气工程及其自动化专业英语》2023-2024学年第一学期期末试卷
- 2025至2031年中国电动锁具行业投资前景及策略咨询研究报告
- 学前语文教学工作总结
- 2025至2031年中国玻璃罩餐吊灯行业投资前景及策略咨询研究报告
- GB 7718-2025食品安全国家标准预包装食品标签通则
- 2025年高考历史总复习世界近代史专题复习提纲
- 2025-2030中国蜂蜜行业营销渠道与多元化经营效益预测研究报告
- 社工证考试试题及答案
- 内蒙古汇能集团笔试题库
- 产后保健知识课件
- 2025年应急管理普法知识竞赛题(附答案)
- 《工程勘察设计收费标准》(2002年修订本)
- 广东省普通高中学生档案
- 中国民族史智慧树知到答案章节测试2023年云南大学
- 新中大A3财务系操作手册
评论
0/150
提交评论