Using Oracle IMP gives the error IMP-00058 - oracle

I have received some data in Oracle DMP format that I am trying to use imp to import into an Oracle database.
I am running the command:
imp <user>/<pass>#<tns> FILE=SI_DESIGN_SETS_12Mar2015.dmp
I get the result:
Import: Release 11.2.0.1.0 - Production on Fri Mar 20 11:59:37 2015
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
IMP-00058: ORACLE error 1031 encountered
ORA-01031: insufficient privilegesUsername:
Running this command with other dmp files has worked in the past. Any ideas on how to get past this error?

In case anyone is wondering, I managed to get them to regenerate them and bizarrely adding "FEEDBACK=1000" to the import command actually made some of the old ones work!

Related

import data into Oracle 18xe using IMPDP failed

I have created a new oracle DB 18xe on a docker.
I am trying to import a dump file using the following command
impdp **/**#xepdb1 directory=DATA_PUMP_DIR dumpfile=file.dmp
remap_schema='source:dest' logfile=imp.log CONTENT=DATA_ONLY
I am getting the following error
Import: Release 18.0.0.0.0 - Production on Thu Dec 9 05:39:42 2021
Version 18.4.0.0.0
Copyright (c) 1982, 2018, 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
I could not figure out why I am getting this error, I tried to import one table only, used the following command
impdp **/**#xepdb1 directory=DATA_PUMP_DIR dumpfile=file.dmp
remap_schema='source:dest' logfile=imp.log CONTENT=DATA_ONLY tables=table1
I got the following error
Import: Release 18.0.0.0.0 - Production on Thu Dec 9 05:39:42 2021
Version 18.4.0.0.0
Copyright (c) 1982, 2018, 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-39166: Object dest.table1 was not found or could not be exported or imported.
Appreciate your assistance people.
As far as I can tell, remap_schema doesn't / shouldn't have single quotes.
No : remap_schema='source:dest'
Yes: remap_schema=source:dest
See REMAP_SCHEMA in documentation.

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.

expdp issue ORA-39001: invalid argument value

Originally, the script was like:
C:\Windows\system32>expdp anna/12356#inst2
PARFILE=E:\expdp\db001\_db001.par
Export: Release 11.2.0.3.0 - Production on Mon Sep 3 22:59:30 2018
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP and Data Mining options
ORA-31626: job does not exist
ORA-31637: cannot create job SYS_EXPORT_SCHEMA_01 for user
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPV$FT", line 1002 ORA-39001: invalid argument value
Then I searched online and read all the similar cases, but none of them are exactly the same as my case. I get directory, user privileges and all other things ready, but it still showing the error.
Then I tried to narrow down the range of the root cause. When I enter the script as following:
C:\Windows\system32>expdp anna/12356#inst2
The error was like following the picture:
Seems like the expdp utility can not recognized the username/pwd "anna/12356"
Any one know how does this come from and how to solve it?
I solved this issue by doing:
run catalog.sql (re-creates all the data dictionary views)
run catproc.sql
run utlrp.sql

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.

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