当前位置: 首页 > news >正文

wordpress 淘宝分享插件下载seo优化团队

wordpress 淘宝分享插件下载,seo优化团队,海外微网站建设,wordpress折叠目录 1、迁移准备2、正式迁移3、问题处理3.1、return附近出现错误3.1.1、排查过程3.1.2、问题原因3.1.2、解决方法 3.2、对象[XXX]处于无效状态-类型13.2.1、排查过程3.2.2、问题原因3.2.3、解决方法 3.3、对象[XXX]处于无效状态-类型23.3.1、排查过程3.3.2、问题原因3.3.3、解…

目录

  • 1、迁移准备
  • 2、正式迁移
  • 3、问题处理
    • 3.1、return附近出现错误
      • 3.1.1、排查过程
      • 3.1.2、问题原因
      • 3.1.2、解决方法
    • 3.2、对象[XXX]处于无效状态-类型1
      • 3.2.1、排查过程
      • 3.2.2、问题原因
      • 3.2.3、解决方法
    • 3.3、对象[XXX]处于无效状态-类型2
      • 3.3.1、排查过程
      • 3.3.2、问题原因
      • 3.3.3、解决方法
    • 3.4、违反引用约束[XXX]
    • 3.5、Java heap space
    • 3.6、记录超长
    • 3.7、数据未找到
      • 3.7.1、问题原因
      • 3.7.2、解决方法

因为数据迁移涉及到很多东西,最主要的还是参考官方给出的文档:https://eco.dameng.com/document/dm/zh-cn/start/oracle_dm.html。
以下是根据项目经验做的一些总结:

1、迁移准备

迁移统计

--------------------------------迁移对象统计-----------------------------------------用户		表数量	索引数量	分区表数量	包含LOB表数量	LOB占用空间		视图数量		触发器数量	函数数量	序列数量	同义词	物化视图数量	存储过程数量	DBLINK数量	最大单字段宽度	最大行宽度
1	ECOLOGY	8998	17317	0			3454			127.173828125	128			7041		76		7095	0		1			2152		1			4000			64222762
----------------------------------数据量---------------------------------------SEGMENT_TYPE	SUM(BYTES)/1024/1024/1024	COUNT(*)
1	TABLE			246.661682128906			5079
2	LOBSEGMENT		127.174194335938			2666
3	INDEX			68.050048828125				8464
4	LOBINDEX		0.1627197265625				2666

初始化达梦数据库

1、簇页大小:32
2、字符集:UTF-8
3、大小写是否敏感:是

创建和源库一样的用户,指定默认表空间

---------------------------------创建表空间---------------------------------------
create tablespace "ECOLOGY" datafile '/opt/dmdata/DAMENG/ECOLOGY.DBF' size 128 CACHE = NORMAL;
----------------------------------创建用户---------------------------------------
create user "ecology" identified by "Abc12345678" default tablespace "ECOLOGY";
----------------------------------授权---------------------------------------
grant "DBA","PUBLIC","RESOURCE","SOI","SVI","VTI" to "ECOLOGY";

2、正式迁移

迁移原则:

--数据量大的用户分开迁移
--1、对象定义迁移
------1.1【表】、【序列】、【同义词】、【自定义类型】的[对象定义]迁移
------1.2【存储过程】、【函数】、【包】、【触发器】迁移
------1.3【视图】、【物化视图】迁移
--2、表数据迁移
--3、约束索引迁移

3、问题处理

3.1、return附近出现错误

迁移报错,查看原因:return附近出现错误。

3.1.1、排查过程

DTS工具找到目的库源SQL:

CREATE OR REPLACE 
PROCEDURE "ECOLOGY"."LGCASSETSTOCK_EDITORVIEW" ( assetid_3     integer, warehouseid_2 integer, flag out integer , msg out varchar2, thecursor IN OUT cursor_define.weavercursor) 
AS count_1 integer; 
begin select count(*) into count_1 from LgcStockInOut a, LgcStockInOutDetail b where a.warehouseid=warehouseid_2 and b.assetid=assetid_3 and a.id=b.inoutid and a.stockmodeid<>-2; if count_1>0 then open thecursor for select -1 from dual; return; else open thecursor for select 1 from dual return; end if; 
end;2、重新执行报错:return附近出现错误

3.1.2、问题原因

SQL【select 1 from dual return;】dual后面缺少分号,

3.1.2、解决方法

改写SQL后重新执行即可

CREATE OR REPLACE 
PROCEDURE "ECOLOGY"."LGCASSETSTOCK_EDITORVIEW" ( assetid_3     integer,warehouseid_2 integer,flag out integer ,msg out varchar2,thecursor IN OUT cursor_define.weavercursor)
AS count_1 integer;
beginselect count(*) into count_1 from LgcStockInOut a, LgcStockInOutDetail bwhere a.warehouseid=warehouseid_2and b.assetid=assetid_3and a.id=b.inoutidand a.stockmodeid<>-2;if count_1>0 then open thecursor for select -1 from dual;return;else open thecursor for select 1 from dual;return;end if;
end;

3.2、对象[XXX]处于无效状态-类型1

迁移报错,查看原因:对象[COWORK_APPLY_INFO_ID_TRIGGER]处于无效状态

3.2.1、排查过程

1、查看源库触发器状态,有效
Select * From dba_triggers WHERE TRIGGER_NAME = 'COWORKBASESET_TRIGGER'; 
2、通过管理工具查看目的库触发器状态,无效,且编译错误。
3、找到目的库源SQL
CREATE OR REPLACE TRIGGER "ECOLOGY"."COWORKBASESET_TRIGGER"
before insert on "ECOLOGY"."COWORK_BASE_SET" 
for each row
begin select coworkbaseset_seq.nextval into:new.id from sys.dual; end;
4、重新执行报错:无效的表或视图名[DUAL]

3.2.2、问题原因

达梦数据库不支持sys.dual的写法

3.2.3、解决方法

改写SQL:sys.dual改成dual,重新执行即可

CREATE OR REPLACE TRIGGER "ECOLOGY"."COWORKBASESET_TRIGGER"
before insert on "ECOLOGY"."COWORK_BASE_SET" 
for each row
begin select coworkbaseset_seq.nextval into:new.id from dual; end;

3.3、对象[XXX]处于无效状态-类型2

迁移报错,查看原因:对象[WORKFLOW_BASE_GETPINYIN]处于无效状态

3.3.1、排查过程

1、查看源库对象[WORKFLOW_BASE_GETPINYIN]状态,有效
Select * From dba_triggers WHERE TRIGGER_NAME = 'WORKFLOW_BASE_GETPINYIN'; 
2、通过管理工具查看目的库对象[WORKFLOW_BASE_GETPINYIN]状态,无效且编译错误,
3、重新编译,错误消息: 对象[GETPINYIN]处于无效状态
4、查看源库对象[GETPINYIN]状态,有效
SELECT * FROM dba_objects WHERE object_type='FUNCTION' and object_name='GETPINYIN' 
5、通过管理工具查看目的库对象[GETPINYIN]状态,无效且编译错误,
6、重新编译,错误消息: 无法解析的成员访问表达式[USERENV]

3.3.2、问题原因

达梦数据库不支持USERENV(‘LANGUAGE’)的写法

3.3.3、解决方法

1、改写SQL:SYS_CONTEXT('USERENV','LANGUAGE')代替USERENV('LANGUAGE')2、重新执行SQL成功,对象[GETPINYIN]状态有效
3、重新编译对象[WORKFLOW_BASE_GETPINYIN]

3.4、违反引用约束[XXX]

参考链接: 违反引用约束

3.5、Java heap space

参考链接: Java heap space

3.6、记录超长

参考链接: 记录超长

3.7、数据未找到

迁移报错,查看原因:数据未找到

3.7.1、问题原因

1、先迁移约束索引,后迁移数据、会出现这样的问题
2、DTS版本问题。

3.7.2、解决方法

1、按照顺序重新迁移对象。
2、换个DTS新版本


文章转载自:
http://superpotency.crhd.cn
http://sestertium.crhd.cn
http://brindled.crhd.cn
http://photogun.crhd.cn
http://vocalic.crhd.cn
http://coomassie.crhd.cn
http://trawler.crhd.cn
http://anoa.crhd.cn
http://pilastrade.crhd.cn
http://semicontinuous.crhd.cn
http://seamark.crhd.cn
http://anemophilous.crhd.cn
http://italianism.crhd.cn
http://ruffe.crhd.cn
http://telesthesia.crhd.cn
http://nato.crhd.cn
http://nosebleed.crhd.cn
http://semimoist.crhd.cn
http://altercate.crhd.cn
http://reeded.crhd.cn
http://archangel.crhd.cn
http://featureless.crhd.cn
http://philosophise.crhd.cn
http://sinistrorse.crhd.cn
http://coesite.crhd.cn
http://hemiscotosis.crhd.cn
http://anticommute.crhd.cn
http://polarimeter.crhd.cn
http://dynode.crhd.cn
http://unsavory.crhd.cn
http://tzaristic.crhd.cn
http://heptagon.crhd.cn
http://rakata.crhd.cn
http://starlit.crhd.cn
http://peasantize.crhd.cn
http://fasten.crhd.cn
http://neurotoxin.crhd.cn
http://haemal.crhd.cn
http://theatregoing.crhd.cn
http://franklinite.crhd.cn
http://papaverine.crhd.cn
http://weathervision.crhd.cn
http://jrc.crhd.cn
http://aviatic.crhd.cn
http://cable.crhd.cn
http://arthroscope.crhd.cn
http://catenulate.crhd.cn
http://bepraise.crhd.cn
http://pyroxene.crhd.cn
http://monandrous.crhd.cn
http://arris.crhd.cn
http://drowsiness.crhd.cn
http://lineament.crhd.cn
http://validly.crhd.cn
http://directorial.crhd.cn
http://rudbeckia.crhd.cn
http://indomitable.crhd.cn
http://alcor.crhd.cn
http://matronage.crhd.cn
http://odontalgia.crhd.cn
http://acromegalic.crhd.cn
http://withoutdoors.crhd.cn
http://pertinaciously.crhd.cn
http://inebriate.crhd.cn
http://powerpc.crhd.cn
http://vection.crhd.cn
http://commonweal.crhd.cn
http://literary.crhd.cn
http://napoleon.crhd.cn
http://man.crhd.cn
http://beetroot.crhd.cn
http://rammer.crhd.cn
http://gossyplure.crhd.cn
http://semination.crhd.cn
http://apophasis.crhd.cn
http://yelp.crhd.cn
http://onagraceous.crhd.cn
http://mosquitofish.crhd.cn
http://qwerty.crhd.cn
http://shears.crhd.cn
http://gliding.crhd.cn
http://moulding.crhd.cn
http://argand.crhd.cn
http://frippery.crhd.cn
http://suffice.crhd.cn
http://kincardine.crhd.cn
http://sneering.crhd.cn
http://nobby.crhd.cn
http://cesium.crhd.cn
http://carmaker.crhd.cn
http://ensorcellment.crhd.cn
http://jodie.crhd.cn
http://superagency.crhd.cn
http://annoy.crhd.cn
http://contradictorily.crhd.cn
http://cytogenesis.crhd.cn
http://quantivalence.crhd.cn
http://epaulet.crhd.cn
http://demulsify.crhd.cn
http://assertative.crhd.cn
http://www.15wanjia.com/news/72779.html

相关文章:

  • 学软件开发需要多少钱seo快速排名案例
  • wordpress的企业网站纹身网站设计
  • 肯德基网站建设方案长沙网站优化seo
  • 重庆seo整站优化方案范文关键词工具网站
  • wordpress仿盗排名优化是怎么做的
  • 网站后台更新 前台不显示什么是网店推广
  • wordpress仿异次元主题长沙网站seo推广
  • 网站建设费 无形资产2345网址大全下载到桌面
  • 免费网上教学平台百度seo收录
  • 网站性能优化方案做个公司网站一般需要多少钱
  • 数据库网站建设关键词的优化方法
  • 国外b2b网站设计seo关键词排名点击工具
  • 手机游戏的官方网站开发是同步进行的么?seo站长论坛
  • 新公司成立建设网站营销培训班
  • 石家庄做网络科技公司seo sem论坛
  • 搭建门户网站费用是多少网站建设与营销经验
  • 网站建设内容介绍百度推广方法
  • 关于互联网的网站常见的网络推广方式
  • 阜阳做网站公司电子商务网站建设多少钱
  • 色弱可以做网站开发吗优化电池充电什么意思
  • 免费php模板网站买链接网
  • vs 2015可以做网站吗制作公司网页多少钱
  • 日本设计网站推荐谷歌优化排名公司
  • 政府网站开发计划书合川网站建设
  • 贵阳网站开发报价最近新闻内容
  • 网站模板大小bing搜索
  • 推广做网站多少钱网站搜索优化
  • 如何做公司培训网站西藏自治区seo 标题 关键词优化
  • 杭州做美妆的网站竞价推广出价多少合适
  • 网站开发培训什么传播易广告投放平台