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

Similar Messages

  • 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

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

  • Can't recreate 9i to 10g with EXP/IMP

    I've been trying to duplicate a database from 9i to 10g. I'm only interested to recreate the users, roles, database links,
    etc. The (production) server that has 9i is outdated, and the 10g is on a new server. I've created a new database on the 10g server, and created all the tablespaces that reflects the 9i server. Next, I used the EXP command on 9i:
    exp system/password FILE=allusers.DMP LOG=allusers.log OWNER=(*list of users*) COMPRESS=N ROWS=N DIRECT=Y CONSTRAINTS=Y INDEXES=Y;
    In the 10g server, I used the import command:
    imp system/password FULL=Y CONSTRAINTS=Y INDEXES=Y FILE=allusers.DMP LOG=allusers.log ROWS=n;
    When I try the IMP command in 10g, I get an error that the users doesn't exist. That only way I can think of to resolve this is
    if I export the entire database from 9i. Wouldn't that conflict with the 10g SYSTEM tablespace? IE:
    exp system/password FULL=Y FILE=full.dmp LOG=allusers.log COMPRESS=N ROWS=N DIRECT=Y CONSTRAINTS=Y INDEXES=Y;
    I even tried to import one user at a time, and it didn't work. IE:
    imp system/password FROMUSER=user1 CONSTRAINTS=Y INDEXES=Y FILE=allusers.DMP LOG=allusers.log ROWS=n;
    I'm stuck. Please help.

    Hello,
    Here's an example of some of the objects, as well as the result when I manually compile them (I even logged in as SYS):
    SQL> alter package cwh.smp_vdg compile;
    Warning: Package altered with compilation errors.
    SQL> alter package sys.comp_login_funct compile;
    alter package sys.comp_login_funct compile
    ERROR at line 1:
    ORA-04043: object comp_LOGIN_FUNCT does not exist
    Few other objects are SYS.DBMS_XPLAN, PUBLIC.SDO_TO_DATE.

  • Best way of using exp/imp

    Dear all,
    I wanted to migrate database from 8i to 11g(8.1.5 to 11.1.0). I am going for exp/imp method. Which is the best method of doing this task? I mean Full export and Import Or Schemawise export and import? Is there any chances of missing objects or rows while doing this task? If yes, How to avoid? Please help me to take a best decision. I dont want any problem after migration.
    Approach is (take exp of 8.1.5 and imp in 9.2.0) then (exp of 9.2.0 and imp it to 11.1.0.6)
    OS is HP Unix
    Nishant Santhan

    Have you not yet completed this task? As we have already answered to your question a couple of days back.
    Take a look at the similar duplicate thread created by you.
    Re: Migrating from 8i to 11g
    Regards,
    Sabdar Syed.

  • 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

  • Migrating from 9i to 10g through exp/imp

    Hi,
    We need to migrate a database on 9i in HP-UNIX to 10g in IBM AIX. Can you please tell me whether i can export data in 9i with 9i export utility and import it into 10g using 10g data pump utility for faster import ?
    We don't have the 10g software installed in the HP-UNIX platform.
    And what other alternatives we have to reduce the amount of time for the migration process as it's a critical Production database ?
    Thanks,
    Jayanta

    I believe that Justin is correct that if you use exp to unload the data you will need to use imp and not impdp to reload the data.
    To speed up the cross-platform exp/imp process I suggest you consider running multiple concurrent exp/imp jobs. You can generate a table=list into a spool file using sql. You can give each large table its own exp job and bunch the small tables.
    Depending on how your database objects are organized you might also be albe to export by owner or a combination of owner, tables= exports.
    You can use a full=y with the rows=n option to grab the public synonyms, non-owning users, packages, etc.... not brought in by the prior exp/imp.
    HTH -- Mark D Powell --

  • Exp/imp problems

    Hi,
    Kindly Help.
    I plan to export full the database then I'll import it back to the same database, my purpose is to fix the fragmentation of the tables/tablespaces.
    1. Before importing the export file should I do anything to the database( e.g. truncate the tables, delete the contents)?
    2. Does the exp/imp utility depend on the SGA for it's performance or if not the SGA what parameter should I change to speep up the exp/imp?
    Thank you

    I plan to export full the database then I'll import
    it back to the same database, my purpose is to fix
    the fragmentation of the tables/tablespaces. Why you using export/import to de-fragmentation, there are other ways to do same like rebuild indexes, Use LMT etc
    Virag

  • 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

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

  • Exp/Imp with tablespace autocreate?

    Hello dear community,
    I've got a question about backup with exp/imp. It's not about RMAN, but nevertheless I hope it's the right board.
    Is there a command to tell imp to automatically create a specified tablespace from a dumpfile?
    For exp I use:
    exp.exe user/pass tablespaces=test file=FILE.DMP
    For imp I use:
    imp.exe user/pass tablespaces=test file=FILE.DMP
    Now, if I drop the tablespace between exp and imp, so imp can't restore it. There I manually have to create the specified tablespace first. It would be nice, if there is a way that imp creates the tablespace if it is not present.
    Are there maybe some parameter like "autocreate" and "use datafile=..." and so on?
    Thanks for help,
    best regards,
    Ronny

    Transportable Tablespaces is a seperate feature whereby you take a physical
    copy of tablespace datafiles and "plug" them into the target database.
    That is different from taking a logical export dump.
    With export dumps, the only way to get the tablespace created is in a FULL
    export and import. The CREATE TABLESPACE commands are written into
    the dmp file only when a FULL export is done. At import time, you can choose
    to import a specific schema in which case, the CREATE TABLESPACE
    commands are not executed by import (they must be precreated). So,
    CREATE TABLESPACE is executed only when you do a FULL import as well.
    Note that this {obviously} creates the same datafile names (including physical
    paths) and sizes as existant in the source database. That may or may not
    meet your requirements on occassion (eg different filesystem structure,
    different sizes planned in the target database).

  • Tablespace exp imp 11G

    I have problem,
    I want to imp file.dmp to schemauser
    schemauser have tablespace default USERS
    then I exp schmeauser from my pc. I named file.dmp
    then when
    I imp from other pc,
    I have prepare for schmeausernew with tablespace default tbspace.
    when I imp the data I suprise with my default tablespace tbspace not using.
    But my imp it take a place in USERS.
    Sow my question is, How to imp automaticly to my default tablespace tbspace ???
    I don't want to alter table tablespace when I must one by one and also my index.
    Thanks.
    for Supporting.

    Exp/Imp with tablespace autocreate?
    imp user/pass tablespaces=dbtothis FULL=Y
    Why still not into tablespace=dbtothis.
    Still in Tablespace users
    Thanks.
    For help me.

  • Another EXP/IMP question

    Moving data from 5 databases that are 9i over to 10g. If each datbase has 1 user with tables in associated schema what needs to be done on the 10g side as far as a user is concerned. The only way I've been able to exp / imp is cloning the sys account using toad then doing a dba/import from user sys to the duplicated account. What privilages are needed on the 10g side to imp that data without having to clone the sys account?
    thanks.

    CHarles is correct, if the export on the original machine is not a full export, anyone can import it. However, if it is a full export, then you must have the IMP_FULL_DATABASE priviledge. However, SYS and SYSTEM have the priviledge. Why don't you start imp as the sys or system user and do a user import into your new schema on the 10G system.

Maybe you are looking for

  • HELP needed to write a function returning 1 record from join tables

    Hi, I would like to have some help to write a function so It can return 1 result. I post my question in the APEX Express sextion but I think it's belong here. Mount Points and Home Directory Also, can I move a thread in another forum? thanks Roseline

  • VGA and S-video

    Can I use both a VGA device and a S-Video device at the same time? Anyone know of a workaround on this?? Thanks!!

  • Does this support AVCHD files straight from the camera (Panasonic)??

    Does the new final cut pro X support AVCHD files from the camera?  I record with a Panasonic AG-HMC40. Thank you

  • Dark Blotches on Bottom of Screen...

    Hey all, I've had my 12" PB for a month or so. I noticed everytime when I open up my PB and turn it on, there's 2 oval dark spots, (Right under the Dock) until the screen warms up, it's fine and goes away. Is this okay? Just wanted to make sure. Any

  • SOA Preview BPEL 10.1.3

    Hi, Does any one knows where I can find Oracle BPEL Process Manager Developer's Guide 10.1.3? Regards, Jigar