iam is really new in oracle and databases. Sorry, maybe a stupid question.
Here is my problem. I have a DB export (not mine, so I donβt know how it was exported: are there any differences?), And I want to import it with the following script:
@Echo off Break off Rem fullimpdp.cmd set NLS_LANG=american_america.WE8MSWIN1252 set ORACLE_HOME=C:\Oracle\ora11 Set DUMP_HOME=C:\DBDump set /p ORACLE_SID="Oracle_sid = " set /p FILE="Dump file name = " if exist %DUMP_HOME%SetBackupDir_%ORACLE_SID%.sql del /F /Q %DUMP_HOME%SetBackupDir_%ORACLE_SID%.sql echo CREATE OR REPLACE DIRECTORY backup_dir AS '%DUMP_HOME%'; >%DUMP_HOME%SetBackupDir_%ORACLE_SID%.sql echo CREATE OR REPLACE DIRECTORY dmpdir AS '%DUMP_HOME%'; >>%DUMP_HOME%SetBackupDir_%ORACLE_SID%.sql echo commit; >>%DUMP_HOME%SetBackupDir_%ORACLE_SID%.sql echo exit >>%DUMP_HOME%SetBackupDir_%ORACLE_SID%.sql set ORACLE_SID=%ORACLE_SID% %ORACLE_HOME%\bin\sqlplus xpower/xpower @%DUMP_HOME%SetBackupDir_%ORACLE_SID%.sql %ORACLE_HOME%\bin\impdp xpower/xpower FULL=y DIRECTORY=backup_dir DUMPFILE=%FILE% logfile=impdp_%ORACLE_SID%.log JOB_NAME=impfull_%Oracle_sid% if exist %DUMP_HOME%SetBackupDir_%ORACLE_SID%.sql del /F /Q %DUMP_HOME%SetBackupDir_%ORACLE_SID%.sql pause
But the following errors do not occur:
Connected to: Oracle Database 11g Release 11.2.0.3.0 - 64bit Production ORA-39000: bad dump file specification ORA-39143: dump file "C:\DBDump\ev122.dmp" may be an original export dump file
What's wrong? How can I fix this in a script? And how can I import a file without using a script? I read about the command imp file = filename. but where to enter it? :)
Thanks.
BR
source share