Hamza Nawaz DBA
Hamza Nawaz DBA

Reputation: 159

SP2-0734: unknown command beginning "impdp"

Need Help ..

i am Importing a .DMP file on my database , when i am writing my impdp query on SQL , it is returning with this error I have no idea what this error is

SP2-0734: unknown command beginning "impdp ... " Rest of the line ignored

my command is

impdp user/pass directory=DUMPS dumpfile=filedumpname.dmp logfile=name.log full=yes

Upvotes: 16

Views: 52898

Answers (3)

Md. Ilyas Hasan Mamun
Md. Ilyas Hasan Mamun

Reputation: 1888

This error is produced because impdp is not an SQLPlus command.

Resolved

If you try to run this as a sqlplus command, you get an error:

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.    


Indeed, you have to open a new terminal and run the command there:

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

Upvotes: 5

Resul Rzaeeff
Resul Rzaeeff

Reputation: 488

I have tried all ways but finally I got that we must change encoding to ANSI for all (.pck,.tps,.typ,.fnc) files.I hope this will help you ;)

Upvotes: -1

Marco Baldelli
Marco Baldelli

Reputation: 3728

SP2-0734 is a SQL*Plus error.

impdp is a standalone utility, not a SQL*Plus command. You need to run it from the OS command line.

-- This means that impdp is Windows command, not part of sqlplus :-) --

Upvotes: 36

Related Questions