Full Database Exp & Imp

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

Similar Messages

  • 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 AM

    JIm,
    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

  • Need help for full db exp-imp

    Hi,
    My database is having undo segment corruption.I have considered and tried a lot of things to come out of the situation,but didn't get any +ve result. So I have decided to take a full database export,rename the database,create a new database on the same system and import the full database in the new database.Will you plz tell me the steps to do this(full db import)? Plz include a wise syntax for full db exp-imp.
    Thanks a lot

    If your only identified problem was sudden undo corruption to an online instance and you followed the steps referenced on the Burleson site (switch to manual undo management, create a new undo tablespace, drop the old undo tablespace, and switch back to automatic undo management) and then the very next day encountered undo corruption again, I would recommend two simultaneous courses of action:
    1) Get the hardware analyzed, this could be a signal of hard drive or controller problems.
    2) Scour metalink for any bug references that may be related (or just go ahead and open an iTar).
    If you persist in importing to create the database back on this same system and if you must use the same storage, I would at least try to get the file system or volume that the corruption was on taken offline and recreated.
    Just an alternate view of things ... good luck!

  • Exp imp of full db

    I want to take full exp and imp it to new db, i tried one imp but ended up errors....
    What would be the command for full db exp , imp db with data which should end without warnings?

    . exporting bitmap, functional and extensible indexes
    . exporting posttables actions
    . exporting triggers
    EXP-00056: ORACLE error 1422 encountered
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at "XDB.DBMS_XDBUTIL_INT", line 55
    ORA-06512: at line 1
    EXP-00056: ORACLE error 1422 encountered
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at "XDB.DBMS_XDBUTIL_INT", line 55
    ORA-06512: at line 1
    EXP-00000: Export terminated unsuccessfully

  • Exp/Imp full database

    Hello guys,
    I'm having an issue with importing full database from one database(machine 1) to another database (machine2).
    I am getting errors that users don't exist, datafile cannot be read etc errors.
    I'm using Windows, and Oracle 9.2.0.6
    How can I export the 'create objects' scripts from the source db that can run on the target db?
    Any help appreciated.
    Thanks,
    Bharath

    thank you. I actually sorted it out. The path of the datafiles in the source database is not present for the target database. So I created a similar path but kept no datafiles in it.
    the import ran successfully and created the users and tablespaces as well.
    thanks again

  • Using exp imp on 11i apps database

    Hi,
    Does anyone have experience in using exp and imp utility on 11i apps database? Is there any special method to achieve this.
    I want to do a full export and do an import.
    Do we get any performance benefits if we do this?
    Regards,
    SA

    Hi Sa;
    Does anyone have experience in using exp and imp utility on 11i apps database? Is there any special method to achieve this. You want to take exp imp for which issue?
    I want to do a full export and do an import.Follow:
    10g Export/Import Process for Oracle Applications Release 11i [ID 331221.1]
    Export/import process for R12 using 11gR1 [ID 741818.1]
    Do we get any performance benefits if we do this?It depends many segment but finaly u will make one process on server and it has cost,answer you can have some performance issue while you are taking exp-imp
    Regard
    Helios

  • Exp/imp for upgrading database

    Hi,   Is it a good idea to use exp / imp to upgrade a database from 9i to 11g.To overcome parallel I plan to set ll tables degree to 8 manually and then start the export.Which is better conventional upgrade or exp/imp

    HI,
    Please check Oracle support id : How to Perform a Full Database Export Import during Upgrade, Migrate, Copy, or Move of a Database (Doc ID 286775.1)
    Thank you

  • Exp/imp full or transportable tablespaces?

    Hi Experts,
    DB version: 10.2.0.4 64 bit enterprise edition
    OS version: Windows 2003 R2 64 bit
    here database moving from 10.2.0.4 enterprise edition to standard edition.
    i have went through metalink, i found
    *10G : Step by Step Procedure to Migrate from Enterprise Edition to Standard Edition [ID 465189.1]*
    *Converting An Enterprise Edition Database To Standard Edition [ID 139642.1]*
    so i have taken export of full database before that i have create a DBLINK & TABLES ,
    i have impoted into standard edition but i have missed those DBLINKS and grants will imported?
    Thanks.

    hi guru,
    my expectation is the entire database should pilot to new server with standard edition. i have read articles from metalink, as per traditional export/import is a better.
    By that process i tested,
    1) production database:-
    a)created some tables, one database link
    b) exp system/*** full=y file=exp.dmp log=exp.log
    2)another side, i have created a dummy database using DBCA, and created some tablespaces as exist in export side.
    a) imp system/*** full=y file=exp.dmp log=imp.log
    so after successful import, i have checked objects but i missed the DBLINK from production.
    1)my question is any other parameters should be process within import? to perform full export/import
    2)all the schemas will be imported or manully need to create?
    3)grants will be imported?
    4) what about constraints.
    ignore=y rows=n.i want to export rows also(entire database)

  • Refresh database through exp/imp

    version 10203 on windows (old db on solaris 8170)
    i Have to refresh database data, No of users/schemas are 400+. fastest way to do that would be to do full exp/imp.
    but 1st drop current users cascade. (any command to drop all users in with one command?)
    then validate all all tables/schemas are same & up-to-date( any suggestion to validate this efficiently?) i am thinking to check full exp logs on old & new db.(what that can take forever manually going through thousands of tables etc)

    First, make sure that statistics are properly gathered in both the old and the new DB.
    Next, use num_rows column in dba_tables. Since statistics are typically gathered by sampling, they would not necessarily match. They need to be quite close though.
    After you are sure that all objects were transferred, you can issue a query to find all tables with “invalid” number of records.
    The query can look something like this:
    select s.owner, d.table_name , d.num_rows
    from dba_tables d
    where d.owner not in (‘SYS’,’SYSTEM’,…)
    and not exists
               (select * from dba_tables@old_db s
              Where d.owner = s.owner
              And d.table_name = s.table_name
              And s.num_rows between 0.9*d.num_rows and 1.1*d.num_rows
              )You need to take care of some special cases, such as num_rows being NULL, partitioned tables, etc.
    Iordan Iotzov
    http://iiotzov.wordpress.com/

  • Using exp/imp to clone a database from Solaris to NT

    Hi All,
    We have an 8.1.6 Oracle database in production under Sun Solaris.
    We actually use this database to run Siebel CRM system.
    We have a Windows NT server which we used as a QA system
    for this application.
    We have a daily full export of our production database on the
    Sun machine. Now my manager wants to import this production
    dmp file into this Win NT database on a weekly basis.
    The goal here is to maintain the state of this NT database
    as much functional and close to the production one as possible.
    I would appreciate your help on this.
    I have some other general question:
    in which case can the Oracle imp utility be run in the
    full=y mode ?
    does this make any sense at all ?
    since the Oracle import utility does not delete
    any existing objects before it imports, these objects
    should be deleted manually and that's what I do
    with all Siebel users schemas; of course I do not
    do this with SYS, SYSTEM and other special Oracle
    users; question: are there any objects in these
    special Oracle schemas that have to be carried over from
    the source database to the target database to
    make the rest of the schemas functional ?
    Somehow I failed to find Oracle documentation on how
    to use exp/imp to create a complete clone of an Oracle
    database.
    Can direct path be used with full=y export/import mode ?
    Thank you in advance,
    Yuriy.

    As an alternative to using daily/weekly exports and imports, what would probably be more effective here would be replication. The databases could synch on a nightly basis and updated tables and rows will be transferred from your OLTP system to your read-only system. More information can be found on replication from "Oracle8i DBA Handbook" by Kevin Loney and Marlene Therialt.
    LM
    PS. IGNORE=Y

  • Use exp/imp to migrate a database

    hi,
    I want to migrate a database from window to hp unix,
    Can I use the following way? thanks!
    First,exp from windows:
    1.exp the schema without data
    2.exp the whole database with data
    Second,imp to unix:
    1.use dbca to create a database;
    2.imp the schema
    3 imp the data to all schema.

    Yes. Just make sure that you do a binary file transfer between windows and unix system otherwise you will end up with a corrupted dump.
    Even after transfer, just to make sure, you can have a trial import with indexfile and show options to check the integrity of the dump.
    Probably you can merge steps 2 and 3 of import in 1 step.

  • 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 advance

    Hello,
    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

  • Database upgrade from 8i to 10g using exp/imp

    Dear Friends,
    Please provide the steps to upgrade from 8i to 10g using exp/imp.
    Thanks,
    Rathinavel

    Hi;
    Please also see cold backup option
    How to migrate from 8i to 10g to new server using cold backup [ID 742108.1]
    Also see:
    Upgrading from 8i to 10g with import utility
    http://searchoracle.techtarget.com/answer/Upgrading-from-8i-to-10g-with-import-utility
    Regard
    Helios

  • Exp/Import database schema vs Ch 10 Exp/Imp Content

    Hi I'm using Portal 10.1.2.02. I'm a DBA tasked with migrating a Dev portal into Test, then Production.
    There seems to be a number of ways to achieve this and I was hoping to clarify which is best for me.
    I've run through note: 330391.1(copying the Portal schema) which details running a perl script to export and import onto a newly installed server. This process worked will.
    Chapter 10 of the Portal guide details a fairly complex process of creating transports sets and migrating these over and importing.
    My question is: if I want the entire Portal copied is there any difference in these processes? ie. Do you end up with the same result?
    thanks in advance of any advice :-)

    The cloning model is not a rerunnable model, its not granular and conditional migraton is not possible.
    You can do the cloning only if u want to take a copy of the entire setup and rewire to a new midtier.
    Portal exp/imp model helps u to achieve granular, conditional and rerunnable method of moving portal objects.
    Apart from that, it comes with the readily available prechecks to intimate what's going wrong during the process.

  • Full database backup and restore

    I have a doubt on the syntax for a full database backup and restore. For a single schema, the syntax for backup & restore is :-
    exp JISPREPCORBILLINGPRD501/JISPREPCORBILLINGPRD501 owner=JISPREPCORBILLINGPRD501 STATISTICS=none
    log=JISPREPCORBILLINGPRD501_exp.log grants=y constraints=Y rows=y compress=N
    file=JISPREPCORBILLINGPRD501
    imp <userid/password> file=<export dump file location> fromuser=<export user name> touser=<import user name>
    grants=y constraints=Y rows=y log=<import log file location>
    I hope, my question is clear.
    Please, help in solving the doubt.
    regards

    hi,
    thanks, for your answer. I took a export of one schema of the database. But, when I tried to import the schema to the destination database, it showed
    imported with errors with the existence of functions showing. The commands used by me for export and import are as follows:-
    exp JISPREPCORBILLINGPRD501/JISPREPCORBILLINGPRD501 owner=JISPREPCORBILLINGPRD501 STATISTICS=none log=JISPREPCORBILLINGPRD501_exp.log grants=y constraints=Y rows=y compress=N file=JISPREPCORBILLINGPRD501
    imp JISPREPCORBILLINGPRD501/JISPREPCORBILLINGPRD501 file=JISPREPCORBILLINGPRD501 fromuser=JISPREPCORBILLINGPRD501 touser=JISPREPCORBILLINGPRD501 grants=y constraints=Y rows=y log=JISPREPCORBILLINGPRD501_imp.log
    Do, we need to drop the existing schema before importing or somethinig else. Please, help.
    regards

Maybe you are looking for

  • Return delivery process with excise in MM module

    Dear Friends,                     this is chandu working as a consultant-mm , please any one can give the clear information regarding return delivery process for excise material , i'm following one process that is after invoice verification 1) revers

  • "A Fix For iTUNES Not Opening"

    Well, after trying to figure out what was going on with iTunes not opening at all. It turns out that by default for some reason Windows Xp Firewall disables it from opening it. iTunes however is acting like a server for the simple fact that you excha

  • Constant time out errors on ipad 2

    IPAD 2 keeps timing out on all applications. WIFI router works perfectly well on other computers.

  • Can't get menu.

    Okay...i installed openbox to use purely. Everythings good except i can't get a menu like i see it comes with. I've installed obmenu or w/e to configure it through gui look, but still get nothing when saving some menu'e. I guess should i just configu

  • Prob in multiprovider creation

    Hi can any one guide me what are the steps of creating multiprovider specially with the combination of dso and cube or combination of 2 cubes I think that multiprovider is union connection of infoproviders but when i am creating multiprovider with ds