Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

19

积分

0

好友

1

主题
1#
发表于 2013-1-28 20:37:23 | 查看: 5533| 回复: 2
我用impdp zjh/zjh DIRECTORY=HZ2004 dumpfile=b_ryzp.dmp  REMAP_TABLE=JWZH_ZFGFH.b_ryzp:zjh.b_ryzp命令执行后,在v$sql语句中捕获到如下语句:
INSERT /*+ APPEND PARALLEL("ZJH.B_RYZP",1)+*/ INTO RELATIONAL("JWZH_ZFGFH"."ZJH.B_RYZP" NOT XMLTYPE) ("SYSTEMID", "PHOTONO", "PHOTONAME", "YWBBH", "PHOTOTYPE", "PHOTOSOURCE", "PHOTOREGTIME", "LRSJ", "LRR", "LRDW", "DEPARTMENTCODE", "CREATOR", "CREATEDTIME", "SECURITYGRADE", "RESERVATION01", "RESERVATION02", "RESERVATION03", "RESERVATION04", "RESERVATION05", "RESERVATION06", "RESERVATION07", "RESERVATION08", "RESERVATION09", "RESERVATION10", "LASTUPDATEDBY", "LASTUPDATEDTIME", "REFRESHTIME", "UPLOADFLAG", "DOWNLOADFLAG", "DELETEFLAG", "PHOTO")
   SELECT "SYSTEMID", "PHOTONO", "PHOTONAME", "YWBBH", "PHOTOTYPE", "PHOTOSOURCE", "PHOTOREGTIME", "LRSJ", "LRR", "LRDW", "DEPARTMENTCODE", "CREATOR", "CREATEDTIME", "SECURITYGRADE", "RESERVATION01", "RESERVATION02", "RESERVATION03", "RESERVATION04", "RESERVATION05", "RESERVATION06", "RESERVATION07", "RESERVATION08", "RESERVATION09", "RESERVATION10", "LASTUPDATEDBY", "LASTUPDATEDTIME", "REFRESHTIME", "UPLOADFLAG", "DOWNLOADFLAG", "DELETEFLAG", "PHOTO"
    FROM "ET$0093000D0001" KU$

查询"ET$0093000D0001"表定义语句
CREATE TABLE "ZJH"."ET$0093000D0001"
   (  "SYSTEMID" VARCHAR2(114),
  "PHOTONO" VARCHAR2(114),
  "PHOTONAME" VARCHAR2(114),
  "YWBBH" VARCHAR2(114),
  "PHOTOTYPE" VARCHAR2(24),
  "PHOTOSOURCE" VARCHAR2(69),
  "PHOTOREGTIME" DATE,
  "LRSJ" DATE,
  "LRR" VARCHAR2(69),
  "LRDW" VARCHAR2(114),
  "DEPARTMENTCODE" VARCHAR2(114),
"CREATOR" VARCHAR2(576),
"CREATEDTIME" DATE,
"SECURITYGRADE" VARCHAR2(114),
"RESERVATION01" VARCHAR2(576),
"RESERVATION02" VARCHAR2(576),
"RESERVATION03" VARCHAR2(576),
"RESERVATION04" VARCHAR2(576),
"RESERVATION05" VARCHAR2(576),
"RESERVATION06" VARCHAR2(576),
"RESERVATION07" VARCHAR2(576),
"RESERVATION08" VARCHAR2(576),
"RESERVATION09" VARCHAR2(576),
"RESERVATION10" VARCHAR2(576),
"LASTUPDATEDBY" VARCHAR2(114),
"LASTUPDATEDTIME" DATE,
"REFRESHTIME" DATE,
"UPLOADFLAG" VARCHAR2(3),
"DOWNLOADFLAG" VARCHAR2(3),
"DELETEFLAG" VARCHAR2(3),
"PHOTO" BLOB
   )
   ORGANIZATION EXTERNAL
    ( TYPE ORACLE_DATAPUMP
      DEFAULT DIRECTORY "HZ2004"
      ACCESS PARAMETERS
      ( DEBUG = (0 , 0) DATAPUMP INTERNAL TABLE "JWZH_ZFGFH"."ZJH.B_RYZP"  JOB ( "ZJH","SYS_IMPORT_FULL_01",1) WORKERID 1 PARALLEL 1 VERSION '11.2.0.0.0' ENCRYPTPASSWORDISNULL  COMPRESSION DISABLED  ENCRYPTION DISABLED     )
      LOCATION
       ( 'bogus.dat'
       )
    )
   REJECT LIMIT UNLIMITED
其中b_ryzp有lob类型,现在疑问有两个:
1.捕获到的sql语句insert into中提示APPEND PARALLEL 是不是直接插入并形?
2.sql语句中的RELATIONAL是函数还是insert into RELATIONAL这样语句?

2#
发表于 2013-1-29 14:45:40
1.APPEND PARALLEL("ZJH.B_RYZP",1) ==>直接路径插入 并行度为1 ==》不并行
2. 我觉得是后者

回复 只看该作者 道具 举报

3#
发表于 2013-2-5 16:08:37
经查询,RELATIONAL是一个函数,用于对像转换成表格显示的函数。

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-11-16 08:51 , Processed in 0.050848 second(s), 20 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569