导入dmp 日志备忘


SQL*Plus: Release 11.2.0.1.0 Production on 星期三 10月 13 11:21:11 2010

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

请输入用户名:  sys
输入口令:
ERROR:
ORA-28009: connection as SYS should be as SYSDBA or SYSOPER


请输入用户名:  sys as sysdba
输入口令:

连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> imp kevin/123456@kevin file=E:\work\吉利\mpc\mpc20090819.dmp
SP2-0734: 未知的命令开头 "imp kevin/..." - 忽略了剩余的行。
SQL> $imp kevin/123456@kevin file=E:\work\吉利\mpc\mpc20090819.dmp

Import: Release 11.2.0.1.0 - Production on 星期三 10月 13 11:24:43 2010

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.


IMP-00058: 遇到 ORACLE 错误 12170
ORA-12170: TNS: 连接超时
IMP-00000: 未成功终止导入

SQL> $imp kevin/123456@kevin_127.0.0.1 file=E:\work\吉利\mpc\mpc20090819.dmp

Import: Release 11.2.0.1.0 - Production on 星期三 10月 13 11:41:36 2010

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.


IMP-00058: 遇到 ORACLE 错误 12154
ORA-12154: TNS: 无法解析指定的连接标识符
IMP-00000: 未成功终止导入

SQL> $imp kevin/123456@kevin_orcl file=E:\work\吉利\mpc\mpc20090819.dmp

Import: Release 11.2.0.1.0 - Production on 星期三 10月 13 11:46:09 2010

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.


IMP-00058: 遇到 ORACLE 错误 12154
ORA-12154: TNS: 无法解析指定的连接标识符
IMP-00000: 未成功终止导入

SQL> $imp kevin/123456@orcl file=E:\work\吉利\mpc\mpc20090819.dmp

Import: Release 11.2.0.1.0 - Production on 星期三 10月 13 11:47:43 2010

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

经由常规路径由 EXPORT:V11.01.00 创建的导出文件
IMP-00013: 只有 DBA 才能导入由其他 DBA 导出的文件
IMP-00000: 未成功终止导入

SQL> grant dba to sys;

授权成功。

SQL> $imp kevin/123456@orcl file=E:\work\吉利\mpc\mpc20090819.dmp

Import: Release 11.2.0.1.0 - Production on 星期三 10月 13 11:49:16 2010

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

经由常规路径由 EXPORT:V11.01.00 创建的导出文件
IMP-00013: 只有 DBA 才能导入由其他 DBA 导出的文件
IMP-00000: 未成功终止导入

SQL> grant dba to kevin;

授权成功。

SQL> connect kevin
输入口令:
已连接。
SQL> $imp kevin/123456@orcl file=E:\work\吉利\mpc\mpc20090819.dmp

Import: Release 11.2.0.1.0 - Production on 星期三 10月 13 11:50:31 2010

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

经由常规路径由 EXPORT:V11.01.00 创建的导出文件

警告: 这些对象由 MPC 导出, 而不是当前用户

已经完成 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集中的导入
IMP-00031: 必须指定 FULL=Y 或提供 FROMUSER/TOUSER 或 TABLES 参数
IMP-00000: 未成功终止导入

SQL> $imp kevin/123456@orcl file=E:\work\吉利\mpc\mpc20090819.dmp full=y

Import: Release 11.2.0.1.0 - Production on 星期三 10月 13 11:50:57 2010

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

经由常规路径由 EXPORT:V11.01.00 创建的导出文件

警告: 这些对象由 MPC 导出, 而不是当前用户

已经完成 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集中的导入
. 正在将 MPC 的对象导入到 KEVIN
. . 正在导入表                 "LA_LEAVEAPPLY"导入了           1 行
. . 正在导入表               "LA_LEAVEAPPROVE"导入了           0 行
. . 正在导入表                "OS_CURRENTSTEP"导入了           1 行
. . 正在导入表                "OS_HISTORYSTEP"导入了           1 行
. . 正在导入表              "OS_PROPERTYENTRY"导入了           1 行
. . 正在导入表                    "OS_WFENTRY"导入了           1 行
. . 正在导入表                  "SS_RESOURCES"导入了           9 行
. . 正在导入表                      "SS_ROLES"导入了           2 行
. . 正在导入表                  "SS_ROLE_RESC"导入了          13 行
. . 正在导入表                      "SS_USERS"导入了           2 行
. . 正在导入表                  "SS_USER_ROLE"导入了           3 行
即将启用约束条件...
成功终止导入, 没有出现警告。

SQL>

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值