Ham*_*DBA 10 database-administration oracle10g impdp
需要帮忙 ..
我.DMP在我的数据库上导入一个文件,当我在SQL上编写我的impdp查询时,它返回此错误我不知道这个错误是什么
SP2-0734:未知命令开头"impdp ..."其余行被忽略
我的命令是
impdp user/pass directory=DUMPS dumpfile=filedumpname.dmp logfile=name.log full=yes
Run Code Online (Sandbox Code Playgroud)
Mar*_*lli 24
SP2-0734 是一个SQL*Plus错误.
impdp是一个独立的实用程序,而不是SQL*Plus命令.您需要从OS命令行运行它.
- 这意味着impdp是Windows命令,不是sqlplus的一部分:-) -
产生此错误的原因impdp 是不是 SQLPlus 命令。
如果您尝试将其作为 sqlplus 命令运行,则会收到错误:
C:\Windows\system32>sqlplus sys/oracle@orcl as sysdba
SQL*Plus: Release 12.2.0.1.0 Production on Wed Nov 7 12:03:56 2018
Copyright (c) 1982, 2017, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
SQL> impdp system/oracle@orcl directory=dp schemas=SCDB dumpfile=SCDB.DMP logfile=SCDB.log
SP2-0734: unknown command beginning "impdp syst..." - rest of line ignored.
Run Code Online (Sandbox Code Playgroud)
事实上,您必须打开一个新终端并在那里运行命令:
C:\Windows\system32>impdp system/oracle@orcl directory=dp schemas=SCDB dumpfile=SCDB.DMP logfile=SCDB.log
Import: Release 12.2.0.1.0 - Production on Wed Nov 7 12:10:48 2018
Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
Master table "SYSTEM"."SYS_IMPORT_SCHEMA_01" successfully loaded/unloaded
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
35228 次 |
| 最近记录: |