Full Database Export/Import

I was attempting to export a full database from one server (DB files on the N: drive) and import it into a freshly created new database with the same instance name on a new server (DB files on the D: drive).
I was told to:
1) Export the full database as sys using full=y
2) Pre-create all of the tablespaces on the target database that do not exist on the target database
3) Import the full database as sys using full=y
=========================================================
Here are the steps I had to follow:
1) Export the full database as sys using full=y
2) Pre-create all of the tablespaces on the target database
3) Import the full database as sys using full=y - Result: over 1900 invalid objects and thousands of errors
4) Run Utlrp.sql - Result: 8 to 10 invalid objects
5) Manually attempt to compile or rebuild objects. Several grants were required to get most of these to work. - Result: After quite a bit of hand crafting, two objects are still invalid.
6) After spending almost two hours in a Collaborative Conference with an analyst who is working very hard to sold this, there are still two objects that are invalid.
Note: From my perspective this is not a straight forward process
=========================================================
Questions:
1) Has anyone successfully moved a database as described without all of these annoying steps?
2) Is there a document that details the full database export/import?
Thanks, RJZ

Hello RJZ,
There is not sufficient information to reply accurately to your queries,
1. Could you post the error message that you're getting when you compile these two programs? Do they compile okay on the old server?
2. What was the reason you choose exp and imp, to move your db to the new server and different disk? Were you migrating to a different version, or was it because of the db-reorg? It would have been possible to simple copy the db-files to the new location, and then rename the datafiles in mount-state. It would be more simpler I believe unless as stated above
Did you check the import logs? While importing were there any errors? Actually it should have been pretty straight forward (no reason why you need documentation for exp / imp). Grants should have automatically come, unless you have select grants=n option
I think because of the changes you have done for step-5, you might have changed some stuff somewhere. Please post the error message, and tell us if you have migrated the db to a higher version
Regards
Sudhanshu

Similar Messages

  • Import from a full database export having  5 .dmp files

    i have a full database export having 5 .dmp files of 2g each, its having a user agvlc and which contains some partitioned tables,i imported the data for the user agvlc in a tablespace agvlc al the tables gets imported but the partitions are not getting imported what can i do to import the partitions as well
    thanx in advance

    Hello,
    al the tables gets imported but the partitions are not getting imported what can i do to import the partitions as wellHow do you see that the Partitions are not imported ? Do you have any error message ?
    Which options did you use for the Import ?
    Please, as previously said, post all the informations so that we can help you efficiently.
    Best regards,
    Jean-Valentin

  • Migrate Database- Export/Import

    Hi,
    I need to migrate an Oracle database 9i from Sun Solaris to Linux. The final target database version would be 11g.
    Since this is a 9i database, I see that we have only option of export and database. We have around 15 schemas.
    I have some queries related to it.
    1. If I perform a export with full=y rows=y, Does it export Sys, System Schema objects also?
    2. Can we perform export in Oracle 9i and use datapump import on targert 11g?
    3. What is the ebst approach - a) to perform schema by schema export or b) to perform a full database export with exp / file=xxx.dmp log=xxxx.log full=y?
    Since there is a database version different I dont want to touch sys, system schema objects.
    Appreciate your thoughts.
    Regards
    Cherrish Vaidiyan

    Hi,
    Let me try to answer some of these questions you queried for:
    1. If I perform a export with full=y rows=y, Does it export Sys, System Schema objects also?Export won't export sys objects. For example, there are tables in sys, like obj$ that contain information for other metadata objects, like scott.emp, etc. This is not exported becuase when scott.emp is exported, the data from obj$ is essentially exported that way. When the dumpfile is imported and scott.emp is recreated, the data in sys.obj$ will be restored through the create table statement. As far as the SYSTEM schema is concerned, some objects are exported and some are not. There are tables in system that contain information about queues, jobs, etc. These will probably not make any sense on the target system so those types of tables are excluded from the export job. Other objects make sense to export/import so those are done. This is all figured out in the internals of export/import. Thre are other schemas that are not exproted. Some that I can think of are DMSYS, ORDSYS, etc. This would be for the same reason as SYS.
    2. Can we perform export in Oracle 9i and use datapump import on targert 11g?No, the dumpfiles are formatted differently. If you use exp, then you must use imp. If you use expdp, then you must use impdp. You can do exp on 9i and imp on 11g with the dumfile that was created on 9i.
    3. What is the ebst approach - a) to perform schema by schema export or b) to perform a full database export with exp / file=xxx.dmp log=xxxx.log full=y?This is case by case decision. It depends on what you want. If you want the complete database moved, then I would personally think that a full=y is what you would want to do. If you just did schema exports, then you would never export the tablespaces. This would mean that you would have to create the tablespaces on the source system before you ran imp. There are other objects that are not exported when a schema level export is performed that are exproted when a full is performed. This information can be seen in the utilities guide. Look to see what is exported when in user/schema mode vs full/database mode.
    Since there is a database version different I dont want to touch sys, system schema objects.This is all done for you with the internal workings of exp/imp.
    Dean
    Edited by: Dean Gagne on Jul 29, 2009 8:38 AM

  • Full database Export

    Hi
    We are having a database 10g running on solaris OS. We are getting a new server and I need to move the data. This is what I am planning to do.
    Take full database export from original server. (This includes tablespaces, all schemas and data)
    Import in new server, from SYS schema once Oracle is installed. so all the schemas and objects are imported.
    Can you let me know this approach is right any precautions to be taken?
    Thanks

    user625850 wrote:
    Hi
    We are having a database 10g running on solaris OS. We are getting a new server and I need to move the data. This is what I am planning to do.
    Take full database export from original server. (This includes tablespaces, all schemas and data)
    Import in new server, from SYS schema once Oracle is installed. so all the schemas and objects are imported.
    Can you let me know this approach is right any precautions to be taken?
    ThanksRMAN DUPLICATE

  • Full database export hangs (Oracle9i rel2)

    I recently migrated successfully from oracle8i rel 8.0. to oracle9i release 2,But now am not able to do a full database export.has anyone experienced this and whats the remedy?.
    the text i get is listed below.
    Microsoft Windows [Version 5.2.3790]
    (C) Copyright 1985-2003 Microsoft Corp.
    C:\Documents and Settings\Administrator>exp system/manager@ORCL file=C:\orclbk\p
    oll.dmp full=y
    Export: Release 9.2.0.1.0 - Production on Tue Aug 9 18:36:13 2005
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    About to export the entire database ...
    . exporting tablespace definitions
    . exporting profiles
    . exporting user definitions
    . exporting roles
    . exporting resource costs
    . exporting rollback segment definitions
    . exporting database links
    . exporting sequence numbers
    . exporting directory aliases
    . exporting context namespaces
    . exporting foreign function library names
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions
    EXP-00090: cannot pin type "OE"."CUSTOMER_TYP"
    EXP-00056: ORACLE error 22303 encountered
    OCI-22303: type "OE"."CUSTOMER_TYP" not found
    EXP-00056: ORACLE error 24323 encountered
    ORA-24323: value not allowed
    EXP-00000: Export terminated unsuccessfully
    C:\Documents and Settings\Administrator>

    You have to run the export with the SYS user. This error may arise on any plattform ranging form 9.0.1 to 10.2.0.
    C:\>exp "'sys/oracle as sysdba'" full=y

  • Scheduled shutdown immediate and full database export

    Hi all,
    The database is Oracle 10g.
    How to make a scheduled shutdown immediate and full database export ? I want to use a batch file for it so I can make a sheduled task from the windows control panel everyday at 2 am. So what to write in the batch file because I am a bit new to 10g ?
    Thank you very much

    >
    How to make a scheduled shutdown immediate and full database export ? I want to use a batch file for it so I can make a sheduled task from the windows control panel everyday at 2 am. So what to write in the batch file because I am a bit new to 10g ?No, you can't take logical backup after shutdown database.
    If you want to schedule the logical backup of your database, just you can refer from here
    Schema level
    http://mohamedazar.wordpress.com/2010/04/18/datapump-scheduler-for-schema-level/
    Full export
    http://mohamedazar.wordpress.com/2010/02/16/dbms-scheduler-for-data-pump/

  • ORA-29540 during full database export

    Hi,
    Anyone encounter this error ORA-29540 during full database export. Have check out the web site for solution. Have check that the init file compatible is set to 8.1.0, the public synonym dba_java is been removed. However after the above remedies, the problem still occured. My database version is 8.1.5. Please let me know if there is other solution to this problem.
    Thank You ...
    regards,
    lbs

    Hi,
    Thanks...Any idea how to check whether the installation for the initjvm.sql is successful. cos I just took over from the previous DBA and he too have no idea...
    Thank You..

  • Getting error in full database export

    hi,
    I am exporting full database i am getting this error shown below:
    operating system:windows 2003 server
    oracle:oracle 10g
    C:\Documents and Settings\Administrator.SRCSD>exp system/systemsms file=d:\21041
    0.dmp log=d:\210410.log full=y
    Export: Release 10.1.0.2.0 - Production on ╟ط╟╤╚┌╟┴ ╟╚╤وط 21 11:15:42 2010
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Produc
    tion
    With the Partitioning, OLAP and Data Mining options
    Export done in AR8MSWIN1256 character set and AL16UTF16 NCHAR character set
    server uses AR8ISO8859P6 character set (possible charset conversion)
    About to export the entire database ...
    . exporting tablespace definitions
    . exporting profiles
    . exporting user definitions
    . exporting roles
    . exporting resource costs
    . exporting rollback segment definitions
    . exporting database links
    . exporting sequence numbers
    . exporting directory aliases
    . exporting context namespaces
    . exporting foreign function library names
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions
    . exporting system procedural objects and actions
    . exporting pre-schema procedural objects and actions
    . exporting cluster definitions
    EXP-00056: ORACLE error 4021 encountered
    ORA-04021: timeout occurred while waiting to lock object
    ORA-06512: at "SYS.DBMS_METADATA", line 1511
    ORA-06512: at "SYS.DBMS_METADATA", line 1548
    ORA-06512: at "SYS.DBMS_METADATA", line 1864
    ORA-06512: at "SYS.DBMS_METADATA", line 3707
    ORA-06512: at "SYS.DBMS_METADATA", line 3689
    ORA-06512: at line 1
    EXP-00056: ORACLE error 4021 encountered
    ORA-04021: timeout occurred while waiting to lock object
    ORA-06512: at "SYS.DBMS_METADATA", line 1511
    ORA-06512: at "SYS.DBMS_METADATA", line 1548
    ORA-06512: at "SYS.DBMS_METADATA", line 1864
    ORA-06512: at "SYS.DBMS_METADATA", line 3707
    ORA-06512: at "SYS.DBMS_METADATA", line 3689
    ORA-06512: at line 1
    EXP-00000: Export terminated unsuccessfully
    C:\Documents and Settings\Administrator.SRCSD>
    plz reply me appropriate solution.
    thanks.

    Possibly bug 3386590 (4021: TIMEOUT OCCURRED WHILE WAITING TO LOCK OBJECT), upgrade to 10gR2 or even better 11gR2.
    Werner

  • Performance benefits from database export import

    Hi guru,
    I have SAP R3 47.X110 WIN/SQL2005.
    I want to improve performance by a sort of database reorganization.
    I read this note  Note 159316 - Reorganizing tables on SQL Server SQL 2000/2005
    but , there the method descrived is not much quick to do.
    The question is : there is lot performance's benefits from make an export of my instance then re-import , according system copy procedure?
    Or there is another quick way to reorganize database?
    Thank you very much for answer.
    Antonio.

    You want to do an export/import or a reorganization to get more performance. The question is: does it make sense? The given Microsoft article and the mentioned notes describe pretty well, in which cases it makes sense and in which not.
    I wouldn´t start with the last step (reorganization) but I would more try to find out, where the real problems are. Checking the I/O system throughput using performance monitor (perfmon.exe) on Windows, checking long running statements using ST05 and finding out if you have a real index fragmentation using the given DBCC procedures.
    If you come to the conclusion then, that a reorganization makes sense, then I would do it.
    And as stated in the SAP note, if it would become faster after such a task, the underlying I/O subsystem is not fast enough to serve all the requests.
    There´s no general statement as "if you do reorganization using method A or method B it will be faster" because the reasons for a slow performance can vary.
    Markus

  • Database export /import

    hi all
    while i was exporting /importing im geting some of the errors so how to we need to avoiid thata errors .

    786631 wrote:
    but we can see using by the command at o.s level to verify the version ,so there is no pblm to check that.
    Posters, please mind these common-sense rules when participating here:
    - When asking a question, provide all the details that someone would need to answer it. Consulting documentation first is highly recommended.
    - When answering a question, please be courteous and respectful; there are different levels of experience represented here. A poorly worded question is better ignored than flamed - or better yet, help the poster ask a better question.
    - It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).
    - See more tips in the FAQ
    Thanks for doing your part to make this community as valuable as possible for everyone!
    - OTN ok post your os and oracle version and export/import command by os command here.

  • Oracle8i full database export

    while taking database export in ORACL8i it is terminating with errror. Please suggest remedial action. The messages given by system are appended below
    Connected to: Oracle8i Enterprise Edition Release 8.1.5.0.0 - Production
    With the Partitioning and Java options
    PL/SQL Release 8.1.5.0.0 - Production
    Export done in US7ASCII character set and US7ASCII NCHAR character set
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user DEEPAK
    . exporting object type definitions for user DEEPAK
    About to export DEEPAK's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    . about to export DEEPAK's tables via Conventional Path ...
    . . exporting table XX 0 rows exported
    . exporting synonyms
    EXP-00008: ORACLE error 904 encountered
    ORA-00904: invalid column name
    EXP-00000: Export terminated unsuccessfully
    Could this be related to following code which is present in /oraclehome/rdbms/admin/catexp.sql
    These are the last few lines of catexp.sql
    REM Add versioning support for export
    REM This will get bumped up as the views evolve. The insert is needed
    REM for upgrades from 7.0 or new databases. The update is needed for
    REM databases that have older compatibility.
    REM These are the releases when the compatibility was bumped:
    REM 7.0.* - no compatibility - assume zero
    REM 7.1.3 - set to one
    REM 7.2.1 - set to two
    REM 7.2.3 - set to three
    REM 8.0.1 - set to four
    REM 8.0.2 - set to five
    REM 8.0.3 - set to six
    REM 8.0.4 - set to seven
    REM
    insert into props$
    select 'EXPORT_VIEWS_VERSION', '7', 'Export views revision #' from dual
    where not exists
    (select 'x' from props$ where name = 'EXPORT_VIEWS_VERSION')
    update props$ set value$ = 7 where name = 'EXPORT_VIEWS_VERSION'

    This forum is for feedback about the OTN program and problems with OTN accounts. Technical questions cannot be answered here. Please post your question in the appropriate product or technology forum. http://forums.oracle.com/forums/index.jsp?cat=48

  • Higher to lower database export/import Query

    hi all,
    well i have exported 11g schema dump with version change 10.2(express edition) bcoz i want to import it to 10g express.....and now i m gettting error in import
    please tel me wt i have to do now?

    user9122568 wrote:
    ORA-19505: failed to identify file "E:\Oracle_xe\app\oracle\admin\XE\dpdump\xlntseo_16.dmp"
    ORA-27046: file size is not a multiple of logical block size
    OSD-04012: file size mismatch (OS 9192867)Does this file "xlntseo_16.dmp" exist on the location "E:\Oracle_xe\app\oracle\admin\XE\dpdump" ?
    If it does, what was the OS where 11g Express Edition was running ?
    How did you transferred the dmp file from there?
    It seems the dmp file is corrupted when you shifted it.

  • Full list of schemas not exported / imported when FULL=Y

    Hi Guys,
    Verison: 10.2.0.5
    Can advise on the full list of schemas not exported / imported when FULL=Y?
    thanks!

    dbaing wrote:
    Hi Guys,
    Verison: 10.2.0.5
    Can advise on the full list of schemas not exported / imported when FULL=Y?
    thanks!System schemas. Please see the following:
    http://docs.oracle.com/cd/B19306_01/server.102/b14215/dp_export.htm#i1006790
    http://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_export.htm#i1006790
    You may also be interested in the following:
    -How to Perform A Full Database Export Import During Upgrade, Migrate, Copy Or Move Of A Database [ID 286775.1]
    -Oracle DataPump Quick Start [ID 413965.1]
    -How To move Or Copy A Database Using DataPump [ID 855268.1]

  • Full database import and export

    Hi,
    i performed full database export and want to perform full import please suggest me how to perform full import..

    Oracle will change the data to the db characterset on import. This can be good or bad depending on what you have and what you want. So, what do you have and what do you want? Don't forget to check logs you should be keeping with these utilities. Edit: original exp/imp states the characterset in a log, expdp I guess you need to look at the 3rd line in the dump file. Don't edit dump files, if you are on unix you can use the strings command. It would help if you told us the exact version, patch set and platform you are on.
    Also, see the [url http://docs.oracle.com/cd/E11882_01/server.112/e10729/toc.htm]Globalization Guide.
    Edited by: jgarry on Apr 25, 2012 3:37 PM

  • Export/import to clone database -- please advise

    Hi All,
    Need help especially from exports that are strong in export/import.
    can someone advise me how to use export/import to clone a database?
    I know how to clone database using cold backup and hot backup.
    But wish to know the full steps in using export/import to do cloning.
    I'm going to do a full export on my "TEST" database, drop the database, create a database and import using the full export.
    After doing a full database export, full=y. What are the steps to follow. Have a few doubts about it.
    1) export the database (full=y)
    2) drop the database
    3) re-create the database, will be using the same name "TEST".
    4) create the users (IDs created by DBA, eg: schemas), tablespace and datafiles. --> import doesn't do it right?
    5) do a full import (full=y). In this step, will i encounter any problems? As in understand that all the oracle-owned objects (example SYSTEM, SYS, AUX) are already in the newly created database, will import full=y cause any problems?
    6) do i have to re-create the roles, SYNONYMS and grant role,sys,obj privileges to IDs not created by oracle. (example schema owner)
    in short i would like to know what EXPORT will export and not export
    what IMPORT will import and not import.
    Please advise.

    Hi zetabouy,
    thanks for ur input, definately helpful for me.
    just to confirm. am i right to say that only a full database level (full=y) export/import will export/import out roles as well as public synonyms? because i have tried also exporting a user from the database, and imported that user into a different database, but public synonyms and roles were not imported.
    one more question:
    For example we are going to do port data from production to uat database using export and import for only the schema.
    After exporting from production with such syntax (owner=OWNER01),
    is is better to drop all objects beloging to the schema owner in UAT before importing it (touser=OWNER01, ignore=y) using the production dumpfile?
    I'm asking this question as I'm afraid that if we did not drop all the pl/sql objects in UAT database, the updated procedures/fuctions/triggers exported from the production database will not get imported to the UAT database as UAT database have the same procedures/fuctions/triggers names (but not updated code) .
    will profiles be exported and imported too duing full database level exp/imp?
    please kindly advise.
    thanks
    Message was edited by:
    chew

Maybe you are looking for