Importing 9i schema to 10g database

Hi,
We have schema export dump from 9i database and now i want to import into 10g database.
May i know what is the proper method to do so.
What all things are required to taken care of.
I know we can only use "imp" to import.
Please let me know..
Regards,
Milan

MILAN RATHOD wrote:
Hi,
We have schema export dump from 9i database and now i want to import into 10g database.
May i know what is the proper method to do so.
What all things are required to taken care of.
I know we can only use "imp" to import.
Please let me know..
Regards,
MilanIf you'll import only one schema, you could just start importing and then fix the errors (even drop back the schema and re-import).
Anyway, this document is more than enough:
http://www.orafaq.com/wiki/Import_Export_FAQ
Just a suggestion: use BUFFER parameter while importing:
imp BUFFER=10000000 ....
Regards
Gokhan

Similar Messages

  • FK DELETE RULE problem when importing 8i SCHEMA on 10g

    Hi everyone,
    I´m having the following problem:
    When importing a SCHEMA dump from an 8i database to a 10g one, some foreign key´s delete rule are changed from 'no action' to 'set null' automatically, even though the whole SCHEMA was imported.
    Has anyone ever had the same problem?
    Thanks a lot,
    Bruno

    I did some more research and I think I was completely misunderstanding Oracle's implementation of delete rules. Now I believe that Oracle implements the "RESTRICT" option in SQL Developer Data Modeler as "No Action", which is the default option, hence why no DDL option is generated. However, it would still be nice if Data Modeler could detect this fact when comparing two models. What I mean it, if comparing an Oracle DB to a model, treat Restrict and No Action as the same, and thus don't attempt to re-generate the DDL for this "difference". For now, I'll just change the action on my models to No Action, and this should resolve the issue.

  • Where is HR schema in 10g Database?

    Dear all!
    When I completed installation of Oracle Database 10g successfully, I found that the HR schema did not exist in Database. I tried to find that by logging in Sys schema to check it one again:
    SQL> Select username, account_status From dba_users;
    However, I did not find HR schema in my Database. Put the original installation CD in CD-ROM, I tried to check if it was not setup, but I could not.
    Why do I find it and how do I setup additionally the HR schema?
    Thank a lot!

    Thank you all, especially "burleson". According to your guide web site, I found that some script (hr_cre.sql) need to run to create samples schema. However, this is first time I started with DB 10g but I often used Oracle 9i before, so that, I did not find where are these scripts? Are there in Oracle CD-Rom or in somewhere, not in Oracle\OraHome\Admin\Database?
    Thank you very much!

  • Can not Import *.dmp file in 10g Database

    I have successful to install 10gDB and 10gDS to my home computer. But when i try to import *.dmp file to my Repository Object Navigator.
    Would you mind help me to take a look.
    Error Message
    RME-02105 Oracle error occurred...
    ORA-01986: OPTIMIZER_GOAL is obsolete
    Cause: An unhandled oracle error has occurred.
    Action: Examine reported errors for specific detail.

    Ken,
    This issue has been reported with Designer releases prior to 9.0.4.4 against 10g database. Please upgrade to the latest Designer release 9.0.4.5 (available on OTN) and the import should work correctly.
    - Suresh

  • Not able to connect to APPS schema in 10g database after upgradation

    We have upgraded our database from 9.2.0.6 to 10.2.0.1(E-Business suite database).We have upgraded our database using dbua and it was succesful(No invalid objects are there in the databe).Now we are trying to connect using apps username but it is not recognising the username.How do we link the old database schema with new database?

    Hi,
    Could you please elaborate "You should make sure that all referenced in the context files point to the new ORACLE_HOME and that AutoConfig complete successfully".This is covered in the same upgrade document (See "Step 26. Implement and run AutoConfig" for details).
    I think you are referring the context file to xml file which contains parameters like "s_dbdomain". I think mistake lies at this point.Not only this variable, I am referring to any variable which points to the old 9i ORACLE_HOME. But, again this makes no sense if you cannot find the APPS schema in the upgraded database!
    Regards,
    Hussein

  • Import sys schema

    hi
    im using oracle 9i on windows ...i export the sys schema....
    i want to import to another database..
    my queston is that before import to another database...can we create user or tablespace of old database. in new database....

    robinkhan wrote:
    hi
    im using oracle 9i on windows ...i export the sys schema....
    i want to import to another database..
    my queston is that before import to another database...can we create user or tablespace of old database. in new database....And why do you want to import SYS schema to another database? You cann't do it. DON'T try to do it. Or you'll corrupt your database! SYS schema containts all information about your database so DON'T play with it!

  • Importing a few Oracle 10g schemas into oracle 11g database

    Hi,
    I have the task to import a few schemas that are on oracle 10g database (10.2.0.4) into oracle 11gR2 database (11.2.0.2). Now I have only oracle 10g export and import utility (the 11g server is in not where I am given the import rights).
    Can I do the export of the 10g schemas using the 10g export utility and then import into 11g database using the 10g import utility? I ran a test to do that and found it works but would also like to have expert opinion on it.
    Also another question is: if the source schema is 11g - suppose- in that case can the 10g export/import utility still work? I mean export the schema from say db1 (which is 11g) using 10g export utility and import them into 11g database db2 (which is again 11g) using 10g import? I am asking because I don't have access to 11g server and trying to find what I can do with the 10g utilities.
    Thanks,

    set up a database link to the 10gR2 version database in the 11gR2 database.
    Now using the 11gR2 client impdp utility use
    impdp network_link=<link to 10gR2 database>
    Done.
    Your 'objection' you don't have access to 11gR2 doesn't count as you can install a 11gR2 client.
    Also generally speaking you should not use a lower version imp to imp to a higher version database
    Also exp and imp are deprecated in 10g and higher.
    Sybrand Bakker
    Senior Oracle DBA

  • How to import Oracle 8i database objects into an Oracle 10g database ?

    Hi all,
    We plan to use Oracle 10g , but untill now we use Oracle 8i 8.1.7.4.1 .
    I want to know how to import all of our Oracle 8i objects stuff to the new Oracle 10g database ; and should I create tablespaces or can I import simply the Oracle 8i tablespaces.
    Thank you very much indeed

    If you use 1 database schema for your application , export the schema only
    for example
    export NLS_LANG env before
    export hr/hr file=hr.dmp log=hr.dmp
    On 10g
    ======
    create the user,tablespaces etc
    import the user
    run the utlrp.sql
    you are ready
    export NLS_LANG env before
    import system/password file=hr.dmp log=hr.dmp fromuser=hr touser=hr

  • How to export a user and their schema from one 10g database to another?

    Hi,
    I would like to export a user and their entire schema from one 10g database to another one. How do I do this?
    thx
    adam

    If you want to export a user and the schema owned to the user, and import to the same user in a different database, or a different user in the same database, you can use the exp and imp commands as described in the Utilities manual.
    These commands are very versatile and have a lot of options - well worth learning properly. To give you a simplistic shortcut, see below - I create a user 'test_move', create some objects in the schema, export, create a new user in the database 'new_move' and import.
    oracle@fuzzy:~> sqlplus system/?????
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Mar 11 21:46:54 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> create user test_move identified by test_move;
    User created.
    SQL> grant create session, resource to test_move;
    Grant succeeded.
    SQL> connect test_move/test_move
    Connected.
    SQL> create table test (x number);
    Table created.
    SQL> insert into test values (1);
    1 row created.
    SQL> exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    oracle@fuzzy:~> exp system/????? file=exp.dmp owner=test_move
    Export: Release 10.2.0.1.0 - Production on Sat Mar 11 21:48:34 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Export done in AL32UTF8 character set and AL16UTF16 NCHAR character set
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user TEST_MOVE
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user TEST_MOVE
    About to export TEST_MOVE's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    . about to export TEST_MOVE's tables via Conventional Path ...
    . . exporting table                           TEST          1 rows exported
    . 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 without warnings.
    oracle@fuzzy:~> sqlplus system/?????
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Mar 11 21:49:23 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> create user new_move identified by new_move;
    User created.
    SQL> grant create session, resource to new_move;
    Grant succeeded.
    SQL> exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    oracle@fuzzy:~> imp system/????? file=exp.dmp fromuser=test_move touser=new_move
    Import: Release 10.2.0.1.0 - Production on Sat Mar 11 21:50:12 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Export file created by EXPORT:V10.02.01 via conventional path
    import done in AL32UTF8 character set and AL16UTF16 NCHAR character set
    . importing TEST_MOVE's objects into NEW_MOVE
    . . importing table                         "TEST"          1 rows imported
    Import terminated successfully without warnings.
    oracle@fuzzy:~>                                                       If moving between databases, remember to set the SID properly before the import. If keeping the same userid, skip the from/to stuff in the import.
    There are many variations on the theme ...
    You can simplify this. You can select tables individually. You can use a parameter file. You can transport all the constraints and data. You can skip the data and only move the definitions. You can get some help (imp/exp help=yes).
    And, if it's all 10g, there is a new and improved facility called expdp/impdp (dp = data pump) which has a lot more capability as well, including direct transfer (no intermediate file) together with suspend/restart. Also documented in the Utilities manual.

  • Export and import Oracle 10G database

    Hello all
    Can anyone tell me once for all how can i backup oracle 10G database and restore it in other computer (export and import)
    thanks alot
    Ron

    Do you can access to metalink?
    If not, I copy an paste this doc's....
    Doc ID: Note:10767.1
    Subject: How to perform FULL System Export/Imports
    Type: BULLETIN
    Status: PUBLISHED
    Content Type: TEXT/X-HTML
    Creation Date: 18-APR-1994
    Last Revision Date: 30-AUG-2002
    Purpose
    This article highlights some important points to consider when performing
    a Full System Export and Import.
    Scope and Application
    It is intended to assist users performing FULL System Exports and Imports.
    A Full System Export and Import is a useful way to replicate or clean up
    a database. Please note the following guidelines when performing a Full
    System Export and Import:
    1. When performing the import, ensure you are pointing at the correct
    instance. Always check values for the SID and two task driver before
    proceeding.
    *Note:   On Unix systems, just entering a sub-shell, such as using
    C-shell, can change the database that the import would work
    against.
    2. When possible, it is advisable to take a physical copy of the
    exported database and the database you intend to import into before
    starting the import. This ensures any mistakes are reversible.
    3. NEVER run a FULL SYSTEM IMPORT on a machine that has more than one
    database UNLESS you are 100% sure all tablespaces have been
    pre-created. A full import will create any undefined tablespaces
    using the same datafile names as the exported database. There are
    situations where this is very dangerous:
    -> If the datafiles belong to ANY other database, they will be
    CORRUPTED. This is especially true if the exported database is
    on the same machine, because its datafiles will be re-used by
    the database you are importing into.
    -> If the datafiles have names that clash with existing operating
    system files.
    4. When exporting, it is advisable to also produce a report showing
    information you may need before / after the import:
    -> List the tablespaces and datafiles
    -> List the rollback segments
    -> List a count, by user, of each object type such as tables,
    indexes, etc.
    This enables you to ensure that tablespaces have been pre-created
    and to check the success of the import after it is complete.
    5. If you are creating a completely new database from an export, remember
    to create an extra rollback segment in SYSTEM, and make this available
    in the init.ora file before proceeding with the import.
    6. There are some versions of export that do not retain sequence numbers
    correctly. It is advisable to select next_value for each sequence
    after the export so that these can be checked after import.
    Following these guidelines will help you to avoid major problems.
    Doc ID: Note:174226.1
    Subject: How To Copy an Oracle Database To Another Machine
    Type: HOWTO
    Status: PUBLISHED
    Content Type: TEXT/X-HTML
    Creation Date: 12-OCT-2001
    Last Revision Date: 01-OCT-2003
    goal: How to copy an Oracle database to another machine
    fact: Oracle Server - Enterprise Edition
    fix:
    Pre-requisites: The copy is between 2 machines, both have to be on the same OS
    and have to have exactly the same database version installed.
    1. Make sure the database you want to copy was closed with a SHUTDOWN IMMEDIATE,
    SHUTDOWN NORMAL or SHUTDOWN TRANSACTIONAL.
    2. Copy init.ora and control files to create instance and be able to go in
    mount mode. Check the init.ora for the locations where the controlfiles have
    to be, if those locations are not valid on the machine put the control files on
    different places and adjust the init.ora accordingly.
    3.a. Copy the datafiles (all of them).
    b. Copy the redo-logfiles (all of them).
    4.a. (Unix only) Set the environment variables:
    ORACLE_SID - set to the database name you wish to create
    ORACLE_HOME - set to full pathname of the Oracle system home directory
    PATH - needs to include $ORACLE_HOME/bin
    b. (NT/2000 only) Do 'set ORACLE_SID=<SID>'
    Use oradim to create the service for the instance. For more information
    on oradim please refer to (the part that refers to creating a new instance):
    Note:68720.1 Creating a new 7.3, 8.0, 8.1 Instance/Database
    5. Use servermanager (check the name to use for your version of oracle) or
    sqlplus (version 9i and above) to startup the database in mount mode.
    Do
    CONNECT INTERNAL/<PASSWORD>
    then
    STARTUP MOUNT
    Then do a rename of the copied datafiles if they are not in the same path as on
    the other machine. For all the files that are in the result of the query:
    SELECT NAME FROM V$DATAFILE;
    do
    ALTER DATABASE RENAME FILE '<oldfullpath>\<filename>' to <
    newfullpath>\<filename>';
    6. Query the datadictionary for the old location of the redolog files using:
    SELECT MEMBER FROM V$LOGFILE;
    If the new place is not the same as the old do:
    ALTER DATABASE RENAME FILE '<oldfullpath>\<redologfilename>' to &
    lt;newfullpath>\<redologfilename>';
    7. Now open the database:
    ALTER DATBASE OPEN;
    ******************************************************************

  • Export and Import are not supported on 10g databases for users logged

    Hi
    I having the below written error, when i want to export or import my database. I having Standalone system using windows xp.
    Role Error - Export and Import are not supported on 10g databases for users logged in with the SYSDBA role. Logout and login using a different role before trying again.

    Actually i ma new to EM...
    When I want to Import any thing He is asking abt the HOST CREDENTIALS
    I can't undrstatnd wht he is asking????
    Host Credentials
    * Username          
    * Password          
              Save as Preferred Credential
    It Genrate the below error
    Error - ERROR: Wrong password for user

  • WAY TO IMPORT DATA FROM 11G DATABASE TO 10G DATABASE?

    Hi All,
    I have a requirement to take an full export dump of an Oracle database and import it fully to a 10g database.
    I have never touched 11G until now and would like to know whether the 11G expdp will be downward
    compatible so that I can use the dump file(created by 11G expdp) to import it to 10G(using 10d impdp).
    Or if it is not possible, can you please brief me the steps I should follow here?
    Note: I have only 11G installed in this server.
    Regards
    Satish

    Oracle's Data Pump (expdp) utility has a VERSION parameter. Here is an excerpt from the documentation:
    VERSION
    Default: COMPATIBLE
    Purpose
    Specifies the version of database objects to be exported. This can be used to create a dump file set that is compatible with a previous release of Oracle Database. Note that this does not mean that Data Pump Export can be used with versions of Oracle Database prior to 10.1. Data Pump Export only works with Oracle Database 10g release 1 (10.1) or later. The VERSION parameter simply allows you to identify the version of the objects being exported.
    Syntax and Description
    VERSION={COMPATIBLE | LATEST | version_string}
    The legal values for the VERSION parameter are as follows:
        * COMPATIBLE - This is the default value. The version of the metadata corresponds to the database compatibility level. Database compatibility must be set to 9.2 or higher.
        * LATEST - The version of the metadata corresponds to the database version.
        * version_string - A specific database version (for example, 11.1.0). In Oracle Database 11g, this value cannot be lower than 9.2.
    Database objects or attributes that are incompatible with the specified version will not be exported. For example, tables containing new datatypes that are not supported in the specified version will not be exported.
    Here is a link to the documentation.
    Hope this helps!

  • Importing 9i dump file into 10g database

    Hello guys,
    i know that 9i import is incompatible with 10g datapump.I want to know how i can move the data from my production database(9i) to the new site(10g) without much hassle.
    I don't want to use upgrade because not all objects in 9i is needed in the new version of the application.I just want to export what i need from 9i to a dump file and then reimport it into 10g.
    Has imp/exp being deprecated in 10g??
    And i know i will get invalid objects,i hope recompilation would solve that.I will start the test next week.Just wanted to confirm.
    Thank you
    Charles

    I don't think Export/Import is deprecated in Oracle 10g but Datapump is mostly used in 10g.
    But if in 10g Exp/Imp is deprecated - Still you can have a Oracle 9i Client installation with Exp/Imp and then use imp and connect to a 10g database
    Thanks
    Shasik

  • Problem in importing data in oracle 10g from 9i backup

    Hi ,
    Am trying to import data in oracle 10g..but it does not importing constraints, and stop doing anything by the msg.
    About to enable constraints.....
    after this msg it does not work.
    plz help,
    Regards,
    Neha

    Hi Neha,
    You have a lot of options. I'll supose you can test first, and you're using an export file.
    First forget about the data, think in your database structure. So you can do this:
    exp userid=... file=exp_norows.dmp full=y rows=n statistics=none
    Now you have the structure of your database. Create the database, in 10g, empty, check you have all filesystem, etc. for you new datafiles. And do the import with parameter ignore=y, you'll see a lot off errors on SYSTEM schema, don't worry about it.
    Now you have the structure of you database in 10g. You can take a look in the import log file, looking for some possible errors come from your schemas. so check the objects, and check the schemas.
    Bear in mind things like CONNECT role in 9i it's different in 10g, you can't create db_links in 10g with "IDENTIFIED BY VALUES" because you'll get an ORA-00600, etc.
    Well, fix all problems on source database (9i) and repeate this procedure until you don't recieve any more errors (not a SYSTEM schema errors).
    When you have everything solved, you can try to import the data.
    I hope, this method can help you. If you have any problem do not hesitate to ask me.
    John Ospino Rivas

  • Data pump import from 11g to 10g

    I have 2 database: first is 11.2.0.2.0 and second is 10.2.0.1.0
    In 10g i created database link on 11g
    CREATE DATABASE LINK "TEST.LINK"
    CONNECT TO "monservice" IDENTIFIED BY "monservice"
    USING '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = host)(PORT = port))) (CONNECT_DATA = (SID = sid)))';
    And execute this query for test dbLink which work fine:
    select * from v$[email protected];
    After it i try to call open function:
    declare
    h number;
    begin
    h := dbms_datapump.open('IMPORT', 'TABLE', 'TEST.LINK', null, '10.2');
    end;
    and get exception: 39001. 00000 - "invalid argument value"
    if i remove 'TEST.LINK' from the arguments it works fine
    Edited by: 990594 on 26.02.2013 23:41

    Hi Richard Harrison,
    result for import from 11g to 10g:
    impdp user/pass@dburl schemas=SCHEMANAME network_link=TEST_LINK version=10.2
    Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    ORA-39001: invalid argument value
    ORA-39169: Local version of 10.2.0.1.0 cannot work with remote version of 11.2.0.2.0
    result for export from 11g to 10g:
    expdp user/pass@dburl schemas=SCHEMANAME network_link=TEST_LINK version=10.2
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing option
    ORA-39006: internal error
    ORA-39065: unexpected master process exception in DISPATCH
    ORA-04052: error occurred when looking up remote object SYS.KUPM$MCP@TEST_LINK
    ORA-00604: error occurred at recursive SQL level 3
    ORA-06544: PL/SQL: internal, error, arguments: [55916], [], [], [], [], [], [], []
    ORA-06553: PLS-801: internal error [55916]
    ORA-02063: preceding 2 lines from TEST_LINK
    ORA_39097: Data Pump job encountered unexpected error -4052

Maybe you are looking for

  • I have a word document that keeps stalling with the spinning ball sign - how can I stop this?

    Have a 2009 Macbook Air. Never given me any trouble before. But I am working on a long word document (docx) - 200 pages of text - and after 5 minutes of working on it it starts to stall and the spinning ball comes up every time I try to type or edit.

  • Developer: web inspector how do I add new css rules

    I have been using web inspector for quite some time. It was a regular part of my development workflow, however, I was surprised when the safari team totally re-vamped the tool in safari 6. You use to be able to click on the menu in the styling sectio

  • Not able to see model name in Cube Builder

    Hello, I am working on SSM 10.1, I have successfully Created Model connection CBDEFAULT and Created Link id SSM_CB_EA. When I open cube builder link, I am not able to see any Model. When I try to created a new model to in cube builder, it is not able

  • Creating User Components

    Is it possible to create a custom component or function in Flash 8 that performes a set of complex animation features but that can be hidden from the user such that they can distribute or modify that code. Example I to license a custom animation tool

  • Is it possible to remove an action log entry from a ticket?

    Hello. Is it possible to remove an actoin log entry from a ticket.  We may run into a situation when confidential data has been pasted into the action log. Thank you, Richard