Oracle基礎教程:expdp時不能匯出sys使用者下的對象

來源:互聯網
上載者:User

sys使用者下的對象不支援匯出

SQL> select owner,segment_name,tablespace_name from dba_segments where tablespac
e_name='USERS';

OWNER SEGMENT_NAME TABLESPACE_NAME
---------- -------------------- ------------------------------
SYS REPAIR_TABLE USERS
SYS TT USERS
TEST1 TT USERS
SYS T1 USERS
TEST T USERS
TEST TT USERS

已選擇6行。

SQL>
C:>expdp 'sys/system@test as sysdba' DIRECTORY=temp_dir dumpfile=users.dmp tabl
espaces=users

Export: Release 10.2.0.1.0 - Production on 星期一, 01 6月, 2009 9:47:44

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

串連到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
啟動 "SYS"."SYS_EXPORT_TABLESPACE_01": 'sys/********@test AS SYSDBA' DIRECTORY=
temp_dir dumpfile=users.dmp tablespaces=users
正在使用 BLOCKS 方法進行估計...
處理物件類型 TABLE_EXPORT/TABLE/TABLE_DATA
使用 BLOCKS 方法的總估計: 192 KB
處理物件類型 TABLE_EXPORT/TABLE/TABLE
. . 匯出了 "TEST"."T" 4.921 KB 1 行
. . 匯出了 "TEST"."TT" 5.242 KB 4 行
. . 匯出了 "TEST1"."TT" 5.242 KB 2 行
已成功載入/卸載了主表 "SYS"."SYS_EXPORT_TABLESPACE_01"
******************************************************************************
SYS.SYS_EXPORT_TABLESPACE_01 的轉儲檔案集為:
C:TEMPUSERS.DMP
作業 "SYS"."SYS_EXPORT_TABLESPACE_01" 已於 09:48:09 成功完成

C:>

C:>expdp 'sys/system@test as sysdba' DIRECTORY=temp_dir dumpfile=sys.dmp schema
s=sys

Export: Release 10.2.0.1.0 - Production on 星期一, 01 6月, 2009 9:52:59

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

串連到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
啟動 "SYS"."SYS_EXPORT_SCHEMA_01": 'sys/********@test AS SYSDBA' DIRECTORY=temp
_dir dumpfile=sys.dmp schemas=sys
正在使用 BLOCKS 方法進行估計...
處理物件類型 SCHEMA_EXPORT/TABLE/TABLE_DATA
使用 BLOCKS 方法的總估計: 0 KB
處理物件類型 SCHEMA_EXPORT/ROLE_GRANT
已成功載入/卸載了主表 "SYS"."SYS_EXPORT_SCHEMA_01"
******************************************************************************
SYS.SYS_EXPORT_SCHEMA_01 的轉儲檔案集為:
C:TEMPSYS.DMP
作業 "SYS"."SYS_EXPORT_SCHEMA_01" 已於 09:53:30 成功完成

C:>

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.