Error while importing an Oracle 9 dump in Oracle 11g - oracle

I need to import an Oracle9i Release 9.2.0.6.0 dump in an Oracle 11g.
Using the import command I have a ton of erros like this:
IMP-00017: following statement failed with ORACLE error 6550:
"BEGIN SYS.DBMS_EXPORT_EXTENSION.SET_IMP_SKIP_INDEXES_OFF; END;"
IMP-00003: ORACLE error 6550 encountered
Th command I use is:
imp system/<passwor>#<SID> file=export_20160209.dmp fromuser=USER1 touser=USER1 log=file_log_10022016.log
How else can I make the import I need?

You need to grant permission to user as:
GRANT EXECUTE ON SYS.DBMS_DEFER_IMPORT_INTERNAL TO <user>;
GRANT EXECUTE ON SYS.DBMS_EXPORT_EXTENSION TO <user>;

Nothing worked, so I asked for a new dump without the table where the import stopped.

Related

ORA-01031: insufficient privileges when I run my script (oracle 19c)

I have newly installed oracle 19C for the first time and wanted to try it out. We have a java project where we have inside some scripts which are used to create users, upgrade users.. etc. When I run this script I get The error ORA-01031: insufficient privileges:
25.01.2021 10:13:00,689| INFO main [SYSTEM] creating user c##vdal ... |com.company.mpe.engine.SimpleScriptExecuter
25.01.2021 10:13:00,737| ERROR main Critical error occurred in [SYSTEM: grant select on all_sequences to c##vdal]:ORA-01031: Nicht ausreichende Berechtigungen
|com.company.mpe.engine.SimpleScriptExecuter
25.01.2021 10:13:00,737| ERROR main Script stopped with errors. |com..mpe.engine.SimpleScriptExecuter
25.01.2021 10:13:00,745| ERROR main Error while executing buildDB, aborting the build |com.company.database.builddb.Build
com.company.mpe.engine.TaskExecutionException: Error occurred for task of type Case (at engine/params/mpe/mpeBuildDB.xml:360):Error in case-when construct: Error occurred for task of type Case (at engine/params/mpe/mpeBuildDB.xml:365):Error in case-when construct: Error occurred for task of type If (at engine/params/mpe/mpeBuildDB.xml:232):Error in if construction: java.sql.SQLSyntaxErrorException: ORA-01031: Nicht ausreichende Berechtigungen
How can I configure the database so that I can successfully run all operations from outside like from my eclipse?
You need to provide the DBA rights to create or modify any user/schema in oracle.
You must be connecting with the database using some user. Let's say userX.
You can give the DBA privilege to useX from some DBA privileged user as follows:
grant dba to userx;
Beware that this will give all the system rights to userX and which is not recommended. This type of task should not be done from application.

Datapump Import Fails With ORA-39006, ORA-39213: “Metadata processing is not available”

I am trying to import multiple dmp files using impdp command i got this error DataPump import (impdp) reports the errors:
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
ORA-39006: internal error
ORA-39213: Metadata processing is not available
Attempting to correct the error ORA-39213 via
dbms_metadata_util.load_stylesheets also reports errors similar to:
SQL> exec dbms_metadata_util.load_stylesheets;
BEGIN dbms_metadata_util.load_stylesheets; END;
* ERROR at line 1: ORA-22288: file or LOB operation FILEEXISTs failed
Permission denied
ORA-06512: at "SYS.DBMS_METADATA_UTIL", line 1807
ORA-06512: at line 1
login from sys and run below query worked for me oracle 11.2
exec dbms_metadata_util.load_stylesheets;

Tablespaces not created on oracle dump file import operation

I am trying to import a dump into Oracle 11g. I have run this command :
impdp david/coucou#Louis-PC directory=geismar file=EXPDP_TOP.dmp log=EXPDP_TOP.log full=y;
The import process is successfully launched but I get a lot of errors. Here's a subset of my logfile :
Import: Release 11.2.0.2.0 - Production on Dim. Juin 25 12:02:28 2017
Connected to: Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
;;; Legacy Mode Active due to the following parameters:
;;; Legacy Mode Parameter: "file=EXPDP_TOP.dmp" Location: Command Line, Replaced with: "dumpfile=EXPDP_TOP.dmp"
;;; Legacy Mode Parameter: "log=EXPDP_TOP.log" Location: Command Line, Replaced with: "logfile=EXPDP_TOP.log"
Master table "DAVID"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "DAVID"."SYS_IMPORT_FULL_01": david/********#Louis-PC directory=geismar dumpfile=EXPDP_TOP.dmp logfile=EXPDP_TOP.log full=y;
Processing object type SCHEMA_EXPORT/USER
ORA-39083: Object type USER failed to create with error:
ORA-00959: tablespace 'TOPADDIN' does not exist
Failing sql is:
CREATE USER "TOPADDIN" IDENTIFIED BY VALUES 'S:A86A3644C5EA64C9320A5C66457EE39C51888BBD1110001C5776E9D7A554;C4D29EC4F0EAB8DE' DEFAULT TABLESPACE "TOPADDIN" TEMPORARY TABLESPACE "TEMP"
ORA-39083: Object type USER failed to create with error:
ORA-00959: tablespace 'TOPDBA' does not exist
Failing sql is:
CREATE USER "TOPDBA" IDENTIFIED BY VALUES 'S:29F9686B7D8B5861F84CA3D5720C6C8A8CFC8C7D01374D49D77DE152C234;F3A449A6B2BF4CD0' DEFAULT TABLESPACE "TOPDBA" TEMPORARY TABLESPACE "TEMP"
ORA-39083: Object type USER failed to create with error:
ORA-00959: tablespace 'TOPERP' does not exist
Failing sql is:
CREATE USER "TOPERP" IDENTIFIED BY VALUES 'S:3EC63E08F86B4922FE5328678F5E5DDD7A23D6092D539C31492FC97F2FFB;B3B7BBDA73271B0C' DEFAULT TABLESPACE "TOPERP" TEMPORARY TABLESPACE "TEMP"
ORA-39083: Object type USER failed to create with error:
ORA-00959: tablespace 'TOPMAN_USERS' does not exist
It seems that the import does not include the tablespaces' definition and does not create tablespaces.
Shouldnt the option full=y also import tablespace definitions ?
What am I doing wrong ?
First you can do
impdp david/coucou#Louis-PC directory=geismar dumpfile=EXPDP_TOP.dmp SQLFILE=check.sql
to see exactly what DDL the import is going to run, by viewing check.sql.
Then test some parameters, for example:
INCLUDE=TABLESPACE:"IN ('TOPADDIN','TOPDBA')"
INCLUDE=SCHEMA:"IN ('TOPADDIN','TOPDBA')"
And possibly some remaps:
remap_schema=
remap_tablespace=

ORA-39083: Object type REF_CONSTRAINT

I am getting Below error while importing dump:
Error:
ORA-39083: Object type REF_CONSTRAINT:"SMP54PERFQACM"."ORDR_ITEM_ENTITY_CHG_FK2" failed to create with error:
ORA-02298: cannot validate (SMP54PERFQACM.ORDR_ITEM_ENTITY_CHG_FK2) - parent keys not found
Impdp Command:
Impdp SMP54PERFQACM/********#orcl12c DUMPFILE=PTSMP54_18Jun2015.dmp REMAP_SCHEMA=PTSMP51QACM:SMP54PERFQACM logfile=imp_SMP54PERFQACM_03aug2015.log directory=BACKUP
Can any one please help to resolve this issue?
Thanks
Rahul Joshi
next time try this:
exp user/pass XXXXXX consistent=y
or
expdp user/pass XXXXXX flashback_time=systimestamp
take a look to [consistent] and [flashback_time]
good luck.
credits to : https://community.oracle.com/thread/3542336
for me based on the below link the solution was give grant to the user like
grant create view, connect, resource to USER_NAME;
and then redo the impdp
oracle community

. . skipping table while import in 9i

When iam trying to import exp dump into 9i database its giving
imp ****/****#**** FULL=Y IGNORE=Y FILE=exp_****_4.dmp LOG=imp_****_4.log
export client uses WE8ISO8859P1 character set (possible charset conversion)
. importing SYSTEM's objects into ***
. importing OUTLN's objects into OUTLN
. importing PERFSTAT's objects into PERFSTAT
IMP-00003: ORACLE error 1435 encountered
ORA-01435: user does not exist
IMP-00000: Import terminated unsuccessfully
And when i tried to look into dump with show=y option
imp ****/****#**** FULL=Y IGNORE=Y FILE=exp_****_4.dmp LOG=imp_****_4.log **SHOW=Y**
It has given me all the table and object list and scripts that dump is going to import but with . . skipping table
I not getting why this is happening..
There is no indication as to why these tables were skipped and there are many of them.
I was able to load data into same DB from other dumps.
SHOW=Y instructs IMP not to import anything (to skip the import and just show you on the screen what's in the import file).

Resources