Oracle 10g - SCHEMA Export Import

Hi
I have a query - Whenever there are some changes in Database schema say for eg, New Columns are added, Some New Sequences are created and sundry other changes for an application release - What is the best way to take backup of the DDL so that I can bring the database / it's objects to the same position as they were in before the release?
Regards
Kapil

You can take export of the schema. Its not required any downtime.
Also, you take the cold backup and restore it to other server.
Clone the database by RMAN duplication and restore it to other server before making the changes.
Regards
Asif Kabir

Similar Messages

  • About Oracle 10g Data export/import

    I have two DBs, let's call them AProd, BAcpt.
    all tables/procedures/sequences etc. are defined same, only schema names are different, and the role names are different (e.g. In AProd, role 1 named as AProd_ROLE1, but corresponding role in BAcpt is named as BAcpt_ROLE1).
    In order to use Aprod data to refresh BAcpt, in OEM, I established a DB link from BAcpt to Aprod and planned to use "Import from Database" option.
    Option 1: By selecting "Schema" -> "Data Only", Import content type =" Import all objects", I am able to refresh BAcpt's tables with AProd's data, however, I can't refresh Sequences, especially the last_number of the sequences.
    Option 2: By selecting " Schema" -> "All", Import content type =" Import all objects", I am afraid this will overrite all the roles/privs of BAcpt, and I have to run scripts to recreate BAcpt's roles, and grant those roles to users again...
    Is there any better solution for this request?
    Thanks,

    Thank you first.
    I did drop and recreate on target DB using source DB's sequences. Extending the original question a bit, if the sequence doesn't exist on target, I guess Option 1 won't bring over the new sequence/procedures from source DB either, correct?
    Also for Option 1, It seems the Index also be updated........... Any document I can refer for details? I thought after import data, I need to "rebuild Index online" ... will it still be true ?
    Thank you for any answers:-)

  • Comparision of Oracle upgrade(9i to 10g) and export/import process

    Hi Friends,
    I have a schema in Oracle 9i Database and i would like to have it in Oracle 10g.
    I ned to know what will be the advantages and disavantages between the Oracle upgrade(9i and 10g) and export/import (9i export and 10g import)process?
    Please suggest.
    Regards

    Please go this link for new features of 10g:
    [http://www.oracle.com/technology/pub/articles/10gdba/index.html]
    For export and import go to this link:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/exp_imp.htm
    Regards
    Asif Kabir

  • Schema export/Import

    Will schema export/import work if database is not open?

    user503988 wrote:
    Will schema export/import work if database is not open?NO!

  • 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

  • Oracle 10g Data Dump---Import to different users

    Hi everybody,
    I exported data in oracle 10g using expdp in user schema(abc1).
    Now i want to import that data in different user schema (abc2) and another user schema (abc3). Both schemas (abc2 and abc3) are in same tablespace.
    How to do this. Shall i need to export that data in SYSTEM mode to import for different users..?
    Thanks in advance
    Pal

    Shall i need to export that data in SYSTEM mode to import for different users..?No need. You can use REMAP_SCHEMA option on import, e.g.
    impdp system/<password> directory=<directory> dumpfile=<dumpfile> remap_schema=abc1:abc2
    See http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_import.htm#sthref339

  • Oracle 10g EE Export Results in ORA-01001: invalid cursor Error

    Hi,
    I'm quite new to Oracle 10g and OCS10g. We have a crippled/corrupt SYSAUX tablespace (data file 3) which cannot be recovered using recover
    command anymore. So metalink support instructed us to do a export of the metadata of the working tablespace which contains our system data (we are in configuration stage for OCS 10g 10.1.2) via transportable tablespaces so that I can just recreate the database in DBCA and import the metadata. So after I made a cold backup, set the "transportable" tablespaces to "READ ONLY" mode, I proceeded w/ the export command which resulted in an error, please see below:
    $exp \'sys/********@ocs10gSID as sysdba\' parfile=transport.par
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.4.2 -
    Production
    With the Partitioning, Real Application Clusters, OLAP and Data Mining options
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses AL32UTF8 character set (possible charset conversion)
    Note: table data (rows) will not be exported
    About to export transportable tablespace metadata...
    EXP-00008: ORACLE error 1001 encountered
    ORA-01001: invalid cursor
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 899
    ORA-06512: at "SYS.DBMS_SQL", line 19
    ORA-06512: at "SYS.DBMS_TTS", line 811
    ORA-00376: file 3 cannot be read at this time
    ORA-01110: data file 3: '/ocfs/oradata/OCS/datafile/o1_mf_sysaux_2mgzbr51_.dbf'
    ORA-06512: at "SYS.DBMS_PLUGTS", line 1444
    ORA-06512: at line 1
    Anyone encountered this problem before? Any recommendations or tips to get this working?
    I checked this url:"http://luhartma.blogspot.com/2006/05/how-to-check-if-tablespace-is.html"
    And when I try to follow the instructions and check on of the tablespace I set to and verified to be in "READ ONLY" mode, I get the same error.
    SQL> connect / as sysdba
    Connected.
    SQL> exec dbms_tts.TRANSPORT_SET_CHECK('PORTAL',TRUE)
    BEGIN dbms_tts.TRANSPORT_SET_CHECK('PORTAL',TRUE); END;
    ERROR at line 1:
    ORA-01001: invalid cursor
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 899
    ORA-06512: at "SYS.DBMS_SQL", line 19
    ORA-06512: at "SYS.DBMS_TTS", line 811
    ORA-00376: file 3 cannot be read at this time
    ORA-01110: data file 3: '/ocfs/oradata/OCS/datafile/o1_mf_sysaux_2mgzbr51_.dbf'
    ORA-06512: at "SYS.DBMS_TTS", line 840
    ORA-06512: at line 1
    Hope someone can help on this or at least provide a suggestion. Data file 3 above is the reason we are doing a transportable tablespace export & db recreation.
    BTW what we have is:
    OCS 10g 10.1.2 w/ Oracle RDBMS 10g Enterprise Edition 10.1.0.4.2
    RHEL4 Update2
    Thanks in advance.
    Regards,
    -Kenth

    Hi,
    The status is "RECOVER" we have actually tried to recover but unfortunately the archive logs that were needed were on disks and were lost during one of the server hardware failures. Actually that is the reason why metalink support recommended this route for getting everything in order since we don't have any application data in SYSAUX yet.
    Thanks.

  • Change from  default oralite to oracle 10g schema

    Hi,
    i have already installed soasuite with basic installaion. now just we want to change the database from oralite to Oracle10g.
    i want make two diffrent schema for running bpel(instance hibernation) and another one for esb. will it be possible. am i right here ?
    is this enough to change datasource and connection pool properties in asc ?.
    what is name of sql i have to rcompile in the 10g schema ?
    esb schema setup:
    ===============
    D:\product\10.1.3.1\OracleSOA\integration\esb\sql\oracle
    bpel dehydration store
    ========================
    D:\product\10.1.3.1\OracleSOA\bpel\system\database\scripts
    any other scrips i need to compile ?
    any document ??
    Regards,
    Bogi.

    Without the password you won't be able to use the migration exporter nor will you be able to unset it.
    In this case the official way is to ask the user for the password or another way is to use a password recovery tool for MS Access.

  • Oracle 10G schema

    I have Oracle 10G installed on my system. How do I find out what all schemas and databases are present?

    Perhaps this is not the proper forum to post your problem. You should post this problem in Oracle Database General forum. This is Oracle SQL And PL/SQL forum.
    Anyway, you can try connect with ->
    scott/tiger@<host_string>You will get the host string information from the tnsnames.ora - if you can't remember what name you have given during installation.
    Got me?
    Regards.
    Satyaki De.

  • Oracle 10g DB Export for SQL Server 2008

    I'm having a hard time exporting my database Primavera P6 Project Management for SQL Server 2008, in fact I need to do this so I can export to a future program in Visual Studio 2010. But contiue with the Oracle Database Enabled
    Thank you.
    Edited by: 898987 on 25/11/2011 01:59

    Hi,
    Thanks for the translation.
    You say you are having a hard time exporting my database Primavera P6 Project Management for SQL Server 2008. Could you give details of exactly what you are using for the export and what problems you are having ?
    Is this an export from an Oracle database or a SQL*Server 2008 database ?
    Regards,
    Mike

  • DBA privilege is requied to EXPDP in Oracle 10g XE export....?

    Hi...All...,
    1. I created one user and give privileges CONNECT,RESOURCE only.
    2. I ran the expdp command, it is giving following errors
    ORA-39002: The operation is invalid.
    ORA-39070: The log file cannot be opened.
    ORA-39087: Directory name DD1 is invalid.
    3. Then i gave DBA privilege and ran the same expdp command. Now it created
    dump file without any problems.
    So DBA privilege is required for a user to create dump file...is it true....?
    Thanks in advance,
    Pal

    DBA privilege is required for a user to create dump
    file...is it true....?No, most probably you didn't grant privileges to your user on the directory you specified within expdp command.

  • Import oracle 11g database into oracle 10g Server -

    Hi guys,
    We have a oracle db running on Oracle 11g. Now, we would like to export from oracle 11g into Oracle 10g XE for important demo. Is it possible??
    When i try to import into Oracle 10g XE, the following Error msg appears :
    IMP-00010: Not a valid export file, header failed verification
    Pls help soonest possible...
    tx
    Rama

    A BIG thank you to both of you, Managed to import succesfully. appreciate your help.
    Just for others who would be using this forum.
    Steps involved
    1. connect with Oracle 10g Export utility to the source db.
    2. export the db from source to target server
    3. create DDL & schema of the source db.... ( i used toad dba )
    4. run the DDL & schema of the target db (oracle 10g) .. ( i used toad dba )
    5. import the dump to target server.
    6. done...
    thanks.

  • How do you import data base dmp file in oracle 10g

    How do you run data base dmp file in oracle 10g

    Examples..
    Table Exports/Imports
    The TABLES parameter is used to specify the tables that are to be exported. The following is an example of the table export and import syntax:
    expdp scott/tiger@db10g tables=EMP,DEPT directory=TEST_DIR dumpfile=EMP_DEPT.dmp logfile=expdpEMP_DEPT.log
    impdp scott/tiger@db10g tables=EMP,DEPT directory=TEST_DIR dumpfile=EMP_DEPT.dmp logfile=impdpEMP_DEPT.log
    For example output files see expdpEMP_DEPT.log and impdpEMP_DEPT.log.
    The TABLE_EXISTS_ACTION=APPEND parameter allows data to be imported into existing tables.
    Schema Exports/Imports
    The OWNER parameter of exp has been replaced by the SCHEMAS parameter which is used to specify the schemas to be exported. The following is an example of the schema export and import syntax:
    expdp scott/tiger@db10g schemas=SCOTT directory=TEST_DIR dumpfile=SCOTT.dmp logfile=expdpSCOTT.log
    impdp scott/tiger@db10g schemas=SCOTT directory=TEST_DIR dumpfile=SCOTT.dmp logfile=impdpSCOTT.log
    For example output files see expdpSCOTT.log and impdpSCOTT.log.
    Database Exports/Imports
    The FULL parameter indicates that a complete database export is required. The following is an example of the full database export and import syntax:
    expdp system/password@db10g full=Y directory=TEST_DIR dumpfile=DB10G.dmp logfile=expdpDB10G.log
    impdp system/password@db10g full=Y directory=TEST_DIR dumpfile=DB10G.dmp logfile=impdpDB10G.log

  • 11gR2 to 10g Export/Import

    Hello,
    Does exporting from Oracle 11gR2 and importing to Oracle 10g work?
    Thank you!

    Alex,
    this forum deals with migrations from foreign databases to Oracle. Your export/import question should be better posted in this forum:
    Export/Import/SQL Loader & External Tables
    You might also have a look at the My Oracle Support note:
    Article-ID: Note 132904.1
    Title: Compatibility Matrix for Export And Import Between
    Different Oracle Versions [Video]

  • Export/Import in Oracle8i to Oracle10g

    Hi,
    We have an Oracle8i Enterprise Edition Release 8.1.6.0.0(32 Bit) running on AIX4.3.3,we are planning to upgrade/migrate it to[b] Oracle10g running on AIX5.3.If i do an export from oracle8i whether i can import it in Oracle 10g without any issues.
    Regards,
    Cherry

    Dear All,
    Thanks for your efforts.
    I have solved this problem and running the db in windows 2000 server without any problem.
    Solution:
    A tablespace should be created in the same name, size as in the solaris server. we cant transfer a tablespace created by solaris to windows. Before importing the data we need to create a tablespace and assign to the user (empuser).
    here is the method that works for me.
    1.GENERAL STEPS TO FOLLOW:
    WINDOWS 2000 Server:
    Install Oracle 9i release 1 (9.0.1.1.1) in windows 2000 server.
    Create a database with following parameters;
    1. Select 'General Database'
    2. Global Database Name: EMP
    3. SID: EMP
    4. All default Options and click finish to create and start the oracle instance.
    5. Login to SQL-PLUS (username: scott, Password: tiger, Hoststring: <empty>)
    6. Connect as sys/change_on_install as sysdba;
    7. CREATE TABLESPACE empdeploy DATAFILE 'C:\oracle\oradata\EMP\emp_data_new.dbf' SIZE 1000m AUTOEXTEND ON NEXT 100m MAXSIZE 2048m EXTENT MANAGEMENT LOCAL;
    8. CREATE USER empuser IDENTIFIED BY emppass DEFAULT TABLESPACE EMPDEPLOY TEMPORARY TABLESPACE TEMP;
    9. GRANT DBA TO EMPUSER (Im not sure whether i given this command or not, dont use this unless u get error during import)
    10. disconnect
    References:
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_8003.htm
    http://www.adp-gmbh.ch/ora/sql/create_tablespace.html
    SUN-SOLARIS 5.6 (SPARC):
    It is running Oracle Enterprise edition 8.1.6.
    Get the informations below,
    INSTANCE NAME
    SID
    USER HAVING CONTROL TO THAT INSTANCE (like here it was EMPUSER)
    TABLESPACES USED
    TABLESPACE NAME
    DATAFILE NAME and PATH
    ORACLE VERSION
    2.EXPORT/IMPORT PROCEDURE:
    I) Exporting Database from SOLARIS SERVER:
    option-1:
    exp empuser/emppass
    leave all default options
    Select Entire database to export (option 1)
    YOU SHOULD GET 'Export terminated successfully without warnings'. (Failure causes may be low disk space, ensure that u have enough disk space)
    Option-2:
    exp empuser/emppass
    leave all default options
    Enter the user name whose tables to be exported: EMPUSER
    Enter the user name whose tables to be exported: <Enter-to-quit>
    YOU SHOULD GET 'Export terminated successfully without warnings'.
    Option-3:
    exp TRIGGERS=y CONSTRAINTS=y GRANTS=y FILE=expdat.dmp
    Username: EMPUSER as sysdba
    Password: emppass
    leave all default options
    Select Entire database to export (option 1)
    YOU SHOULD GET 'Export terminated successfully without warnings'.
    Option-4 (99% wont Work, RISKY):
    EXPORT THE TRANSPORTABLE TABLE SPACE (This is different from exporting tables/data, so if all the above fails then export the Transportable table space and import into windows probably it will fail due to platform issue and CHARACTER SET Conversion)
    Now import the expdat.dmp file again and see.
    Change the required TABLESPACES READ ONLY.
    exp TRANSPORT_TABLESPACE=y TABLESPACES=PMTDEPLOY TRIGGERS=y CONSTRAINTS=y GRANTS=y FILE=expdat.dmp
    Username: EMPUSER as sysdba
    Password: emppass
    YOU SHOULD GET 'Export terminated successfully without warnings'.
    Now Again Change the TABLESPACES to READ WRITE. (If you forgot this production server cant able to write to the database, the database will be left in read-only mode.)
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    II) TRANSFERRING EXPORTED DATA FROM SOLARIS TO WINDOWS 2000 Server.
    Now from windows system,
    Open command prompt.
    connect to SOLARIS SERVER USING FTP.
    ( cd /user1/home/oracle)change to the Path where you have exported the expdat.dmp file.
    set the transfer mode to binary (dont use the default ASCII Transfer Mode)
    get expdat.dmp
    close
    quit
    Now the database was successfully exported from solaris and transferred to Windows 2000 server.
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    III) Importing the Database in Windows 2000 server:
    Open a Command prompt,
    imp FULL=y IGNORE=n
    Enter User Name : empuser
    Password : emppass
    You should get the same messages what you got during export, with out any other warnings or big messages running in the screen.
    After completion you will get,
    'Import terminated successfully without warnings'.
    +++++++++Now Login thru SQLPLUS using username: empuser, password: emppass++++++++++
    #the following query should return the total number of tables (142 here), this should be same as what you get in solaris. If you get 'no rows selected' then the import was failed, may be take a look at creating tablespaces, or around tablespaces)
    select * from tab;
    142 rows selected.
    A kind request:
    if you got your problem solved, please update the forum / usergroup and write how you solved the problem. this might be helpful for others who may face the same trouble. for me also there was some old postings that having similar problem. but they haven't given the solution. after their problem solved just left this forums.
    Thanks & Regards,
    Sakthivel

Maybe you are looking for