EXP/IMP on Oracle RDB
I am being told that I can simply use the exp command on Oracle RDB to export a database, and use the imp command to import this database on HP-UX 9i.
Obviosuly this is not the system tables, just the application tables, but I cannot seem to get this confirmed or denied.
Please can someone point me in the right direction here....
I see there is a plugin for OEM now for RDB, so would this enable the port? Oracle Migration Workbench does not support the source as RDB, so I am hoping exp is supported.
Cheers
Pete
I was looking for an answer to this question also.
Since this old thread didn't get properly closed off with a "this is how you do it", and since I poked around in VMS and found where you go to enter the command, I thought y'all might like me to post it here! :-)
The export command appears at the RDO prompt. Type RDO at the DCL $ prompt to get into RDO.
Then you can type the EXPORT command at the RDO> prompt as follows:
RDO> EXPORT 'DEPT3:PERS' INTO 'DISK2:PERSONNEL.RBR'
This is the example you are presented with if you type HELP EXPORT at the RDO> prompt. Of course, you would replace DEPT3: with the path to the database root file that you want to export, PERS with the database file name (this example refers to the file PERS.RDB, and the .RDB extension is assumed), DISK2: with the path to the output file, and PERSONNEL.RBR with the filename of the output file.
I haven't executed the command as yet, so I can't promise it will work, but I will do it and re-post here if it didn't work. So assume it does :-)
All the best,
Eldon
Similar Messages
-
Export / import exp / imp commands Oracle 10gXE on Ubuntu
I have Oracle 10gXE installed on Linux 2.6.32-28-generic #55-Ubuntu, and I need soe help on how to export / import the base with exp / imp commands. The commands seems to be installed on */usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin* directory but I cannot execute them.
The error message I got =
No command 'exp' found, did you mean:
Command 'xep' from package 'pvm-examples' (universe)
Command 'ex' from package 'vim' (main)
Command 'ex' from package 'nvi' (universe)
Command 'ex' from package 'vim-nox' (universe)
Command 'ex' from package 'vim-gnome' (main)
Command 'ex' from package 'vim-tiny' (main)
Command 'ex' from package 'vim-gtk' (universe)
Command 'axp' from package 'axp' (universe)
Command 'expr' from package 'coreutils' (main)
Command 'expn' from package 'sendmail-base' (universe)
Command 'epp' from package 'e16' (universe)
exp: command not found
Is there something I have to do ?Hi,
You have not set environment variables correctly.
http://download.oracle.com/docs/cd/B25329_01/doc/install.102/b25144/toc.htm#BABDGCHH
And of course that sciprt have small hickup, so see
http://ubuntuforums.org/showpost.php?p=7838671&postcount=4
Regards,
Jari -
Exp/Imp In Oracle 10g client
Hi All,
I want to take one schema export from Oracle 10g Client. I am in new Oracle 10g.
In oracle 9i, we can using exp/imp command for Export and Import from Client itself.
I heard about in Oracle 10g, we can use Expdb/Impdb in Server only. Is there any possibility to take exp/imp in Client also.
Pls help me...
Cheers,
Moorthy.GSTo add up to expdb from oracle client
NETWORK_LINK
Default: none
Purpose
Enables an export from a (source) database identified by a valid database link. The data from the source database instance is written to a dump file set on the connected database instance.
Syntax and Description
NETWORK_LINK=source_database_link
The NETWORK_LINK parameter initiates an export using a database link. This means that the system to which the expdp client is connected contacts the source database referenced by the source_database_link, retrieves data from it, and writes the data to a dump file set back on the connected system.
The source_database_link provided must be the name of a database link to an available database. If the database on that instance does not already have a database link, you or your DBA must create one. For more information about the CREATE DATABASE LINK statement, see Oracle Database SQL Reference.
If the source database is read-only, then the user on the source database must have a locally managed tablespace assigned as the default temporary tablespace. Otherwise, the job will fail. For further details about this, see the information about creating locally managed temporary tablespaces in the Oracle Database Administrator's Guide.
Restrictions
When the NETWORK_LINK parameter is used in conjunction with the TABLES parameter, only whole tables can be exported (not partitions of tables).
The only types of database links supported by Data Pump Export are: public, fixed-user, and connected-user. Current-user database links are not supported.
Example
The following is an example of using the NETWORK_LINK parameter. The source_database_link would be replaced with the name of a valid database link that must already exist.
expdp hr/hr DIRECTORY=dpump_dir1 NETWORK_LINK=source_database_linkDUMPFILE=network_export.dmp LOGFILE=network_export.log -
How to use exp,imp in oracle 8i version....
Hi developer ...
I am using oracle 8i version in windows xp platform. Can you please explain how to export and import my tables in to export.txt file.
with
Regards
sure...:)--Hi,
Did you want to downgrade from 8i to 7.0, 7.3 and 8.0 ?
To downgrade, you need to use the export utility from the target database.
So, you will need three export files :
Run the 7.0 export to export from the 8i database, and import into a 7.0 database with the 7.0 import utility.
Same for 7.3 and 8.0 database.
More info into metalink note : Compatibility Matrix for Export & Import Between Different Oracle Versions - Note:132904.1
Nicolas. -
Imp to Oracle 10.1.0.2.0
OS: SuSE Linux Enterprise Server 8
I am doing exp/imp from Oracle 7.3.4 to Oracle 10.1.0.2.0.
I have exported the dmp file from Oracle 7.3.4 and through FTP I put this file the following directory.
$ORACLE_HOME/bin
Now When I typed imp from command line following message comes up:
dhshrwits:/opt/oracle/product/10.1.0/db_1/bin # imp
bash: imp: command not found
Any idea why?
Thanks in advance
Regards,
DAnyway I did (exp/imp) whole process again
Getting errors on imp as below:
I ran imp from command line.
imp --- as a system/passwordConnected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 -
Production
With the Partitioning, OLAP and Data Mining options
Import
file: expdat.dmp > dn.dmp
Enter
insert buffer size (minimum is 8192) 30720>
Export file created by EXPORT:V07.03.04 via
conventional path
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: system
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:
IMP-00015: following statement failed because the object already exists:
"CREATE TABLE "SRW_CMD_NAMES" ("CMD_NUM" NUMBER(5, 0), "CMD_NAME" VARCHAR2(3"
"0)) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 10240 NE"
"XT 10240 MINEXTENTS 1 MAXEXTENTS 121 PCTINCREASE 50 FREELISTS 1 FREELIST GR"
"OUPS 1)
IMP-00017: following statement failed with ORACLE error 1917:
"GRANT DELETE ON "MENU_V_APPL_GRP" TO "WITS" WITH GRANT OPTION"
IMP-00003: ORACLE error 1917 encountered
ORA-01917: user or role 'WITS' does not exist
IMP-00003: ORACLE error 1917 encountered
ORA-01917: user or role 'CASEDICT' does not exist
IMP-00015: following statement failed because the object already exists:
"CREATE FORCE VIEW "SYSTEM"."MENU_V_OPTION" ("MENU_"
"NAME","APPLICATION_NAME","OPTION_NUMBER","SHORT_NAME","DISPLAYED","OPTION_T"
"EXT","OBJECT_TEXT_ID","COMMAND_TYPE","COMMAND_LINE") AS "
"SELECT "MENU_NAME","APPLICATION_NAME","OPTION_NUMBER","SHORT_NAME","DISPLAY"
"ED","OPTION_TEXT","OBJECT_TEXT_ID","COMMAND_TYPE","COMMAND_LINE" FROM MENU_"
"B_OPTION "
IMP-00017: following statement failed with ORACLE error 1917:
"GRANT DELETE ON "MENU_V_OPTION" TO "WITS" WITH GRANT OPTION"
IMP-00003: ORACLE error 1917 encountered
ORA-01917: user or role 'CASEDICT' does not exist
IMP-00015: following statement failed because the object already exists:
"CREATE FORCE VIEW "SYSTEM"."SRW_STE" ("OWNER","APP"
"ID","ITEMID","TYPE","NAME") AS "
"select "OWNER","APPID","ITEMID","TYPE","NAME" from system.srw__ste where ow"
"ner = user or appid in"
" (select appid from srw_granted)"
" with check option"
I also tried as follows
oracle@dhshrwits:~/product/10.1.0/db_1/rdbms/admin> ./catexp7.sql
bash: ./catexp7.sql: Permission denied
oracle@dhshrwits:~/product/10.1.0/db_1/rdbms/admin> su
Password:
dhshrwits:/opt/oracle/product/10.1.0/db_1/rdbms/admin # ./catexp7.sql
bash: ./catexp7.sql: Permission denied
Any feed back will be appreciated.
Regards,
D -
Upgrading IMP/EXP utility in ORACLE 10g
Hi,
I have installed Oracle 10g 10.2 Enterprise edition.Can I upgrade the the version of the EXP/IMP utility od my oracle so that i can import dump files which are exported from Oracle 11g 11.2 version.
Thanks in advance,
Anindyauser13006709 wrote:
Hi,
I have installed Oracle 10g 10.2 Enterprise edition.Can I upgrade the the version of the EXP/IMP utility od my oracle so that i can import dump files which are exported from Oracle 11g 11.2 version.
Thanks in advance,
Anindya
No, you must use the imp utility from target database which is 10g.
Cheers -
Migrate oracle 9207 DB 8 TB size frm Solaris to AIX?dont want Exp/Imp
Hi Guys,PLz help
I want migrate 8TB oracle database from Solaris 8 to AIX 5.
In my last post on the same topic I was told to refer Metalink notes
291024.1,Note:77523.1,Note:277650.1
acc to these notes 'EXPORT/IMPORT IS THE ONLY OPTION TO MIGRATE FROM SOLARIS TO AIX'.
I was not convinced as In http://dba.ipbhost.com/index.php?showtopic=9523
I read
"As both solaris and AIX are UNIX O/S, cloning the DB is also possible from source box to target box"
Also
whats the role of "If the endianness is the same"??????
Can you guys plz comment on this again.....as I'm really confused because exp/imp of 8TB
is going to take half of my life :)
PLz tell in any other option in 9.2.0.7?If we have
ThanxYou can do
SELECT PLATFORM_NAME, ENDIAN_FORMAT
FROM V$TRANSPORTABLE_PLATFORMto check endianness of different platform.
-- Note, the view is only on 10g and above.
datafiles from different endian format can't be directly copied over and use. On 10g you have option to use RMAN convert endianness.
with that said, since Solaris and AIX are all big engianness. That means you can directly copy datafiles over and clone database without using exp/imp.
this article has a list of how to clone
http://www.dba-oracle.com/oracle_tips_db_copy.htm -
Step by Step EXP / IMP database from Oracle 9i to Oracle 11g
Please help on the captioned where I did the below
1. Use EXP to export the database from a Oracle9i database (O9_DB) OLD_Windows2003_SERVER
2. Install the Oracle 11g (default service name is ORCL) to a new Windows 2003 server and use the IMP to import the O9_DB, however, I need to create the same physical path as the OLD_Windows2003_SERVER (e.g E:\Oralce_9i\Ordata\) in order to complete the IMP
3. I can launch the SQL Developer and obtain the records count of evey tables being imported
However, is there any best / proper way to do the EXP/IMP, the ideal outcome would be
1. Create a new namespace say (OLDDB) which same as the Oracle9i database name so maybe I don't need to modify much on the application side to point to the new database ?
2. IMP the OLDDB to the new namespace OLDDB
Thanks in advanceHello,
If you create the new Database on a new Server, you could keep the same name for the Database.
To switch from the old Database to the new one, you'll have to change the hostname on the "tnsnames.ora" or in any configuration file which define the database connexion.
About the best way to do the Export/Import, you may have some details on the link below:
http://download.oracle.com/docs/cd/E11882_01/server.112/e10819/expimp.htm#i262317
Else, why do you intend to stay on a Windows 2003 Server, why not moving to Windows 2008 ?
NB: Oracle *11.1* is certified on Windows 2008 and Oracle *11.2* is certified on Windows 2008 R2.
Hope this help.
Best regards,
Jean-Valentin -
Oracle exp/imp functionality logging
Hi,
does Oracle automatically log an exp command which has been executed?
If so, where please?
Thanksuser13045898 wrote:
Hi,
does Oracle automatically log an exp command which has been executed?
If so, where please?
ThanksRead manual to understand functionality of exp/imp. http://docs.oracle.com/cd/B19306_01/server.102/b14215/exp_imp.htm
what is your version? us expdp/impdp if its 10g & higher -
Exp imp issue from higher version to lower version
Hi,
I have an export dump file which was taken from 11g database(11.2.0.2.0) and trying to import into lower version of the database 9i(9.2.0.6.0), unable to complete the process.
Two ways i have found and tested in my test db
1)TNS entry of 9i database has been put into 11g database
a)Export dump was successfuly taken from 11g db
b)Getting below error,while import into 9i database
IMP-00058: ORACLE error 6550 encountered
ORA-06550: line 1, column 33:
PLS-00302: component 'SET_NO_OUTLINES' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignoredIMP-00000: Import terminated unsuccessfully
2)TNS entry of 11g database put into 9i database version.
a)During export (trying to take exp dump from 11g db in 9i exp utility),getting below error
EXP-00008: ORACLE error 1455 encountered
ORA-01455: converting column overflows integer datatype
EXP-00000: Export terminated unsuccessfully
Kindly advice me to overcome from this issue.
Regards,
Faizlkm_thedba wrote:
you can use VERSION parameter in datapump and make this workable.
Cheers,
lkmYou cannot, since 9.x does not use datapump. The VERSION parameter can only be used if the target is 10.x or above
http://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_export.htm#autoId57
http://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_overview.htm#CEGFCFFI
HTH
Srini -
Hi all,
I have one problem in Oracle 9.2.0.8 onRHEL4. Iwant to use exp/imp to update one table from one server to another.
Suppose I have one table abc on A server and it is having around 1 million records and another B server is also having the same no. of records and some of the record have been changed to A server and i also want to imp the same record to another server B.Is there any paramneter in IMP.
Please suggest me.Hi,
Kamran Agayev A. wrote:
user00726 wrote:
but how would i know which table has been updated or modifiedUsing MERGE funtion, you'll merge two tables. This command will updated changed rows and insert non-inserted rows to the second table and make it as the same as the first tableSQL> create table azar(pid number,sales number,status varchar2(20));
Table created.
SQL> create table azar01(pid number,sales number,status varchar2(20));
Table created.
SQL> insert into azar01 values(1,12,'CURR');
1 row created.
SQL> insert into azar01 values(2,13,'NEW');
1 row created.
SQL> insert into azar01 values(3,15,'CURR');
1 row created.
SQL> insert into azar values(2,24,'CURR');
1 row created.
SQL> insert into azar values(3,0,'OBS');
1 row created.
SQL> insert into azar values(4,42,'CURR');
1 row created.
SQL> commit;
Commit complete.
SQL> select * from azar01;
PID SALES STATUS
1 12 CURR
2 13 NEW
3 15 CURR
SQL> select * from azar;
PID SALES STATUS
2 24 CURR
3 0 OBS
4 42 CURR
SQL> merge into azar01 a using azar b on (a.pid=b.pid) when matched
2 then update set a.sales=a.sales + b.sales, a.status=b.status
3 delete where a.status='OBS'
4 when not matched
5 then insert values(b.pid,b.sales,'NEW');
3 rows merged.
SQL> select * from azar01;
PID SALES STATUS
1 12 CURR
2 37 CURR
4 42 NEW
Hello Sir, is this correct?
Regards
S.Azar
DBA -
Exp/Imp alternatives for large amounts of data (30GB)
Hi,
I've come into a new role where various test database are to be 'refreshed' each night with cleansed copies of production data. They have been using the Imp/Exp utilities with 10g R2. The export process is ok, but what's killing us is the time it takes to transfer..unzip...and import 32GB .dmp files. I'm looking for suggestions on what we can do to reduce these times. Currently the import takes 4 to 5 hours.
I haven't used datapump, but I've heard it doesn't offer much benefit when it comes to saving time over the old imp/exp utilities. Are 'Transportable Tablespaces' the next logical solution? I've been reading up on them and could start prototyping/testing the process next week. What else is in Oracle's toolbox I should be considering?
Thanks
brianHi,
I haven't used datapump, but I've heard it doesn't offer much benefit when it comes to saving time over the old imp/exp utilitiesDatapump will be faster for a couple of reasons. It uses direct path to unload the data. DataPump also supports parallel processes, so while one process is exporting metadata, the other processes can be exporting the data. In 11, you can also compress the dumpfiles as you are exporting. (Both data and metadata compression is available in 11, I think metadata compression is available in 10.2). This will remove your zip step.
As far as transportable tablespace, yes, this is an option. There are some requirements, but if it works for you, all you will be exporting will be the metadata and no data. The data is copied from the source to the target by way of datafiles. One of the biggest requirements is that the tablespaces need to be read only while the export job is running. This is true for both exp/imp and expdp/impdp. -
Exp/Imp content Area Portlet..?
How to Exp/Imp "Content area folder published as a portlet" which reside in "WWSBR_SITEBUILDER_PROVIDER".
Anybody from Oracle..?
Thanks.
RakeshI assume you are using the 309 version of portal. It is possible to export out an entire content area or a page but not the granular items. By granular I mean just the folder in this context. If you wish to export/import the entire content area/page, you can run the pageexp/pageimp/contexp/contimp scripts which reside in the WWU directory.
-
Hi,
I am trying to Exp & Imp a full database. I am working on Oracle 9i & 10g on Solaris 9. I am not using Data Pump. Can anyone please help me with the following:
1. I am performing the full export using SYSTEM user.
1.a Does a Full export include (or backups up) the DATA DICTIONARY of the database?
1.b Does a Full export include the backup of SYS and SYSTEM objects?
I am using the following command to export
exp system/system@testdb file=$HOME/testdbfullexp.dmp full=y statistics=none
I have tried importing the FULL export to another database and i did see that SYS and SYSTEM objects were also being imported ( got some errors regarding constraints and inconsistencies).
I would like to ask like what are the ideal steps to follow to copy a database from DB1 to DB2 using EXP and IMP
Any information will be of a great help
Thanks,
Harris.1 a) No, as the data dictionary will be automagicall recreated by implicit SQL.
This means any non dictionary objects under SYS will be lost
1 b) as above. SYSTEM however is a normal user.
any %SYS user will NOT be exported (CTXSYS, MDSYS, etc)
On import of SYSTEM there will be always errors, as SYSTEM is non-empty after initial database creation.
Sybrand Bakker
Senior Oracle DBA -
Full database exp/imp between RAC and single database
Hi Experts,
we have a RAC database oracle 10GR2 with 4 node in linux. i try to duplicate rac database into single instance window database.
there are same version both database. during importing, I need to create 4 undo tablespace to keep imp processing.
How to keep one undo tablespace in single instance database?
any experience of exp/imp RAC database into single instance database to share with me?
Thanks
Jim
Edited by: user589812 on Nov 13, 2009 10:35 AMJIm,
I also want to know can we add the exclude=tablespace on the impdp command for full database exp/imp?You can't use exclude=tablespace on exp/imp. It is for datapump expdp/impdp only.
I am very insteresting in your recommadition.
But for a full database impdp, how to exclude a table during full database imp? May I have a example for this case?
I used a expdp for full database exp. but I got a exp error in expdp log as ORA-31679: Table data object "SALE"."TOAD_PLAN_TABLE" has long columns, and longs can not >be loaded/unloaded using a network linkHaving long columns in a table means that it can't be exported/imported over a network link. To exclude this, you can use the exclude expression:
expdp user/password exclude=TABLE:"= 'SALES'" ...
This will exclude all tables named sales. If you have that table in schema scott and then in schema blake, it will exclude both of them. The error that you are getting is not a fatal error, but that table will not be exported/imported.
the final message as
Master table "SYSTEM"."SYS_EXPORT_FULL_01" successfully loaded/unloaded
Dump file set for SYSTEM.SYS_EXPORT_FULL_01 is:
F:\ORACLEBACKUP\SALEFULL091113.DMP
Job "SYSTEM"."SYS_EXPORT_FULL_01" completed with 1 error(s) at 16:50:26Yes, the fact that it did not export one table does not make the job fail, it will continue on exporting all other objects.
. I drop database that gerenated a expdp dump file.
and recreate blank database and then impdp again.
But I got lots of error as
ORA-39151: Table "SYSMAN"."MGMT_ARU_OUI_COMPONENTS" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
ORA-39151: Table "SYSMAN"."MGMT_BUG_ADVISORY" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
......ORA-31684: Object type TYPE_BODY:"SYSMAN"."MGMT_THRESHOLD" already exists
ORA-39111: Dependent object type TRIGGER:"SYSMAN"."SEV_ANNOTATION_INSERT_TR" skipped, base object type VIEW:"SYSMAN"."MGMT_SEVERITY_ANNOTATION" >already exists
and last line as
Job "SYSTEM"."SYS_IMPORT_FULL_01" completed with 2581 error(s) at 11:54:57Yes, even though you think you have an empty database, if you have installed any apps or anything, it may create tables that could exist in your dumpfile. If you know that you want the tables from the dumpfile and not the existing ones in the database, then you can use this on the impdp command:
impdp user/password table_exists_action=replace ...
If a table that is being imported exists, DataPump will detect this, drop the table, then create the table. Then all of the dependent objects will be created. If you don't then the table and all of it's dependent objects will be skipped, (which is the default).
There are 4 options with table_exists_action
replace - I described above
skip - default, means skip the table and dependent objects like indexes, index statistics, table statistics, etc
append - keep the existing table and append the data to it, but skip dependent objects
truncate - truncate the existing table and add the data from the dumpfile, but skip dependent objects.
Hope this helps.
Dean
Maybe you are looking for
-
Web dynpro for abap how to create a customize search help in alv column
hi: Web dynpro for abap how to create a customize search help in alv column and put search help value into alv column? Are there specific examples ? thanks!!
-
Error in replicaiton from R/3 to CRM.
Hi Gurus, I am trying to replicate business object, customer_main, from R/3 to CRM. However, I am experiencing error, SYSFAIL, in outbound queue of R/3 whereas, the status in CRM, RUNNING, is showing but so far, there is 0 blocks. Please advise o
-
G'day How does one - in CF - refer to an inner class (ClassFoo.Bar) of a given class (ClassFoo), when the constructor of ClassFoo takes an argument of type ClassFoo.Bar? For example the first, third,fourth and fifth constructors shown here: http://ti
-
My Mac OS X 10.4.8 wireless mouse will not scroll UP. It's been cleaned and works well in all other aspects. Is it just time to get another one, or can this problem be fixed?
-
Ordering/Ranking based on Character field
Hi All, I need to ordering/Rank a column based on varchar field. Here is my input Create table #InputTmp CustomerNumber Varchar(10), AccountNumber Varchar(10) Insert into #InputTmp Select '1234','123121' Union All Select '1234','4728272' Union All Se