Editing a datapump .dmp file question
I am running 10.2.0.4 rdbms on hpux platfrom and I am taking a data pump export with content=metadata_only. I want to then import this metadata into a new database install which will be running an 11.2.0.3 database.
I want to be able to change the default tablespaces for where the objects live in the export file and also change the initial extent size so that the empty objects will only take up a small amouth of space in the new database and also have all of the objects created in one tablespace in the new database.
Is is possible to edit the .dmp file and make these kind of global changes so that all objects can be created in the users tablespace and set the initial extent size as 10mb?
Thanks.
923395 wrote:
I am running 10.2.0.4 rdbms on hpux platfrom and I am taking a data pump export with content=metadata_only. I want to then import this metadata into a new database install which will be running an 11.2.0.3 database.
I want to be able to change the default tablespaces for where the objects live in the export file and also change the initial extent size so that the empty objects will only take up a small amouth of space in the new database and also have all of the objects created in one tablespace in the new database.
Is is possible to edit the .dmp file Not possible.
You could use DBMS_METADATA.GET_DDL to a file then do global replace with any text editor.
Similar Messages
-
Hi everyone
I need to restore a table with imp tool but the first dmpfile is lost. The table is in the third dmp file and is very important its restore. Can I to edit the dmp file for start in the third dmp file?
Thanks for your support
Beto!Hello;
I'd make a copy of that .dmp now, make that two copies.
All I can tell you is in Unix I was able to very carefully edit a .dmp and make a tablespace change using vi.
The larger the file the harder this would be.
I'm thinking without the other file you are probably missing the headers you need.
Try it in a test database, you have nothing to lose. If you can restore to a non-production database, you can move it from there.
Best Regards
mseberg -
Importing a dmp file in Oracle 11g XE Datapump
I received dmp file that was made with datapump in 11g. I need to import it into my 11g XE but can't figure out how to do it
ORA-00955: name is already used by an existing object.Take a look at the DBA_DIRECTORIES view with a SYSTEM login, to create the import log file the database user will need write permission to the directory, might have to use sysdba if the directory is owned by SYS user. Or just grant the privilege to the database user to create their own directory ...
$ sqlplus /nolog
connect system
... password
select * from dba_directories;
grant read, write on data_pump_dir to <username>;
-- or allow <username> to make a directory
grant create any directory to <username>;
conn <username>
... password
create directory dpdir as 'd:\<a valid folder path>'; -
How we restore the database dmp file in Oracle10g express edition
please provide me answers as soon as possible...my database is fresh and i want to restore the dmp file in my database, that dmp file is exported by oracle 10g database on other machine.
there is no impdb or expdb command. There is an imp (for import) and exp (for export).
I assume you want to replace the existing database with the one on your laptop.
A much better and more efficient way to do this would be to backup the database on your home machine and then restore it to your office database.
but before you do anything, backup the database you are copying/importing to (backup option is available on the windows menu or its a batch or shell script in the appropriate directory) -
How can i import a dmp file.
Hi
i am uzma. i m using oracle 8i. i m facing a big
problem in import/ export utitlity.
Description of my problem
i created 4 users and grant them dba role.
now i want to export only one user named DBC that user is very
important and contains 7 tables and 25,000 records.
when i start exporting user dbc it export all the user eg
system, sysdba, scott, dbc, uzma, other....
and i received this message that export terminated successfully.
but when i import abc.dmp file in another computer i recevied
such type of messages.
* unrecongnized Export file or these obecject are already exsist.
sholud i drop all users except system, scott, dbc
what should i do plz help me in this regard and tell me the
right way to export and import.
with lots of regards
a helpless userif you run export as a user with DBA privs, you can export only specific users that you need:
Export file: EXPDAT.DMP >
(1)E(ntire database), (2)U(sers), or (3)T(ables): (2)U > 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
server uses AL32UTF8 character set (possible charset conversion)
About to export specified users ...
User to be exported: (RETURN to quit) > scott
User to be exported: (RETURN to quit) >
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user SCOTT
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user SCOTT
About to export SCOTT's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export SCOTT's tables via Conventional Path ...
. . exporting table BONUS 0 rows exported
EXP-00091: Exporting questionable statistics.
. . exporting table DEPT 4 rows exported
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
. . exporting table EMP 14 rows exported
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
. . exporting table SALGRADE 5 rows exported
EXP-00091: Exporting questionable statistics.
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting referential integrity constraints
. exporting triggers
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting materialized views
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
. exporting statistics
Export terminated successfully with warnings.
F:\>When you want to import to other database, have that user created already with correct privs, and then do the import:
Import file: EXPDAT.DMP >
Enter insert buffer size (minimum is 8192) 30720>
Export file created by EXPORT:V10.02.01 via conventional path
import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
List contents of import file only (yes/no): no >
Ignore create error due to object existence (yes/no): no >
Import grants (yes/no): yes >
Import table data (yes/no): yes >
Import entire export file (yes/no): no >
Username: scott
Enter table(T) or partition(T:P) names. Null list means all tables for user
Enter table(T) or partition(T:P) name or . if done:
. importing SYS's objects into SYS
. importing SCOTT's objects into SCOTT
. . importing table "BONUS" 0 rows imported
. . importing table "DEPT" 4 rows imported
. . importing table "EMP" 14 rows imported
. . importing table "SALGRADE" 5 rows imported
About to enable constraints...
Import terminated successfully without warnings.
F:\>Message was edited by:
Kamal Kishore -
while loading a.dmp file into oracle in centos using impdp command following errors seen Can any body help me.....?
Export: Release 10.2.0.1.0 - Production on Wednesday, 01 November, 2006 1:51:55
Copyright (c) 2003, 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
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 475
ORA-29283: invalid file operationHi;
while loading a.dmp file into oracle in centos using impdp command following errors seen Can any body help me.....?Centos is not certified platform
Export: Release 10.2.0.1.0 - Production on Wednesday, 01 November, 2006 1:51:55
Copyright (c) 2003, 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
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 475
ORA-29283: invalid file operationSee:
Export/Import DataPump Parameter DIRECTORY - How to Specify a Directory [ID 266875.1]
ORA-39002,ORA-39070,ORA-29283 When Modifying The Group That Has Access To DataPump directory [ID 552783.1]
Regard
Helios -
Dmp file created using data pump
Hi All,
I have created dmp file using oracle datapump utility and identified that even after dropping dmp file physically from hard disk. I saw there is no storage release. Is there any specefic way to get spaces free from disk?
Best Regards,
Abida986655 wrote:
I have created dmp file using oracle datapump utility and identified that even after dropping dmp file physically from hard disk. I saw there is no storage release. Is there any specefic way to get spaces free from disk?In other words:
- there are physical files on the file system
- you delete these files
- file system does not show an increase in free space
Just how is this an Oracle issue, never mind a SQL and PL/SQL language issue?
Oracle physical (datapump) files are no different than Excel spreadsheet files, are no different than mp4 movie files, are no different from any other file...
If deleting a physical file from a file system does not release that allocated space and increase the file system's space, then you need to ask that question to file system. Not Oracle. Not SQL. Not PL/SQL.
What is the o/s and what is the file system? Then use that, and your issue, as criteria for a stfw exercise.
And yes, this is not an uncommon issue on Unix based file systems as an in-use file can be "deleted" - which means the file entry is removed from the file catalog, but the iondes, containing the file's contents, are only wiped (and space released) when the open file handles for that file are all closed. -
Image of databases needs t osaved as a dmp file
Hi,
one of our application team requesting an image of 2 databsases (a & b) databases saved as a DMP file
can any one helpe me, how can i so this?
Oracle 10g
Thanks in AdvanceHello,
You can use conventional export/import or datapump utility to back database a and b. And then zip or tar them together :).
Datapump Export Example as SYSTEM user using pl/sql. Make sure DIRECTORY OBJECT ( 'ADMIN_DIR'*) (you can name whatever you like) exists berfore running this export*
DECLARE
h1 NUMBER;
BEGIN
BEGIN
h1 :=
DBMS_DATAPUMP.open (operation => 'EXPORT',
job_mode => 'FULL',
job_name => 'A_EXPORT_JOB',
version => 'COMPATIBLE'
END;
BEGIN
DBMS_DATAPUMP.set_parallel (handle => h1, degree => 1);
END;
BEGIN
DBMS_DATAPUMP.add_file (handle => h1,
filename => 'EXPDAT.LOG',
directory => 'ADMIN_DIR',
filetype => 3
END;
BEGIN
DBMS_DATAPUMP.set_parameter (handle => h1,
name => 'KEEP_MASTER',
VALUE => 0
END;
BEGIN
DBMS_DATAPUMP.set_parameter (handle => h1,
name => 'ESTIMATE',
VALUE => 'BLOCKS'
END;
BEGIN
DBMS_DATAPUMP.add_file (handle => h1,
filename => 'MYDATABASE_A.DMP',
directory => 'ADMIN_DIR',
filetype => 1
END;
BEGIN
DBMS_DATAPUMP.set_parameter (handle => h1,
name => 'INCLUDE_METADATA',
VALUE => 1
END;
BEGIN
DBMS_DATAPUMP.set_parameter (handle => h1,
name => 'DATA_ACCESS_METHOD',
VALUE => 'AUTOMATIC'
END;
BEGIN
DBMS_DATAPUMP.start_job (handle => h1, skip_current => 0, abort_step => 0);
END;
BEGIN
DBMS_DATAPUMP.detach (handle => h1);
END;
END;
Coventional Export Example:_
exp system/passowrd full=y file=mydatabase_a.dmp log=mydatabase_a.log Regards
Edited by: OrionNet on Jan 11, 2009 11:39 PM
Edited by: OrionNet on Jan 11, 2009 11:42 PM -
Hello to all,
i face problem when i import .DMP file.
i have three users
1- system/manager
2- usera/usera
3- userb/userbi have export file
as following.
exp userid usera/usera tables(usera.my_table) file=d:\my_file.dmp full=Ynow i tried to import the file to userb but can't the error msg said the objects exported by usera not by you.
i used this command:
imp system/manager file=d:\my_file.dmp fromuser=usera touser=userb;the file already exist , so i want to import this table (my_table) to my new user is userb.
many thanks
Edited by: Ayham on Jan 4, 2013 2:20 AMWhat do you think, is this question related to SQL or PL/SQL?
Try this forum Export/Import/SQL Loader & External Tables -
Make .dmp file using shell script
i am new in linux.
i want to make .dmp file(export form a table) in a particular directory using shell script .
then form .dmp file i want to convert it in .zip file
Edited by: 855516 on Jul 18, 2011 5:26 PMThe following should give you a head start:
Create the following file i.e. scott_export.sh
#!/bin/bash
MAILADR="[email protected]"
EXPDIR="/home/oracle/datapump"
EXPDIR4SQL="'$EXPDIR'"
DUMPFILE="export_`date +%N`.dmp"
LOGFILE="export_`date +%N`.log"
ORACLE_SID=test; export ORACLE_SID
PATH=$PATH:/usr/local/bin; export PATH
ORAENV_ASK=NO
. /usr/local/bin/oraenv
mkdir -p $EXPIDR 2>/dev/null
sqlplus -s /nolog <<EOF
connect / as sysdba
set pages 0 feed off
create or replace directory datapump as $EXPDIR4SQL;
grant read, write on directory datapump to scott;
exit
EOF
expdp scott/tiger tables=EMP,DEPT \
transport_full_check=y \
directory=datapump dumpfile=$DUMPFILE logfile=$LOGFILE
gzip $EXPDIR/$DUMPFILE >> $EXPDIR/$LOGFILE
cat $EXPDIR/$LOGFILE | mailx -s "$LOGFILE" $MAILADR
# ENDGive execute privileges:
$ chmod 750 scott_export.sh
The above script should also work as a cron job. -
EXPDP generates new dmp file and reports "file already exists" error
Hello everyone,
Hope you all had a wonderful holiday. I got some problems with datapump expdp 10.2.0.4. It would be appreciated if you could provide some advice. Thanks in advance.
I newly created a 10.2.0.4 database. The database can startup and be connected via Toad without problem. I can also use impdp to import some data to the new database. But when I'm trying to use expdp to export a schema from the database, I got the following errors:
expdp parfile=expdp_scott_mfp1.parExport: Release 10.2.0.4.0 - 64bit Production on Monday, 26 December, 2011 22:10:49
Copyright (c) 2003, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Data Mining and Real Application Testing options
ORA-39001: invalid argument value
ORA-39000: bad dump file specification
ORA-31641: unable to create dump file "/u02/exports/mfp1/expdp_scott_mfp1_12262011.dmp"
ORA-27038: created file already exists
Additional information: 1
Every time I run the expdp, it just creates the dmp file (expdp_scott_mfp1_12262011.dmp) specified in the parfile under the EXPORT directory and reports "file already exists " error.
Your advice is highly appreciated.
Thanks.
Edited by: 904668 on Dec 27, 2011 8:47 AMi thought I found the problem. Used same file name on dump file and log file. How stupid of me. Sorry for bothering. Thanks and happy new year!
-
Hi All,
We are taking dmp file. Is there anyway to edit DMP file?.
If any Please Suggest.
Thanks,
Rajiv Birari.Hi,
>>We are taking dmp file. Is there anyway to edit DMP file?.
It depends. Although it is not advisable by Oracle and millions DBAs around the world, in fact, using a hexadecimal editor like Editpad or others you are able to edit it. The question is: What are you trying to change in the DMP file?
Cheers
Legatti -
Error while trying to import .dmp file in oracle
Hi,
I am trying to import a .dmp file using impdp command. Whenever I try that I get following error logs:
Import: Release 10.2.0.1.0 - Production on Wednesday, 27 July, 2011 19:22:18
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
Master table "SYSTEM"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "SYSTEM"."SYS_IMPORT_FULL_01": system/******** DUMPFILE=HIST_IR_APR_2011.dmp
Processing object type TABLE_EXPORT/TABLE/TABLE
ORA-39083: Object type TABLE failed to create with error:
ORA-00439: feature not enabled: Partitioning
Failing sql is:
CREATE TABLE "DBO"."HIST_IR" ("IR_ID" NUMBER(9,0), "ELS_ID1" NUMBER(9,0), "ELS_ID2" NUMBER(9,0), "ZONE_ID" NUMBER(2,0) NOT NULL ENABLE, "TYPE" NUMBER(2,0) NOT NULL ENABLE, "START_TIME" DATE NOT NULL ENABLE, "END_TIME" DATE NOT NULL ENABLE, "ROAD_NAME" VARCHAR2(50) NOT NULL ENABLE, "UP_POINT" NUMBER(4,2), "DN_POINT" NUMBER(4,2), "UP_LINK_ID" NUMBER(9,0) NOT NULL ENABLE, "DN_LINK_ID" NUMBER
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
ORA-39112: Dependent object type OBJECT_GRANT:"DBO" skipped, base object type TABLE:"DBO"."HIST_IR" creation failed
ORA-39112: Dependent object type OBJECT_GRANT:"DBO" skipped, base object type TABLE:"DBO"."HIST_IR" creation failed
ORA-39112: Dependent object type OBJECT_GRANT:"DBO" skipped, base object type TABLE:"DBO"."HIST_IR" creation failed
Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
ORA-39112: Dependent object type INDEX:"DBO"."INDX_HIST_IR_LOC_TYPE" skipped, base object type TABLE:"DBO"."HIST_IR" creation failed
ORA-39112: Dependent object type INDEX:"DBO"."INDX_HIST_IR_ROAD_NAME" skipped, base object type TABLE:"DBO"."HIST_IR" creation failed
ORA-39112: Dependent object type INDEX:"DBO"."INDX_HIST_IR_ELS_ID1" skipped, base object type TABLE:"DBO"."HIST_IR" creation failed
ORA-39112: Dependent object type INDEX:"DBO"."PK_HIST_IR" skipped, base object type TABLE:"DBO"."HIST_IR" creation failed
ORA-39112: Dependent object type INDEX:"DBO"."INDX_HIST_IR_START_TIME" skipped, base object type TABLE:"DBO"."HIST_IR" creation failed
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
ORA-39112: Dependent object type CONSTRAINT:"DBO"."PK_HIST_IR" skipped, base object type TABLE:"DBO"."HIST_IR" creation failed
Job "SYSTEM"."SYS_IMPORT_FULL_01" completed with 10 error(s) at 19:22:21
Any idea how to get rid of the errors ?
BR///
TayyabI also tried to open the .dmp file using Oracle 11g Enterprise Edition but kept getting following errors:
Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table "SYSTEM"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "SYSTEM"."SYS_IMPORT_FULL_01": system/******** dumpfile=HIST_IR_APR_2011.dmp
Processing object type TABLE_EXPORT/TABLE/TABLE
ORA-39083: Object type TABLE failed to create with error:
ORA-01918: user 'DBO' does not exist -
Restore DMP file in Oracle 10G - URGENT!
hello, Oracle forum. I am a sql dba crossing over and need some help ASAP! Since I am new at 10G, I received some DMP files from a client and need to restore them ASAP!. Can you please provide EXACT steps on how to do this? I prefer to use the OEM gui, but need step-by-step. Await reply...Many thanks!
Hi..
There are few questions to be answered:--
1. What does that dump contain. Is it a table level or a schema level or a full database dump
2. If its a table level who is the owner of the table
3. If its a schema level , whats the schema name.
4. was the export taken with exp or expdp utility.
5. Is the database in which the export dump is to be imported have that schema or is that the data has to be imported to some other schema.
After all this information you can use imp or impdp utility it import the data in 10g database.
For imp [http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/exp_imp.htm#i1023560]
for impdp [http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_import.htm#g1025464]
HTH
Anand -
Imp dmp file in oracle 10g on linux
i have oracle 10g on linux now i want to imp the dmp file to db.
i put the file in /mnt/erp/file.dmp folder.
i log in as oracle user and ....
and start the imp the file as
imp user/password file=/mnt/erp/file.dmp
but it giver error faile to open the file for read.....
what is the problem.....
is there any privillage issue???????????
helped with full syntax...and steps...i copy the dmp file in /mnt/erp folder as root user.
i am going to imp it as oracle user.
sir i don't know about dmp group.
i past the error i got..
[oracle@lnxdb erp]$ imp
Import: Release 10.2.0.1.0 - Production on Wed Oct 10 08:09:37 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Username: FS_10oct2012
Password:
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 -
Production
With the Partitioning, OLAP and Data Mining options
Import file: expdat.dmp > FR_10_10_2012.dmp
IMP-00002: failed to open FR_10_10_2012.dmp for read
Maybe you are looking for
-
Wireless range expander problems
ok so first off thank you to anyone who can help it is much appreciated. I have a range expander model wre54g. that worked fine at a friends house I recieved it as a housewarming gift from him and tried to set it up with my linksys router and all i
-
How to Copy USB Recovery Drive back to accidentally deleted Recovery Partition Windows 8
I was Creating USB Recovery Drive for my Windows 8.1 and Then I accidentally got my Recovery Partition deleted.. Now I want to restore RecoveryPartition back on my Hard drive. Provided I have the Recovery Data on USB Recovery Drive.. Now what should
-
i buy a ipad 2 form apple.com then i saw the ipad 2 is shiping form china== what is the model is that ipad2???is MCxxxLL or MCxxxCN???is fake ipad2 or reall ipad2?
-
I cannot unlock Macbook Pro. I might have forgot ID and psw or my child might have lock it up. I have a black screen and a request of ID and psw. However I am not able to unlock it. I am pretty sure about the psw but doubt abot ID. What do I do?
-
[OSB 10.3.1] ImportError: No module named wli
Hi all, I'm migrating my WLST code from ALSB 3.0 to OSB 10.3.1 and I get some troubles. In order to understand where is the problem, I did: 1) create basic.py as described in http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/javadoc/com/bea/