Information in export dump
Hi,
What information/data is stored in export/expdp dumps? Are these the ddl and dml statements to be applied while importing/impdp stored in binary form?
Regards,
Saikat Banerjee
Edited by: Saikat Banerjee on Aug 11, 2012 7:25 AM
Read the above documentation,It would help..
Also you can check whats there in export dumpfile by using below mentioned command
impdp username/password directory=<directory name> dumpfile=<dumpfile name> sqlfile=imp.sql
imp.sql : SQL file will contain all the DDL contents of export Dumpfile.
Similar Messages
-
I have an Oracle 9i export dump (export.dmp) file and I want to know when this export dump was taken (database snapshot-datetime stamp).
Is there any utility or process to extract this information from dump file.
ThanksThere probably is a utiltiy somewhere.
However, I just open the file using a simple text editor (I use vi) and look at the date on about the 10th line of the file. Just don't save ... -
My Databse size is 10 gb what will be my export dump size?
My Databse size is 10 gb what will be my export dump size?
Why is there is difference ?Hi,
an Oracle Block constists not only of the row-data itself,
but also has a block header.
This is made up ofdifferent structures which will use about
- 60 bytes of fixed administrative information for the block
- 24 bytes per transaction slot (depending of the value inittrans there will be a number of preallocated slots for transaction pointers, default 1 for tables 2 for indexes, in every block header) this socalled ITL consists of three parts:
- Undo segment number the transaction is using for the before images
- Undo slot number in the undo segment
- sequence number (this will be incremented at commit time)
2 bytes for every row which is inserted into the block.
Also the rows have a header each (congtaining the number of columns belonging to the row for example) and every column in a row has header also(containing the informatin of the datatype and the length of the value for the column.
You see that there is a lot more info in a block than just the rowdata. -
Why export dump shows less than the actual size?
why export dump shows less than the actual size?
i tried to find to find out the logical size using the following command
select sum(bytes/1024/1024) from dba_segments;
SUM(BYTES/1024/1024)
739when i tried the following query removing index segement:
select sum(bytes/1024/1024) from dba_segments where SEGMENT_TYPE \<\> 'INDEX' ;
SUM(BYTES/1024/1024)
535What other type of information is not exported in a full database export? -
How to import external table, which exist in export dump file.
My export dump file has one external table. While i stated importing into my developement instance , I am getting the error "ORA-00911: invalid character".
The original definition of the extenal table is as given below
CREATE TABLE EXT_TABLE_EV02_PRICEMARTDATA
EGORDERNUMBER VARCHAR2(255 BYTE),
EGINVOICENUMBER VARCHAR2(255 BYTE),
EGLINEITEMNUMBER VARCHAR2(255 BYTE),
EGUID VARCHAR2(255 BYTE),
EGBRAND VARCHAR2(255 BYTE),
EGPRODUCTLINE VARCHAR2(255 BYTE),
EGPRODUCTGROUP VARCHAR2(255 BYTE),
EGPRODUCTSUBGROUP VARCHAR2(255 BYTE),
EGMARKETCLASS VARCHAR2(255 BYTE),
EGSKU VARCHAR2(255 BYTE),
EGDISCOUNTGROUP VARCHAR2(255 BYTE),
EGREGION VARCHAR2(255 BYTE),
EGAREA VARCHAR2(255 BYTE),
EGSALESREP VARCHAR2(255 BYTE),
EGDISTRIBUTORCODE VARCHAR2(255 BYTE),
EGDISTRIBUTOR VARCHAR2(255 BYTE),
EGECMTIER VARCHAR2(255 BYTE),
EGECM VARCHAR2(255 BYTE),
EGSOLATIER VARCHAR2(255 BYTE),
EGSOLA VARCHAR2(255 BYTE),
EGTRANSACTIONTYPE VARCHAR2(255 BYTE),
EGQUOTENUMBER VARCHAR2(255 BYTE),
EGACCOUNTTYPE VARCHAR2(255 BYTE),
EGFINANCIALENTITY VARCHAR2(255 BYTE),
C25 VARCHAR2(255 BYTE),
EGFINANCIALENTITYCODE VARCHAR2(255 BYTE),
C27 VARCHAR2(255 BYTE),
EGBUYINGGROUP VARCHAR2(255 BYTE),
QTY NUMBER,
EGTRXDATE DATE,
EGLISTPRICE NUMBER,
EGUOM NUMBER,
EGUNITLISTPRICE NUMBER,
EGMULTIPLIER NUMBER,
EGUNITDISCOUNT NUMBER,
EGCUSTOMERNETPRICE NUMBER,
EGFREIGHTOUTBOUNDCHARGES NUMBER,
EGMINIMUMORDERCHARGES NUMBER,
EGRESTOCKINGCHARGES NUMBER,
EGINVOICEPRICE NUMBER,
EGCOMMISSIONS NUMBER,
EGCASHDISCOUNTS NUMBER,
EGBUYINGGROUPREBATES NUMBER,
EGINCENTIVEREBATES NUMBER,
EGRETURNS NUMBER,
EGOTHERCREDITS NUMBER,
EGCOOP NUMBER,
EGPOCKETPRICE NUMBER,
EGFREIGHTCOSTS NUMBER,
EGJOURNALBILLINGCOSTS NUMBER,
EGMINIMUMORDERCOSTS NUMBER,
EGORDERENTRYCOSTS NUMBER,
EGRESTOCKINGCOSTSWAREHOUSE NUMBER,
EGRETURNSCOSTADMIN NUMBER,
EGMATERIALCOSTS NUMBER,
EGLABORCOSTS NUMBER,
EGOVERHEADCOSTS NUMBER,
EGPRICEADMINISTRATIONCOSTS NUMBER,
EGSHORTPAYMENTCOSTS NUMBER,
EGTERMCOSTS NUMBER,
EGPOCKETMARGIN NUMBER,
EGPOCKETMARGINGP NUMBER,
EGWEIGHTEDAVEMULTIPLIER NUMBER
ORGANIZATION EXTERNAL
( TYPE ORACLE_LOADER
DEFAULT DIRECTORY EV02_PRICEMARTDATA_CSV_CON
ACCESS PARAMETERS
LOCATION (EV02_PRICEMARTDATA_CSV_CON:'VPA.csv')
REJECT LIMIT UNLIMITED
NOPARALLEL
NOMONITORING;
While importing , when i seen the log file , it is failing the create the external table. Getting the error "ORA-00911: invalid character".
Can some one suggest how to import external tables
Addressing this issue will be highly appriciated.
NaveenHi Srinath,
When i observed the create table syntax of external table from import dump log file, it show few lines as below. I could not understand these special characters. And create table definationis failing with special character viz ORA-00911: invalid character
ACCESS PARAMETERS
LOCATION (EV02_PRICEMARTDATA_CSV_CON:'VPA.csv').
I even observed the create table DDL from TOAD. It is same as i mentioned earlier
Naveen -
IMPORT a VIEW from an export dump file
I'm trying to import a view from an export dump file. In using the Import Utility, do I use the TABLE parameter and give the View name ie: TABLES=view1
nullOnly I want to do is import ONE view from an export dmp file that contains hundereds of table, many views and procedures. I do not want to reimport everything from the export file.
-
HOW TO IMPORT DATA MORE THAN ONCE FROM THE SAME EXPORT DUMP FILE?
before asking my question i'd like to mention that i'm a french spoke...
so my english is a little bit bad. sorry for that.
my problem is : IMPORT
how to import data a SECOND TIME from an export dump file within oracle?
My Export dump file was made successfully (Full Export) and then i
tried to import datas for the first time.
I got this following message in my logfile: I ADDED SOME COMMENTS
Warning: the objects were exported by L1, not by you
. importing SYSTEM's objects into SYSTEM
REM ************** CREATING TABLESPACES *****
REM *********************************************
IMP-00015: following statement failed because the object already exists:
"CREATE TABLESPACE "USER_DATA" DATAFILE 'E:\ORANT\DATABASE\USR1ORCL.ORA' SI"
"ZE 3145728 DEFAULT STORAGE (INITIAL 10240 NEXT 10240 MINEXTENTS 1 MAX"
"EXTENTS 121 PCTINCREASE 50) ONLINE PERMANENT"
IMP-00015: following statement failed because the object already exists:
"CREATE TABLESPACE "ROLLBACK_DATA" DATAFILE 'E:\ORANT\DATABASE\RBS1ORCL.ORA"
"' SIZE 10485760 DEFAULT STORAGE (INITIAL 10240 NEXT 10240 MINEXTENTS "
"1 MAXEXTENTS 121 PCTINCREASE 50) ONLINE PERMANENT"
etc........
IMP-00017: following statement failed with ORACLE error 1119:
"CREATE TABLESPACE "L1" DATAFILE 'E:\ORADATA\L1.DBF' SIZE 1048576000 "
"DEFAULT STORAGE (INITIAL 10240 NEXT 10240 MINEXTENTS 1 MAXEXTENTS 121 PCTIN"
"CREASE 50) ONLINE PERMANENT"
IMP-00003: ORACLE error 1119 encountered
ORA-01119: error in creating database file 'E:\ORADATA\L1.DBF'
ORA-09200: sfccf: error creating file
OSD-04002: unable to open file
O/S-Error: (OS 3) The system cannot find the path specified
--->etc..........
the drive E: with the folder E:\ORADATA didn't exist, but after
all that i created it.
see below, before my IMPORT statement
REM ********************* CREATING USER *********
REM ********************************************
IMP-00017: following statement failed with ORACLE error 959:
"CREATE USER "L1" IDENTIFIED BY VALUES 'A6E0DAA6865E7627' DEFAULT TABLESPACE"
" "L1" TEMPORARY TABLESPACE "TEMPORARY_DATA""
IMP-00003: ORACLE error 959 encountered
ORA-00959: tablespace 'L1' does not exist
IMP-00017: following statement failed with ORACLE error 959:
"CREATE USER "MLCO" IDENTIFIED BY VALUES '56AC6447B7D50467' DEFAULT TABLESPA"
"CE "MLCO" TEMPORARY TABLESPACE "TEMPORARY_DATA""
IMP-00003: ORACLE error 959 encountered
ORA-00959: tablespace 'MLCO' does not exist
ETC.......
REM ********************* GRANTING ROLES ***********
REM ************************************************
IMP-00017: following statement failed with ORACLE error 1917:
"GRANT ALTER ANY TABLE to "L1" "
IMP-00003: ORACLE error 1917 encountered
ORA-01917: user or role 'L1' does not exist
ETC.........
IMP-00017: following statement failed with ORACLE error 1918:
"ALTER USER "L1" DEFAULT ROLE ALL"
IMP-00003: ORACLE error 1918 encountered
ORA-01918: user 'L1' does not exist
-- that is normal, since the creation of the
tablespace failed !!
REM******************************
IMP-00015: following statement failed because the object already exists:
"CREATE ROLLBACK SEGMENT RB_TEMP STORAGE (INITIAL 10240 NEXT 10240 MINEXTENT"
"S 2 MAXEXTENTS 121) TABLESPACE "SYSTEM""
IMP-00015: following statement failed because
. importing SCOTT's objects into SCOTT
IMP-00015: following statement failed because the object already exists:
"CREATE SEQUENCE "EVT_PROFILE_SEQ" MINVALUE 1 MAXVALUE 999999999999999999999"
"999999 INCREMENT BY 1 START WITH 21 CACHE 20 NOORDER NOCYCLE"
ETC............
importing L1's objects into L1
IMP-00017: following statement failed with ORACLE error 1435:
"ALTER SCHEMA = "L1""
IMP-00003: ORACLE error 1435 encountered
ORA-01435: user does not exist
REM *************** IMPORTING TABLES *******************
REM ****************************************************
. importing SYSTEM's objects into SYSTEM
. . importing table "AN1999_BDAT" 243 rows imported
. . importing table "BOPD" 112 rows imported
. . importing table "BOINFO_AP" 49
ETC................
. . importing table "BO_WHF" 2 rows imported
IMP-00015: following statement failed because the object already exists:
"CREATE TABLE "DEF$_CALL" ("DEFERRED_TRAN_DB" VARCHAR2(128),
IMP-00015: following statement failed because the object already exists:
"CREATE SYNONYM "DBA_ROLES" FOR "SYS"."DBA_ROLES""
IMP-00015: following statement failed because the object already exists:
"CREATE SYNONYM "DBA_ERRORS" FOR "SYS"."DBA_ERRORS""
IMP-00008: unrecognized statement in the export file:
. importing L1's objects into L1
IMP-00017: following statement failed with ORACLE error 1435:
"ALTER SCHEMA = "L1""
IMP-00008: unrecognized statement in the export file:
J
Import terminated successfully with warnings.
-------------------------------------b]
So after analysing this log file, i created
the appropriate drives and folders... as the
import statement doesn't see them.
E:\ORADATA G:\ORDATA etc...
And i started to [b]IMPORT ONE MORE TIME. with:
$ IMP73 sys/pssw Full=Y FILE=c:\temp\FOLD_1\data_1.dmp BUFFER=64000
COMMIT=Y INDEXFILE=c:\temp\FOLD_1\BOO_idx.sql
LOG=c:\temp\FOLD_1\BOO_log.LOG DESTROY=Y IGNORE=Y;
after that i could not see the users nor the
tables created.
and the following message appeared in the log file:
Warning: the objects were exported by L1, not by you
. . skipping table "AN1999_BDAT"
. . skipping table "ANPK"
. . skipping table "BOAP"
. . skipping table "BOO_D"
ETC.....skipping all the tables
. . skipping table "THIN_PER0"
. . skipping table "UPDATE_TEMP"
Import terminated successfully without warnings.
and only 2 new tablespaces (originally 3) were
created without any data in ( i check that in
the Oracle Storage manager : the tablespaces exit
with 0.002 used space; originally 60 M for each !!)
so,
How to import data (with full import option) succefully
MORE THAN ONE TIME from an exported dump file ?
Even if we have to overwrite tablespaces , tables and users.
thank you very muchThe Member Feedback forum is for suggestions and feedback for OTN Developer Services. This forum is not monitored by Oracle support or product teams and so Oracle product and technology related questions will not be answered. We recommend that you post this thread to the appropriate Database forum.
The main URL is:
http://forums.oracle.com/forums/index.jsp?cat=18 -
Logical standby error with export dump
oracal 10g have a setup logical standby and when i am running export dump from logical i got this error.
EXP-00008: ORACLE error 16224 encountered
ORA-16224: Database Guard is enabled
EXP-00000: Export terminated unsuccessfully
can someone help me out how can it posibal to take export dump and datapump from logical standby.
thanks16224, 00000, "Database Guard is enabled"
// *Cause: Operation could not be performed because database guard is enabled
// *Action: Verify operation is correct and disable database guard -
Is it possible to import and export dump between oracle 9 and oracle 11?
Is it possible to import and export dump between oracle 9 and oracle 11?
Source DB : Oracle 11g(unix0
Oracle client : Oracle 9(Windows)
Export import utility : Oracle 9's
Destination DB : oracle 9I am getting the Following Error and export utility is not responding after this.
Export: Release 9.2.0.1.0 - Production on Thu Jul 15 14:37:01 2010
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
server uses AL32UTF8 character set (possible charset conversion) -
Export dump file and log file name as sysdate in script
Hi to All,
Can anybody help me to give logical backup export dump file namd log file name is as contain sysdate in its name so that we can Uniquelly identified it.
Regards
DXB_DBAOn windows it gets a bit hairy as there really is no clean and nice way of doing it.There are a couple of options.
1. If you can rely on dateformat not changing, you can use a static substring expression. For example, the following might work w/ finnish locale echo %date:~3,2%%date:~6,2%%date:~9,4%Similarly, when you know the dateformat you can tokenize the output of 'date /t' and discard the tokens you don't want.
2. You can set dateformat to your liking and then just use %date% in your script
3. You can run a "SELECT to_char(sysdate,..." into a file and then read that file in your script.
4. Simon Sheppard also has a solution you could use as a basis. I have a slight issue with the approach, but that could just be me.
5. Use gnuwin32 or similar ;)
Also note that %date% env var is set automatically from w2k onwards, so some of the solutions might not work w/ older versions. -
Import of Table data only from Full export Dump
I want to import data inot specified tables of a databse only. Is it possible to do this from a dump file which is the full export of the another database. The database i want to import into is the mirror of the database whose export dump i want to use. Let me know if this is possible and if yes then how i could do this.
Thanking in advance.Please check the following link for full instructions:
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/part1.htm#435787
If on another release, the same documentation is available for it on OTN as well.
Thanks! -
Generation sql script form export dump
I have a export dump of oracle 9i database at table level. Now I have to generate all the sqls which are in that export dupm file. Is there any way without importing this export file I can generate sql script???
Thanks in advance!!!
SurajHi,
As correctly said by yingkuan use the indexfile option in imp.It would create a file like below
REM CREATE TABLE "SCOTT"."XYZ" ("ENO" NUMBER, "ENAME" VARCHAR2(20),
REM "DEPTNO" NUMBER) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
REM STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE
REM "TS_DBUSER" LOGGING NOCOMPRESS ;
REM ... 10 rows
if ur on linux/solaris u can delete the REM by using awk command like
awk '{ $1= ""; print}' <filename>
and this should be somewhat ready for you to run as a script in sqlplus :)
Thanks -
hi all.
i am using Enterprise Linux server version 5.1.19.6 /Red Hat and Oracle database 11G R2.I want
to export dump files automatically like we are doing in windows xp with scheduled Task.
Is it Possible in Linux?plz help me out thanks in advance.Mehwish wrote:
hi all.
i am using Enterprise Linux server version 5.1.19.6 /Red Hat and Oracle database 11G R2.I want
to export dump files automatically like we are doing in windows xp with scheduled Task.
Is it Possible in Linux?plz help me out thanks in advance.Yes,possible,you can use cron job refer
http://adminschoice.com/crontab-quick-reference
But for backup recovery operation you should be use rman(recover manager),and through enterprise manager you can schedule backup job.
http://download.oracle.com/docs/cd/E10317_01/doc/backup.102/e05407/osb_rman_backup.htm
http://download.oracle.com/docs/cd/B12037_01/server.101/b10734/rcmrecov.htm -
How to write export dump commad with no datable data only table structure.
How to write export dump commad with no datable data only table structure will there and command for hole schma.
e.g. export dump command for scott schema and all table within scott schema in it no table data should be exported.If I understand the question, it sounds like you just need to add the flag "ROWS=N" to your export command (I assume that you're talking about the old export utility, not the Data Pump version).
Justin -
I export dump from oracle database 8.1.7 and try to import in 10.2.0. while import its prompt error as follow
8.1.7
SQL> select * from nls_database_parameters where parameter like '%SET%';
PARAMETER VALUE
NLS_CHARACTERSET US7ASCII
NLS_NCHAR_CHARACTERSET US7ASCII
10.2.0
SQL> select * from nls_database_parameters where parameter like '%SET%';
PARAMETER VALUE
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_CHARACTERSET WE8MSWIN1252
C:\Documents and Settings\Administrator>imp system/manager file=H:\CGlByte\cglby
te_03-07-2013Wed.dmp fromuser=system touser=cglbyte ignore=y
Import: Release 10.2.0.4.0 - Production on Thu Jul 4 16:11:49 2013
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Produc
tion
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export file created by EXPORT:V08.01.07 via conventional path
import done in US7ASCII character set and AL16UTF16 NCHAR character set
import server uses WE8MSWIN1252 character set (possible charset conversion)
export client uses WE8ISO8859P1 character set (possible charset conversion)
export server uses US7ASCII NCHAR character set (possible ncharset conversion)
Import terminated successfully without warnings.
Pl suggest remedy
Regards,8.1.7
AMERICAN_AMERICA.WE8ISO8859P1
10.2.0
AMERICAN_AMERICA.WE8MSWIN1252
exp system/manager file=d:\cgl.dmp owner=cgl, even i set character set before export but no impact
Maybe you are looking for
-
Mail app won't switch to landscape mode?
Hi all, As of this morning my Mail app seems to be stuck in portrait mode. Any clues on how I can resolve this problem? Thanks in advance, Tom.
-
Lightroom 1.4.1 Old thumbnails appear when importing new photos
I have recently been having a wierd issue with Lightroom 1.4.1 that on an initial scan of the forums have not found answered (apologies if this is has appeared before) When importing a new batch of photos, the initial preview thumbnails display old i
-
Hello I see a question: by one thread in one process on one machine, select a row by unique condition , show can not find , and then insert a the same row, show occur error violate unique; ask for help!
-
Hi all, I have this annoying problem. When I search for mail I get results that show ghost duplicates of the same mail. It show the header but cannot be seen. Is it possible to get rid of this extra mail (ghost duplicates).
-
Firefox will NOT load multiple pages at once, Help!
I cannot get Firefox to load multiple pages at once. If I try this, they will continue to show the "load"/"refresh" symbol forever and ever (at least half an hour by the time I got fed up). I can load one page at a time but even then it takes quite a