下面演示下使用数据泵的NETWORK_LINK将OEL6.0 Oracle 11gR2数据库中STORAGE用户下的所有对象迁移到OEL5.7 ORACLE 11gR2数据库中STORAGE用户下。
1.创建TNS字符串FHACDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.101)(PORT = 1523))
)
(CONNECT_DATA =
(SERVICE_NAME = fhacdb)
)
)
2.创建DIRECTORY并授权SQL> create directory imp as "/home/oracle"; Directory created.
SQL> grant read,write on directory imp to storage; Grant succeeded.
3.创建DB_LINKSQL> create public database link l_storage connect to storage identified by storage using "fhacdb"; Database link created.
4.使用IMPDP的NETWORK_LINK进行迁移操作[oracle@www.linuxidc.com admin]$ impdp storage/storage directory=imp network_link=l_storageImport: Release 11.2.0.2.0 - Production on Wed Feb 15 11:02:18 2012 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 With the Partitioning, OLAP, Data Mining and Real Application Testing options ... . .
导入了 "STORAGE"."T_DICTIONARY" 123371行 . .
导入了 "STORAGE"."CHN_WEST_DATE" 198702行 . .
导入了 "STORAGE"."T_FILE_INFO_RAW" 25176行 . .
导入了 "STORAGE"."T_FILE_INFO" 6657行 . .
导入了 "STORAGE"."T_LOG_INFO" 6476行 . .
导入了 "STORAGE"."T_BATCH_QUALITY" 4760行Oracle 11g RAC 客户端Tnsname配置Oacle实现不同机子间导入导出数据相关资讯 Oracle 11g
- Oracle 11g导入到10g引起的错误 (11/16/2015 10:55:27)
- Oracle 11g 导库导不出空表问题 (08/19/2015 19:55:58)
- Oracle 11g统计信息收集--多列统计 (07/24/2015 10:32:39)
| - Oracle 11gClone安装方法 (08/24/2015 20:25:41)
- Oracle 11g中和SQL TUNING相关的新 (08/12/2015 11:22:52)
- Oracle 11g数据泵详解 (07/08/2015 08:29:51)
|
本文评论 查看全部评论 (0)