IMP & impdp

Hi all

11.2.0.3

I am exporting the table EMP of PROD db, using EXP or EXPDP and import it on UAT of database into a table named EMP2.

How can I do this?

Thank you

pK

You can use option REMAP_TABLE.

Reference: http://docs.oracle.com/cd/E11882_01/server.112/e16536/dp_import.htm

Tags: Database

Similar Questions

  • exp/expdp of 32-bit, and then imp/impdp 9i to 11 GR 2 64-bit

    Hi all

    This process is supported?

    exp/expdp of 32-bit, and then imp/impdp 9i to 11 GR 2 64-bit

    Thank you very much

    JC

    Hi, Jenna.

    Yes, it is supported.

    Import/export is done at the level of the data files OS no not really something to do with the system, the data files are the same regardless of the oracle software binary level. However, you should check if any problem with the compatibility of data on levels of oracle version.

    But please make sure that you use the same utility dump file, i.e., imp - exp and expdp-impdp(introduced from 10g)

    Thank you

    AbbasDBA

  • Impdp fails via data link

    Hello

    I am trying to import a particular schema of another instance in my instance via a link of database using Data Pump.

    Source instance: Solaris on Sparc 10.2.0.4.0 64-bit
    Instance of the target: Linux on x 32, 10.2.0.4.0

    I created a database on the target database link and checked the link to work, i.e. I could query the tables in the remote database by using the user who should receive the data.

    I created a directory "exp" on the target database and have the appropriate permissions for 'mh03.

    Then I tried importing and got an error:

    -----

    Oracle@padsw7ora01 imp$ impdp mh03 / * NETWORK_LINK = padsol25 = test_bas_bkrus_d123120 REMAP_SCHEMA = test_bas_bkrus_d123120:mh03 = exp = imp.log LOGFILE DIRECTORY SCHEMAS

    Import: Release 10.2.0.4.0 - Production on Tuesday, January 20, 2009 14:47:30

    Copyright (c) 2003, 2007, Oracle. All rights reserved.

    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With partitioning, OLAP, Data Mining and Real Application Testing options
    ORA-39006: internal error
    ORA-39113: unable to determine the database version
    ORA-02083: name of a illegal character data '-'

    ORA-39097: Data Pump job encountered the error unexpected-2083

    Oracle@padsw7ora01 imp$

    -----

    I tried searching metalink and web but not able to find any useful information. I tried using the VERSION = '10.2.0.4.0' parameter, but this did not help either (error message remains as what).

    I found what seemed somewhat related:

    ORA-39113: unable to determine the database version
    Cause: The Data Pump has been impossible to determine the level of compatibility with the version of the current database using SYS. DBMS_UTILITY. DB_VERSION.
    Action: Be sure you have access to the DBMS_UTILITY package for you. If it is a network work, make sure that package DBMS_UTILITY access is granted to you on the remote instance.

    But even that "grant execute on SYS. DBMS_UTILITY to mh03' did not help at all.

    I realize that the target database is compatible to 10.2.0.3.0:

    -----

    1 declare
    2 v varchar2 (1000 char);
    VARCHAR2 (1000 char) 3 c.
    4 start
    DBMS_UTILITY 5. DB_VERSION (v, c);
    6 dbms_output.put_line (v);
    7 dbms_output.put_line (c);
    8 * end;
    SQL > /.

    PL/SQL procedure successfully completed.

    SQL > set serverout on
    SQL > /.
    10.2.0.4.0
    10.2.0.3.0

    PL/SQL procedure successfully completed.

    SQL >

    -----

    Any ideas, what went wrong and how can I remedy this? Thank you very much!

    Kind regards

    Robert

    Published by: rklemme on January 20, 2009 06:16

    rklemme

    In my case it had nothing to do with the host name of the server, or name resolution. It was related to the global_name of the instance.
    I could question using the link but not to perform a remote import.

    Try to temporarily change your global_name by removing the hyphen in domain name and test your import:
    SQL > alter database rename global_name to .pad. * mycompany * .net.

    PY

  • When I do exp (expdp), why use the temporary tablespace?

    Dear

    Imp (impdp) is using temporary tablespace.

    but I'm not using tablespace temp, while exp (expdp) is running.

    I think that exp (expdp) will not use temporary tablespace. is it not?

    Please let me know?

    He could.  It must run queries on the data dictionary.  Some of these applications may require the temp tablespace.

    Hemant K Collette

  • Extraction of the DDL (Code) of the stored procedures only

    DB Version: 11 g

    I have a list of stored procedures (about 250) whose code IE. Statements to CREATE or REPLACE STORED PROCEDURE I want to extract a file.
    Is there an option in imp or impdp where I can extract only the code of these stored procedures?

    Apart from the imp/impdp, is there another way to do this?

    Is there an option in imp or impdp where I can extract only the code of these stored procedures?

    Impdp, Yes. Write the contents of a file, the option SQLFILE.

    DUMPFILE = exp.dmp
    LOGFILE = exp.log
    SCHEMAS = TEST
    INCLUDE = PROCEDURE: 'IN ("SP") '.
    SQLFILE = sp... SQL

    Or use dbms_metadata.get_ddl

    set long 99999
    set pagesize 0
    SELECT DBMS_METADATA.GET_DDL(object_type, object_name, owner) FROM DBA_OBJECTS WHERE OBJECT_TYPE = 'PROCEDURE' and OWNER='OWNER';
    

    HTH
    -André

  • Accelerate exp/imp or expdp/impdp

    Hello

    Is it possible to speed up and exp/imp or expdp/impdp that already works? Is is possible to speed up a run RMAN backup or restore RMAN process?

    Kind regards

    007

    To accelerate a datapump export market and import you can attach to employment and increase the level of parallelism... impdp attach = job

    I don't know any way to speed up a running RMAN backup.

    To expedite an RMAN restore, you can kill the restoration and re - run using several channels.  The restoration should take up where he left off and can run faster with many channels.  It is relevant only if you have several items from backup.

  • Jobs impdp/imp consumes UNDO tablespace

    DB version: 11.2.0.3
    Version of the OS: RHEL 5.6

    I'm doing an import of single table which is 7.5 GB in size. It takes more than 35 minutes with PARALLEL = 3.
    Free space of the tablespace Undo was only 100 MB when I checked. Temporary tablespace had 3 GB of free space.
    IMP or impdp process consumes well CANCEL? Impdp no insertions using plain INSERT SQLs internally?

    Yes, cancellation can be consumed, even more in impdp as IMP. But what really depends on used options, look so _session_wait and events tables of $ v. Some versions (I'm not your) have had problems when there are many objects, dealing with the ddl.

  • IMP/exp expdp/impdp vs

    Hi all;
    which is better in performance the traditional exp/imp or expdp/impdp?

    Hello

    Oracle Data Pump is a more recent, rapid and flexible alternative to utilities 'exp' and 'imp' used in previous versions of Oracle. In addition to export and import of basic feature data pump provides a PL/SQL API and support for external tables

    If Oracle is recommended for all 10g databases and more use of Data Pump and pre 10g use old exp/imp :)

  • expdp/impdp method in the database upgrade from 11.2.0.4 to 12.1.0.2 an error in logic of "command line"?

    Hi DBA:

    We are evaluating different methods of upgrading 11 GR 2 DB to 12 c (12.1.0.2) this year, it is very important for us to use the right method.  It was reported that when DB version was 9i and has been updated to 11g, there were some order of tables 'line' was wrong when execute SELECT statements in application (Java application) - at the moment I didn't if it is ' select * from... "or any specific part with a"where"clause, and what type of data was wrong (maybe sequence CLOB data, etc.).

    I think I know, ' exp/imp', "expdp/impdp" logical backup of DB methods.  Therefore, Oracle automatically import data and fix it in each table.  If no error in impdp connects after it's over, should not be any mistake, right?

    If the use of the method of 'creates a new data + expdp/impdp basis for schemas user' 11g 12 c port data, questions:

    1. this method will lead to erroneous sequence data when ordering?  If so, how to re - generate the sequence number?

    2. this method can bring CLOB, BLOB data and without any errors?  If error, how to detect and repair?

    I use the same method in the 10.2.0.5 to 11g port data, no problem.

    I'll keep this thread posted after getting more information from application.

    Thank you very much!

    Dania

    INSERT... SELECT, CREATE TABLE in the SELECT and Export-Import will all "re-organize" the table by assigning new blocks.

    In place--update (using DBUA or command line) don't re-create the user tables (although it DOES not rebuild the data dictionary tables).  Therefore, does not change the physical location of lines for user tables.  However, there is no guarantee that a further reason for INSERT, DELETE, UPDATE instructions does not change the physical location of ranks.  Nor is it a guarantee that a SELECT statement will return always stored in the same order unless an ORDER BY is specified explicitly.

    If you export the data while it is still used, you don't avoid update sequences in the source database.  Usually results in a mismatching number sequence between the source database and the new database (imported). In fact, even the numbers may be different, unless you use CONSISTENT or FLASHBACK_SCN.  (These two options in exp / expdp do NOT prevent update sequences).   The right way to manage sequences is to rebuild or increase them in data imported with the values in the data source, once the import is complete.

    Hemant K Collette

  • Unexpected error IMP-00002

    Hello!

    I encountered this error while trying to import a dmp file with the imp command:

    > Log file = file.dmp user/pw = imp imp.log tables = TABLES

    Import: Version 11.2.0.2.0 - game Production. 5 November 16:49:21 2015

    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

    Connected to: Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64 bit Pro

    production

    IMP-00002: cannot open opac.dmp to read


    My dmp file is located in the right directory DATA_PUMP_DIR, so the problem can't come from there.


    (for example, when I try whith impdp, I have this error (which led me to use imp), proving that the file path is well understood by my order):


    > impdp user/pw dumpfile = file.dmp = impdp logfile.log schemas = TABLES table_exists_action = replace

    Import: Version 11.2.0.2.0 - game Production. 5 November 16:36:38 2015

    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

    Connected to: Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64 bit Pro

    production

    ORA-39001: invalid argument value

    ORA-39000: bad dump file specification

    ORA-39143: dump file "C:\oraclexe\app\oracle\product\11.2.0\server\log\app\oracl ". " e\admin\XE\dpdump\file.dmp" can be an original export dump file

    )


    I checked the file.dmp rights: all reading, writing, rights are granted to everyone.


    Is "file.dmp is damaged" the only answer?


    Thank you and a lot and sorry for my bad English!



    The imp utility uses NOT defined directories, done impdp.  If you aren't at the location of this dump file when you run your imp and imp can NOT find the file and open it; You must be in the directory where this dumpster or provide the FULL path to it.

    David Fitzjarrell

  • DPM backup: imp/exp with system/password

    Hello

    I export the database as:

    exp system/passwd owner=mi file=/var/Downloads/dmp/MI61015.dmp log=/var/Downloads/dmp/MI61015.log statistics=none
    

    Import database as:

    imp system/passwd fromuser=mi touser=mi file=/var/Downloads/dmp/MI61015.dmp log=/dmp/MI61015.log
    

    Question-1: An oracle expert says that's not good. Why?

    Question-2: If I do not write in the command export statistics = none then its display of warnings. Why should I use it?

    Thanks to anitcipation

    Hi H. Christy

    As you mentioned in the previous post, your database schema source GSW has segments in the following storage spaces;

    SQL > select tablespace_name distinct from dba_segments where owner = 'GSW ';

    TABLESPACE_NAME

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

    USERS

    SYSTEM

    When you import, you specify:

    REMAP_TABLESPACE = SYSTEM: GSW

    But the import process fails with:

    ORA-39083: TABLE object type: 'GSW '. "' REPORTS ' unable to create with the error:

    ORA-00959: tablespace 'GSW' does not exist

    Above means GSW tablespace must be created in the target database because you specify that all segments of the SYSTEM tablespace must be redirected (created) in tablespace GSW.

    Also, you must rewrite your import like this command:

    Impdp gsw/pass remap_tablespace = SYSTEM: GSW remap_tablespace = the rΘpertoire of USERS: GSW dumpfile = gsw.dmp = dmpdir

    Then, you must restart all import process in the target database:

    SQL> CREATE TABLESPACE gsw .......
    
    SQL> drop user gsw cascade;
    SQL> create user gsw identified by pass;
    SQL> grant connect, resource to gsw;
    SQL> grant read, write on directory dmpdir to gsw;
    SQL> grant create database link to gsw;
    
    impdp gsw/pass remap_tablespace=SYSTEM:GSW remap_tablespace=USERS:GSW dumpfile=gsw.dmp directory=dmpdir
    

    Kind regards

    Juan M

  • avoid impdp ORA-31684

    Hello

    on 11.2.0.3 on Win 2008

    How to avoid the ORA-31684... Already exists

    When you use impdp?

    original imp, we used to IGNORE = Y

    Thank you.

    .


    remove object before impdp

  • Impdp any table

    When I run this command:

    expdp tosandata/tosandata tables = (acact2act) Directory is dumpfile dumpdir is acact2actdmp.dmp

    A dump file and a log file is created with the content of the journal the following:

    ;;;

    Export: Release 11.2.0.1.0 - Production on Mon Dec 16 14:45:53 2013

    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

    ;;;

    Connected to: Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    With partitioning, OLAP, Data Mining and Real Application Testing options

    Start "TOSANDATA". "" SYS_EXPORT_TABLE_01 ': tosandata / * tables (acact2act) directory = dumpdir dumpfile = acact2actdmp.dmp

    Current estimation using BLOCKS method...

    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA

    Total estimation using BLOCKS method: 128 KB

    Object type TABLE_EXPORT/TABLE/TABLE processing

    Processing object type TABLE_EXPORT/TABLE/SCHOLARSHIP/OWNER_GRANT/OBJECT_GRANT

    Object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS treatment

    . . exported "TOSANDATA." "' ACACT2ACT ' 45.03 lines 1313 KB

    Table main "TOSANDATA." "" SYS_EXPORT_TABLE_01 "properly load/unloaded

    ******************************************************************************

    Empty set of files for TOSANDATA. SYS_EXPORT_TABLE_01 is:

    F:\TOSAN\DATADUMP\ACACT2ACTDMP. DMP

    Work "TOSANDATA". "" SYS_EXPORT_TABLE_01 "conducted at 14:45:57

    When I want to import the dump with the following command file:

    impdp MYTESTUSER / 123456 tables= (acact2act) Directoryis dumpdir dumpfile is acact2actdmp.dmp

    The table does not matter and the following log is generated

    ;;;

    Import: Free 11.2.0.1.0 - Production on Mon Dec 16 14:54:05 2013

    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

    ;;;

    Connected to: Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    With partitioning, OLAP, Data Mining and Real Application Testing options

    Table main "MYTESTUSER." "' SYS_IMPORT_TABLE_01 ' properly load/unloaded

    ORA-39166: Object MYTESTUSER. ACACT2ACT was not found.

    Work "MYTESTUSER". "" SYS_IMPORT_TABLE_01 "carried out at 14:54:06

    Work "MYTESTUSER". "" SYS_IMPORT_TABLE_01 "carried out at 14:54:06

    But when I use the following commands:

    exp tosandata/tosandata tables = (acact2act) file =F:\Tosan\DataDump\expdptool.dmp

    imp MYTESTUSER / 123456 tables= (acact2act) file=F:\Tosan\DataDump\expdptool.dmp

    export and import is done properly

    Use the REMAP_SCHEMA clause instead of the parameter TABLES - explanation in the docs

    Data pump import

    Data pump import

    HTH
    Srini

  • The problem with IMP-00038 IMP: could not convert to character set environment handle

    The export was made under linux.  I am told that their settings are: (I can't check)

    AL32UTF8 NLS_CHARACTERSET

    NLS_NCHAR_CHARACTERSET AL16UTF16

    export of the version

    Export: Release 11.2.0.3.0

    I'm trying to import into an empty database in windows with the Release 11.2.0.1.0 version (a few levels below patch)

    AL32UTF8 NLS_CHARACTERSET

    NLS_NCHAR_CHARACTERSET AL16UTF16

    Select userenv ('LANGUAGE') of double

    AMERICAN_AMERICA. AL32UTF8

    my var environment NLS_LANG = AMERICAN_AMERICA. AL32UTF8

    The value of KEY_HKLM\Software\oracle\OraDb11g_home1\NLS_LANG is also set to AMERICAN_AMERICA. AL32UTF8

    IMP prod_user/password@instacnename file = exportfile.dmp see the = y

    WITH JUST SHOW = Y ON... (even with him in the distance)

    Import: Free 11.2.0.1.0 - Production Fri Nov 14 11:09:51 2013

    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

    Connected to: Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit

    Production

    With the partitioning option

    IMP-00038: could not convert to character set environment handle

    IMP-00000: Import terminated unsuccessfully

    NO idea how to solve this problem?  I broadcast the gziped file and a new... to be sure of the xfer wasn't the question...

    I'm stumped... I searched the Forum and the web and tried most of what I found.

    Thanks in advance

    -Ken

    Hello

    I think that there is a single cause - see the example below

    expdp / schemas = bob

    Export: Release 11.2.0.3.0 - Production on Fri Nov 15 18:04:46 2013

    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

    Connected to: Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    With the partitioning option
    Departure "OPS$ ORACLE." ' SYS_EXPORT_SCHEMA_06 ': / * schemas = bob.
    Current estimation using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 0 KB
    Processing object type SCHEMA_EXPORT/USER
    Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
    Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
    Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    Object type SCHEMA_EXPORT/TABLE/TABLE processing
    Object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS treatment
    . . exported "BOB." » EMP"                                     0 KB       0 rows
    . . exported "BOB." "" EMP2 "0Ko 0 rows
    Main table "OPS$ ORACLE." "' SYS_EXPORT_SCHEMA_06 ' properly load/unloaded
    ******************************************************************************
    Empty the files together for OPS$ ORACLE. SYS_EXPORT_SCHEMA_06 is:
    /Oracle/11.2.0.3.0.DB/RDBMS/log/expdat.dmp
    Job ' OPS$ ORACLE. " "" SYS_EXPORT_SCHEMA_06 "led to 18:05:19

    [oracle@]:EMZA3:[~]# imp / file=/oracle/11.2.0.3.0.DB/rdbms/log/expdat.dmp]

    Import: Release 11.2.0.3.0 - Production on Fri 15 Nov 18:06:02 2013

    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

    Connected to: Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    With the partitioning option

    IMP-00038: could not convert to character set environment handle
    IMP-00000: Import terminated unsuccessfully
    [oracle@]:EMZA3:[~]#

    Spot the problem?

    The original dump was expdp, we seek to import with IMP...

    If it is conversely impdp flags it is an exp file - but this round way you get just this random error!

    See you soon,.

    Harry

  • Could not import the database using impdp via network_link

    Dear all,

    I'm trying to import the database from the remote location to my local database dump after you have created the dblink to local db db remotely.


    On a remote server:


    -Directory created and granted privileges. Name dir: PREMLIVE_EXPDP


    To the Local Server:


    User name: expuser with database privileges full dba, imp and exp.


    Name of the DB link: to_premiatest14


    I faced an error of no valid directory when I run the command on the local server to import the schema of remote database below.


    C:\ > impdp expuser/expuser network_link = rΘpertoire to_premiatest14 = PREMLIVE_EXPDP remap_schema = PREMIATEST:PREMIATEST15 logfile = 2013-09 - 02_premiatest15.log

    Connected to: Oracle Database 10 g Enterprise Edition Release 10.2.0.5.0 - 64 bit

    Production

    With partitioning, OLAP, Data Mining and Real Application Testing options

    ORA-39002: invalid operation

    ORA-39070: unable to open the log file.

    ORA-39087: directory PREMLIVE_EXPDP name is invalid

    Help or advice would be really appreciated.

    Kind regards

    Syed

    Hi Syed,

    I think you do the opposite on the directory stuff.

    The directory parameter is just to hold the log file. There is no file dumpfile required in IMPDP via dblink operations it's all cross-network.

    Basically, what is lacking is the DIRECTORY on the local server.

    Don't forget not also create the associated tablespace and remap if necessary.

    Kind regards

    Rodrigo

Maybe you are looking for