import sequence from dump file in oracle - oracle

I am trying to import a sequence from a dump file using the command since I am using Windows:
impdp hr DIRECTORY=user_exp DUMPFILE=morder.dmp include=sequence:\"= 'EMPLOYEES'\"
However,it gave me error:
UDI-000257: operation generated Oracle error 257
ORA-00257 archiver error,connect internal only when freed
Need some guidance here please

Related

how to resolve thousand of errors in oracle import using impdp where I don't know the what parameters were used during expdp?

I am trying to import an oracle 11g dump file using impdp utility but while doing so, inter alia, I am facing two major errors:
First, It is showing the following error:
Processing object type DATABASE_EXPORT/TABLESPACE
ORA-39083: Object type TABLESPACE:"HIS_USER" failed to create with error:
ORA-01119: error in creating database file '/oracle/app/oracle/oradata/dwhrajdr1/his_user13.dbf'
ORA-27040: file create error, unable to create file
OSD-04002: unable to open file
O/S-Error: (OS 3) The system cannot find the path specified.
so to solve this, I have created the tablesapce with same name but now it is showing that 'HIS_USER' tablespace already exists.
Second, I am getting thousands of errors, where it is showing user or role does not exist:
Failing sql is:
GRANT EXECUTE ANY ASSEMBLY TO "DSS"
ORA-39083: Object type SYSTEM_GRANT failed to create with error:
ORA-01917: user or role 'DSS' does not exist
Please suggest how to solve these errors!
How can I import the dumpfile without making hundreds of users/roles or tablespaces?
you can generate sql statement using impdp the following way.
http://www.dba-oracle.com/t_convert_expdp_dmp_file_sql.htm
then adjust parameter accordingly.
scott

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;

Oracle: Import existing table from dmp into new table

I was able to export the table using below command
exp usr1/user1#tes tables=table1 file=/myfoler/export/parties.dmp log=/myfoler/export/parties.log statistics=none direct=y
But when I am trying to import the dmp file into new table it is failing
imp usr1/user1#tes file=/myfoler/export/parties.dmp buffer=131072 commit=y log=/myfoler/export/parties_imp.log feedback=1000 ignore=Y tables=export_test
I am getting below error while doing so
IMP-00033: Warning: Table "EXPORT_TEST" not found in export file
Can someone help me understand where I am going wrong? I want to import the dump into new table which is already created.
you need to use the REMAP_TABLE option
REMAP_TABLE=[schema.]old_tablename[.partition]:new_tablename

Error while importing an Oracle 9 dump in Oracle 11g

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.

. . 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