oracle 高版本導出低版本數據庫並且導入到低版本數據的方法

第一步:sqlplus system/egis@orcl as sysdba;  進入sqlplus (輸入管理員用戶名/密碼@數據庫密碼)

第二步: create directory dumpdir as 'd:\';         創建數據庫泵目錄(指定泵目錄的地址)

第三步: exit                                                       退出sqlplus

第四步:expdp portal_gdms/portal_gdms@orcl dumpfile=filenmame.dmp directory=dumpdir version=10.0.2

Microsoft Windows [版本 6.1.7600]
版權所有 (c) 2009 Microsoft Corporation。保留所有權利。

C:\Users\thinkpad>sqlplus system/egis@orcl as sysdba;

SQL*Plus: Release 11.1.0.6.0 - Production on 星期四 3月 15 21:21:06 2012

Copyright (c) 1982, 2007, Oracle.  All rights reserved.


連接到:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> create directory dumpdir as 'd:\';

目錄已創建。

SQL> exit
從 Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 斷開

C:\Users\thinkpad>expdp portal_gdms/portal_gdms@orcl dumpfile=filenmame.dmp directory=dumpdir version=10.0.2

Export: Release 11.1.0.6.0 - Production on 星期四, 15 3月, 2012 21:23:51

Copyright (c) 2003, 2007, Oracle.  All rights reserved.

連接到: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
啓動 "PORTAL_GDMS"."SYS_EXPORT_SCHEMA_01":  portal_gdms/********@orcl dumpfile=filenmame.dmp directory=dumpdir version=10.0.2
正在使用 BLOCKS 方法進行估計...
處理對象類型 SCHEMA_EXPORT/TABLE/TABLE_DATA
使用 BLOCKS 方法的總估計: 3.937 MB
處理對象類型 SCHEMA_EXPORT/USER
處理對象類型 SCHEMA_EXPORT/SYSTEM_GRANT
處理對象類型 SCHEMA_EXPORT/ROLE_GRANT
處理對象類型 SCHEMA_EXPORT/DEFAULT_ROLE
處理對象類型 SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
處理對象類型 SCHEMA_EXPORT/SEQUENCE/SEQUENCE
處理對象類型 SCHEMA_EXPORT/TABLE/TABLE
處理對象類型 SCHEMA_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
處理對象類型 SCHEMA_EXPORT/TABLE/INDEX/INDEX
處理對象類型 SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
處理對象類型 SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
處理對象類型 SCHEMA_EXPORT/TABLE/COMMENT
處理對象類型 SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
處理對象類型 SCHEMA_EXPORT/TABLE/TRIGGER
處理對象類型 SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . 導出了 "PORTAL_GDMS"."ACCESSLOG"                   992.1 KB   22740 行
. . 導出了 "PORTAL_GDMS"."BN_LAYERS"                   51.27 KB     987 行
. . 導出了 "PORTAL_GDMS"."ROLE_RESOURCE_RIGHT"         66.68 KB    1963 行
. . 導出了 "PORTAL_GDMS"."AFFICHEINFO"                 7.125 KB       1 行
. . 導出了 "PORTAL_GDMS"."BN_LAYERS_CATALOG"           12.82 KB     163 行
. . 導出了 "PORTAL_GDMS"."BN_LAYRE_SYMBOL"             6.820 KB       1 行
. . 導出了 "PORTAL_GDMS"."CUSTOMFUNCTIONINFO"          8.843 KB       3 行
. . 導出了 "PORTAL_GDMS"."CUSTOMFUNCTIONLINKCONFIG"    7.203 KB       1 行
. . 導出了 "PORTAL_GDMS"."FUNCTIONCLASS"               11.19 KB      11 行
. . 導出了 "PORTAL_GDMS"."GENERALDRAWINGMAPINFO"       28.59 KB     173 行
. . 導出了 "PORTAL_GDMS"."INFOPICTURE"                 6.359 KB       2 行
. . 導出了 "PORTAL_GDMS"."MAPDATAUSECASE"              9.976 KB      60 行
. . 導出了 "PORTAL_GDMS"."MAPINFOREDEVELOP"            8.046 KB       2 行
. . 導出了 "PORTAL_GDMS"."MAPSERVICEINFO"              7.968 KB       2 行
. . 導出了 "PORTAL_GDMS"."MAPTYPEINFO"                 8.203 KB      54 行
. . 導出了 "PORTAL_GDMS"."RECOMMENDINFO"               6.273 KB       1 行
. . 導出了 "PORTAL_GDMS"."ROLECOLUMN"                  9.531 KB     224 行
. . 導出了 "PORTAL_GDMS"."ROLEFUNCTION"                21.91 KB     895 行
. . 導出了 "PORTAL_GDMS"."ROLES"                       11.67 KB      54 行
. . 導出了 "PORTAL_GDMS"."TEMPLATE"                    6.343 KB      10 行
. . 導出了 "PORTAL_GDMS"."TEMPLATEMARKING"             6.554 KB      34 行
. . 導出了 "PORTAL_GDMS"."TREE"                        24.74 KB     213 行
. . 導出了 "PORTAL_GDMS"."UNITLIST"                    7.960 KB      27 行
. . 導出了 "PORTAL_GDMS"."USERCOLUMN"                  6.632 KB      44 行
. . 導出了 "PORTAL_GDMS"."USERFUNCTION"                16.81 KB     566 行
. . 導出了 "PORTAL_GDMS"."USERS"                       21.47 KB      51 行
. . 導出了 "PORTAL_GDMS"."USER_GROUP"                  6.367 KB      59 行
. . 導出了 "PORTAL_GDMS"."USER_RESOURCE_RIGHT"         27.80 KB     683 行
. . 導出了 "PORTAL_GDMS"."USER_ROLE"                   6.335 KB      85 行
. . 導出了 "PORTAL_GDMS"."Z_INPUT"                     8.296 KB     221 行
. . 導出了 "PORTAL_GDMS"."DEPARTMENT"                      0 KB       0 行
. . 導出了 "PORTAL_GDMS"."HAIL_FELLOWLINK"                 0 KB       0 行
. . 導出了 "PORTAL_GDMS"."HTMLINFO"                        0 KB       0 行
. . 導出了 "PORTAL_GDMS"."PEAKINFO"                        0 KB       0 行
. . 導出了 "PORTAL_GDMS"."ROLLINFO"                        0 KB       0 行
. . 導出了 "PORTAL_GDMS"."TEST"                            0 KB       0 行
已成功加載/卸載了主表 "PORTAL_GDMS"."SYS_EXPORT_SCHEMA_01"
******************************************************************************
PORTAL_GDMS.SYS_EXPORT_SCHEMA_01 的轉儲文件集爲:
  D:\FILENMAME.DMP
作業 "PORTAL_GDMS"."SYS_EXPORT_SCHEMA_01" 已於 21:24:35 成功完成


C:\Users\thinkpad>

 

 )

發佈了18 篇原創文章 · 獲贊 4 · 訪問量 6萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章