Import database using 10g imp utility.

Hi,
I have database on my local drive that is kind of old. I need to replace it with the one from the server.
I created oesexport.dmp file using the following command:
exp ledger/xxxxxx FILE='oesexport.dmp' OWNER=LEDGER
oesexport.dmp file contains everything that belongs to LEDGER : tables, sequences, views, etc.
Now I need to import database to my local drive. If I use the following statement:
imp ledger/xxxxxx file=oesexport.dmp fromuser=ledger
the procedure will not replace tables, sequences, views with the new ones from the server with the same names because it will try to recreate existing tables, sequences, views, etc. in my local database and they already exist there. I will get error messages. The procedure will only add the stuff from server to my local database that does not exist on my local. Since I need to replace tables/sequences/views, etc if they exist on my local and add new stuff if does not exist on my local, HOW SHOULD I MODIFY THE IMP STATAMENT?
Thanks. Lev.

Yes, of couse, I can drop the whole ledger scema and use and the imp procedure I specified and it will work just fine, but I heard the the new 10g import utility will allow replacemet (if they exist in the database) and addition (if they do not exist in the database) of Oralce objects without dropping the objects belonging to the user.
Therefore my qustion was how should I change my IMP procedure to make it work.
Lev.

Similar Messages

  • Import database using 10g imp utility - need your advice.

    I created export.dmp file on the database server that contains all schema objects (tables, indexes, views, etc.) and successfully moved it from the server to my laptop using telnet and ftp.
    Now I want to use this file to import ALL objects into my local database on the laptop where some objects that belong to the same schema already exist. I need to drops and recreate all objects in schema in my local database (tables, indexes, views, etc.) if they already exist before loading and add new objects to the schema if they do not exist in my local database.
    How will IMP statement that does all this look like?
    Thanks.

    Thanks!
    But could you be more specific about expdp and impdp statements that
    will give me what I need? And I need to drops and recreate all objects in schema in my local database (tables, indexes, views, etc.) if they already exist before loading and add new objects to the schema if they do not exist in my local database.

  • Can I use 10g datapump utility expdp to export an 8i database?

    Hi,
    Can I use 10g datapump utility "expdp" to export an 8i database objects? The reason I'm asking this is because I would like to use 10g impdp utility to import the dumps to 10g.
    Thanks in advance,
    Raj

    No, you can't use 10g datapump utility "expdp" to export an 8i database objects.
    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, 10.0.0). In Oracle Database 10g, 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.

  • Unable to import database using impdp via network_link

    Dear All,
    I am trying to import database from remote location's dump to my local database after creating dblink from local db to remote db.
    At Remote Server:
    - Directory created and granted the privileges. Dir Name: PREMLIVE_EXPDP
    At Local server:
    Username: expuser with dba, imp and exp full database privileges.
    DB Link name: to_premiatest14
    I faced an error of directory invalid when I run the below command in local server to import schema from remote database.
    C:\>impdp expuser/expuser network_link=to_premiatest14 directory=PREMLIVE_EXPDP remap_schema=PREMIATEST:PREMIATEST15 logfile=2013-09-02_premiatest15.log
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit
    Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORA-39002: invalid operation
    ORA-39070: Unable to open the log file.
    ORA-39087: directory name PREMLIVE_EXPDP is invalid
    Any help or advice's would be really highly appreciated.
    Regards,
    Syed

    Some more details follows.
    Server 1: Remote Server
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    CORE    10.2.0.5.0      Production
    TNS for 64-bit Windows: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - Production
    TNS-Entry:
    PREMIATEST14=
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = XX.XX.XX.14)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = malath)
    DIRECTORY:
    PREMLIVE_EXPDP AS
    'C:\Dump\PREMLIVE_EXPDP'; ---->>>> This location/directory holds the dump file.
    Server 2: Local Server
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    CORE    10.2.0.5.0      Production
    TNS for 64-bit Windows: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - Production
    TNS-Entry:
    PREMIATEST15=
      (DESCRIPTION=
        (ADDRESS=
          (PROTOCOL=TCP)
          (HOST=XX.XX.XX.15)
          (PORT=1521)
        (CONNECT_DATA=
          (SERVICE_NAME=PREMIA15)
    PREMIATEST14 =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = XX.XX.XX.14)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = malath)
    Network/DBLink:
    CREATE PUBLIC DATABASE LINK TO_PREMIATEST14 CONNECT TO EXPUSER IDENTIFIED BY <PWD> USING 'PREMIATEST14';
    DBLink tested :
    SQL> select count(*) from premiatest.brkdivion@to_premiatest14;
      COUNT(*)
            94
    Error on importing:
    C:\>impdp expuser/expuser network_link=to_premiatest14 directory=PREMLIVE_EXPDP
    remap_schema=PREMIATEST:PREMIATEST15 logfile=2013-09-02_premiatest15.log
    Import: Release 10.2.0.5.0 - 64bit Production on Tuesday, 03 September, 2013 1:2
    3:10
    Copyright (c) 2003, 2007, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit
    Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORA-39002: invalid operation
    ORA-39070: Unable to open the log file.
    ORA-39087: directory name PREMLIVE_EXPDP is invalid
    I don't know where am i going wrong . Valuable advice's/assistance will be highly appreciated.
    Thanks & Regards,
    Syed

  • Import database using enterprise manager

    Hello,
    I am trying to import a database using enterprise manager. I've finished the installation of 10g and i need to import a database that is in a different server.
    The Oracle Enterprise Manager window, has a tab 'maintenance' that allows me to import from another database.
    The problem is that at some point the wizard ask's me for the user credentials (user and password), and i don't no who is the user, is it refering to the others server's credentials or is it referring to the database credentials?
    Can You help me, please?
    Is there some tutorial for this?
    Thank you,
    Sara.

    I don't know of a tutorial, sorry. This forum is about Globalization Support (e.g. national language support features) so it is really the wrong place for EM Grid/Database Control questions. I suggest your try here instead:
    Enterprise Manager

  • Import Database Oracle 10g

    Hello.
    i am new in Oracle...
    i have database file which i have to import in oracle 10g. please tell me step wise, i will be thankful to you.
    Thanks.
    Regards.

    Hi,
    Consider the documentation for Oracle 10g:
    http://www.oracle.com/pls/db102/homepage
    Also please post Oracle source and destination version. Whether regular export/import or datapump is used ?
    Regards,
    Sve

  • Creating a new Oracle Database using 10G Grid Control

    Hi
    Is it possible to create a new database using the 10g Grid COntrol.

    The way to create a database with EM, is by using Provisioning procedures. For instance with the Oracle Clusterware / RAC Provisioning For UNIX, you can provisioning Clusterware, ASM + ASM instance creation and DB Software. Then by provisoning you would create a database. There are also procedures to extend a cluster.
    So, provisoning is the way to go!
    Regards
    Rob

  • Import database using impdp

    Hello,
    I wanna import a database using impdp. Can i import while i'm logged with system/<password> ? On which database should i be logged? I have a single database, 'orcl'
    Thanks

    I wanna import a database using impdp.
    Can i import while i'm logged with system/<password> ?
    On which database should i be logged? I have a single database, 'orcl'You don't have to login to any database to perform the import using datapump import.
    You just have to set the oracle database environment where you want to import into.
    suppose, you have an export dump generated already,using datapump export(expdp) and if you want to import into orcl database,
    set the oracle environment to orcl
    You have to have the directory object created with read,write access to the user performing export/import(expdp or impdp)
    use impdp help=y at the command line to see the list of available options.
    http://download.oracle.com/docs/cd/B13789_01/server.101/b10825/dp_import.htm
    -Anantha

  • Importing outline using the load utility

    Hi all,
    I have extracted my outline using the EPMA file generator and the file is a csv file. I'm trying to load it using the load utility and I'm getting this error
    "Unable to obtain dimension information and or perform a data load: Unrecognized column header values"
    First row in the excell sheet: !Hierarchies=Account
    Second Row: Parent, Child, Data storage......
    Do I need to change this header...?

    Which utility are you trying to load it with? If it is EPMA then you should look at using the EPMA batch client - http://download.oracle.com/docs/cd/E12825_01/epm.111/epma_batch_user/launch.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to monitor various databases using 10g OEM

    I have Oracle 9i and Oracle 10g Databases. How can I configure Oracle 10g OEM to monitor all these databases. In Oracle 9i OEM it was easy. But I didn't find the method to add it in 10g OEM? Can we access the 10g OEM only through browser?
    Regards

    If you are installing Database and you choose to use Database Control, it is a different thing from Grid Control. Database Control comes with its one agent which is different from Grid Control's management agent.
    If you install a database on different host and you do not have Grid control, you can use the database control for that database for that host. If you have grid control, then you can install the Management Agent separately on that new host to manage the new database as a Grid Control target.

  • Updating a database using XML SQL Utility

    Hi all,
    It seems that the Oracle XML SQL Utility provides only to insert rows into a table/view. However, if one wants to update a table from an XML no support is available.
    How does one proceed if this is to be achieved?
    Thanks in advance.
    Regards,
    Manoj
    null

    While inserting i get a
    oracle.xml.sql.OracleXMLSQLException and further a
    NumberFormatException. Which parameter do I have to set to avoid
    these Exceptions. I can insert the file in my local db but I get
    the Exception on the server db. The value I want to insert for
    expample is 30,1. Maybe the JDBC-Driver tries to convert the String ;30,1+ to an
    Integer-Object. This will cause the described Exception since
    the Integer-Class requires ;.+ instead of ;,+ for decimal point.
    I have another problem generating an xmlfile when there
    are "Umlaute" in the data. E.g. V and \. Exchanging these to Oe
    and Ue than it works fine.Use ISO-8859-1 character set to work with umlauts, e.g.:
    <?xml version = '1.0' encoding = 'ISO-8859-1'?>
    .. but you can use the default UTF-8 encoding too, umlauts will
    be replaced by equivalents as ;C&#376;+
    Alex

  • I can not make Access repair database using built-in utility?

    Access 2013 reports that the file is not a database, and the data in the file are displayed via NotePad. Function "Database Utilities | Compact and Repair Database" does not work.

    The default SID for Oracle XE databases is:
    XE
    David Rolfe

  • Refresh using exp/imp

    Hi All,
    I need to refresh one of my development database using exp/imp utility,i did refreshing using the copy datafiles but new to this ,i have gone thru this forum and did some search on google too but the part that am not getting is suppose my development db already created with same tablespaces name and size and containes every schema as that of source and has data in it which is refreshed earlier, so do i need to wipe out everything and do it right from scratch(create db,tablespace,users) or just wipe out tables and import with (ignore=Y) .Any feedback would be apperciated.
    Thanks

    <p class="MsoNormal">Hi,</p>
    <p class="MsoNormal"> </p>
    <p class="MsoNormal">>> do i need to wipe out everything and do it right from
    scratch(create db,tablespace,users)</p>
    <p class="MsoNormal"> </p>
    <p class="MsoNormal">Well you have choices, and you can do whatever you want,
    but there are some “best practices”.  I’m assuming that you are copying your
    PROD database into DEV (a great practice to have a full-sized production system
    the TEST and DEV):</p>
    <p class="MsoNormal"> </p>
    <p class="MsoNormal">- You can restore PROD into TEST using RMAN.</p>
    <p class="MsoNormal"> </p>
    <p class="MsoNormal">- You can use the
    <a style="color: blue; text-decoration: underline; text-underline: single" href="http://download-east.oracle.com/docs/html/B16227_02/oui7_cloning.htm">
    Oracle Universal Installer</a> to clone a database.</p>
    <p class="MsoNormal"> </p>
    <p class="MsoNormal">- You can “<a style="color: blue; text-decoration: underline; text-underline: single" href="oracle_tips_db_copy.htm">clone
    the whole database</a>”, moving the current datafiles and recreating the
    instance</p>
    <p class="MsoNormal"> </p>
    <p class="MsoNormal">- You can export from PROD, truncate the tables in DEV
    (after a backup) and import IGNORE=Y.  This can be very slow, especially for a
    large database.  However, there are some
    <a style="color: blue; text-decoration: underline; text-underline: single" href="http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:1240595435323">
    tips to speed-up imports</a>.</p>
    <p class="MsoNormal"> </p>
    <p class="MsoNormal">Check the
    <a style="color: blue; text-decoration: underline; text-underline: single" href="http://search.oracle.com/">
    Oracle docs</a>.  Also, Dave Moore has a book on
    <a style="color: blue; text-decoration: underline; text-underline: single" href="http://www.amazon.com/Oracle-Utilities-Programs-Oradebug-Dbverify/dp/0972751351">
    Oracle Utilities</a> that you might like.</p>
    Hope this helps . . . .
    Don Burleson
    <p>
    www.dba-oracle.com

  • Using Imp utility to Import a database on 10g release 2

    I am using the Imp Utility on 10g release 2 to import from a 10g release 1 database. I have created a new tablesapce and need the dmp to be imported to the new tablespace. But it goes and imports to the system tablespace. The command i use is
    imp <User name>/<password> file=<file_name> log =<log name> full=Yes
    the user name and password i use is the username and password i gave in the installation for system tables. When i specify the tablespace imp <User name>/<password>@<tablespace> it comes with "ORACLE error 12154 encountered".
    Do i need to create a new user to get the import done. How do i create it?

    The contents of the dump will be imported to the tablespace under which you run the import.
    If your dump from Oracle 10G R1 is a complete database dump and you need to import the data of a specific user in the dump, then you can use fromuser= touser= options in the import command.
    If your Oracle 10GR2 database is blank, then you need to create the user in which you can import the data. You can use a command like this.
    CREATE USER sidney
    IDENTIFIED BY out_standing1
    DEFAULT TABLESPACE example
    QUOTA 10M ON example
    TEMPORARY TABLESPACE temp;
    Note: sidnye, out_standing1, example, temp are all arbitrary names. You need to match these with your environment.

  • ORA-01435: user does not exist when using imp utility

    I installed Oracle 8.1.7.0.0 successfully on WINDOWS 2000 and created a database TEST using DBCA. Then I used a script to creat a tablespace and a user in TEST databse. I could use the imp utility to import the data (a dmp file) to the TEST database without any problem. But after I applied a patch to bring up the version to Oracle 8.1.7.4.1, I got the following error when I tried to use the imp utility again to import the data (a dmp file) to the TEST database.
    IMP-00003: ORACLE error 1435 encountered
    ORA-01435: user does not exist
    IMP-00000: Import terminated unsuccessfully
    I checked that I created the same user test (as it is in dmp file I wanted to import) on TEST, and I could login to TEST using:
    sqlplus test/test@TEST
    The command I used is:
    imp system/password@TEST file=test.dmp full=y log=importTEST.TEST.tmp
    I also tried to use the following command:
    imp system/password@TEST file=test.dmp fromuser=test touser=test log=importTEST.TEST.tmp
    and got the same error as before.
    Anyone has any clues what could go wrong? The only difference for me to import the data on TEST is that the
    previous successful import was done in Oracle 8.1.7.0.0.
    Is it possible that I missed something during the applying of the patch 8.1.7.4.1?
    Thanks, and your help is greatly appreciated.
    Jane

    Ther is a set of instruction to be followed after installing the patch set 8.1.7.4.1 after running it thru OUI.They are as follows. Please complete these steps and u should not have problems any more.
    When applying this patchset on Windows NT and Windows 2000, you must log onto the system as a user with Administrative privileges (e.g., as a user which is a member of the local Administrators group).
    1.Disabling system triggers.
    Before performing the next step, you must first set SYSTEMTRIG_ENABLED = FALSE in the initialization parameter file. To do this add the following line to your init<sid>.ora file and restart the database (see Note 149948.1 in Metalink for more information on this issue).
    systemtrig_enabled=false
    2.Invoke SQL*Plus (sqlplus), connect as internal and run the following:
    select * from duc$ where PACK='JIS$INTERCEPTOR$' ;
    If no rows were returned go to the next step. If a row was returned delete it using the following:
    delete from duc$ where PACK='JIS$INTERCEPTOR$' ;
    commit;
    3.Invoke SQL*Plus (sqlplus), connect as internal and run the following SQL scripts with event 10520 set. NOTE: This event is not intended for regular database operation and when turned on below by the 'ALTER SESSION' command will automatically be turned off by the subsequent 'CONNECT' command.
    ALTER SESSION SET EVENTS '10520 TRACE NAME CONTEXT FOREVER, LEVEL 10';
    ?/rdbms/admin/catalog.sql
    ?/rdbms/admin/catproc.sql
    ?/rdbms/admin/catrep.sql (This only needs to be run if you are using symmetric/advanced replication. This is not necessary for sites using dblinks and read-only snapshots if symmetric/advanced replication is not installed)
    CONNECT / AS SYSDBA;
    update obj$ set status=5 where type#=29 and owner#!=0;
    commit;
    4.You can ignore this step if you have already executed it as part of a previous 8.1.7 patch set install.
    If Java has previously been loaded into the database, invoke SQL*Plus (sqlplus), connect as internal and run the following SQL DDL command(* Note:If Java has not previously been loaded into the database, skip this step).:
    SQL> create or replace java system
    2 /
    (Note that the / (slash) is important to ensure the execution of the command).
    To ensure the correct installation of the XDK in the database run the following 2 scripts (Bug 2115227):
    $ORACLE_HOME/oracore/admin/initxml.sql
    $ORACLE_HOME/rdbms/admin/catxsu.sql
    * To determine whether Java has previously been loaded into the database:
    invoke SQL*Plus (sqlplus), connect as internal and run the following:
    SQL> select count(*) from all_objects where object_type like 'JAVA%';
    Java is installed if you get a non zero result returned from the query.
    5.You can ignore this step if you have already executed it as part of a previous 8.1.7 patch set install:
    If Java has previously been loaded into the database, invoke SQL*Plus (sqlplus), connect as internal and run the following scripts which are located in $ORACLE_HOME/javavm/install ( Note: If Java has not previously been loaded into the database, you can skip this step):
    load_jis.sql
    jisja.sql
    initjsp.sql
    jspja.sql
    Notes:
    When running the $ORACLE_HOME/javavm/install/jisja.sql script the following error may be reported and can be ignored:
    call jis_exit_java_session(0)
    ERROR at line 1:
    ORA-29515: exit called from Java code with status 0
    Bug 1459233 was filed against this problem which is fixed in 9i.
    6.If you deleted a row from duc$ in step 8 then reinsert it again. Invoke SQL*Plus (sqlplus), connect as internal and run the following SQL:
    insert into duc$ (OWNER, PACK, PROC, FIELD1, OPERATION#, SEQ) values ('SYS', 'JIS$INTERCEPTOR$', 'USER_DROPPED', 0, 1, 1);
    commit;
    7.Enabling system triggers.
    You must either remove SYSTEMTRIG_ENABLED from the initialization parameter file or explicitly set it to TRUE before attempting any other patch set post-install steps. Restart the database.
    8.This step is optional - it will recompile all invalid PL/SQL packages now rather than when accessed for the first time - you can also use utlrcmp.sql to parallelize this. Invoke SQL*Plus (sqlplus), connect as internal and run the following SQL script:
    ?/rdbms/admin/utlrp.sql
    9.Execute the following steps only if you have installed Oracle interMedia Text in the database you are attempting to modify:
    If you have not previously unlocked the ctxsys account and supplied a password for that account, you need to do so. (If you have needed to use Oracle Text in any way prior to applying the patchset, you will have already performed this step, and you can skip this.) Do so by issuing the following statement:
    ALTER USER ctxsys IDENTIFIED BY <passwd> ACCOUNT UNLOCK;
    If you have already installed 8.1.7.2 or 8.1.7.3, go directly to step 7 below.
    If you have already installed 8.1.7.1, go directly to step 5 below.
    CONNECT ctxsys/<passwd>;
    @?/ctx/admin/upgrade/u0801071.sql
    CONNECT ctxsys/<passwd>;
    @?/ctx/admin/upgrade/u0801072.sql
    CONNECT / AS SYSDBA;
    @?/ctx/admin/upgrade/s0801074.sql
    CONNECT ctxsys/<passwd>
    @?/ctx/admin/dr0pkh.sql
    @?/ctx/admin/dr0plb.sql
    @?/ctx/admin/dr0type.plb
    @?/ctx/admin/dr0typec.plb
    9.You can ignore this step if you have already executed it as part of a previous 8.1.7 patch set install:
    The installation of this patch set fixes a potential security hole in the XSQL Servlet - see here for more detail. The patchset installation does not, however, modify any of the Oracle HTTP Server configuration files to reflect changes to the XSQL Servlet installation. If you have previously installed the Oracle HTTP Server, you will need to update one of the configuration files manually after the patchset installation is complete. If you do not do so, the XSQL Servlet may not work in the context of the Oracle HTTP Server after the patchset is installed. To update your Oracle HTTP Server configuration, perform the following steps:
    1) Edit the file: $ORACLE_HOME/Apache/Jserv/conf/jserv.properties
    2) Search for the string: "XSQLConfig.xml File location"
    3) Modify the parameter wrapper.classpath on the line immediately following the above string to read: $ORACLE_HOME/oracore/admin
    4) Save the file.
    10.You can ignore this step if you have already executed it as part of a previous 8.1.7 patch set install:
    The installation of this patch set fixes a potential security hole in the PL/SQL XML parser - see here for more detail. To load the new XML parser in to the database, run the following script as user SYS:
    ? /xdk/plsql/parser/bin/load.sql
    11.If you are using the RMAN catalog then upgrade it as follows:
    rman catalog <user/passwd@alias>
    upgrade catalog;
    upgrade catalog;
    The post install actions are now complete and the database is now ready for use.

Maybe you are looking for

  • Kernel Power error after Win 7 and RAM upgrade

    Hello, I posted earlier on the subject of win7 and ram upgrades.  I did both and it seemed to go fine.  I did the ram first ... replaced a 667Mhz 1gb with a 800Mhz 2gb.  A couple of days later the computer just shut itself down and restarted.  Since

  • Reporting point backflush and milestone confirmation

    hello pp experts,                        if we have the option of milestone confirmation then why do we use reporting point backflush, actually what's the difference between them?

  • NullPointerException at synchronizeSceneNodes, why?

    I run my program, in some cases, there will be the following error. I was unable to locate my program error, seems to be the background FX process error, how is this trigger? java.lang.NullPointerException at javafx.scene.Scene$ScenePulseListener.syn

  • Upgrade Destroyed iTunes

    I upgraded to 7.0, and it first duplicated every single song in my library. I went to delete the duplicates (I deleted every song with a play count of 0) and now it can't find any of the music. When I select a song, I need to navigate to find the spe

  • Dashboard Reports in B1

    Hi All,        My client is asking dashboard reports, they need it in all the project managers desktop. The report should be in flash technology.        Please help me anyone...