Correct a way to clone a new database using EXP/IMP?

Hello

What is the right way to import into a new database?

I have an export to an existing base (say 8i) and I need this clone under a new name (lets assume on the same machine).

1 export the existing database
2. create the necessary folders / init.ora / run the db creation script / run catalog & catproc / create TS
3 import like: file system/password@newdb = full imp = xx is ignore = y

Set to 'ignore' or not? Anyway what I will meet some errors with sys / tables system; such as:

IMP-00019: line rejected due to the ORACLE 1 error
IMP-00003: ORACLE error 1
ORA-00001: unique constraint (SYSTEM. REPCAT$ _OBJECT_TYPE_PK) violated
Column 1 - 1005
Column 2 SYNCHRONOUS EDITABLE TABLE
Column 3 02
Column 4
IMP-00019: line rejected due to the ORACLE 1 error
IMP-00003: ORACLE error 1
ORA-00001: unique constraint (SYSTEM. REPCAT$ _OBJECT_TYPE_PK) violated
Column 1 - 1004
UPDATE TABLE ASYNCHRONOUS column 2
Column 3 00
Column 4

(BTW... It is a 10 DB g I imported), but I suppose that errors with sys / system would likely happen on older databases as well (for sys or system tables).

OR is it better to create new DB and import individual patterns?

Can someone shed some light on the correct way to ensure that the new clone is 100% fit?

Thank you.

Published by: user4874781 on January 29, 2009 18:20

Yes it is possible... this... once u create your new instance SUN2... Connect as sys and see what that all users, he created... system, sysman, dbnsm or all the value by defect... once u get that... just exclude these schema... .and for imp this

IMP System/pass leader is full.dmp log log.log fromuser = is user1, user2, user3,... touser = user1, user2, user3...

Tags: Database

Similar Questions

  • Clonning an ASM database on the same server with different names of sid.

    Hello people!

    I tried to clone an existing database on the same host with a different name with no luck.

    I tried what 415579,1 reccomends, but, when I reached the RESTORE CONTROLFILE from clause that it fails since this process the old and the new database must be the same. I don't want that. I want a separate copy, not a database of pending. There are other people in the company who will use this database, and I just want to replicate it.

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure to modify the order db at 26/05/2009 14:51:15
    ORA-01103: the name "OLD_DB_NAME" in the control of the database file is not "NEW_DB_NAME".

    I want to just clone a database with a different name, in the same way we used to do with ALTER DATBASE BACKUP CONTROLFILE to TRACE-> COPY DB_FILES-> RECREATING CONTROLFILES WITH a DIFFERENT NAME DATABASE.

    Exp/imp it's a possible solution, but I wonder if it is just another way to clone an existing database in the same node with a different namedo with RMAN? Just as we used to with BACKUP CONTROLFILE to TRACE-> DBF_FILES-> RECREATING CONTROLFILES WITH DB NAME DIFFERENT COPY.

    It's the links I tried to follow without success.

    http://www.Oracle.com/technology/deploy/availability/PDF/asm_cloning.PDF
    Duplicate by RMAN 10 g

    and many others...

    Thanks for your help.
    Alex.

    You'll need an auxiliary copy if you restore the database to a different name.
    Take a look at the following note:
    http://jhdba.WordPress.com/2009/04/02/cloning-a-database-ASM-to-ASM/

  • secconf.Sql. If it will work for upgrades or only for new databases?

    Hello

    I'm reviewing oracle 11g features and found that few things need special attention, such as checking the settings and the changes in the default profile.

    Looking at the secconf.sql file, I found this note

    REM only invoked for databases of newly created, not for upgrade of databases

    My question is
    (1) if I update a database to Oracle 10 G to Oracle 11 G, will, these changes in profile by default and the audit take place or not?
    (2) these 11 G changes will happen if we create new databases using DBCA?

    Thank you
    Delphine

    If you take a peek of scripts by calling secconf.sql in 11.2 /rdbms/admin, you see that secconf.sql can be run from catuprgd.sql with the following calling sequence:

    catupgrd. SQL-> catproc.sql-> catpexec.sql-> execseq.sql-> secconf.sql

    You can retrieve it with:

     pwd
    /u01/app/oracle/product/11.2.0/dbhome_1/rdbms/admin
    [oracle@lx01 admin]$ grep secconf.sql *.sql
    execsec.sql:Rem  Only run the secconf.sql script for new database creations, not
    execsec.sql:      :secconf_name := '@secconf.sql';
    secconf.sql:Rem $Header: rdbms/admin/secconf.sql /main/3 2008/10/26 23:05:27 apsrivas Exp $
    secconf.sql:Rem secconf.sql
    secconf.sql:Rem      secconf.sql - SECure CONFiguration script
    [oracle@lx01 admin]$ grep execsec.sql *.sql
    catpexec.sql:@@execsec.sql
    execsec.sql:Rem $Header: execsec.sql 12-jun-2006.13:39:34 rburns Exp $
    execsec.sql:Rem execsec.sql
    execsec.sql:Rem      execsec.sql - secure configuration settings
    [oracle@lx01 admin]$ grep catpexec.sql *.sql
    catpexec.sql:Rem $Header: catpexec.sql 06-jan-2007.20:57:33 rburns Exp $
    catpexec.sql:Rem catpexec.sql
    catpexec.sql:Rem      catpexec.sql - CATProc EXECute pl/sql blocks
    catproc.sql:@@catpexec.sql     --CATFILE -X
    execcr.sql:Rem      Run from catpexec.sql (catproc.sql)
    [oracle@lx01 admin]$ grep catproc.sql catupgrd.sql
    @@catproc.sql --CATFILE -X
    

    Thus, it seems that catupgrd.sql still works secconf.sql. Given that catuprgd.sql is THE upgrade script (see http://download.oracle.com/docs/cd/E11882_01/server.112/e10820/scripts004.htm#sthref3623), it seems that this secconf.sql is still running.

    But this is not the case if you read execsec.sql code and comments:

    Rem  Only run the secconf.sql script for new database creations, not
    Rem  for upgrades or any other reruns of catproc.sql.  The version column
    Rem  in registry$ is NULL while catproc.sql is running the first time
    Rem  on a new database.
    
    VARIABLE secconf_name VARCHAR2(256)
    COLUMN :secconf_name NEW_VALUE secconf_file NOPRINT
    
    DECLARE
       p_version  varchar2(30);
    BEGIN
       :secconf_name := '@nothing.sql';
       SELECT version INTO p_version FROM registry$
       WHERE cid='CATPROC';
       IF p_version IS NULL THEN
          :secconf_name := '@secconf.sql';
       END IF;
    END;
    /
    
    SELECT :secconf_name FROM DUAL;
    @&secconf_file
    

    In the case of database upgrade registry .version $ is not null and above the code will run nothing.sql instead of secconf.sql:

    [oracle@lx01 admin]$ cat nothing.sql
    Rem $Header: nothing.sql 18-oct-2001.09:57:38 Exp $
    

    It is therefore very likely that secconf.sql is not running during the 11.2 database upgrade (I think that the same should apply to 11.1).

  • Duplicate RMAN cloning using the database using the current database

    Hi all

    I am new bie, I want to clone my target database using the rman command 'DUPLICATE database OF ACTIVE DATABASE"new host.

    steps on google, I searched, but I got confused, I doubt if you need to install oracle rdbms softare on new host or not? and also should I copy all files (redo, control, datafiles) to the new host? kind LY help and tell me the steps to clone the database using rman.your help will be appreciated.

    Thank you.

    Kind regards.

    OS: RHEL 5.4

    DB: 11.2.0.3

    Hello

    Have you not through document link to Gavin at least. It's very simple steps. If you wait until other measures, then won't them.

    He had provided the demonstration, at least get in 'google' (you'll have so many links)

    The Oracle Dba Italian Blogger: how to clone an Oracle 11 g 2 home

    http://balaoracledba.com/2013/12/16/cloning-an-existing-Oracle11g-release-2-RDBMS-installation/

    Note: If you feel always complex, better skip the task itself.

    -Thank you

    Pavan Kumar N

  • LISTENER ERR when create database using DBCA

    Please advice, I have RAC 11 g R2 installed in Enterprise Linux 5.4 environment so I face-down problem when creating new database using DBCA

    "Scan earphone is not configured in the grid infrastructure Oracle home. To create a database, analysis auditor is required to be configured ".»

    Although when I run crsctl res stat - you I see the earpiece is in place


    ORA. LISTENER.lsnr
    Rac1 online online
    Rac2 ONLINE

    The resource that you see is for a listener and not a listener to scan. Two different things.

    Check if a listener to scan is configured? The sounds of it you have not configured so that you will need to add a listener to scan. The SCAN IP should be configured in the DNS system first.

    srvctl add scan
    srvctl add scan_listener
    
    srvctl config scan
    srvctl config scan_listener
    srvctl status scan_listener
    

    Check out these links for more information on SCANNING configuration.

    http://docs.Oracle.com/CD/E11882_01/install.112/e25666/undrstnd.htm#BEIFFBBI
    http://docs.Oracle.com/CD/E11882_01/RAC.112/e16795/srvctladmin.htm#autoId0

  • Removal/drop/withdraw, database using Enterprise Manager (12 c)

    Hello
    I ran a few searches and examine documentation... but I have not found a way to move/delete/delete databases using 12 c EM.
    We have environments multi-instance (a single physical server with multiple instances/database). And from time to time, to delete one or more instances when they are out of service.
    So far, we use DBCA, but I wonder if there is a way to do the same with the EM 'out of the box... ".

    Could someone point me in the right direction?


    Thanks in advance,

    Francisco Palomares

    Hello Francisco,.

    the only 'out of the box' methods to remove/delete a database would be:

    -Create a 'User defined procedure' to do the job - Fund guide "Life cycle management" in the documentation
    -When you use the Self Service Portal as part of the Cloud management feature, users would be able to ask for a database to create. When demand for a database to create the user can also identify what period it would need from the database. Which means that you can indicate the current time a database must be dismantled. In this case not only a job is programmed to create the database, but also a job is programmed to remove the database after the specified time has passed. The Guide for this of Cloud management.
    -You could of course also think to do this using a measure of script that you could plan from the working EM system.

    Plenty of material to think ;-)

    Concerning
    Rob

    http://oemgc.WordPress.com

  • How to create the database using the command line?

    Hi all

    Win7
    10g or 11g

    I want to create a new database using a script.

    I set up my new SID and oracle_home.

    Then sqlplus / DBA.

    then I execute a common script...
    startup nomount;
    create database PRODB
           logfile group 1 ('z:\oradata\PRODB\redo01.log',
                            'z:\oradata\PRODB\redo01b.log') size 50M,
                   group 2 ('z:\oradata\PRODB\redo02.log',
                            'z:\oradata\PRODB\redo02b.log') size 50M,
                   group 3 ('z:\oradata\PRODB\redo03.log',
                            'z:\oradata\PRODB\redo03b.log') size 50M,
                   group 4 ('z:\oradata\PRODB\redo04.log',
                            'z:\oradata\PRODB\redo04b.log') size 50M
           character set AL32UTF8
           datafile 'z:\oradata\PRODB\sysPRODB.dbf' size 500M
           sysaux datafile 'z:\oradata\PRODB\auxPRODB.dbf' size 300M
           undo tablespace undo
                   datafile 'z:\oradata\PRODB\undoPRODB.dbf' size 100M
           default temporary tablespace temp
                   tempfile 'z:\oradata\PRODB\tempPRODB.dbf' size 150M;
    @/opt/app/oracle/product/10.2.0/db_1/rdbms/admin/catalog.sql;
    @/opt/app/oracle/product/10.2.0/db_1/rdbms/admin/catproc.sql;
    connect system/manager;
    @/opt/app/oracle/product/10.2.0/db_1/sqlplus/admin/pupbld.sql;
    exit;
    
    
    
    SQL> startup nomount;
    ORA-12560: TNS:protocol adapter error
    SQL> create database PRODB
      2         logfile group 1 ('z:\oradata\PRODB\redo01.log',
      3                          'z:\oradata\PRODB\redo01b.log') size 50M,
      4                 group 2 ('z:\oradata\PRODB\redo02.log',
      5                          'z:\oradata\PRODB\redo02b.log') size 50M,
      6                 group 3 ('z:\oradata\PRODB\redo03.log',
      7                          'z:\oradata\PRODB\redo03b.log') size 50M,
      8                 group 4 ('z:\oradata\PRODB\redo04.log',
      9                          'z:\oradata\PRODB\redo04b.log') size 50M
     10         character set AL32UTF8
     11         datafile 'z:\oradata\PRODB\sysPRODB.dbf' size 500M
     12         sysaux datafile 'z:\oradata\PRODB\auxPRODB.dbf' size 300M
     13         undo tablespace undo
     14                 datafile 'z:\oradata\PRODB\undoPRODB.dbf' size 100M
     15         default temporary tablespace temp
     16                 tempfile 'z:\oradata\PRODB\tempPRODB.dbf' size 150M;
    I always hit it

    SQL > startup nomount;
    ORA-12560: TNS:protocol adapter error

    But if I run it on Linux is good.


    Help, please...


    Thank you very much

    zxy

    yxes2013 wrote:

    I want to create a new database using a script.

    Suggestion. DBCA allows to generate the database model and use the option "+ Save as scripts + ' (no need to create the database).

    In the scripts directory, there will be a couple of shell and SQL scripts to create the database. Use them as your CLI model for the creation of a custom database. (I guess that DBCA works the same on Windows as it does on Linux).

    Another option, if you are using Oracle XE, is to copy ORACLE_HOME/bin/createdb.sh (probably a + .cmd on Windows) script and change for use. If you manually add non-XE features to the script (such as the installation of the Java virtual machine) If you want a database of SE or EE. (whereby DBCA scripts are a better answer).

  • Wise schema exp/imp or complete database exp/imp better in cross platform database 10g migration

    Hello

    When you perform a migration of database platform (big-endian to little endian) of 10 grams, which should be preferred to a database export import full or can do without schema using exp/imp?

    The data base is about 3 TB and a server Oracle ebs with many diagrams custom in it.

    Your suggestions are welcome.

    For EBS. export/import of individual schemas is not supported, because of the dependence between the different schemes of EBS - only complete export/import are supported.

    What are the exact versions of EBS and database?

  • E.M.P. 11.1.2.1 repointing to the new database

    Hi all;

    Need of your advice here;

    I had a requirement for re-pointer the EPM environment to the other (new) database. I just want to share my point of view how this can be done please correct me if I'm wrong.

    (1) the relational database of the former backup

    (2) backup the \Oracle\Middleware\ file of all servers in the EMP

    (3) the registry backup

    4) clone or COPY all schemas (HFM, planning, Essbase, FDM.. etc) to the database

    Then

    (4) remove the respective environmental USER_PROJECTS folders

    5) RUN the CONFIGURATION TOOL and then provide the NEW database server and port details. Update the TNSNAMES.ora file with the new database.

    (6) repeat step 5 for all other components

    OR

    Is there a way we can change the PROPERTIES file with the Reconfiguration pointing to the new database of execution? Please notify.

    Thank you

    UB.

    Yes you must reconfigure on these servers, but it is only shared services registry which needs configuration to point to the new database, Essbase uses the information updated in reg.properties.

    Try it and see.

    See you soon

    John

  • What is the other possible way to reset the new hash in 12 c value

    What is the other possible way to reset the new hash value in 12 c (edit user < username > identified by the values < "Hash" >;  ?

    Thank you

    Suman

    Thanks for all the help.

    Problem has been resolved. There was little extra space (undesirable character in file) which has been provided by the user. Monday, I created a test user and manually run reset password and has worked well:

    SQL > select banner version of v$.

    BANNER

    --------------------------------------------------------------------------------

    Database Oracle 12 c Enterprise Edition Release 12.1.0.2.0 - 64 bit Production

    PL/SQL Release 12.1.0.2.0 - Production

    CORE Production 12.1.0.2.0

    AMT for Linux: Version 12.1.0.2.0 - Production

    NLSRTL Version 12.1.0.2.0 - Production

    SQL > alter the test user identified by test2;

    Modified user.

    SQL > select name, password of the user$ where name = 'TEST ';

    NAME PASSWORD

    ---------- --------------------

    TEST A43C4E7D0745AB7D

    SQL > alter user identified by the values "A43C4E7D0745AB7D" test

    Modified user.

    My apologies without testing on my side I asked a question here.

    Thank you.

    Suman

  • Creation of a new database server

    Hi all

    I am new on ODI and is currently in the learning phase. I have a question about creating new data server.

    I did the below mentioned steps

    (1) created a new database server by providing the connection user name and password.

    Question 1: I gave the user name and password that the scheme I want to connect. Is this correct?

    (2) right click on the new database server and create a new physical schema. Here for the scheme and the scheme of work, I see the pattern in my database.

    Question 2: Why all the patterns is part of the schema and the schema of work drop-down list? Would it not be limited to the diagram provided in step 1.

    Thanks in advance

    Hi Matt,

    Here's a blog that I wrote a few weeks ago that should help you understand the topology: http://www.rittmanmead.com/2014/12/data-integration-tips-one-data-server/

    It will be useful.

    Kind regards

    JeromeFr

  • Server with a database and an installed network agent... Add a new database

    First of all, sorry for my English.
    I have a server with Oracle 10.2.0.4, where there was already an agent of the grid control and a database. Now, we have created a new database on the same server. What I do to make this new database is displayed in the grid control?

    Best regards
    Vitor Jr

    Did you do the following?

    agentca -d -c "hostname1,hostname2,hostname3"
    

    Change - read your bad output... exceed the correct host names. You may need to use the full host name IE hostname1.tpn.cliente.com as in your output... Try and see.

    Published by: Freddie Essex on April 24, 2013 16:56

  • Inserting a new record in the database using a form empty ADF

    Hello

    I'm trying to insert a new record into the database using a form.

    I have an Employee table and its corresponding entity object and the view object. The table has an id that is used as the primary key and is filled using a sequence in the comic book.

    Data controls, I dragged and dropped at the sight of the employee as a form of ADF and checked the submit button include. Then I dragged and dropped the validation on submit button operation.

    When I connect to the app and go to the page used to create, I have 2 problems:
    1 - the form is filled with the logged in user info.
    2. If I try to change the news and validation, the user info is changed in the database and no new record is created.

    It makes a little sense to me, but I would like to know if there is a way around it (get an empty form and insert a new record).
    NB: the employee id is not part of the form, I want to be filled using the sequence.

    Kind regards
    MB

    User, please tell us your jdev version!

    To do this, you must create a new record before going to the display of the form page. In a stubborn workflow (btf), you drag the operation createInsert of the VO on the btf and it will generate a link method, add a view to the btf and put a navigation of the binding of the method of the page. Mark the method as 'Activity by default'. Now, ren, you call the workflow, you create a new record that will show your blank form.

    Timo

  • Best way to clone db

    Hi all

    I have a simple question about clone DB.

    I have a big database of production (to 5). I need to clone the database for the test on the second server environment.

    I'm thinking about using rma dual. All have two server can read and write to the same file system

    Oracle is 11 2.0.2 version and database using asm

    Can I create a new instance of cars on the second server and use it to restore db? How? Normally I restore on a single instance and after create DB and service for rac...
    Do you have a tech for this doc?

    Concerning
    Giovanni

    (1) you can take BACKUP of SOURCE database and use RMAN DUPLICATE DATABASE (or) RESTORATION method
    as you have a file system shared between SOUREC and TARGET servers

    (2) you can use RMAN DUPLICATE FROM ACTIVE DATABASE

    (3) once, I used the CP ASMCMD command to copy the data directly to the TARGET DSO and recovered it
    (it worked even our SOURCE database is running)

    -Thank you

  • copy the entire schema to the new database

    Hi... What is the best way to copy the entire schema (25 GB) to the new database ther.

    Thank you

    What is best way to copy the entire schema (25 GB) to the new database ther.

    Import/export
    Import export/Datapump DataPump (if the database is in 10g)
    DEC using the database link

Maybe you are looking for

  • How to unlock the toolbars

    I like my bookmarks toolbar to sit alongside the toolbar «File, editing, display etc.» He used to stay there, but I started Firefox this morning and it was gone.I think that when this has happened in the past, I've unlocked the toolbars and then drag

  • Asking the user to select a file path to record data to

    Hello To improve the 'user interface', and the usability of my VI, I would like to have the dialog box "select file path" appears automatically, rather than create a user by clicking on an icon on the front panel to display the path of the file dialo

  • Documents of Vista to Windows 7

    I have the documents saved with my old computer Windows Vista on an external hard drive. I am now addicted to the external hard drive on my new Windows 7 computer. How can I see the files on my Windows 7 computer? When I open a document, it is as if

  • Uninstall vista ultimate dreamscenes.

    Original title: vista ultimate dreamscenes I am writing to ask you if dreamscene content downloads can be uninstalled.  In addition, I would like to see the video of the different content first... all the sites that are supposed to have there "unavai

  • CTS 500 problem

    Hi all Telepresece cts 500 works well Pblm call in the voice of ip phone will no video But call initiated in Telpresence via the command line (start number dest) for the use of this command video and audio with success is the pblm, Ip phone 7975/phon