Export and Import issue in Oracle 11g

Hi All,
I have exported data using exp command in oracle 11g by keeping deferred_segment_creation FALSE.
Even then my zero records tables are not coming in export.
What could be the reason or what other thing i have to do to make it work.
Thanks in advance
Mohsin J

Tables that were created before you changed deferred_segment_creation to FALSE and do not have any rows would still be segment-less tables --- i.e. not exported.
You need to issue an "ALTER TABLE tablename MOVE" for each of such tables (after having set deferred_segment_creation to FALSE) to force a rebuild of these tables with segments before the export.
Thus, the sequence is
1. set deferred_segment_creation to FALSE
2. identify all tables with 0 rows
3. issue an ALTER TABLE tablename MOVE for each of such tables from step 2
4. Re-run your export
alternatively use conventional export (exp) instead of datapump export.
Hemant K Chitale

Similar Messages

  • Guide me for exporting and importing data from oracle 10g to oracle 9i

    I have been trying export and import options in oracle but m not very clear about the procedure..
    Also when i am logging in as Scott/tiger i am facing an error
    ORA 1542 - tablespace 'USER' is offline and cannot allocate space in it.how to resolve it

    Hello,
    I see two questions.
    ORA 1542 - tablespace 'USER' is offline and cannot allocate space in it.how to resolve it About the error ORA-01542 you have to bring the Tablespace USERS online:
    http://www.error-code.org.uk/view.asp?e=ORACLE-ORA-01542
    If you cannot bring it online you may have to Recover it first.
    I have been trying export and import options in oracle but m not very clear about the procedure..About the Export in 10g and Import in 9i (9.2 or 9.0.1 ?), you have to export with the Export utility of the Target Database (the lowest Database version here: 9.0.1 or 9.2) then, you have to Import to the Target Database using its Import utility (in 9.0.1 or 9.2).
    The following Note of MOS may guide you:
    Compatibility Matrix for Export And Import Between Different Oracle Versions [Video] [ID 132904.1]
    NB: You cannot use here the DATAPUMP.
    Hope this help.
    Best regards,
    Jean-Valentin

  • Export And Import Agreements in B2B 11g (After renaming)

    Hi All
    I am aware about the process to Export and Import the B2B agreements in Oracle B2B 11g.
    But, I want to export an agreement, rename the agreement name, Channel Name, Trading Partner name and re-import in the same instance.
    For e.g.
    If I have an Agreement : BrokerOutbound_AU
    Trading Partner : BrokerAU
    Channel Name : BrokerAU_Outbound
    in my development environment
    then,
    I want to export the above agreement and modify it somehow to re-import it as follows :
    Agreement Name : PY_BrokerOutbound_AU
    Trading Partner : PY_BrokerAU
    Channel Name : PY_BrokerAU_Outbound
    I tried renaming it in the XML which is exported, but I am not able to import it.
    Is there a way I can rename and import it in my same environment. I would appreciate if someone can help me out in achieving the same.
    Thanks in advance

    Tables that were created before you changed deferred_segment_creation to FALSE and do not have any rows would still be segment-less tables --- i.e. not exported.
    You need to issue an "ALTER TABLE tablename MOVE" for each of such tables (after having set deferred_segment_creation to FALSE) to force a rebuild of these tables with segments before the export.
    Thus, the sequence is
    1. set deferred_segment_creation to FALSE
    2. identify all tables with 0 rows
    3. issue an ALTER TABLE tablename MOVE for each of such tables from step 2
    4. Re-run your export
    alternatively use conventional export (exp) instead of datapump export.
    Hemant K Chitale

  • Export and Import table in Oracle 8i

    Hi Gurus,
    I want to do an export of a oracle table to a binary file which is in 8i for back up.
    And at some point of time import the same.
    Can anyone please guide me the steps for the same. I am using SQL*plus & toad.
    Thanks in advance.

    you can use IMP/EXP utilities
    this can be a good start http://www.orafaq.com/wiki/Import_Export_FAQ

  • Export and import issue

    I would like to copy a materialized view from one database to another with data.
    I used datapump .I did the export as follows:
    export ORACLE_HOME=/oracle/product/10.1.0/db_1
    export ORACLE_SID=orcl
    $ORACLE_HOME/bin/expdp system/orc8737 tables="PIMS_REPO".\"DW_V_SELECTION_TXN_QSIII\" directory=DATAPUMPST dumpfile=expdp_txn.dmp logfile=expdp_txn.log
    expdp_txn.sh (END)
    I did the import as follows:
    impdp import_user/twoseven27 directory=datapumpst
    dumpfile=expdp_txn.dmp logfile=impdp_txn.log
    But it got copied as table and not as materialized view. I thought datapump can transform a materialized view to a materialized view.
    Can someone tell me what is wrong with the syntax.
    Thanks in advance.

    Thanks for your reply.
    But when I use
    $ORACLE_HOME/bin/expdp system/orc8737 directory=DATAPUMPSTEVE dumpfile=expdp_txn.dmp logfile=expdp_txn.log schemas=PIMS_REPO include=DW_V_SELECTION_TXN_QSIII
    it gives
    ORA-39001: invalid argument value
    ORA-39041: Metadata filter has no selectivity.

  • 9i to 11g migration using export and import

    Hi,
    I got a requirement to migrate 9i database to 11g using export and import.
    Please let me know what are all the parameters required in 11g, so that database will run with better performance.
    thanks,

    You can start with the current parameters, except for COMPATIBLE (which must be 10.0.0 or higher in the 11g environment). However, you will have to remove parameters deprecated in 11g.
    See http://download.oracle.com/docs/cd/E11882_01/server.112/e17222/changes.htm#BABHACIE
    Then you can test performance and identify what you need to change.
    Hemant K Chitale

  • Steps to export and import oracle 10g databse from AIX to AIX and LINUX

    Hi,
    I need the steps to export the oracle 10g database from AIX server to AIX server and LINUX server.
    Please give me all the steps as this is my first exort an import activity.
    thanks,

    For 10g there exist two ways to do so.
    1) Regular exp/imp.
    2) Data pump expdp/impdp.
    As this is your first export and import activity, relevant concept understanding is mandatory for you.
    Documentation Link
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14215/toc.htm
    Read the chapters 1,2,3 (Data pump expdp/impdp) and 19 (regular exp/imp). Good luck.

  • Calling Oracle Export and Import in java

    Hi,
    I am trying to call oracle export and import utilites in my java application,
    can anyone help me that how can i do this, plz consider the case as this is a part of my project..
    Regards
    Ashish

    You should just be able to call the "imp" and "exp" executables ($ORACLE_HOME/bin) using the Runtime class. You can setup the various parameters for export / import in a parameter file.
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    http://www.orafaq.com/faqiexp.htm

  • Export and Import in Oracle

    I need to export users with tables and data from Oracle 8.0.4 and import into Oracle 8.1.7.
    But the condition is that we need to retain the Japanese characters.
    I did this using simple export and import functions but Japanese characters were imported as Junk.
    Can somebody tell me what is the clean way of exporting and importing such that Japanese charaters are not converted to Junk.

    You must set the correct characterset before exporting and importing (I don't know which characterset is correct for you, but choosing the same characterset as the characterset of your database should work).
    Use NLS_LANG environment variable to do this,
    NLS_LANG=<LANGUAGE>_<TERRITORY>.<CHARACTERSET>. On UNIX if NLS_LANG is not set explicitly, it defaults to AMERICAN_AMERICA.US7ASCII, that means all special characters cannot be translated.
    On Windows NLS_LANG is set at installation time, it corresponds to the settings of Windows itself.

  • Calling oracle export and import utilities in java

    Hi,
    can someone help me, i have to call oracle export and import utilities through my java application, can anyone guide me, how i can do it..
    Thansks
    Ashish

    Hi,
    can someone help me, i have to call oracle export and
    import utilities through my java application, can
    anyone guide me, how i can do it..You mean the command line ones? Use Runtime.exec();

  • Step to export and import oracle 10g on AIX,LINUX

    Hi ,
    Plase any one can give nme the steps to be followed to export and import oracle 10g database from AIX to AIX and LINUX also.
    Waiting for your response.
    Thanks..

    You dont have to follow any special steps, Export and Import are same on all OS's.

  • 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;
    ******************************************************************

  • Oracle Export and import

    Hi,
    I just want to do the export and import.
    Source DB - Oracle 10g on Solaris 64 bit OS. (Export)
    Destination DB - Oracle 9i on Windows OS (import).
    Kindly confrm that these export and import is possible in oracle.
    Thank you,

    add version=9.x while taking the export from solarisThat advice doesn't apply for 10g to 9i.
    The export has to be done with the 9i "exp" binary, from a 9i ORACLE_HOME. It can be done over a SQLNet connection.
    The subsequent import has to be done with the 9i "imp" binary.
    Hemant K Chitale

  • Could I export and import my oracle database via Stored Procedure???

    Hi all,
    I need to export my database using stored procedure, the stored procedure will be called by java application and it works well
    Now I still get the "BIG QUESTION", could I export and import database using stored procedure???
    Really thanks for the response.
    Regards,
    Kahlil

    Hi,
    I think you can use DBMS_DATAPUMP (10.1+), see [DBMS_DATAPUMP|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_datpmp.htm#i1007277], for examples see [http://www.psoug.org/reference/dbms_datapump.html]
    Regards,

  • Issue Migrating Character Data Using a Full Export and Import

    Hi There;
    I have a database in my local machine that doesn't support Turkish characters. My NLS_CHARACTERSET is WE8ISO8859P1, It must be changed to WE8ISO8859P9 , since it supports full Turkish characters. I would like to migrate character data using a full export and import and my strategy is as follows:
    1- create a full export to a location in network,
    2- create a new database in local machine that it's NLS_CHARACTERSET is WE8ISO8859P9 (I would like to change NLS_LANGUAGE and NLS_TERRITORY by the way)
    3- and implement full import to newly created database.
    I 've implemented first step, but I couldn't implement the second step. I 've created the second step by using toad editor by clicking Create -> New Database but I can not connect the new database. I must connect new database in order to perform full import. How can I do this?
    Thanks in advance.
    Technical Details
    NLS_LANGUAGE.....................AMERICAN
    NLS_TERRITORY.....................AMERICA
    NLS_CURRENCY.....................$
    NLS_ISO_CURRENCY..............AMERICA
    NLS_NUMERIC_CHARACTERS    .,
    NLS_CHARACTERSET.............WE8ISO8859P1
    NLS_CALENDAR.....................GREGORIAN
    NLS_DATE_FORMAT................DD-MON-RR
    NLS_DATE_LANGUAGE...........AMERICAN
    NLS_SORT...............................BINARY
    NLS_TIME_FORMAT.................HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT......DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT............HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT..DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY............ $
    NLS_COMP...............................BINARY
    NLS_LENGTH_SEMANTICS.......BYTE
    NLS_NCHAR_CONV_EXCP........FALSE
    NLS_NCHAR_CHARACTERSET...AL16UTF16
    NLS_RDBMS_VERSION............10.2.0.1.0

    First, if your applications run on Windows, do not use WE8ISO8859P9. Use TR8MSWIN1254.
    Second, if you create a new database, the database is not necessarily immediately accessible to outer world. I do not know Toad and I have no idea if it performs all necessary steps required for the new database to be visible.  For example, in the Toad itself, I assume you should create a new connection that references the new SID of the newly created database and use this new connection to connect. However, connections without a connection string use the ORACLE_SID setting in Registry to tell connecting applications which instance (database) to use.  To change the database accessed with an empty connection string you need to modify Registry (unless Toad has an option to do this for you). If you want to connect without changing Registry, you need a connect string. This requires setting up Oracle Listener to serve the new database (unless default configuration is used and the database registers itself with the default listener). It also requires changing tnsnames.ora file to create an alias for the new database. Net Manager and/or Net Configuration Assistant can help you with this.
    I wonder if Database Configuration Assistant would not be a better tool to create new Oracle databases.
    Thanks,
    Sergiusz

Maybe you are looking for

  • ColdFusion MX7 Error When Starting Apache2Triad

    I just installed the ColdFusion MX7 trial on my local machine. When I try to start the Apache2Triad (uses Apache 2.2.0) service it fails to start and the following error is written to the system log file: quote: The Apache service named Apache2Triad

  • Adobe Premier Elements 12

    I have been trying to create silent installation for Adobe Premier Elements 12 and have had no luck. Followed instructions on http://helpx.adobe.com/photoshop-elements/kb/photoshop-element-12-silent-install.html. None of the switches work. I have a v

  • How can I set the Lock Model and data structure ?

    Hi , I just have two questions about JE: 1) Is there some method for me to set the lock mode level , such as record lock, page lock and database lock in JE? 2) I learned that there are Btree and Hash,etc , data structures , How can I set the data str

  • Songs Keep Repeating

    I have a 3rd Gen. 32G iPod Touch. When I play it now, the song keeps repeating and won't move forward to the next song with out me manually using a remote or the touch feature to move to the next song. I had this issue with a 2nd. Gen iPod Touch I pr

  • My iPad Mini is fronzen

    My ipad mini Froze while closing an app with the 5 finger gesture, i readed that you could fix it with the home+sleep button but my home button is broken, the battery is still displaying along with the hour, i can also put it in sleep but when i pres