SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL> show user;
USER 为 "SCOTT"
SQL> select table_name from user_tables;
TABLE_NAME
------------------------------
DEPT
EMP
BONUS
SALGRADE
SQL> show user;
USER 为 "SCOTT"
SQL> select * from v$version;
(1)SCOTT用户导出四表数据
C:\Users\Administrator>exp scott/tiger tables=(DEPT,EMP,bonus,SALGRADE) file="xy
.dmp" log="xy.log";
Export: Release 11.2.0.1.0 - Production on 星期三 7月 17 00:44:23 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Produc
tion
With the Partitioning, OLAP, Data Mining and Real Application Testing options
已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集
即将导出指定的表通过常规路径...
. . 正在导出表 DEPT导出了 4 行
. . 正在导出表 EMP导出了 14 行
EXP-00011: SCOTT.BONUS 不存在
. . 正在导出表 SALGRADE导出了 5 行
导出成功终止, 但出现警告。
C:\Users\Administrator>exp scott/tiger tables=(DEPT,EMP,bonus,SALGRADE) file="xy
.dmp" log="xy.log"
Export: Release 11.2.0.1.0 - Production on 星期三 7月 17 00:44:37 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Produc
tion
With the Partitioning, OLAP, Data Mining and Real Application Testing options
已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集
即将导出指定的表通过常规路径...
. . 正在导出表 DEPT导出了 4 行
. . 正在导出表 EMP导出了 14 行
EXP-00011: SCOTT.BONUS 不存在
. . 正在导出表 SALGRADE导出了 5 行
导出成功终止, 但出现警告。
(2)DBA授权给用户SCOTT
SQL> conn / as sysdba;
已连接。
SQL> grant dba to scott
2 ;
(3)IMP 导入过程
C:\Users\Administrator>imp scott/tiger fromuser="scott" touser="scott" file="
.dmp" tables=(emp,bonus,dept,salgrade) log="xu.log"
Import: Release 11.2.0.1.0 - Production on 星期三 7月 17 00:53:33 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Prod
tion
With the Partitioning, OLAP, Data Mining and Real Application Testing options
经由常规路径由 EXPORT:V11.02.00 创建的导出文件
已经完成 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集中的导入
. 正在将 SCOTT 的对象导入到 SCOTT
. . 正在导入表 "DEPT"导入了 4 行
. . 正在导入表 "EMP"导入了 14 行
. . 正在导入表 "SALGRADE"导入了 5 行
即将启用约束条件...
IMP-00033: 警告: 在导出文件中未找到表 "BONUS"
成功终止导入, 但出现警告。
C:\Users\Administrator>
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29049725/viewspace-766434/
,如需转载,请注明出处,否则将追究法律责任。