【导入导出】执行导入,导出时如何以as sysdba 身份连接。

1. Command line.命令行形式
C:\Users\aaaa>exp 'system/yang as sysdba'  tables=scott.emp  file=emp.dmp
Export: Release 11.1.0.6.0 - Production on 星期日 2月 20 22:26:41 2011
Copyright (c) 1982, 2007, Oracle.  All rights reserved.

连接到: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集
即将导出指定的表通过常规路径...
当前的用户已更改为 SCOTT
. . 正在导出表                             EMP导出了          14 行
成功终止导出, 没有出现警告。

C:\Users\aaaa>exp '/ as sysdba'  tables=scott.emp  file=emp.dmp
Export: Release 11.1.0.6.0 - Production on 星期日 2月 20 22:27:01 2011

连接到: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集

即将导出指定的表通过常规路径...
当前的用户已更改为 SCOTT
. . 正在导出表                             EMP导出了          14 行
成功终止导出, 没有出现警告。

2. 交互模式
C:\Users\aaaa>exp tables=scott.emp
用户名: system
口令:
连接到: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集
即将导出指定的表通过常规路径...
当前的用户已更改为 SCOTT
. . 正在导出表                             EMP导出了          14 行
成功终止导出, 没有出现警告。

3 .参数文件形式
d:\emppar.txt
USERID= '/as sysdba'  ----此用法错误
TABLES=scott.emp
FILE=emp.dmp
C:\Users\aaaa>exp parfile=d:\emppar.txt
Export: Release 11.1.0.6.0 - Production on 星期日 2月 20 22:30:21 2011
Copyright (c) 1982, 2007, Oracle.  All rights reserved.
EXP-00004: 用户名或口令无效
用户名: system
口令:

连接到: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集

即将导出指定的表通过常规路径...
当前的用户已更改为 SCOTT
. . 正在导出表                             EMP导出了          14 行
成功终止导出, 没有出现警告。

d:\emppar.txt 内容如下:
USERID= 'system/yang as sysdba'
TABLES=scott.emp
FILE=emp.dmp
C:\Users\aaaa>exp parfile=d:\emppar.txt
Export: Release 11.1.0.6.0 - Production on 星期日 2月 20 22:31:08 2011
连接到: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
已导出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集

即将导出指定的表通过常规路径...
当前的用户已更改为 SCOTT
. . 正在导出表                             EMP导出了          14 行
成功终止导出, 没有出现警告。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值