iam really new in oracle and databases at all. So sorry for a maybe stupid question.
Here is my problem. I have a DB export (not mine so i dont know how it was exported: are there 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 not the following errors 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 is wrong? How can i fix it in this script? And how can i import the file not using the script? I read about the imp file=filename command. but where to type it in? :)
Thank you.
BR
ORA-39000 / ORA-39143 Errors - Stack Overflow Oracle 11g dmp import. ORA-39000 / ORA-39143 Errors Bookmark this question.
ORA-39000: bad dump file specification in 11gRAC environment... I am having two version of Database. Source database is non-RAC environment and target is having RAC environment.
00 via conventional pathIMP- 00013: only a DBA can import a file exported by another DBAIMP- 00000: Import terminated unsuccessfullyC:\Users\windows> and run the import as GSW again. imp gsw/pass file=C:/gsw_ 110516 .dmp fromuser=gsw touser=gsw
The syntax for impdp for Oracle 11 is here. The FILE parameter that you have used should be DUMPFILE. Log should be LOGFILE. Here is an example from the documentation Show activity on this post. Check first if you have the directory created. Then execute the imp with the directory that was created or the one which existed in the first query:
Try like this,
imp xpower/xpower FULL=y file=<file_name>.dmp log=log_file_name.log
Or you can import using system user,
imp system/<password> file=<file_name>.dmp log=log_file_name.log fromuser = <from_user_name> touser= xpower
importing dump file in oracle 11g
In SQL Command Line,
CREATE USER username IDENTIFIED BY password
grant dba to username;
In Command Line,
Note ..Be sure the path of your dump file .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With