fromuser/touser equivanet in expdp/impdp?

Hello.
I got a dump of the following cmmand file.
expdp dumpfile = logfile = studentinfo.log studentinfo.dmp system/123456@SCHDB tables = school.studentmaster, school.studentmarks, school.studentleave directory is mydir


now I want to import these 2 tables in a different schema (old_school) using impdp

What is the fromuser / equivalent touser in impdp/expdp?

REMAP_DATA
Specify a data conversion function.
For example, REMAP_DATA = EMP. EMPNO:REMAPPKG. EMPNO.

REMAP_DATAFILE
Redefine the references of data file in all DDL statements.

REMAP_SCHEMA
A schema objects are loaded in another schema.

REMAP_TABLE
Table names are remapped to another table.
For example, REMAP_TABLE = h. EMPLOYEES: EMPS.

REMAP_TABLESPACE
Tablespace objects are remapped to a different tablespace.

REUSE_DATAFILES
Tablespace will be initialized if it exists already [N].

Tags: Database

Similar Questions

  • 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

  • problem in expdp/impdp

    Hi, I'm currently expdp/impdp but every time the same mistakes. OS win Server 03 on ORACLE 10 g.

    errors:

    C:\Documents and Settings\Administrateur > impdp rΘpertoire "/ as sysdba" = "data_pump_dir" dumpfile = logfile = scott.log'scott.dmp ' '

    Import: Release 10.2.0.3.0 - Production on Tuesday, March 25, 2014 10:43:18

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

    Connected to: Oracle Database 10 g Enterprise Edition Release 10.2.0.3.0 - Production

    With partitioning, OLAP and Data Mining options

    ORA-31626: there is no job

    ORA-04063: package body 'SYS. DBMS_INTERNAL_LOGSTDBY"contains errors

    ORA-06508: PL/SQL: called program unit is not found: 'SYS. "DBMS_INTERNAL_LOGSTDBY '

    ORA-06512: at "SYS." "KUPV$ FT", line 834

    ORA-04063: package body 'SYS. DBMS_INTERNAL_LOGSTDBY"contains errors

    ORA-06508: PL/SQL: called program unit is not found: 'SYS. DBMS_INTERNAL_LOGSTDBY ".

    SQL > alter the body of package DBMS_INTERNAL_LOGSTDBY compilation;

    WARNING: The bodies of Package modified with compilation errors.

    SQL > show error

    PACKAGE BODY DBMS_INTERNAL_LOGSTDBY errors:

    LINE/COL ERROR

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

    2563/4 PL/SQL: statement ignored

    2563/20 PL/SQL: ORA-00942: table or view does not exist

    2625/3 PL/SQL: statement ignored

    2625/19 PL/SQL: ORA-00942: table or view does not exist

    2809/2 PL/SQL: statement ignored

    2809/13 PL/SQL: ORA-00942: table or view does not exist

    HELP ME PLEASE

    Since you're using Oracle 10 g version...

    Check if you have columns that contain "TEMESTAMP (6) ' data by using this query type:"

    Select dba_tab_columns owner, table_name, column_name data_type where column_name = 'TIMESTAMP' and data_type like '% TIMESTAMP ';

    If the previous query lists for you a list of tables, you must do the following for each table:

    ALTER table system.table_name change (date timestamp);

    Then recompile the package "DBMS_INTERNAL_LOGSTDBY" again.

    I hope this helps.

    Kind regards

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

  • expdp/impdp: constraints in the child-Parent relationship

    Hello

    I have a table parent1 and child1, child2 and chld3 tables have foreign key created on this parent1.

    Now, I want to do a delete on parent1. But as the number of records is very high on parent1, we go with expdp / impdp with option querry.

    I took the expdp parent1 level query. Now I dropped parent1 with option of cascade constraints and all foreign keys created by child1, 2 and 3 that parent1 references are automatically deleted.

    Now, if I have the impdp to the query of fire level dump file, are these foreign key constraints will be created automatically on child1, 2 and 3 or I need to manually recreate it?

    Kind regards

    ANU

    Hello
    The CF will not be in the dumpfile - see the code example below where I generate a sqlfile following pretty much the process that you would have done. This is because FK belongs to the DDL for the child table not the parent.

    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning option
    
    OPS$ORACLE@EMZA3>create table a (col1 number);
    
    Table created.
    
    OPS$ORACLE@EMZA3>alter table a add primary key (col1);
    
    Table altered.
    
    OPS$ORACLE@EMZA3>create table b (col1 number);
    
    Table created.
    
    OPS$ORACLE@EMZA3>alter table b add constraint x foreign key (col1) references a(col1);
    
    Table altered.
    
    OPS$ORACLE@EMZA3>
    
    EMZA3:[/oracle/11.2.0.1.2.DB/bin]# expdp / include=TABLE:\"=\'A\'\"
    
    Export: Release 11.2.0.3.0 - Production on Fri May 17 15:45:50 2013
    
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning option
    Starting "OPS$ORACLE"."SYS_EXPORT_SCHEMA_04":  /******** include=TABLE:"='A'"
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 0 KB
    Processing object type SCHEMA_EXPORT/TABLE/TABLE
    Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    . . exported "OPS$ORACLE"."A"                                0 KB       0 rows
    Master table "OPS$ORACLE"."SYS_EXPORT_SCHEMA_04" successfully loaded/unloaded
    ******************************************************************************
    Dump file set for OPS$ORACLE.SYS_EXPORT_SCHEMA_04 is:
      /oracle/11.2.0.3.0.DB/rdbms/log/expdat.dmp
    Job "OPS$ORACLE"."SYS_EXPORT_SCHEMA_04" successfully completed at 15:45:58
    
    Import: Release 11.2.0.3.0 - Production on Fri May 17 15:46:16 2013
    
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning option
    Master table "OPS$ORACLE"."SYS_SQL_FILE_FULL_01" successfully loaded/unloaded
    Starting "OPS$ORACLE"."SYS_SQL_FILE_FULL_01":  /******** sqlfile=a.sql
    Processing object type SCHEMA_EXPORT/TABLE/TABLE
    Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Job "OPS$ORACLE"."SYS_SQL_FILE_FULL_01" successfully completed at 15:46:17
    
    -- CONNECT OPS$ORACLE
    ALTER SESSION SET EVENTS '10150 TRACE NAME CONTEXT FOREVER, LEVEL 1';
    ALTER SESSION SET EVENTS '10904 TRACE NAME CONTEXT FOREVER, LEVEL 1';
    ALTER SESSION SET EVENTS '25475 TRACE NAME CONTEXT FOREVER, LEVEL 1';
    ALTER SESSION SET EVENTS '10407 TRACE NAME CONTEXT FOREVER, LEVEL 1';
    ALTER SESSION SET EVENTS '10851 TRACE NAME CONTEXT FOREVER, LEVEL 1';
    ALTER SESSION SET EVENTS '22830 TRACE NAME CONTEXT FOREVER, LEVEL 192 ';
    -- new object type path: SCHEMA_EXPORT/TABLE/TABLE
    CREATE TABLE "OPS$ORACLE"."A"
       (    "COL1" NUMBER
       ) SEGMENT CREATION IMMEDIATE
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
     NOCOMPRESS LOGGING
      STORAGE(INITIAL 16384 NEXT 16384 MINEXTENTS 1 MAXEXTENTS 505
      PCTINCREASE 50 FREELISTS 1 FREELIST GROUPS 1
      BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "SYSTEM" ;
    -- new object type path: SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    ALTER TABLE "OPS$ORACLE"."A" ADD PRIMARY KEY ("COL1")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255
      STORAGE(INITIAL 16384 NEXT 16384 MINEXTENTS 1 MAXEXTENTS 505
      PCTINCREASE 50 FREELISTS 1 FREELIST GROUPS 1
      BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "SYSTEM"  ENABLE;
    -- new object type path: SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    DECLARE I_N VARCHAR2(60);
      I_O VARCHAR2(60);
      NV VARCHAR2(1);
      c DBMS_METADATA.T_VAR_COLL;
      df varchar2(21) := 'YYYY-MM-DD:HH24:MI:SS';
     stmt varchar2(300) := ' INSERT INTO "SYS"."IMPDP_STATS" (type,version,flags,c1,c2,c3,c5,n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,d1,cl1) VALUES (''I'',6,:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12,:13,NULL,:14,:15,NULL,:16,:17)';
    BEGIN
      DELETE FROM "SYS"."IMPDP_STATS";
      c(1) := 'COL1';
    
      DBMS_METADATA.GET_STAT_INDNAME('OPS$ORACLE','A',c,1,i_o,i_n);
      EXECUTE IMMEDIATE stmt USING 0,I_N,NV,NV,I_O,0,0,0,0,0,0,0,0,NV,NV,TO_DATE('2013-05-17 15:43:24',df),NV;
    
      DBMS_STATS.IMPORT_INDEX_STATS('"' || i_o || '"','"' || i_n || '"',NULL,'"IMPDP_STATS"',NULL,'"SYS"');
      DELETE FROM "SYS"."IMPDP_STATS";
    END;
    /
    

    Kind regards
    Harry

    http://dbaharrison.blogspot.com/

  • expdp, impdp Grid 11.2 and ACFS

    Version of the grid: 11.2.0.3
    OS: Red Hat Enterprise Linux 5.4

    A few months, our cluster of CARS, while taking a backup expdp in a local Linux file system, I got some errors. Remember the error code or the script now that I had too much work this day. The problem was solved when we used a location of file system ACFS as the directory for expdp object.

    Today, in the same cluster RAC, to reproduce that issue, I tested it with an expdp backup in a local Linux format
    file system (/ home/oracle/pumpDir) and the expdp finished without any problems.

    Someone at - it all met problems with expdp, impdp in environment RAC cluster in reason to use a local Linux file system?

    The error would be more probably "file not found".

    expdp/impdp (datapump) will begin in several parallel processes on the cluster. If all nodes cannot find the 'local' directory, you will get the above error.

    Bottom line, the parallel processes expdp may or may not be on a single node, so the 'directory' MUST be accessible across the cluster.

  • Expdp/impdp can be used to upgrade the database (instead of DBUA) R12

    Hi all

    (1) could as possible to convert the database to UTF8 value as part of the database
    upgrading process within the update Rel12? Any suggestion on how to do it? Any doc doc/procedure?

    (2) according to Rel 12 guide upgrade applications, I can follow "interoperability Notes: Oracle Applications 11i.
    with Oracle Database 11 g 2"doc to update my database. But this doc suggested using DBUA.
    Can I use expdp/impdp instead so I can convert the character at a time? All documentation
    that I can follow to use expdp/impdp to do the upgrade?

    (3) are there measures to specify/extra for Rel12 if I want to convert the characters of the base
    the value UTF8?

    Thanks in advance!

    (1) could as possible to convert the database to UTF8 value as part of the database
    upgrading process within the update Rel12? Any suggestion on how to do it? Any doc doc/procedure?

    I do not. You must upgrade, and then convert the characters or convert then upgrade - you can save an SR to confirm this with the support of the Oracle.

    (2) according to Rel 12 guide upgrade applications, I can follow "interoperability Notes: Oracle Applications 11i.
    with Oracle Database 11 g 2"doc to update my database. But this doc suggested using DBUA.
    Can I use expdp/impdp instead so I can convert the character at a time? All documentation
    that I can follow to use expdp/impdp to do the upgrade?

    Only DBUA is the way supported in Oracle EBS instance level. Please see this similar thread - Oracle EBS 11i Database Upgrade to 11 GR 2 - Upgrade method Support Manual is?

    (3) are there measures to specify/extra for Rel12 if I want to convert the characters of the base
    the value UTF8?

    Please see the documentation referenced in this thread - ADADMIN convert character set CUSTOM_TOP

    Thank you
    Hussein

  • 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 in 12 c and 10g

    Hi all

    We have oracle 10g release 2 on windows environment. We want to take backup of this database using expdp and import it into oracle 12 c using impdp.

    How to do this?

    I use the following approach

    on 10g database (production):

    expdp complete system/password@orcl directory = y = TEST_DIR dumpfile = fulldb_12_jan_2016.dmp logfile = fulldb_12_jan_2016.log

    on 12 c database (test):

    Impdp complete system/password@orcl directory = y = TEST_DIR dumpfile = fulldb_12_jan_2016.dmp logfile = fulldb_12_jan_2016.log

    the problem is that we need to create storage space and data files. I already create their production before the impdp command.

    second problem is that the user schemas have quota on the tablespace. So I have to create users as well before the impdp? I don't know some of the passwords of the user schema.

    Please guide me

    Thank you.

    Hello

    Since you are doing the full expdp, users and tablesapces will be created for you.

    So no need to creaet them pre.

    Concerning tablespaces, impdp will try to create storage space with the same data files (eg - same location of files).

    So, if you do not have same directory on the destination structure it will fail.

    If the file structure is different you can pre create tablespaces and remap the data files using remap_datafile.

    Users will be created with the same passwords on the destination. It is so no worries.

  • How replicates all records from one table to another table without using expdp, impdp

    Hi I have two database in a database, that I have a table called t1 and another base data, I have the second table .so, my first table have records, that I need to transfer all records second T2 without use of expdp and impdp in every 5 min... what I do

    ??

    The best solution for this scenario is to use Oracle Golden Gate

    However, it requires a license, and you must pay for it.

    If this is not possible, you can create a job scheduler that uses a link DB in order to reproduce the recordings of the target database, but it will take the entire table to the target database and then INSERT AS SELECT truncate the data of the entire table every time that the job is running (because you can't follow only the records that have been changed or modified).

    In addition, read here on the replication of data using materialized views.

  • Database 11g expdp, impdp in a 10g database for

    Hello

    I would like to export an Oracle 11 g server to import it into an oracle database 10 g, which method is correct:

    1 - expdp (binary 10g)

    2 - expdp (binary 11 g) using the VERSION = 10.2 setting

    Thank you

    second method, you must specify the parameter version = 10.2 while using the commands the expdp and impdp.

    Please refer to this nice blog post: http://dbaoracledba.blogspot.com/2012/07/version-parameter-in-oracle-expdp-and.html

    Kind regards

  • EXPDP/IMPDP

    Hi all

    How do I create a sqlfile using impdp so to run it so that the procedures will be replaced by the more recent source expdp database.

    But the sqlfile a bug that include spaces in the sql statements, the cause of the error.

    For example:

    ALTER PROCEDURE "BATCH". "" SP_COUNT_DLS_DRCR ".

    COMPILE

    PLSQL_OPTIMIZE_LEVEL = 2

    PLSQL_CODE_TYPE = INTERPRETER

    PLSQL_DEBUG = FALSE PLSCOPE_SETTINGS = ' IDENTIFIERS: NO

    "REUSE THE TIMESTAMP SETTINGS ' 2014-01-10 10:12:26.

    /

    It has a space before RE-USE, where the script error on RE-USE statement

    Tricks treats on this subject?

    Thank you very much

    Hello

    Yep - thought I'm sorry that you had made only empty lines and that was the problem :-)

    The empty sqlfile option just what import tries to run text - so it just remains to create instead of replace.

    What you have to do is change the file and do a global replace of 'CREATE' with 'CREATE or REPLACE '...

    Still don't know why oracle did not add this as an option - it is one of the main things missing impdp - perhaps there is a technical reason why they do not want to implement?

    See you soon,.

    Rich

  • expdp, impdp - redo generation?

    Friends...

    Oracle 11 g 2 SE

    OS: Linux

    I had tried to search in the documentation, but could not find an answer.

    I'm dropping some tables but prior to export for backup, db is in archivelog mode.

    Before you delete tables, trying to find if expdp job generates a lot of repeat or not given that the file system have 20 GB of free space.

    Issue.

    1. If I'm the scene expdp some tables with size 80 GB (size.. indexes on table not included), does expdp will generate a similar amount of redo or it will generate a lot of repeat?

    2 impdp job also generate a lot of repeat or only during the creation of index in impdp?

    Thank you

    Mike

    Export do NOT generate all over again. It's just dumping data in binary files. Very little again just to keep the export data table, rocking but very very minimal. IF I had to guess not more than 1 MB.

    Import generates recovery logs. Imports perform "Insert" statement behind the scenes and it does not generate a lot of newspapers of recovery. You can use sqlfile to create the definition of the index and to run manually with NOLOGGING which will reduce some redo. something like

    exclude the user/password Impdp = index - this will import everything except the index.

    Impdp username/password include sqlfile = index.sql index = - this will create a file named index.sql that will contain all the instructions for the index create

  • expdp/impdp metadata in clear text

    11.2.0.1 done a quick search on the Forum and on google and can't find what I'm looking for.

    Ran the following:
    expdp full=y content=metadata_only dumpfile=exp_full_metadata.dmp logfile=exp_full_metadata.log exclude=table exclude=index 
    Now, I want to enter the metadata in a kind of plain text file, so I can look at and copy sections. With IMP we could simply display the ddl on the screen and not import-is there a similar means to do this with IMPDP?

    for example we had with Imp: import settings 'Show': http://docs.oracle.com/cd/B10500_01/server.920/a96652/ch02.htm#1014036
    See the FACILITY*.
    Default: n
    When SHOW = y, the content of the export file is listed on the screen and not imported. The SQL statements contained in the export are displayed in the order in which to import run them.
    The SHOW parameter can be used only with the FULL = y

    Hello

    SQLFILE=file.sql
    

    is what you need

    DataPump it is also likely that the transformations you want to do can also be done from the command line rather than having to manipulate a text file - how you really want to change?

    See you soon,.
    Harry

    http://dbaharrison.blogspot.com

  • Initial load using expdp/impdp

    Golden Gate version: 11.2.1.0.3
    RDBMS version: 11.2.0.3
    OS: RHEL 5.4

    Production OLTP (Source) to the Production ETL (target), we want to reproduce 5 tables.
    Each table is about 3 GB of size of Source now.
    About 200 MB of data is inserted into the Source, all hours in all these 5 combined tables.

    This is how we intend to do the Iniitial workload:
    After the installation of goldengate on servers (and keeping the parameter files ready), we will take and PPC throw these 5 tables of Source and target server CPS, then import it it helps impdp.


    Estimated total time to scp the dumpfile, expdp and impdp in target DB is: 2 hours

    During this interval of 2 hours, $ 400 MB of data would have been inserted in these 5 tables in the source. We want tables to be in harmony to both Source and target. For this,.
    1. Shouldn't we be leaving the extract at the source running so that it will capture the changes during these 2 hours ?
    2. What about the secondary extract (Pump) in source. Should it be running ?
    3. Replicat in the Target should be stopped during this period of 2 hours. Right ?
    Another thing we have to do to make this configuration smooth?

    Hello

    1 Yes
    2 not necessarily, although once want start replicat on the target you have files available here. If the replicat on the target is already stopped it shouldn't make a difference if it is stopped or not
    3 correct, otherwise it will more liekly fail with row not found when you try to apply a transaction.

    I assume that you will use the flashback_scn method.

    Configure and start the process of extraction in the side of the source
    Take an export of this schema using the flashback_scn number
    Import into the target database
    Configure the replication
    As replicates after YVERT # start replicat , aftercsn

    Greetings,
    NACEUR

Maybe you are looking for