Export in 9i and 10g

hello,
I have question regarding the export in 9i when i say tables=test, test1 and direct=y will this get all the table strucure and table data or will it also get the indexex on the table and grants on the table too?
In 10g when you say include=test, test1 what will it get? data + structure along with grants, indexes etc.. Also can i in 10g export script direct=y?
in 10g it says to create directory what is this directory for? is this to get store the dump file or or what?
I said dumpfile = test.dmp
i have test.dmp is in my exp folder on the oracle directory.
Please do let me know.
Thanks a lot.......

Hi,
If you are working with Oracle 9i version then if the destination consits of objects prior to import, then it will raise an error during import - stating object exists - for that try to check for option ignore=y - its ignores suhc errors - in case of Oracle 10g check with parameter Table_exists_Action=SKIP (defaut), APPEND, TRUNCATE, and REPLACE.
In case of version < 10g then truncate the data in table - the data will get imported else it's by default gets appended to existing data. In case any constrainst on columns then errors would be raised.
SKIP: The default value for TABLE_EXISTS_ACTION. If the table exists, then SKIP will cause the table (and any related data) to not be loaded. The table will be skipped.
TRUNCATE: This will truncate the data in the table and load the data. If the table already exists, no metadata will be applied.
APPEND: This will append the data to the end of the table. Again, if the table already exists, no metadata will be applied.
REPLACE: This will drop the existing object, recreate the object with the information from the dumpfile, and then load the data.
Fruther refer to doc
- Pavan Kumar N
OCP- Oracle 9i/10g
http://oracleinternals.blogspot.com

Similar Messages

  • 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.

  • How to export database from oracle 9.2 and 10g

    Hi,
    I want export the database from oracle 9i and 10g.
    i tried like....... start button--->run--->exp--->
    then it asked password. I have no password to my local database only scott/tiger. i given this, but in one attempt window has closed.
    pls guide me how to export data.
    Thanks and regards,
    Venkat.

    I have no password to my local database only scott/tigerThen use OS authentication :
    C:\>set ORACLE_SID=<your SID>
    C:\>exp \"/ as sysdba\" <options>or change passwords, e.g.
    C:\>set ORACLE_SID=<your SID>
    C:\>sqlplus "/ as sysdba"
    SQL> alter user system identified by <new password>;

  • Running 8i and 10g on same UNIX server

    Greetings,
    I am a developer playing DBA, so please forgive me if these are elementary questions. I have no DBA support.
    I have a Solaris 8 server currently running operational software using 8i. My requirement is to load and test 64bit 10g without interfering with the operational system, then test the s/w. Later, I need to switch from 8i to 10g with little or (preferably) no downtime. It would be nice run the two in parallel before the switchover.
    I have a duplicate setup in the development lab, which is what I am working on right now.
    I was able to get 10g loaded without any apparent problems. However, when I try to run 8i and 10g, the listener’s conflict.
    After reading through various forums this morning, I have a few questions that I am hoping someone can answer.
    1. Oracle 8i is owned by user oracle. I loaded 10g as user ora10g. Should I have loaded 10g as user oracle? If so, how do I keep it from overwriting critical 8i files that are in /usr/local/bin, etc?
    2. Oracle 8i’s ORACLE_HOME is /usr/opt/oracle. 10g’s is /export/ora10g. Does 10g need to be in /usr/opt/ora10g? If so, can I set up a link to simulate this, or do I need to reload?
    Thanks in advance,
    Linda

    Won't say much about the platform (solaris) aspect here but anyway...
    1. You could and sometimes should have a different oracle software owner user for installing/managing software, either is ok. You also might want a different group to own the oraInventory (software catalog).
    You can always enter somethng other than default when prompted by root.sh - why not e.g. /home/ora10g/bin?
    2. I dont think it needs to be installed anywhere, but /export is a bit unusual isn't it? Used for nfs etc.

  • Usage of 4.1 Administrator to export/import eex to 10G EUL

    Hi All,
    I don't have the 10G Administrator s/w.
    Can i use 4.1 Administrator to export (from 4.1 EUL) and then import (to 10G EUL) all the eex files.
    We have a requirement to keep both 4.1 EUL and 10G EUL.
    We have a 11.5.10 E-Business Suite enviroment.
    Thanks a lot,
    Sai.

    Hi Sai
    Yes you can do this and yes the two environments will be independent from each other. The two environments will be separate even if you upgrade because 10G uses objects that begin with EUL5 whereas 4.1 uses objects that begin with EUL4.
    Best wishes
    Michael

  • Issue with .profile for oracle 9i and 10g

    Here I have six oracle 9i databases on one box. I am going to upgrade five of them to oracle 10g and want to keep one database RCAT in oracle 9i for one or two week.
    So, when I do upgrade I have to setup oracle home for 10g and also profile for oracle user for 10g (correct me if I m wrong). But now I want one database RCAT on oracle 9i. How can I take care of this.
    I mean how I will handle profile and all other thing for oracle 9i and 10g at the same time.
    Thanks,
    Vishal

    Install 10g under the same OS user as 9i, of course on a different Oracle Home. Then you configure your .profile consequently. Just as an example, this is my .bash_profile with 10g and 11g with the same oracle OS user :
    [oracle@linux5 ~]$ cat .bash_profile
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
            . ~/.bashrc
    fi
    export EDITOR=vi
    export ORACLE_BASE=/home/oracle/base
    umask 022
    o10()
    {       export ORACLE_SID=db102
            export ORACLE_HOME=$ORACLE_BASE/OraHome10
            export LD_LIBRARY_PATH=$ORACLE_HOME/lib
            export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
            export TNS_ADMIN=$ORACLE_BASE/OraHome11/network/admin
            export PS1='[\u@\h_10 \W]\$ '
    o11()
    {       export ORACLE_SID=db11
            export ORACLE_HOME=$ORACLE_BASE/OraHome11
            export LD_LIBRARY_PATH=$ORACLE_HOME/lib
            export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
            export PS1='[\u@\h_11 \W]\$ '
    s()
    {       sqlplus / as sysdba
    asm()
    {       export ORACLE_SID=+ASM
    db10()
    {       export ORACLE_SID=db102
    db11()
    {       export ORACLE_SID=db11
    asm10()
    {       export ORACLE_SID=asm10
    [oracle@linux5 ~]$

  • How can recover the dropped table on oracle 9i and 10g ?

    This is the scnario...
    user dropped one table on his schema...
    oracle 10g DB
    flashback not enabled so no flashback drop possible
    but any way to recover it from recyclebin on 10g ? becuase this is not sysdba table ...if yes how about on 9i...if yes then will there be any limit on recycle bin like space pressure ??
    Scnario 2:
    we have two online redo log group with 2 member each..
    my currnet online redolog group currupted (including members)...we need the data's of that currnet group so we should'nt use the clear log command
    how to recover it ?
    Do we need to go for any block level revcovery ?
    thanks
    Moorthy
    Edited by: user13014926 on Jan 18, 2011 6:55 AM

    If you have no backup your only option is to perform incomplete recovery (point-in-time recovery) to the time just before the drop, export the table and then restore the database (for example, from a cold backup taken just before the incomplete recovery,) and import the table. This obviously requires a full backup
    taken before the drop which you don't seem to have, so the answer is "regrettably no."
    If you have a backup;
    Take backup of ur current db, apply previous day backup, do point in time recovery to get table back,export table, shutdown and apply latest backup, import table back
    Regards,

  • Configuring Export to PDF and Report Printing

    Greetings
    using Apex 3.1,Oracle 10g Release 2 on Hp-Unix
    i have got to Configure
    Export to PDF and Report Printing
    please mention Documents or Links for the Configuration
    thanks a lot

    Hello ahuja
    I would start here...
    [APEX Printing|http://www.oracle.com/technology/obe/apex/apex31nf/apex31rpt.htm]
    Kind regards
    Simon Gadd

  • 9i and 10g migration/interoperability

    Does anyone have any experience migration 9i Lite to 10g Lite?
    Particularly:
    Can 9i clients sync with a 10g server?
    Can a 9i Mobile Server and a 10g Mobile Server both be running replication on the same sets of tables in the enterprise db?
    Thanks for any insights!

    Hi ppl, in my work we where doing a migration from 9i Lite to 10g not only the lite, mobile server too, the only don't change was the enterprise server ( remains 9i )
    We found some problems with the migration ( althougt isn't a real migration because we don't make a exportation of database 9i and importation after in 10g ).
    Thats because we don't find how. ( or be don't exist )
    I describe you the problems we find and incompatibilities we suffer to make your migration a little sweet.
    9i clients can't sync with a 10g mobile server. odbc, msync.exe and other files are different in this two versions of lite and mobile server, well in a few words they are different versions and incompatible both.
    9i mobile server and 10g mobile server can running replication on the same set of tables in the enterprise bd?, yes they can but we do it in different fisical machines ( the mobile servers i refer ), i don't known if they can co-exists in the same machine.
    --Another question : The migration..
    Isn't well called a migration because you can't do it a migration with import/export tools because there isn't, its so simple.
    We need to do a reconstruction of the same was do it in the past with the 9i mobile server ( create the project, publications and publish the applications ), users and groups for the mb server.
    take a look at que question i introduce
    Exportation / Importation of Mobile Database Workbench information
    No one replies me already, then y suppose there isn't a way to automatize the mobile server implementation.
    --Another things we suffer
    Don't install 9i Lite and 10g Lite in the same client , we have problems and need to deinstall all and install 10g alone.
    ODBC supplied with 10g Lite installation are not configurable, you can't modify a simple option in the control panel > Administrative Tools > ODBC Origins , i suppose oracle do it for automatize the implementation of lite .
    Install 10g being the user who needs the Lite because the ODBC only CAN exists in this user and you CAN'T create an ODBC connection manually to 10g ( YES THIS IS TOO BAD but its true ).
    I don't known what more to tell u now, they where the most interesting two weeks in my life involved with ORACLE.
    And , good luck!
    Joan

  • HOW-TO Distinguish between file exported from Datapump and normal export

    How to distinguish between the dmp file export from the data pump utility and the export utility in Oracle 10g and 11g .
    Thanks,
    SS

    Like Werner suggested, it's never hurt to try anyway.
    use imp with SHOW=Y, if it works then Original otherwise Data pump.
    Once you determined one file, there's good chance that the rest are same. I don't think previous DBA will go through the trouble by mixing data pump and traditional exp/imp.

  • Dbca 9i and 10g

    Hi guys,
    I made a template in DBCA with the following:
    Oracle 9i (9.2.0.7)
    windows 2000 server
    Template with existing Data
    and now I want to restore it in Oracle 10g (windows platform).
    When I try to select the template as I put the files on C:\ora10.1\DB\assistants\dbca\templates, it cannot be choosen.
    Seems to me that the problem is the version, if so, how do I workaround this? if not, what could be happening?
    Thanks in advance for your support.
    -Ed.

    You can modify your .profile for your OS user like that.
    PATH=$PATH:$HOME/bin
    export PATH
    unset USERNAME
    echo "which database do you require?"
    echo "enter 1 for ora9i or 2 for ora10g"
    read DBASE
    if [ ${DBASE} = 1 ]
    then
    export ORACLE_SID=ora9i
    elif [  ${DBASE} = 2 ]
    then
    export ORACLE_SID=ora10g
    else
    echo "You have not selected a database. Logoff and start again"
    fi
    Modify accordingly for each of the following variables for your 9i and 10g. Hope this will work.
    export ORACLE_HOME=/u01/appl/oracle
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib
    export TNS_ADMIN=/u01/appl/oracle/network/admin
    export PATH=${PATH}:${ORACLE_HOME}/bin
    Regards
    Asif Kabir

  • Sorting in 6i and 10g reports

    Hello All,
    I am running 6i and 10g reports against a 10g database.
    I ran one of the 6i report and it generated a report in one sorting ordear
    and when i ran the same report on 10g ,it generated the report in ddifferent order.
    Both the reports r run against the same 10g database.
    The order by clause on the columns of the records r identical.
    Now i wanted to understand how it is sorting in different orders in both 6i and 10g reports?
    Thanks,
    Ranz

    Hi,
    Please note the fact that 6i Reports is not certified to work with 10g Database. Hence it becomes impossible to address the sorting behavior of 6i Reports, though there is nothing different in the way it works. I would suggest you to use 10gR2 version of Reports services with 10g Database which is certified and supported. Thanks for your understanding.
    Regards,
    Anand

  • Dflt report in 6i and 10g

    Hi
    I am trying to get a tillslip to print correctly after converting from reports 6i to 10g. The problem i think is that the outputfile generated in the 6i version is diffrent from the output file in 10g. The 10g version looks similar to postscript while the 6i output file does not mean anything to me.
    If i open the 6i test.dflt file it looks something like: =c0c1c32R
    If i open the 10g test.dflt file it looks something like:
    %!PS-Adobe-3.0 %
    %Creator: Oracle Toolkit 2 for Motif 10.1.2.0.2 PRODUCTION
    Using the 6i output file i can print the tillslip correctly in both the 6i and 10g environments. Using the 10g output file all the char in the output file prints including the comments (the %!PS-Adobe-3.0 % bit also)
    Any ideas how to get the output file the same. All report settings (DESFOTMAT, DESTYPE, ...) are the same. The dflt.prt file only differs as follows:
    printer "dflt"
    height 66
    width 80
    after page control(L)
    return        ""  (this line in 6i file is: return        "M" )
    linefeed control(J)
    Any ideas will be helpfull. I have tried creating the report as a .rtf, .pdf and .ps file and all of them print with the code inside and not just the tillslip info.
    Thanks

    Hi
    I afound that the problem is that the app server does not know about the printer as it is connected to a users PC. Thus when using the dflt desformat it selects the default printer language of the App Server printer. This is the reason why the files are diffrent.
    If I understand everything the process should be:
    1 - Run the report from forms (on app server).
    2 - Write the report to a file on App Server and then transfer the file to the user PC.
    3 - Send file correct printer on the user PC.
    The problem still remains on how to create the correct file which can be send to the printer connected to the users PC as the driver of the correct printer is not known too the App Server. The printer still prints the file incorrectly as the file is not created using its drive as what the case was when running it in 6i.
    Setting the MODE to character (which will enable you to provide a .prt file if you had one to give) will not work as the report contains an image.
    Regards
    Edited by: hfp843 on Sep 17, 2008 2:28 AM

  • When I export a playlist and then open in excel, do whatever sorting I want, I then save the file and reimport into itunes but not all the songs are there. It appears to be from "comma's" in the song name. Any solutions?

    I see songs such as "Monday, Monday" or "Paint It, Black" or even the artist name such as "Fireballs, with Jimmy Gilmer" which have comma's in them, being a problem when I try to do the following:
    1. Export a playlist which contains songs which are all there and play fine, but some have comma's in the title such as listed above.
    2. I then open that file in Excel and bring it in as a Tab-delimited file.  Everything lays out fine, and all the songs are thing (including those with comma's).
    3. I then sort the varoius fields I want (which I can't do in i-tunes because i-tunes won't sort it properly), and resave the file as a newly named file, which is also a .txt file.
    4. I then import that playlist into my itunes. It is exactly the same songs that I just had exported but i-tunes says some of the songs can't be found.
    I have traced this problem to comma's in the file name of the song such as listed above.  There must be a solution to this either as the file is opened in excel or in how it's saved or some other solution short of having to rename song/artists without using comma's. 
    Thanks.

    The additional problem is the file name of the song itself.  Even if I were able to delete the commas or replace with a space for example, changing the file name would result in itunes not being able to find the file.  I would have to go through each file (out of about 15,000+ songs) to find any that have titles such as described in this thread and change not only the song and artist in the fields, but changing the mp3 file itself. 
    I fear that I am really pretty much going to have to start with a list of songs that have no comma and then do a file compare to find those songs with commas and then just physically moving them into a new playlist I'm trying to create, but this is a royal pain as I want to be able to create a variety of playlists based on these chart dates/peak positions. 
    I'm trying to sort the songs in this manner:  I use different fields in itunes so that I can put the "peak position" of each song based on Billboard charts, as well as the date the peak position was acheived. I use the "comment box" for that.  I use the "grouping" field for my peak position.
    So I end up with something like "10/14/1980" in the comment box as the peak position for a song which is in the grouping field, and so forth.  If I try to sort the comments column in itunes for example, it won't sort properly. If I sort the Grouping field, it will bring up all the "1's", but that's followed by "10", 11, ...19, then "2", etc.  This is why I want to export the playlist and sort it as I want, and then reimport the playlist into itunes. 
    What I'm ultimately trying to achieve is a year-by-year peak position playlist so that I end up with every #1 song (in this case) from, say, January 1st 1980 and then every #1 song in sequential order for the rest of the year falls in line.  I have chart position dates from 1955 through 1999.  I have entered in all the data from Billboard books I own so I can really create some amazing playlists, but these commas are problematic. Had I known this ahead of time I would have made "Monday, Monday" as "Monday Monday" and not included commas, but it's too late for that.
    Any suggestions?

  • Occasional ora-6502 using forms 6i and 10g

    Hi all.
    We have been experiencing some weird and unexpected ora-6502 errors in some of our forms 6i modules running against 10g (rel 1 or 2).
    Forms modules are correctly functioning and for some reason, one day an ora-6502 error suddenly pops up.
    Now the weirdest thing is that after you put some messages on the trigger, so you can track down where the error is coming from, it disappears.
    I know that this may sound hard to believe, but it has happened several times. All we do is put some message built in, recompile all, and the error is gone (for a while).
    So my questions are:
    - Is this a known issue beween forms 6i and 10g Db?.
    - Is there a patch on Metalink ( we use Forms [32 bits] Versión 6.0.8.26.0 (Producción))
    - A workaround?
    and most important
    - Have anyone been exposed to a similar situation?
    Regards, Luis ...!

    Now the weirdest thing is that after you put some messages on the trigger, so you can track down where the error is coming from, it disappears.Sounds like the form has not been "clean compiled" against the server on which it is running. Try a "Compile All", which causes all previously compiled program units to be compiled fresh.
    Or even better, clean out all the compiled code from your fmb before compiling the fmb on the server where it runs.
    See this topic:   Re: Why does this happen - find ';', replace with ';'?

Maybe you are looking for