Error importing oracle dump - oracle

I am trying to import a dump into two schema in the same oracle DB.Following a workaround to do this.
I am trying to run the imp command with the INDEXFILE option to be able to modify the tablespace names in the sql. This is what I get :
E:\oracle_10_2\BIN>imp atlantis/atlantis#orcl file=ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp indexfile=index.sql full=y log=imp.log
Import: Release 10.2.0.1.0 - Production on Thu Mar 12 15:31:44 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Produc
tion
With the Partitioning, OLAP and Data Mining options
IMP-00002: failed to open ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp for read
Import file: EXPDAT.DMP >
Looked like a file permission issue to me so I tried changing it.
E:\oracle_10_2\BIN>cacls E:\ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp /p atlantis:F
Are you sure (Y/N)?y
processed file: E:\ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp
E:\oracle_10_2\BIN>cacls E:\ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp
E:\ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp CORP\atlantis:F
But the problem persists.

If you are using Oracle 10g consider using new export/import tool Oracle Data Pump in which you can use REMAP_TABLESPACE parameter.
Anyway, you missed the path of the exportfile (bassed on the commands fo give permissions). Then You wrote:
file=ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp
instead of
file=E:\ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp
Then, the result export command to work is:
imp atlantis/atlantis#orcl file=E:\ABCD1_EXCLUDE_CLOB_TABS_BAK.dmp indexfile=index.sql full=y log=imp.log

Open window command line as administrator
imp user/pass#databasename(listenername) file='DMP path'
log=indexfile.log full=y;
Don't forget to add your database or listener name.

Related

Import dmp file to Oracle

my customer has provided a dmp file (10 GO), and i tried the following:
Create a user:
create user USERNAME identified by PASSWORD;
Grant read write access
Import the dump file(using imp and impdp)
impdp or imp system/password#db dumpfile=EXPDAT.DMP FULL=Y logfile=dice.log
and here's the error message:
Import: Release 18.0.0.0.0 - Production on Tue Feb 23 11:46:07 2021
Version 18.4.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production
ORA-39002: invalid operation
ORA-39059: dump file set is incomplete
ORA-39246: cannot locate master table within provided dump files
Can anyone help on that?
First, imp and impdp are not interchangeable; they have different file formats and options. You need to know exactly which was used to create the file you have.
Second, assuming the file was created with expdp (aka datapump, the more modern choice) and you should be using impdp to load it, the error indicates that there's a problem with the datafile itself.
ORA-39246 cannot locate master table within provided dump files
Cause: Check the export log file and make sure all of the files that
were exported are included in the current job.
Action: A Data Pump IMPORT or SQL_FILE operation was being performed
but not all of the files from the Data Pump export dump file set were
included. In particular, the dump file containing the export job's
master table was not provided.
It seems likely that your customer has not provided you with the complete data dump and you should have received additional files. This is possible if either the "parallel" or "filesize" option was used during the export. Confirm with them the number and size of the files you should have.

Importing an Oracle 7 DMP into Oracle XE 18c

I need to be pointed in the right direction, as I am getting nowhere.
I have been handed a project from some years back which has a VB6 front end with an Oracle back end, and for some reason Access in the middle. The VB6 I am fine with.
What I am trying to achieve is to import an Oracle 7 DMP file into a fresh install of Oracle XE 18c.
What I need is to be pointed towards some documentation with examples, and maybe an area to look at. I am new to Oracle so really have no clue where to begin.
Where I am currently:
I have downloaded and installed a copy of Oracle on my Windows 10 PC (64Bit)
Copied the DMP file into the correct directory.
Ran the following command, and I get the errors that follow
D:\Oracle\ImportDB>impdp dumpfile=BA0211070.DMP
Import: Release 18.0.0.0.0 - Production on Wed Mar 27 11:04:58 2019
Version 18.4.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
Username: SYSTEM
Password:
Connected to: Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production
ORA-39001: invalid argument value
ORA-39000: bad dump file specification
ORA-31619: invalid dump file "D:\Oracle\admin\xe\dpdump\BA0211070.DMP"
I have also tried:
impdp dumpfile=BA0211070.DMP FULL=Y VERSION=7
impdp dumpfile=BA0211070.DMP FULL=Y
I got the same results as above.
I have tried Googling the error messages, but that hasn't really shed much light. I can't get a fresh DMP file as we don't have an Oracle installation anymore, so unfortunately I have to work with what I have.

ORA-00942: table or view does not exist error using impdp

I've been provided with a Oracle database dump which I'm attempting to import using the following:
impdp myuser/myuser DUMPFILE=/u01/app/oracle/oradata/dumpfile.dmp FULL=y LOGFILE=/u01/app/oracle/oradata/dumplog.log
The output is
Import: Release 12.1.0.1.0 - Production on Fri May 1 09:46:59 2015
Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.
UDI-00942: operation generated ORACLE error 942
ORA-00942: table or view does not exist
Is there anyway I can find out what the problem is or get more information? The user myuser has all privileges.
After running though the setup again it turned out this database has not had the catalog.sql and catproc.sql scripts run on it. Rerunning the import once this has been run resolved this error.

is it possible to recover the Oracle Data Pump master table?

I'm trying to import a few files with a published Oracle Data Pump perl script: dumpinfo.pl
After successfully importing several dump files from the same export process, another file failed with:
# impdp system/****** DIRECTORY=RESTORE_DIR DUMPFILE=exp_%u.dmp PARALLEL=8
Import: Release 11.2.0.2.0 - Production on Mon Jul 7 11:40:37 2014
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39002: invalid operation
ORA-39059: dump file set is incomplete
ORA-39246: cannot locate master table within provided dump files
The script reports that it can't find a master table. Assuming that the master table is lost, there any mechanics for recover it?
Thanks...
ORA-39246 cannot locate master table within provided dump files
Cause: Check the export log file and make sure all of the files that
were exported are included in the current job. Action: A Data Pump
IMPORT or SQL_FILE operation was being performed but not all of the
files from the Data Pump export dump file set were included. In
particular, the dump file containing the export job's master table was
not provided.
Check that you have all dump files in that directory and they all are accessible to impdp utility. I got this error when our backup team has restored first five dmp files, and two last ones were missing.

Error in loading a data from the txt file to oracle table using sqlldr

my .ctl file is :
LOAD DATA
INFILE "C:\Users\nkb1\Desktop\fnames.txt"
INTO TABLE MDB.TEACHERS
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
(first_name,last_name)
i am executing this from the windows command prompt as
sqlldr system#mdb/mdb control=C:\Users\nkb1\Desktop\load.ctl
and i am getting error like this.
C:\Users\nkb1>sqlldr system#mdb/mdb control=C:\Users\nkb1\Desktop\load.ctl
SQL*Loader: Release 10.2.0.1.0 - Production on Wed May 4 14:44:22 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL*Loader-704: Internal error: ulconnect: OCIEnvCreate [-1]
and i have set the ORACLE_HOME variable as C:\oracle\product\10.2.0\db_2 where the db stores
Bad news, this is a bug in 10.2.0.1.
Check Metalink document 361325.1 (hope you have access)!
Maybe you'll just have to grant additional privileges but it is possible that you'll need to apply the 10.2.0.3 patch set
I hit the same issue. Closed the command prompt.Opened one with Administrator Rights - Open CMD as Administrator.
That's it. This solved all the issues I had been facing.
If you have saved the SQLLOADER/SQLPLUS scripts as a batch file, then submit/open the batch file as administrator .
Hope this helps.

Resources