Datapumps and Imp/Exp

what is the primary difference between datapumps and imp/exp utilities?
Thank you

The 10g Utilities manual lists the new capabilities that Data Pump provides over imp/exp:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_overview.htm#i1010248
That is a pretty complete list. The original exp/imp chapter mentions two things that should be fairy obvious:
You need to use the original imp to import dump files generated by the original exp.
You need to use exp to generate files that can be read by imp on earlier (pre-10) versions of Oracle.
Last but not least, many of us have become accustomed to writing to and reading from named pipes with exp and imp. This is a popular way to compress or pipe across rsh/ssh on the fly. Unfortunately, this is impossible with Data Pump! I would say that is among the most strenuous complaints I hear about Data Pump.
Regards,
Jeremiah Wilton
ORA-600 Consulting
http://www.ora-600.net

Similar Messages

  • Using expdp and impdp instead of exp and imp

    Hi All,
    I am trying to use expdp and impdp instead of exp and imp.
    I am facing few issues while using expdb. I have a Job which exports data from one DB server and then its imported so another DB server. Both DB servers are run on separate machines. Job runs on various clients machine and not on any of DB server.
    For using expdp we have to create DIRECTORY and as I understand it has to be created on DB server. Problem here is Job can not access DB Server or files on DB server. Also dump file created is moved by Job to other machines based on requirement( Usually it goes to multiple DB server).
    I need way to create dump files on server where job runs.
    If I am not using expdp correctly please guide. I am new to expdp/impdp and imp/exp.
    Regards,

    Thanks for quick reply ..
    Job executing expdb/impdp runs on Red Hat Enterprise Linux Server release 5.6 (Tikanga)
    ORACLE server Release 11.2.0.2.0
    Job can not access the ORACLE server as it does not have privileges (In fact there is no user / password to access ORACLE server machines). Creating dump on oracle server and moving is not an option for this JOB. It has to keep dump with itself.
    Regards,

  • Scripts for exp and imp in linux

    please give me some links for exp and imp tables peridical bactch script in oracle 10 R2 over RHEL 4.5.

    user13653962 wrote:
    please give me some links for exp and imp tables peridical bactch script in oracle 10 R2 over RHEL 4.5.try this.. change the same script for your environment
    $ crontab -l
    00 22 * * * sh /u01/db/scripts/testing_user1.sh
    $ cat /u01/db/scripts/testing_user1.sh
    . /home/oracle/TEST1.env
    export ORACLE_SID=TEST1
    export ORA_USER=dbdump
    export ORA_PASSWORD=dbdump
    export TNS_ALIAS=TEST1
    expdp $ORA_USER/$ORA_PASSWORD@$TNS_ALIAS tables=YOUR_tables_NAMEs  dumpfile=TEST_`date +'%Y-%m-%d`.dmp directory=YOUR_DUMPDIR logfile=TEST_`date +'%Y-%m-%d`.logif you need for original export change the exp command,
    exp username/password tables=table_name1,table_name2,etc... file=your_file_name log=your_log_file_name

  • Imp/exp ORA-12899: value too large for column

    imp/exp ORA-12899: value too large for column
    source :
    os: linux as 4 update4
    .bash_profile NLS_LANG=AMERICAN_AMERICA.US7ASCII
    for run exp bill/admin001 file=bill0518.dmp bill rows=y
    oracle: 10.2.1
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CHARACTERSET US7ASCII
    target :
    os: linux as 4 update4
    .bash_profile NLS_LANG=AMERICAN_AMERICA.AL32UTF8
    for run
    imp bill/admin001 file=bill0518.dmp
    oracle: 10.2.1
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CHARACTERSET AL32UTF8
    imp log
    Import: Release 10.2.0.1.0 - Production on Wed May 16 14:57:59 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Produc tion
    With the Partitioning, Real Application Clusters, OLAP and Data Mining options
    Export file created by EXPORT:V10.02.01 via conventional path
    import done in US7ASCII character set and AL16UTF16 NCHAR character set
    import server uses AL32UTF8 character set (possible charset conversion)
    export client uses AL32UTF8 character set (possible charset conversion)
    . importing BILL's objects into BILL
    . . importing table "MY_SESSION" 44 rows imported
    . . importing table "T1"
    IMP-00019: row rejected due to ORACLE error 12899
    IMP-00003: ORACLE error 12899 encountered
    ORA-12899: value too large for column "BILL"."T1"."NAME" (actual: 62, maximum: 5 0)
    Column 1 1
    Column 2 ÖйúÈË. 0 rows impo rted
    Import terminated successfully with warnings.

    Yes it's probably due to different char sets
    A way around it it to change the DB setup on the new database to use CHAR as default for varchar2 rows, and then use datapump to do your import/export, because datapump uses the default varchar2 type when creating tables that includes varchar2 (which is normally byte). Exp/imp uses the varchar2 type that is in the original database
    Best regards
    /Klaus

  • Problems compiling objects after imp/exp

    I am moving an Apex database to a new machine using imp/exp. I have run into problems getting 2 packages ( WWV_FLOW_CUSTOM_AUTH_STD and WWV_FLOW_SECURITY ) to compile due to PLS-00753: malformed or corrupted wrapped unit. I have tried using both imp/exp and datapump with no success. I have insured that my sys grants exist on the new database. I have also tried generating the package code and manually creating the package with no luck?
    Any ideas? Is there a script in the Apex distribution that can be run to recreate these pacakges?
    Thank you
    Message was edited by:
    birk

    Birk,
    1. Connect as FLOWS_xxxxxx (depends on your version) and   alter package wwv_flow_security compile
       alter package wwv_flow_security compile body
       alter package wwv_flow_custom_auth_std compile
       alter package wwv_flow_custom_auth_std compile body
       /2. If that doesn't work, go to the core directory in the distribution and, again connected in SQL*Plus as FLOWS_xxxxxx, run:    @auth.sql
        @auth.pkb
        @custom_auth_std.sql
        @custom_auth_std.pkb3. If that doesn't work, you may have to contact Support about the imp/exp steps that seem to have given rise to this.
    Scott

  • Imp Exp utility in ubuntu 10.4 with oracle instant client 10

    Hi,
    I have a problem with the imp/exp utility on Ubuntu 10.4.
    I have installed the oracle instant client 10, and I have followed this thread
    [http://download.oracle.com/docs/cd/B25329_01/doc/admin.102/b25107/impexp.htm#CHDDBGDF]
    So, I've set env variable in my .bashrc
    ORACLE_HOME=/home/lucia/Programmi/instantclient10_1
    export ORACLE_HOME
    LD_LIBRARY_PATH=/home/lucia/Programmi/instantclient10_1:${LD_LIBRARY_PATH}
    export LD_LIBRARY_PATH
    PATH=/home/lucia/Programmi/instantclient10_1:${PATH}
    export PATH
    SQLPATH=/home/lucia/Programmi/instantclient10_1:${SQLPATH}
    export SQLPATH
    Sqlplus works fine, but when I try to use the utility exp/imp
    exp DB_USER/DB_PW@DB_SCHEMA owner=DB_USER buffer=300000 LOG=DB_USER.log FILE=DB_USER.dmp compress=n
    I have the following error:
    No command 'exp' found, did you mean:
    Command 'xep' from package 'pvm-examples' (universe)
    Command 'ex' from package 'vim' (main)
    Command 'ex' from package 'nvi' (universe)
    Command 'ex' from package 'vim-nox' (universe)
    Command 'ex' from package 'vim-gnome' (main)
    Command 'ex' from package 'vim-tiny' (main)
    Command 'ex' from package 'vim-gtk' (universe)
    Command 'axp' from package 'axp' (universe)
    Command 'expr' from package 'coreutils' (main)
    Command 'expn' from package 'sendmail-base' (universe)
    Command 'epp' from package 'e16' (universe)
    exp: command not found
    (I cannot use data pump exp)
    Any suggestions?
    thanks in advance.
    Lucia

    root@laptop:~# /tmp/CVU_11.2.0.1.0_lucia/runfixup.sh
    Response file being used is :/tmp/CVU_11.2.0.1.0_lucia/fixup.response
    Enable file being used is :/tmp/CVU_11.2.0.1.0_lucia/fixup.enable
    Log file location: /tmp/CVU_11.2.0.1.0_lucia/orarun.log
    [: 845: true: unexpected operator
    [: 860: unexpected operator
    Any suggestions?
    thanks
    LuciaHello,
    I had the same problem. It was related to the shell script interpreter being used: it is really a bash script asking to be interpreted as sh. For the impatient, the solution was to change the first line of the script orarun.sh to read as:
    #!/bin/bash
    Explanation:
    1. The script runfixup.sh calls orarun.sh. The latter is the one that fails starting at line 845.
    2. The script is really a bash script as can be seen from the if syntax used. For example at line 191 we see the double equall sign ==:
    if [ "`echo $SET_KERNEL_PARAMETERS | tr A-Z a-z`" == "true" ]
    3. The bash man page says:
    string1 == string2
    string1 = string2
    True if the strings are equal. = should be used with the test command for POSIX conformance.
    string1 != string2
    True if the strings are not equal.
    (End of man page excerpt)
    Notice in particular that for a bash script to be POSIX it should avoid the == and just use =
    4. orarun.sh has on its first line #!/bin/sh. On my Ubuntu system, sh is a softlink to dash and the dash man page says:
    s1 = s2 True if the strings s1 and s2 are identical.
    s1 != s2 True if the strings s1 and s2 are not identical.
    5. So this script script uses bash syntax but is interpreted by dash. It is possible that this worked fine for the Oracle developer if on their system sh was softlinked to bash (which is often the case). Apparently, one should then be very careful to not use idioms that are not POSIX compliant.
    6. Another solution is to change the /bin/sh softlink from dash to bash. Personally, I was less comfortable doing this (the possible repercussions were wider than the proposed solution above).
    After making the change, the script ran perfectly. I think the best solution is for Oracle to update the script to be POSIX compliant or to identify itself as bash.
    Hope that helped,
    Mark Gaber
    Edited by: user1112514 on Jun 30, 2010 3:28 AM

  • Datapump and Oracle Spatial (11.1.0.7 - 10.2.0.1)

    Hi all,
    I want to export a schema with expdp from a 11g database and import the created file to 10g database with impdp.
    my export-commandline is as follow:
    expdp system/***@db_01 schemas=grnfl directory=data_dump exclude=statistics logfile=grnfl.log reuse_dumpfiles=y version=10.2.0.1
    with the version-parameter it is possible to import the file to 10g database.
    I tried to import with:
    impdp system/***@db_02 dumpfile=expdat.dmp logfile=grnfl_imp.log
    there are no problems with all my tables without mdsys.sdo_geometry. but the tables with spatial are not imported with error-messages in logfile:
    ORA-31693: Tabellendatenobjekt "GRNFL"."ANLAGE" konnte nicht geladen/entladen werden und wird wegen Fehler übersprungen:
    ORA-02354: Fehler beim Exportieren/Importieren von Daten
    ORA-39779: type "MDSYS"."SDO_GEOMETRY" not found or conversion to latest version is not possible
    with old imp/exp I was able to add a parameter toid_novalidate to import dumpfiles from 11g database into 10g database.
    Any idea what I can do to import mdsys.sdo_geometry correct?
    Many Thanks,
    Daniel

    Welcome to the forums !
    I think you are running into a bug. Pl see these MOS Docs
    6730161.8 - Bug 6730161 - ORA-39779 trying to use 10.2 expdp/impdp utility from 11g database to 10.2
    740718.1 - ORA-39779 TRYING TO USE 10.2.0.3.0 EXPDP/IMPDP UTILITY FROM 11G DATABASE TO 10.2
    HTH
    Srini

  • Use of imp/exp to restore a database will fail ??

    I have a database that uses mdsys and other user-defined objects. This week I've had the "pleasure" to try to restore a database from scratch using imp, but had to abandon because imp refuses to create tables if they refer to objects, that upon export had a different id than the database being imported to.
    Since mdsys for instance, is always excluded from exports (like sys and system) when you create a new database, the spatial objects are created with a different ID than the original database. Hence, every table you have with spatial data will not be imported.
    So imp only works if the internal object ids match.
    What would be the "imp/exp" procedure to do a full db restore that bypasses the above problem? Has datadump solved this issue?

    Correct - all schemas considered part of the dictinary are excluded (why has things become so complicated- in the old days we had ONE place where everything dictionary went).
    That's the problem. I have tables in my export that depends on MDSYS objects. In other words, spatial data. So, to re-create my database I must first create a database and ADD a MDSYS schema. So yes, I created the schema prior to import. The problem is, that the MDSYS objects then do not get the same object-ids. And there lies the problem. IMP will not import my tables with spatial data in them because the reference to the MDSYS objects do not match the object ID that was used during export. Why this rule is applied is the mystery.
    In addition, which I rote in the spatial forum, anything related to the mapviewer application is also placed in the MDSYS schema, excluding them from export; regardless that the data related to mapviewer is not related to database objects. The result is, that your Oracle Mapviewer application data is lost. The "official workaround" is to run pre-scripts that copy the dictionary views to fixed tables, then run your export. And on import you run a post-script to copy it back. Rather silly and inflexible.

  • How to redirect imp/exp or impdp/expdp output

    Hello,
    I'm sorry for that, if this forum not the right place for this posting, but I hope that some one has this problem too.
    I've an application written in C# (an windows.forms app) that calls imp/exp or impdp/expdp (depends on user). I need the output of this tools in my app.
    Thank a lot for any help.

    user9099355 wrote:
    Hello,
    I'm sorry for that, if this forum not the right place for this posting, but I hope that some one has this problem too.
    I've an application written in C# (an windows.forms app) that calls imp/exp or impdp/expdp (depends on user). I need the output of this tools in my app.
    Thank a lot for any help.EXPDP/IMPDP:-
    [oracle@adg disks]$ expdp system/manager schemas=scott directory=DATA_PUMP_DIR logfile=scot_exp.log
    Export: Release 11.2.0.1.0 - Production on Tue Oct 4 14:36:54 2011
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, Automatic Storage Management, OLAP, Data Mining
    and Real Application Testing options
    Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01":  system/******** schemas=scott directory=DATA_PUMP_DIR logfile=scot_exp.log
    [oracle@adg disks]$ cd /u01/app/oracle/admin/adg/dpdump/
    [oracle@adg dpdump]$ ls -lt scot_exp.log
    -rw-r--r-- 1 oracle dba 1965 Oct  4 14:38 scot_exp.log
    [oracle@adg dpdump]$exp/imp:-
    [oracle@adg dpdump]$ exp system/manager file=exp_schema.log log=exp_schema_trad.log owner=scott
    Export: Release 11.2.0.1.0 - Production on Tue Oct 4 14:38:53 2011
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, Automatic Storage Management, OLAP, Data Mining
    and Real Application Testing options
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses AL32UTF8 character set (possible charset conversion)
    [oracle@adg dpdump]$ ls -lt exp_schema_trad.log
    -rw-r--r-- 1 oracle dba 1774 Oct  4 14:39 exp_schema_trad.log
    [oracle@adg dpdump]$or
    nohup exp system/manager file=exp_schema.dmp owner=scott > exp_schema_test.log
    +[oracle@adg dpdump]$ ls -ltr exp_schema_test.log+
    -rw-r--r-- 1 oracle dba 1922 Oct  4 14:40 exp_schema_test.log
    +[oracle@adg dpdump]$+

  • Imp/exp stdout language

    Hi all,
    I am interested in changing language in exp and/or imp log files? Oracle version is 10.2.0.4.0, OS version is Win 2k3R2.
    I have Oracle DB installed on hungarian-language OS, and when issue an exp command, I get log file on hungarian language. I need stdout language for imp/exp utility to be on english. Can I do this?
    As far as I know stdout language for sqlplus query for current session can be changed with alter session set nls_language=ENGLISH.
    A little demonstration:
    current logfile:
    . . a következo tábla exportálása:                         A          3 sor exportálva
    . . a következo tábla exportálása:                         B          2 sor exportálva
    . . a következo tábla exportálása:                         C          0 sor exportálva
    desired logfile:
    . . exporting table                       A          3 rows exported
    . . exporting table                       B          2 rows exported
    . . exporting table                       C          0 rows exported
    . . . . .Tnx in advance.

    Prior to running exp or imp (and why still use exp and imp?)
    set nls_lang=<Region>_<territory>.<characterset>
    Don't know why but it seems it is 'Doc question day' again.
    Sybrand Bakker
    Senior Oracle DBA

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

  • Can I use 9i imp/exp utility after installing 10g

    Hello, all:
    I have two database co-exist in one machine, one is 9i, another one is 10.2, which was just installed recently . Now I need to imp/exp the 9i database, I can't invoke 9i imp/exp utility anymore, even under 9i oracle_home, I can only get 10g's imp/exp screen comes up, can someone help me? Is there anyway that I can use both version of utility in the same machine?
    Thanks a lot in advance.
    wendy

    I can't invoke 9i imp/exp utility anymoreThat might be because the 10G_ORA_HOME\BIN appears first in your PATH environment variable. Either put 9i_HOME\BIN first in your PATH or navigate to the BIN directory of 9i home and run the export/import from there.
    C:\>exp
    Export: Release 10.2.0.1.0 - Production on Wed Oct 25 09:31:50 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Username: ^C
    C:\>
    C:\>cd Oracle\ora92\bin
    C:\oracle\ora92\bin>exp
    Export: Release 9.2.0.7.0 - Production on Wed Oct 25 09:32:03 2006
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Username: ^C
    C:\oracle\ora92\bin>

  • Moving data type with imp/exp

    i used this line in one database:
    create or replace type sagi_row as object (
    ids varchar2 (250)
    str varchar2 (250));
    create or replace type sagi_srray os table or sagi_row;
    it work and i can use it.
    i duplicate the database by simple defaul exp and imp, it do every tink but not the data_type.
    it is simply do not transfer with all the data.
    and my question is WHY????????
    Thank you

    What version of Oracle are you using? Can you post the export and import logfiles?

  • Minimum group membership for imp/exp for ora 8i(client)  windows xp users

    Hi to all,
    For oracle 8i clients, windows xp users, what is the minimum group membership required that can be used so that the users can import or export dmps. Using Administrators imp/exp works ok... Any alternative?
    Thanks

    Hi Thierry,
    Please do not confuse the issue. Here we have the windows Operating System - privilege and then the Oracle database user privilege. In my case the Oracle database user privilege is DBA. If the user is given a Windows - Administrators privilege (which I do want to give) the exp/imp creates the DMP and log file. But any other standard windows privilege (with DBA privilege) the exp/imp does not create the dmp and log file. I hope I am clear and now you can suggest some alternative solution to OS - administrator.
    Thanks again

  • Imp exp commands

    Hello!
    I am a newbie in dataguard.
    Til now the only backup procedure for the data was accomplished using the exp command on specific schemas.
    Now we want to create a data guard environment but we want to continue using exp on the primary and imp on another server(not the standby).
    Do the new configurations for data guard effect the exp procedure, I mean can we continue using exp on the primary as before without any problem?
    Thanks in advance!

    Uwe has made me think about more.
    If you are asking will IMP/EXP still work then yes is the correct answer.
    However since you state "only backup procedure" I went with the RMAN answer.
    Also I assume you are speaking about the Primary database only.
    Best Regards
    mseberg

Maybe you are looking for