Home > Database > Mysql Tutorial > body text

Oracle基础教程:expdp时不能导出sys用户下的对象

WBOY
Release: 2016-06-07 17:30:20
Original
1064 people have browsed it

Oracle基础教程:expdp时不能导出sys用户下的对象

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:>

linux

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!