Errors on importing my oracle 10g database - oracle

I am running my oracle on a debian machine. Today I decided to create a new user and a new tablespace. Then I export a database with the user System which on the same machine. I got some error when I try to import to my new user account.
here is what I've done:
./imp mynewuser/passwrdb#orcl file=newdump_sept.dmp system/tomynewuser
Import: Release 10.2.0.1.0 - Production on Thu Sep 29 18:06:23 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release
10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options
Export file created by EXPORT:V10.02.01 via conventional path
Warning: the objects were exported by SYSTEM, not by you
import done in US7ASCII character set and AL16UTF16 NCHAR character set
import server uses WE8ISO8859P1 character set (possible charset conversion)
IMP-00085: multiple input files specified for unbounded export file
IMP-00000: Import terminated unsuccessfully
Any suggestion to my problem?

From http://www.error-code.org.uk/view.asp?e=ORACLE-IMP-00085 :
Oracle Error :: IMP-00085
multiple input files specified for unbounded export file Cause
You specified multiple file names for the FILE parameter when doing an
import, but the header in the export file indicates that that the
export operation could create only one file. Specifying multiple file
names is valid for an import operation only if the export files were
created by an export operation in which the user specified a non-zero
value for the FILESIZE parameter. Action
If you believe the export contains multiple files, verify that you
have specified the correct files. If you believe the export should be
in only one file then try the import operation again, but specify only
one value for the FILE parameter.
You should probably use:
./imp mynewuser/passwrdb#orcl file=newdump_sept.dmp fromuser=system touser=tomynewuser
For help: imp help=y

In my case I solved the error by importing the dump file by using SYS user instead of SYSTEM user and import working without errors.

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.

How to have oracle imp 11gr2 and 12cr2 on the same machine and just choose the one that I want to use

I'm currently developing an application to import oracle dbs. In order to do that I'm using Data Pump and the original imp client (version 12.2.0.1). However I cannot use that imp client against an 11gr2 database, I need to use the 11gr2 imp client.
I already have the client and libraries that I got from one of my 11gr2 DBs however, if I try to execute it I'm getting the following error:
Message 100 not found; No message file for product=RDBMS,
facility=IMP: Release 11.2.0.3.0 - Production on Fri Jan 5 18:28:21
2018
Copyright (c) 1982, 2011, Oracl
Invalid format of Import utility name
Verify that ORACLE_HOME is properly set
Import terminated unsuccessfully
IMP-00000: Message 0 not found; No message file for product=RDBMS,
facility=IMP
Can someone point how to have both clients working on the same machine? Thanks in advance.
[UPDATE]
I'm using Red Hat OS and this is the output of $ORACLE_HOME:
/root/oracle/instantclient_12_2
I tried using the full path and placing the files in ORACLE_HOME but I still get the same error. Thanks!!!
On a Windows machine, I usually changed directory (using the CD command) to the one that contains IMP I wanted to use, for example:
C:\>
C:\>cd C:\oraclexe\app\oracle\product\11.2.0\server\bin
C:\oraclexe\app\oracle\product\11.2.0\server\bin>imp help=y
Import: Release 11.2.0.2.0 - Production on Sub Sij 6 06:45:43 2018
Or, alternatively, if you call those utilities by specifying full path to their executables, such as
C:\>
C:\>C:\oraclexe\app\oracle\product\11.2.0\server\bin\imp help=y
Import: Release 11.2.0.2.0 - Production on Sub Sij 6 06:47:30 2018
I hope you'd be able to do what you're up to.
Most probably your problem is related to setting LD_LIBRARY_PATH and PATH to the Instant Client directory. You may perform all settings in your bash shell script like .bash_profile, .profile, .bashrc :
First of all set
ORACLE_HOME=/root/oracle/instantclient_12_2; export ORACLE_HOME
Add the name of the directory containing the Instant Client libraries to LD_LIBRARY_PATH. Remove any other Oracle directories.
For example, to set LD_LIBRARY_PATH in the Bourne or Korn shells, use the following syntax:
LD_LIBRARY_PATH=${ORACLE_HOME}/lib:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
Or, to set LD_LIBRARY_PATH in the C shell, use the following syntax:
% setenv LD_LIBRARY_PATH
$ORACLE_HOME/lib:$LD_LIBRARY_PATH
Make sure the Tools executables installed from the RPM are the first executables found in your PATH. For example, to test this you could enter which impdp which should return $ORACLE_HOME/bin/impdp. If it does not, then remove any other Oracle directories from PATH, or put $ORACLE_HOME/bin before other Tools executables in PATH, or use an absolute or relative path to start Tools Instant Client.
For example, to set PATH in the bash shell:
PATH=/usr/bin:${PATH}:${ORACLE_HOME}:${ORACLE_HOME}/bin
export PATH
Set Oracle globalization variables required for your locale. A default locale will be assumed if no variables are set.
NLS_LANG=AMERICAN_AMERICA.UTF8
export NLS_LANG
After researching, I did not copy all the required files when trying to copy the imp client version 11cr2. I solved this issue by copying all the files in $ORACLE_HOME and making that location my new $ORACLE_HOME. After that, just copied the lib files and the imp from the 12cr2 client installation to $ORACLE_HOME and renamend imp 12cr2 to "imp12cr2".
Now if I want to use the 11.2 I use imp and if want to use the 12cr2 one I use imp12cr2

I need to export .DMP file from oracle 11g please suggest with step related error has mentioned

How can I resolve this issue and how to get proper export using Putty (linux).
[oracle#oracledb ~]$ exp
Export: Release 11.2.0.3.0 - Production on Wed Jul 1 14:23:16 2015
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Username: CORP_DM
Password:
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 -
64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing
options
Enter array fetch buffer size: 4096 >
Export file: expdat.dmp > CORP_DM_01072015
(1)E(ntire database), (2)U(sers), or (3)T(ables): (2)U >
Export grants (yes/no): yes >
Export table data (yes/no): yes >
Compress extents (yes/no): yes >
Export done in WE8MSWIN1252 character set and AL16UTF16
NCHAR character set
About to export specified users ...
User to be exported: (RETURN to quit) >
Export terminated successfully without warnings.
You are being prompted to supply a user to export:
About to export specified users ...
User to be exported: (RETURN to quit) >
That means the CORP_DM user you are connecting as has the EXP_FULL_DATABASE privilege; if it didn't then you would not see that prompt and that user's objects would be exported automatically.
When you are prompted you are not supplying a value, which means you just quit the export (as the prompt says) without doing any work, and end up with an (almost) empty and pointless dump file.
So provide the user when prompted. Assuming you just want to export CORP_DM enter that at the fist user prompt, and hit return at the second one to tell export that you are done:
About to export specified users ...
User to be exported: (RETURN to quit) > CORP_DM
User to be exported: (RETURN to quit) >
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user CORP_DM
... etc.
As mentioned in comments, consider using data pump export rather than the desupported original export:
Original Export is desupported for general use as of Oracle Database 11g. The only supported use of original Export in Oracle Database 11g is backward migration of XMLType data to Oracle Database 10g release 2 (10.2) or earlier. Therefore, Oracle recommends that you use the new Data Pump Export and Import utilities, except in the following situations which require original Export and Import:
You want to import files that were created using the original Export utility (exp).
You want to export files that will be imported using the original Import utility (imp). An example of this would be if you wanted to export data from Oracle Database 10g and then import it into an earlier database release.

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 importing oracle dump

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.

Resources