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>