日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

expdp导出 schema_Oracle使用数据泵在异机之间导出导入多个 schema

發(fā)布時間:2025/3/12 编程问答 18 豆豆
生活随笔 收集整理的這篇文章主要介紹了 expdp导出 schema_Oracle使用数据泵在异机之间导出导入多个 schema 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

需求:

A機中的oracle有pingchuan和zte兩個用戶(schema),這兩個schema中都有數(shù)據(jù)

B機剛裝完oracle數(shù)據(jù)庫并建好實例,沒有數(shù)據(jù)。

A機的IP為192.168.1.131,B機的IP為192.168.1.137。

要求把A機中的pingchuan和zte導(dǎo)入到B機中。

(1)A機導(dǎo)出

> expdp

system/oracle directory=dump_dir dumpfile=exp.dmp logfile=exp.log

schemas=pingchuan,zte;

Export: Release

10.2.0.1.0 - 64bit Production on星期二, 23 6月, 2015 8:51:09

Copyright (c)

2003, 2005, Oracle.All rights reserved.

Connected to:

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production

With the

Partitioning, OLAP and Data Mining options

Starting

"SYSTEM"."SYS_EXPORT_SCHEMA_01":system/******** directory=dump_dir

dumpfile=exp.dmp logfile=exp.log schemas=pingchuan,zte

Estimate in

progress using BLOCKS method...

Processing object

type SCHEMA_EXPORT/TABLE/TABLE_DATA

Total estimation

using BLOCKS method: 192 KB

Processing object

type SCHEMA_EXPORT/USER

Processing object

type SCHEMA_EXPORT/SYSTEM_GRANT

Processing object

type SCHEMA_EXPORT/ROLE_GRANT

Processing object

type SCHEMA_EXPORT/DEFAULT_ROLE

Processing object

type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA

Processing object

type SCHEMA_EXPORT/TABLE/TABLE

Processing object

type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS

. . exported

"PINGCHUAN"."TEST_TABLE"4.937 KB1 rows

. . exported

"PINGCHUAN"."TEST_TABLE2"4.937 KB1 rows

. . exported

"ZTE"."TEST_TABLE3"4.929 KB1 rows

Master table

"SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully

loaded/unloaded

******************************************************************************

Dump file set for

SYSTEM.SYS_EXPORT_SCHEMA_01 is:

/home/oracle/dump/exp.dmp

Job

"SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully completed at

08:51:17

(2)在A機中向B機傳輸dump文件

scp /home/oracle/dump/exp.dmp

oracle@192.168.1.137:/home/oracle/dump/

Password:

exp.dmp100%180KB 180.0KB/s00:00

(3)B機導(dǎo)入

> impdp

system/oracle directory=dump_dir dumpfile=exp.dmp logfile=exp.log

schemas=pingchuan,zte;

Import: Release

10.2.0.1.0 - 64bit Production on星期二, 23 6月, 2015 8:54:51

Copyright (c)

2003, 2005, Oracle.All rights reserved.

Connected to:

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production

With the

Partitioning, OLAP and Data Mining options

Master table

"SYSTEM"."SYS_IMPORT_SCHEMA_01" successfully

loaded/unloaded

Starting

"SYSTEM"."SYS_IMPORT_SCHEMA_01":system/******** directory=dump_dir

dumpfile=exp.dmp logfile=exp.log schemas=pingchuan,zte

Processing object

type SCHEMA_EXPORT/USER

Processing object

type SCHEMA_EXPORT/SYSTEM_GRANT

Processing object

type SCHEMA_EXPORT/ROLE_GRANT

Processing object

type SCHEMA_EXPORT/DEFAULT_ROLE

Processing object

type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA

Processing object

type SCHEMA_EXPORT/TABLE/TABLE

Processing object

type SCHEMA_EXPORT/TABLE/TABLE_DATA

. . imported

"PINGCHUAN"."TEST_TABLE"4.937 KB1 rows

. . imported

"PINGCHUAN"."TEST_TABLE2"4.937 KB1 rows

. . imported

"ZTE"."TEST_TABLE3"4.929 KB1 rows

Processing object

type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS

Job

"SYSTEM"."SYS_IMPORT_SCHEMA_01" successfully completed at

08:54:53

(4)B機中驗證

> sqlplus / as

sysdba;

SQL> select *

from pingchuan.test_table;

SQL> select *

from pingchuan.test_table2;

SQL> select *

from zte.test_table3;

總結(jié)

以上是生活随笔為你收集整理的expdp导出 schema_Oracle使用数据泵在异机之间导出导入多个 schema的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。