匯出資料庫的指令碼

來源:互聯網
上載者:User

[root@iptvdb ~]# su - oracle
-bash-3.2$ sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on Mon Oct 24 10:36:29 2011

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

SQL> conn /as sysdba             
Connected.
SQL> create directory exp as '/home/oracle/bak/base';

Directory created.

SQL> GRANT READ, WRITE ON DIRECTORY exp To sichuan020209test;

Grant succeeded.

root使用者登入,chmod 777 /oracle/key  授權

SQL> quit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
-bash-3.2$ expdp sichuan020209test/test201109 directory=exp content=metadata_only dumpfile=sichuan020209test.dmp logfile=sichuan020209test.log parallel=8
CREATE OR REPLACE DIRECTORY iptv AS  '/oracle/bakgina';
GRANT READ, WRITE ON DIRECTORY  iptv TO IPTV;
expdp ISA020209TEST/test201109 schemas=ISA020209TEST directory=iptv  content=all dumpfile=iptv_20111025%U.dump logfile=iptv_20111025.dump.log parallel=8

expdp iptv/certus20 schemas=IPTV directory=iptv dumpfile=iptv_20110312%U.dump logfile=iptv_20110312.dump.log parallel=8

Export: Release 10.2.0.1.0 - 64bit Production on Monday, 24 October, 2011 10:44:23

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 "SICHUAN020209TEST"."SYS_EXPORT_SCHEMA_01":  sichuan020209test/******** directory=exp content=metadata_only dumpfile=sichuan020209test.dmp logfile=sichuan020209test.log

Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
Processing object type SCHEMA_EXPORT/FUNCTION/FUNCTION
Processing object type SCHEMA_EXPORT/PROCEDURE/PROCEDURE
Processing object type SCHEMA_EXPORT/FUNCTION/ALTER_FUNCTION
Processing object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/FUNCTIONAL_AND_BITMAP/INDEX
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/FUNCTIONAL_AND_BITMAP/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCOBJ
Master table "SICHUAN020209TEST"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SICHUAN020209TEST.SYS_EXPORT_SCHEMA_01 is:
  /home/oracle/bak/base/sichuan020209test.dmp
Job "SICHUAN020209TEST"."SYS_EXPORT_SCHEMA_01" successfully completed at 11:11:39

-bash-3.2$

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.