Expdp with remap_schema?

My Oracle version is 11.2.0.1.0.
I'm using impdp and expdp from batch files that ease the use of import and export of databases for our developers.
To provide that every developer has his own schema on an oracle server, we use schema (user) names like
product_username_version.
The batch files ease the import and export so that the developer only has to type:
restoredatabase <his_dumpfile>
or
backupdatabase <his_dumpfile>.
Schema/user names are determined by the batch file.
Now how can the batchfiles generically handle the import of another developer's dumpfile? The schema name is
stored within the dumpfile and a developer should use some sort of remapping. But that is individual for every developer.
How can i specify this? The batchfile does not know which schema name is in the dumpfile that should be imported.
It would be great to specify a remap of schema during export with expdp - but i did not find anything like that.
The impdp command that i'm calling from a batch file (Windows) is:
impdp.exe product_username_version/password1 job_name=impdp_oracle11g
directory=data_pump_dir dumpfile=test.Ora11g.de-DE.dmp
table_exists_action=replace exclude=USER:"='product_username_version'",
PACKAGE_BODY:"='HELPERS_PKG'"
logfile=impdp.test.Ora11g.de-DE.dmp.log
remap_schema=product:product_username_version
As the batch file should be used for every user (without specifying a schema name would be great), it would be
cool if the remap_schema could be specified generically - the used schema name contains the user specific username part.
So i thought it would be great if every user could use expdp and maps his specific schema name "product_username_sw" to a
generic one like "product" during export. But that doesn't seem possible?
So at the moment i'm importing a dumpfile that does not contain a schema called "product" and i'm getting
the ORA-39146 = schema does not exist - error.
A specification like remap_schema=*:product_username_version for impdp would also be great. Is something like that possible?
thanks a lot,
Carsten

844440 wrote:
A specification like remap_schema=*:product_username_version for impdp would also be great. Is something like that possible?
No that is not possible, as it would import all object of all schema's in your dumpfile into the 'product_username_version schema.
This calls for a clear procedure, your developers need to work with, you could e.g. tell them to format the dumpfile in a certain syntax that contains the schema_name
HTH
FJFranken

Similar Messages

  • Expdp with network_link and different character sets for source and target?

    DB versions 10.2 and 10.1
    Is there any limitation for implementing expdp with network_link but target and source have different character sets?
    I tried with many combinations, but only had success when target and source have the same character sets. In other combinations there was invalid character set conversion (loose of some characters in VARCHAR2 and CLOB fields).
    I didn't find anything on the internet, forums or Oracle documentation. There was only limitation for transportable tablespace mode export (Database Utilities).
    Thanks

    Hi DBA-One
    This link
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_overview.htm#CEGFCFFI
    is from Database Utilities 10g Release 2 (10.2) (I read it many times)
    There is only one thing about different character sets.
    I quote:
    Data Pump supports character set conversion for both direct path and external tables. Most of the restrictions that exist for character set conversions in the original Import utility do not apply to Data Pump. The one case in which character set conversions are not supported under the Data Pump is when using transportable tablespaces.
    Parameter VERSION also doesn't play role here, because the behaviour (character set) is the same if I use for target and source only 10.2 or (10.2 and 10.1) respectivly.

  • Expdp with schemas containing special charecters

    Hi!
    Need to export a schema which name contains the character "-".
    When using expdp with parameter schemas="Test1-test2" this error comes:
    ORA-39039: Schema expression "IN ('Test1')" contains no valid schemas.
    How do I escape the "-".
    Thanks,
    Kenn

    I have created the function below to replace the special characters before usig XMLElement. Try if it workes for you. Good luck
    FUNCTION NameofFunction(cNUMBER_STRING VARCHAR2) RETURN VARCHAR2
    AS
    BEGIN
    RETURN(
    REPLACE(
    REPLACE(
    --REPLACE(
    TRANSLATE(cNUMBER_STRING,
    'oAAAAAAECEEEEIIIIDNOOOOOxOUUUUYpbaaaaaaaceeeeiiiionooooouuuuypy'
    --' & ','&'||'amp;'),
    CHR(26),''),
    CHR(27),'')
    END NameofFunction;
    Regards,
    Rajesh Kanakagiri
    Edited by: user2899093 on Jan 20, 2010 1:16 PM

  • EXPDP with Transform option

    Hi,
    I have taken a dump using expdp tool with the following syntax:
    expdp joy/joy@db1 directory=DATA_PUMP_DIR dumpfile=joy_nodata.dmp logfile=joy_nodata.log schemas=joy content=metadata_only
    While importing the dump to another DB I have used the following syntax:
    impdp joy/joy@db3 directory=TEST_DUMP dumpfile=joy_nodata.dmp logfile=joy_nodata.log transform=segment_attributes:n remap_schema=joy:joy
    As per the options used with impdp the table script should exclude all storage, tablespace, logging and partitioning clauses mentioned at the source table. But I can see that the tables are imported with storage, tablespce and logging options.
    Source DB information (EXPDP):
    DB: 10.2.0.3 64 bit
    Platform: UNIX
    Target DB information(IMPDP):
    DB: 10.2.0.1 64 bit
    Platform: Linux
    Thanks for your valuable time.
    Regards,
    Joy

    Hi,
    As per the options used with impdp the table script should exclude all storage, tablespace, logging and partitioning clauses mentioned at the source table.The existing/actual storage values will be discarded and the table will have all the default values for the storage.
    Example -
    SQL>  CREATE TABLE "SCOTT"."EMP_TEST"
      2    (    "EMPNO" NUMBER(4,0) NOT NULL ENABLE,
      3         "ENAME" VARCHAR2(15),
      4         "JOB" VARCHAR2(9),
      5         "MGR" NUMBER(4,0),
      6         "HIREDATE" DATE,
      7         "SAL" NUMBER(7,2),
      8         "COMM" NUMBER(7,2),
      9         "DEPTNO" NUMBER(2,0),
    10          PRIMARY KEY ("EMPNO")
    11   USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    12   STORAGE(*INITIAL* *125829120* *NEXT* *9437184* MINEXTENTS 1 MAXEXTENTS 2147483645
    13   PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    14   TABLESPACE "SYSTEM"  ENABLE
    15    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    16   STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    17   PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    18   TABLESPACE "SYSTEM" ;
    Table created.
    SQL>
    NOTE - Above in the create table sql , *the storage INITIAL is set to "120MB" and NEXT to "9MB"*I take the export of the above table and then import using table_exists_action=replace
    D:\>expdp directory=DATA_PUMP_DIR dumpfile=emp_test.dmp logfile=emp_test.log tables=scott.emp_test
    Export: Release 10.2.0.4.0 - Production on Wednesday, 03 November, 2010 12:01:05
    Copyright (c) 2003, 2007, Oracle.  All rights reserved.
    Username: / as sysdba
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Starting "SYS"."SYS_EXPORT_TABLE_01":  /******** AS SYSDBA directory=DATA_PUMP_DIR dumpfile=emp_test.dmp logfile=emp_test.log tables=scott.emp_test
    Estimate in progress using BLOCKS method...
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 0 KB
    Processing object type TABLE_EXPORT/TABLE/TABLE
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    . . exported "SCOTT"."EMP_TEST"                              0 KB       0 rows
    Master table "SYS"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
    Dump file set for SYS.SYS_EXPORT_TABLE_01 is:
      C:\ORACLE10\DB_1\RDBMS\LOG\EMP_TEST.DMP
    Job "SYS"."SYS_EXPORT_TABLE_01" successfully completed at 12:01:55
    D:\>impdp directory=DATA_PUMP_DIR dumpfile=emp_test.dmp logfile=emp_test_imp.log transform=segment_attributes:n full=y table_exists_action=replace
    Import: Release 10.2.0.4.0 - Production on Wednesday, 03 November, 2010 12:20:49
    Copyright (c) 2003, 2007, Oracle.  All rights reserved.
    Username: / as sysdba
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Master table "SYS"."SYS_IMPORT_FULL_02" successfully loaded/unloaded
    Starting "SYS"."SYS_IMPORT_FULL_02":  /******** AS SYSDBA directory=DATA_PUMP_DIR dumpfile=emp_test.dmp logfile=emp_test_imp.log transform=segment_attributes:n full=y table_exists_action=replace
    Processing object type TABLE_EXPORT/TABLE/TABLE
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    . . imported "SCOTT"."EMP_TEST"                              0 KB       0 rows
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Job "SYS"."SYS_IMPORT_FULL_02" successfully completed at 12:21:19
    D:\>
    D:\>
    D:\>After import check the values of INITIAL and NEXT storage clause now -
    12:21:45 SQL> select DBMS_METADATA.GET_DDL('TABLE','EMP_TEST','SCOTT') from dual;
      CREATE TABLE "SCOTT"."EMP_TEST"
       (    "EMPNO" NUMBER(4,0) NOT NULL ENABLE,
            "ENAME" VARCHAR2(15),
            "JOB" VARCHAR2(9),
            "MGR" NUMBER(4,0),
            "HIREDATE" DATE,
            "SAL" NUMBER(7,2),
            "COMM" NUMBER(7,2),
            "DEPTNO" NUMBER(2,0),
             PRIMARY KEY ("EMPNO")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255
      STORAGE(*INITIAL 65536 NEXT 1048576* MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "SYSTEM"  ENABLE
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "SYSTEM" ;HTH
    Anand

  • Expdp with parallel writing in one file at a time on OS

    Hi friends,
    I am facing a strange issue.Despite giving parallel=x parameter the expdp is writing on only one file on OS level at a time,although it is writing into multiple files sequentially (not concurrently)
    While on other servers i see that expdp is able to start writing in multiple files concurrently. Following is the sample log
    of my expdp .
    ++++++++++++++++++++
    Export: Release 10.2.0.3.0 - 64bit Production on Friday, 15 April, 2011 3:06:50
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    Starting "CNVAPPDBO4"."EXPDP_BL1_DOCUMENT": CNVAPPDBO4/********@EXTTKS1 tables=BL1_DOCUMENT DUMPFILE=DUMP1_S:Expdp_BL1_DOCUMENT_%U.dmp LOGFILE=LOG1_S:Expdp_BL1_DOCUMENT.log CONTENT=DATA_ONLY FILESIZE=5G EXCLUDE=INDEX,STATISTICS,CONSTRAINT,GRANT PARALLEL=6 JOB_NAME=Expdp_BL1_DOCUMENT
    Estimate in progress using BLOCKS method...
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 23.93 GB
    . . exported "CNVAPPDBO4"."BL1_DOCUMENT" 17.87 GB 150951906 rows
    Master table "CNVAPPDBO4"."EXPDP_BL1_DOCUMENT" successfully loaded/unloaded
    Dump file set for CNVAPPDBO4.EXPDP_BL1_DOCUMENT is:
    /tksmig/load2/oracle/postpaidamd/DUMP1_S/Expdp_BL1_DOCUMENT_01.dmp
    /tksmig/load2/oracle/postpaidamd/DUMP1_S/Expdp_BL1_DOCUMENT_02.dmp
    /tksmig/load2/oracle/postpaidamd/DUMP1_S/Expdp_BL1_DOCUMENT_03.dmp
    /tksmig/load2/oracle/postpaidamd/DUMP1_S/Expdp_BL1_DOCUMENT_04.dmp
    Job "CNVAPPDBO4"."EXPDP_BL1_DOCUMENT" successfully completed at 03:23:14
    ++++++++++++++++++++
    uname -aHP-UX ocsmigbrndapp3 B.11.31 U ia64 3522246036 unlimited-user license
    Is it hitting any known bug? Please suggest.
    regds,
    kunwar

    PARALLEL always using with DUMPFILE=filename_*%U*.dmp. Did yoy put the same parameter on target server?
    PARALLEL clause depend on server resources. If the system resources allow, the number of parallel processes should be set to the number of dump files being created.

  • Export (expdp) with where clause

    Hello Gurus,
    I am trying to export with where clause. I am getting below error.
    Here is my export command.
    expdp "'/ as sysdba'" tables = USER1.TABLE1 directory=DATA_PUMP dumpfile=TABLE1.dmp logfile=TABLE1.log query= “USER1.TABLE1:where auditdate>'01-JAN-10'” Here is error
    [keeth]DB1 /oracle/data_15/db1> DATA_PUMP dumpfile=TABLE1.dmp logfile=TABLE1.log query= USER1.TABLE1:where auditdate>'01-JAN-10'                    <
    Export: Release 11.2.0.3.0 - Production on Tue Mar 26 03:03:26 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, OLAP, Data Mining and Real Application Testing options
    Starting "SYS"."SYS_EXPORT_TABLE_03":  "/******** AS SYSDBA" tables=USER1.TABLE1 directory=DATA_PUMP dumpfile=TABLE1.dmp logfile=TABLE1.log query= USER1.TABLE1:where auditdate
    Estimate in progress using BLOCKS method...
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 386 MB
    Processing object type TABLE_EXPORT/TABLE/TABLE
    Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
    Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
    Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Processing object type TABLE_EXPORT/TABLE/TRIGGER
    Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    ORA-31693: Table data object "USER1"."TABLE1" failed to load/unload and is being skipped due to error:
    ORA-00933: SQL command not properly ended
    Master table "SYS"."SYS_EXPORT_TABLE_03" successfully loaded/unloaded
    Dump file set for SYS.SYS_EXPORT_TABLE_03 is:
      /oracle/data_15/db1/TABLE1.dmp
    Job "SYS"."SYS_EXPORT_TABLE_03" completed with 1 error(s) at 03:03:58Version
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE    11.2.0.3.0      Production
    TNS for IBM/AIX RISC System/6000: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production

    Hello,
    You should use parameter file.Another question i can see you are using 11g.Why don't you use data pump?.
    Data Pump is faster and have more features and enhancement than regular imp and exp.
    You can do the following:
    sqlplus / as sysdba
    Create directory DPUMP_DIR3  for 'Type here your os path that you want to export to';then touch a file:
    touch par.txt
    In this file type the following the following :
    tables=schema.table_name
    dumpfile=yourdump.dmp
    DIRECTORY=DPUMP_DIR3
    logfile=Your_logfile.log
    QUERY =abs.texp:"where hiredate>'01-JAN-13' "then do the following
    expdp username/password parfile='par.txt'
    If you will import from Oracle 11g to version 10g then you have to addthe parameter "version=10" to the parameter file above
    BR
    Mohamed ELAzab
    http://mohamedelazab.blogspot.com/

  • Expdp with ORA-04063: package body "SYS.DBMS_CUBE_EXP" error

    Hi,
    I try to use expdp to export all tables from schema BAW, but hit the following error. Oracle version is 11.2.0.2, and the package body "SYS.DBMS_CUBE_EXP" is invalid. Any idea to fix it?
    Starting "BAW"."SYS_EXPORT_SCHEMA_01": baw/******** directory=DATA_PUMP_DIR met
    rics=yes schemas=baw dumpfile=baw.dmp
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    ORA-39126: Worker unexpected fatal error in KUPW$WORKER.GET_TABLE_DATA_OBJECTS [
    ORA-31642: the following SQL statement fails:
    BEGIN "SYS"."DBMS_CUBE_EXP".SCHEMA_CALLOUT(:1,0,1,'11.02.00.02.00'); END;
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.DBMS_METADATA", line 1245
    ORA-04063: package body "SYS.DBMS_CUBE_EXP" has errors
    ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_CUBE_EXP"
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.KUPW$WORKER", line 8353
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    7000004c9656fe0 19208 package body SYS.KUPW$WORKER
    7000004c9656fe0 8385 package body SYS.KUPW$WORKER
    7000004c9656fe0 12748 package body SYS.KUPW$WORKER
    7000004c9656fe0 2546 package body SYS.KUPW$WORKER
    7000004c9656fe0 9054 package body SYS.KUPW$WORKER
    7000004c9656fe0 1688 package body SYS.KUPW$WORKER
    7000004c9659720 2 anonymous block
    object line object
    handle number name
    7000004c9656fe0 19208 package body SYS.KUPW$WORKER
    7000004c9656fe0 8385 package body SYS.KUPW$WORKER
    7000004c9656fe0 12748 package body SYS.KUPW$WORKER
    7000004c9656fe0 2546 package body SYS.KUPW$WORKER
    7000004c9656fe0 9054 package body SYS.KUPW$WORKER
    7000004c9656fe0 1688 package body SYS.KUPW$WORKER
    7000004c9659720 2 anonymous block
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    ORA-39126: Worker unexpected fatal error in KUPW$WORKER.GET_TABLE_DATA_OBJECTS [
    ORA-31642: the following SQL statement fails:
    BEGIN "SYS"."DBMS_CUBE_EXP".SCHEMA_CALLOUT(:1,0,1,'11.02.00.02.00'); END;
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.DBMS_METADATA", line 1245
    ORA-04063: package body "SYS.DBMS_CUBE_EXP" has errors
    ORA-06508: PL/SQL: could not find program unit being called: "SYS.DBMS_CUBE_EXP"
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.KUPW$WORKER", line 8353
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    7000004c9656fe0 19208 package body SYS.KUPW$WORKER
    7000004c9656fe0 8385 package body SYS.KUPW$WORKER
    7000004c9656fe0 12748 package body SYS.KUPW$WORKER
    7000004c9656fe0 2546 package body SYS.KUPW$WORKER
    7000004c9656fe0 9054 package body SYS.KUPW$WORKER
    7000004c9656fe0 1688 package body SYS.KUPW$WORKER
    7000004c9659720 2 anonymous block
    Job "BAW"."SYS_EXPORT_SCHEMA_01" stopped due to fatal error at 16:07:26
    e

    The simple solution to this problem is, and its working perfectly with me on 11gR2 resolving the subject error.
    To avoid this problem, perform relational exports excluding OLAP's Analytic Workspaces.
    1) Remove workspace package from export:
    a. Connect sys/password as sysdba
    b. create table sys.exppkgact$_backup as select * from sys.exppkgact$;
    (Backup package before deleting it)
    c. delete from sys.exppkgact$ where package = 'DBMS_CUBE_EXP' and schema= 'SYS';
    d. commit;
    4) Run the export.

  • ORA-39126 when attempting expdp with network_link

    I'm trying to use expdp to get a dump of a db on another box so I can duplicate it on my dev machine.
    I created a network link using :
    create public database link preprodlink connect to "TESTUSER" identified by "testpass" using '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=my.machine.eu)(PORT=1521)))(CONNECT_DATA=(SID=PREPRODSID)))';
    I have verified that this seems ok by doing :
    select * from dual@preprodlink;
    which runs successfully.
    I then created a local user to match the schema with :
    create user TESTUSER identified by testpass;
    grant all privileges to TESTUSER;
    I then attempt to do the actual export using
    expdp TESTUSER/testpass directory=oratmp network_link=preprodlink dumpfile=TESTUSER.dmp schemas=TESTUSER exclude=statistics
    But I get error ORA-39126 and PLS-00201.
    I can't figure out what the problem is.
    Full export log is below :
    Export: Release 11.2.0.2.0 - Production on Wed Sep 12 04:08:58 2012
    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 - Production
    Starting "TESTUSER"."SYS_EXPORT_SCHEMA_02": TESTUSER/******** directory=oratmp network_link=preprodlink dumpfile=TESTUSER.dmp schemas=TESTUSER exclude=statistics
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    ORA-39126: Worker unexpected fatal error in KUPW$WORKER.CONFIGURE_METADATA_UNLOAD [ESTIMATE_PHASE]
    ORA-06550: line 1, column 13:
    PLS-00201: identifier 'DBMS_METADATA.NETWORK_OPEN@PREPRODLINK' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.KUPW$WORKER", line 8358
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    4B5C9DC0 19208 package body SYS.KUPW$WORKER
    4B5C9DC0 8385 package body SYS.KUPW$WORKER
    4B5C9DC0 6628 package body SYS.KUPW$WORKER
    4B5C9DC0 12605 package body SYS.KUPW$WORKER
    4B5C9DC0 2546 package body SYS.KUPW$WORKER
    4B5C9DC0 9054 package body SYS.KUPW$WORKER
    4B5C9DC0 1688 package body SYS.KUPW$WORKER
    5113DAC8 2 anonymous block
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    ORA-39126: Worker unexpected fatal error in KUPW$WORKER.CONFIGURE_METADATA_UNLOAD [ESTIMATE_PHASE]
    ORA-06550: line 1, column 13:
    PLS-00201: identifier 'DBMS_METADATA.NETWORK_OPEN@PREPRODLINK' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.KUPW$WORKER", line 8358
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    4B5C9DC0 19208 package body SYS.KUPW$WORKER
    4B5C9DC0 8385 package body SYS.KUPW$WORKER
    4B5C9DC0 6628 package body SYS.KUPW$WORKER
    4B5C9DC0 12605 package body SYS.KUPW$WORKER
    4B5C9DC0 2546 package body SYS.KUPW$WORKER
    4B5C9DC0 9054 package body SYS.KUPW$WORKER
    4B5C9DC0 1688 package body SYS.KUPW$WORKER
    5113DAC8 2 anonymous block
    Job "TESTUSER"."SYS_EXPORT_SCHEMA_02" stopped due to fatal error at 04:09:13

    Oh well,
    SQL> desc dbms_metadata
    FUNCTION ADD_TRANSFORM RETURNS NUMBER
    ....Other than that, the point was what Dean says; check remote db (invalid packages, etc.). Involve remote db's dba. Is it possible to run export db locally on the remote db?
    For invalid objects, try something like
    select object_name, object_type from dba_objects where status != 'VALID';
    edit:
    forum ate not equal
    Edited by: orafad on Sep 13, 2012 3:49 PM
    Edited by: orafad on Sep 13, 2012 7:38 PM

  • Query in expdp with case-sensitive table and columnname

    Hi,
    I've got a problem with exporting some specific rows of a table.
    The problem is a case-sensitive table and column name. I've tried this in a parfile:
    dumpfile=dpumpdir1:test.dmp
    logfile=dpumpdir1:test.log
    tables="Data"
    query="Data":'"where "DataID" = 11"'
    but it ended like this:
    ORA-31693: Table data object "Data" failed to load/unload and is being skipped due to error:
    ORA-06502: PL/SQL: numeric or value error
    ORA-31605: the following was returned from LpxXSLSetTextVar in routine kuxslSetParam:
    LPX-314: an internal failure occurred
    Edited by: [Logik on 18.04.2013 01:18                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I've tried to make a function with this. I think you used some Oracle 11 parameters. reusefile for example.
    However I've managed to compile the function without error:
    CREATE OR REPLACE FUNCTION EXPDP RETURN NUMBER IS
      h1 number;
      v_job_state       varchar2(4000);
    BEGIN
      h1 := dbms_datapump.open(operation=>'EXPORT',job_mode=>'TABLE',job_name=>'HARRY10');
      dbms_datapump.add_file(h1,'example1.dmp','DPUMPDIR1');
      dbms_datapump.add_file(h1,'example1.log','DPUMPDIR1',filetype => dbms_datapump.ku$_file_type_log_file);
      dbms_datapump.metadata_filter(handle => h1,name => 'NAME_EXPR',value => 'IN (''Data'')',object_type => 'TABLE');
      dbms_datapump.data_filter(handle => h1,name => 'SUBQUERY',value => 'WHERE "DataID" = 1');
      dbms_datapump.start_job(h1);
      DBMS_DATAPUMP.WAIT_FOR_JOB (h1,v_job_state);
      DBMS_OUTPUT.PUT_LINE(v_job_state);
      RETURN NULL;
    END EXPDP;But when I execute I get:
    ORA-31626: job does not exist
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 938
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 4592
    ORA-06512: at EXPDP", line 5
    ORA-06512: at line 5
    Probably not my day :(
    By the way... how can I Format the text as a script?
    Edited by: [Logik on 19.04.2013 11:01                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • 11.2.0.3 expdp with transportable tablespace failing

    This started when we upgraded our development database to 11.2.0.3. The error is below. Anyone else run into this? I can't find anything anywhere.
    It happens on our Red Hat 5 Linux servers but not on production where we are running AIX.
    Very strange.
    Thanks
    Neil
    Starting "SYS"."SYS_EXPORT_TRANSPORTABLE_01": "/******** AS SYSDBA" TRANSPORT_FULL_CHECK=N TRANSPORT_TABLESPACES=(ICIS_DATA) DUMPFILE=icisdevd_tts.dmp LOGFILE=exp_icisdevd_tts.log DIRECTORY=ETL_DIR EXCLUDE=CONSTRAINT,TRIGGER,REF_CONSTRAINT,GRANT,RLS_POLICY,MATERIALIZED_VIEW,VIEW
    Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
    Processing object type TRANSPORTABLE_EXPORT/TABLE
    ORA-39126: Worker unexpected fatal error in KUPW$WORKER.FETCH_XML_OBJECTS [TABLE:"TEST"."TEST_TABLE"]
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.KUPW$WORKER", line 9001
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    0x2277b6608 20462 package body SYS.KUPW$WORKER
    0x2277b6608 9028 package body SYS.KUPW$WORKER
    0x2277b6608 10935 package body SYS.KUPW$WORKER
    0x2277b6608 2728 package body SYS.KUPW$WORKER
    0x2277b6608 9697 package body SYS.KUPW$WORKER
    0x2277b6608 1775 package body SYS.KUPW$WORKER
    0x2277b9268 2 anonymous block
    Job "SYS"."SYS_EXPORT_TRANSPORTABLE_01" stopped due to fatal error at 15:45:14

    You should not be using SYSDBA privileges for expdp and impdp - see the first "Note" section here - http://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_export.htm#i1012781
    Can you reproduce the issue using the SYSTEM account ? If so, you may be running into bugs, since 11.2.0.3 is new
    Bug 12897952 - Datapump full database export by non-SYS fails if DB has semantics installed [ID 12897952.8]     
    Pl open an SR with Support
    HTH
    Srini

  • Expdp with some rows

    Hi,
    maybe execute the expdp for some rows (for example 100) for all tables in one schema?
    I know that I can execute this for all rows, but not for a subset of rows.
    many thanks to all.
    Lain

    Lain wrote:
    you mean this?
    QUERY                 Predicate clause used to export a subset of a table.I want export all the first 100rows of each table in the schema USERS
    many thanksYes,
    And your expdp query should be like
    expdp username/password schemas=<schema> directory=temp_dir query=\"where rownum \< 1 \"Regards
    Anurag

  • Expdp with Sample data

    Hi All,
    I have request to create a new schema with one month worth of data from Production. I have read about the sample parameter and from my understanding we can't take export dump of whole schema with SAMPLE.
    FYI
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE 11.2.0.1.0 Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    Any Suggestion would be appreciated.
    Thanks

    hi,
    How many such tables exists in particular schema ?
    If the number of objects are higher they it would be tedious process to carry for each table/segment. First roughly estimate for some tables how many records are going to be. Next Instead of export - you can generate the db link across the database and go for CTAS so that you can automate the process by creating a script.
    Just an alternative
    - Pavan Kumar N

  • Using expdp/impdp to backup schemas to new tablespace

    Hello,
    I have tablespace A for schemas A1 and A2, and I wish back up these schemes to tablespace B using schema names B1 and B2 (so the contents of schemas A1 and A2 are copied into schemas B1 and B2, respectively, to use as backups in case something happens to schemas A1 or A2 or tablespace A).
    I began by creating tablespace B, and schemas B1 and B2. Then I attempted to populate schemas B1 and B2 by doing the following:
    EXPORT SCHEMAS:
    expdp a1/a1password@myIdentifier ESTIMATE=BLOCKS DUMPFILE=myDpumpDirectory:a1.dmp LOGFILE=myDpumpDirectory:a1_export.log SCHEMAS=a1 COMPRESSION=METADATA_ONLY
    expdp a2/a2password@myIdentifier ESTIMATE=BLOCKS DUMPFILE=myDpumpDirectory:a2.dmp LOGFILE=myDpumpDirectory:a2_export.log SCHEMAS=a2 COMPRESSION=METADATA_ONLY
    IMPORT SCHEMAS:
    impdp b1/b1password@myIdentifier DUMPFILE=myDpumpDirectory:a1.dmp LOGFILE=myDpumpDirectory:b1_import.log REMAP_SCHEMA=a1:b1
    impdp b2/b2password@myIdentifier DUMPFILE=myDpumpDirectory:a2.dmp LOGFILE=myDpumpDirectory:b2_import.log REMAP_SCHEMA=a2:b2
    This resulted in backing up schema A1 into schema B1, and schema A2 into B2, but the tablespaces for schemas B1 and B2 remained tablespace A (when I wanted them to be tablespace B).
    I will drop schemas B1 and B2, create new schemas, and try again. What command should I use to get the tablespace correct this time?
    Reviewing the documentation for data pump import
    http://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_import.htm#SUTIL300
    specifically the section titled REMAP_TABLESPACE, I'm thinking that I could just add a switch to the above import commands to remap tablespace, such as:
    impdp b1/b1password@myIdentifier DUMPFILE=myDpumpDirectory:a1.dmp LOGFILE=myDpumpDirectory:b1_import.log REMAP_SCHEMA=a1:b1 REMAP_TABLESPACE=a:b
    impdp b2/b2password@myIdentifier DUMPFILE=myDpumpDirectory:a2.dmp LOGFILE=myDpumpDirectory:b2_import.log REMAP_SCHEMA=a2:b2 REMAP_TABLESPACE=a:b
    Is that correct?
    Also, is it OK to use the same export commands above, or should they change to support the REMAP_TABLESPACE?

    Hi,
    if i understand correctly, you want to import  A1:B1 and  A2:B2 with the Respective Tablespace. You are using the expdp with ESTIMATE it can not help you
    You can use something like that with one dump file
    expdp system/password directory=<myDpumpDirectory> dumpfile=A1_A2_Export.dmp logfile=A1_A2_Export.log schemas=A1,A2
    impdp system/password directory=<myDpumpDirectory> dumpfile=A1_A2_Export.dmp logfile=A1_A2_Import.log remap_schemas=<A1:B1,A2:B2> REMAP_TABLESPACE=<TAB1:TAB2>
    HTH

  • No partial REMAP_SCHEMA possible? all-or-nothing?

    Assume I exported a full (resp. only one schema "aaa" out of it) database with expdp.
    Later I want to start an Import. But in this Import not the whle schema "aaa" should be
    assigned to new schema "bbb" but only a part of it.
    In detail I want to remap e.g. only all TABLES which match TEST* - or alternatively -
    the TABLES TEST2001, TEST2002 and TEST2003 to the new user schema ".bbb".
    All other TABLEs should be assigned to/remain at the old User Schema "aaa".
    Is this possible?
    Or is REMAP always a all-or-nothing mapping of the stuff in the dumpfile?
    Peter

    Hi,
    Not possible in a single impdp command.
    Run your impdp comand twice one with remap_schema and one without.
    You can filter the tables in above impdp command.
    Regards
    Anurag

  • DataPump Question for Full Expdp

    Dear All,
    how to export full database using data pump utility. actually the client need the full 11i ebiz database alone for his testing purpose.
    i have some basic idea which i use to follow for local exports.
    $expdp scott/tiger directory=dump dumpfile=table_scott.dmp logfile=table_scott.log tables=empthis is for a single table
    for the whole database how we have to export,, before export what are the privileges does the use must have and what are the prerequisites !?!
    $expdp system/manager full=y directory=dump dumpfile=full.dmp logfile=full.log job_name=fulljobam i correct in this above syntax for export the full db.. ?!?!?
    while i import what are the prerequisits i have to check in the new database. kindly help me to study this subject deeply
    Thanks and Regards
    HAMEED
    One more Question :
    Before export do we have to take a report ? if it what kind of report and how to take that ?
    Edited by: Hameed on May 11, 2011 5:17 AM

    so how come its possible to import each and ever tablespace by remap technic ?AFAIK you have to do that....create a parameter file and use either REMAP_DATAFILES or REMAP_TABLESPACE parameter. Please be aware that REMAP_DATAFILE value uses quotation marks so specifiy in parameter file.
    Also check below MOS before using this parameter:-
    Note:429846.1 "Slow Data Pump with REMAP_SCHEMA and REMAP_TABLESPACE parameters"
    Thanks,
    JD

Maybe you are looking for

  • Data type of variable in smartform

    Hi folks iam displaying the currency fields as acolum  in the main widow , now i want to display the sum of these items   i have coded like this: data: cu-sum type f default '0'.. loop at itab into w_iatab. cu_sum = cu_cusum + w_itab-curr endloop. no

  • Need to modify header & footer of all Word documents in a SharePoint library

    We have lots of Word documents in a library where we need to adjust all of the documents' header region's distance from top of page. (A standard setting under the Header & Footer tab in Word). Since we wouldn't want to do this manually for all these

  • Xsl:import or xsl:include for ESB projects ?

    I have an XSLT stylesheet transformer in a routing service on the ESB, and it uses an <xsl:import> of another stylesheet. I have forced the auxiliary stylesheet into the project zip for deployment alongside the main stylesheet, but the XSLT engine ca

  • Missing artwork in itunes 7.5 after ripping cd with dbpoweramp

    ok so i've ripped a few cds using dbpoweramp (aac) and added the aac files to my itunes 7.5 library. the artwork doesn't show up so i select all the tracks of a particular cd and select 'get album artwork' and nothing happens! what do i need to do? o

  • PDF Reader Question

    How do I place a signature into an adobe pdf form without using an external program?