Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oracle 11g dmp import. ORA-39000 / ORA-39143 Errors

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

like image 307
user2794543 Avatar asked Sep 19 '13 08:09

user2794543


People also ask

What is the error code for Oracle 11g DMP import?

ORA-39000 / ORA-39143 Errors - Stack Overflow Oracle 11g dmp import. ORA-39000 / ORA-39143 Errors Bookmark this question.

What does ora-39000 mean?

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.

How to import a file exported by another DBA using IMP 00013?

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

What is the syntax for impdp for Oracle 11?

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:


Video Answer


2 Answers

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
like image 88
Dba Avatar answered Oct 16 '22 18:10

Dba


importing dump file in oracle 11g

In SQL Command Line,

  1. CREATE USER username IDENTIFIED BY password

  2. grant dba to username;

In Command Line,

  1. imp userid=username/password FULL=y FILE="D:\yourdumpfilename.dmp"

Note ..Be sure the path of your dump file .

like image 20
CuriousGirl Avatar answered Oct 16 '22 17:10

CuriousGirl