Ignore a schema import in the dumpfile

version: 11.2.0.3
Platform: RHEL 5.4

Imagine that you have 100 saved patterns (expdp) in a dumpfile, and you want to import a schema of this dumpfile in a DB. You can specify only what a schema required using the SCHEMAS in the impdp. But things are not simple, when you want to use REMAP_SCHEMA.

Here is my scenario:
===================

I took the dump expdp patterns A and B only once. Thus dumpfile has objects both A and B.
Dumpfile name is: schemas_AandB.dmp

Now, I want to create the diagram C a with parameter REMAP_SCHEMA

-Set each parameter in a separate line for readability
impdp PSTREF/PSTREF_123 
DIRECTORY=ADET_EFX_DIR 
DUMPFILE=schemas_AandB.dmp
LOGFILE=CreatingCfromA-Impdp.log 
REMAP_SCHEMA=A:C
Everything's fine. Scheme C is created from A pattern in the dumpfile.

But impdp tries to create the schema B so because the B pattern was present in the dumpfile. Since the B schema and its objects are already in the comic book, I get the following errors.
ORA-31684: Object type USER:"B" already exists
ORA-31684: Object type PROCEDURE:"B"."SP_CLEAREXPIREDSESSIONDATA" already exists
ORA-31684: Object type PROCEDURE:"B"."SP_DELETESESSIONDATA" already exists
ORA-31684: Object type PROCEDURE:"B"."SP_DELETESTATECONTEXTINFO" already exists
ORA-31684: Object type PROCEDURE:"B"."SP_GETNEWCONTEXT" already exists
ORA-31684: Object type PROCEDURE:"B"."SP_GETNEWSESSION" already exists
ORA-31684: Object type PROCEDURE:"B"."SP_GETNEXTPART" already exists
ORA-31684: Object type PROCEDURE:"B"."SP_GETSESSIONDATA" already exists
ORA-31684: Object type PROCEDURE:"B"."SP_GETSTATECONTEXTINFO" already exists
Because I don't want B to import schema, I tried to use the SCHEMAS parameter by simply mentioning A.

-Added setting of PATTERNS
impdp PSTREF/PSTREF_123 
DIRECTORY=ADET_EFX_DIR 
DUMPFILE=SCHEMAS_AandB.dmp
LOGFILE=CreatingCfromA-Impdp.log 
REMAP_SCHEMA=A:C
schemas=A   ---------------------------> Trying to avoid schema B in the dumpfile from being imported by specifying SCHEMAS
But I got the following error
ORA-39065: unexpected master process exception in MAIN
ORA-12801: error signaled in parallel query server PZ99, instance oracth214:HEWRAC1 (1)
ORA-01460: unimplemented or unreasonable conversion requested
Parameters REMAP_SCHEMA and PATTERNS may not be working together. Is it possible to prevent the impdp to import user B and its objects?

YOU HAVE TO USE the OPTION EXCLUDE = PATTERN: 'IN ('B') inside the expdp '.

EXCLUDE PATTERNS
http://rkdba.blogspot.in/2011/04/expdp-exclude-multiple-tables-and.html

Tags: Database

Similar Questions

  • Schema import Gets the foreign key number

    Hi all;


    Scott has a table named rank-> he has primary key-> different tablespace

    Sharma has a table named emp-> he has foreign key-> different tablespace

    $ imp/System Manager queue = refresh_sharma.dmp log = refresh_sharma_imp.log fromuser = touser = sharma sharma

    Import: Free 11.2.0.1.0 - Production Thursday, may 7, 18:35:03-2015

    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 partitioning, OLAP, Data Mining and Real Application Testing options

    Export file created by EXPORT: V11.02.00 direct

    import in US7ASCII and AL16UTF16 NCHAR character set

    import server uses WE8MSWIN1252 (possible character set conversion) character set

    Customer export uses the (possible character set conversion) WE8MSWIN1252 character set

    . import of objects in SHARMA SHARMA

    . . import of partition "CONT_EMP": "P1" 4000 imported lines

    . . import of partition "CONT_EMP": "P2" 5000 imported lines

    . . import of partition 'CONT_EMP': 'P3' 5000 imported lines

    . . "DEPT" table import 12 lines imported

    . . import of table 'EMP' 68278 imported lines

    . . importing table "EMP_AUDIT" 4 imported lines

    . . table 'Method' import 68000 lines imported

    . . importing table "EMP_PERS_INFO" 68278 imported lines

    . . importing table "EMP_PROJ_INFO" 68278 imported lines

    . . table 'LOGTAB' import 603 lines imported

    . . table import "PAYROLL" 186282 imported lines

    . . import of table 'of the PROJECT"22 rows imported

    . . importation of "TAB1" 4000000 imported table rows

    . . table import 'TRANSPORT' 0 rows imported

    IMP-00017: statement failed with error ORACLE 1031:

    'ALTER TABLE 'EMP' ADD 'EMP_EMPLEV_C12_FK' OF CONSTRAINT FOREIGN KEY ("EMP_LEVE" '.

    ""L") REFERS TO"SCOTT" CATEGORY"("GRADE_NAME") ENABLE NOVALIDATE.

    IMP-00003: ORACLE error 1031

    ORA-01031: insufficient privileges

    About to activate the constraints...

    IMP-00017: statement failed with error ORACLE 2430:

    ' ALTER TABLE 'EMP' ENABLE CONSTRAINT "EMP_EMPLEV_C12_FK"

    Import completed successfully with warnings.

    30, 31 line number is display error.

    'ALTER TABLE 'EMP' ADD 'EMP_EMPLEV_C12_FK' OF CONSTRAINT FOREIGN KEY ("EMP_LEVE" '.

    ""L") REFERS TO"SCOTT" CATEGORY"("GRADE_NAME") ENABLE NOVALIDATE.

    After the import operation, to recreate the foreign key is the right option. but

    By performing the import operation, how can all I avoid this error dump file or log file?

    I don't want to use constraints = N.


    Thanks in advance


    You gave * of * SCOTT * at * SHARMA.  The grant received by SHARMA not getting exported when you export SHARMA.  So, it is not imported when you import SHARMA.  If you did an export and import of SCOTT before SHARMA, the award of the cross-schema would have also been imported.  (Subsidies granted by a user are exported with the user, the subsidies received by a user are not exported with the user).

    Hemant K Collette

  • IMPDP - how to import a dump file data including the dumpfiles Clustered.


    Hello

    Can someone suggest me how will import data from dumpfile using IMPDP, if the EXPDP has used several Dumpfiles clusters. ?

    I want to import a particular file will only, which will be possible?

    When I tried this way I was getting error.

    IMPDP USER/PWD@SID DIRECTORY is DUMPFILE DATA_PUMP_DIR = DUMPFILE01. DMP LOGFILE = IMPDP_DUMPFILE01. LOG SCHEMA = < NAME >

    ORA: 39002 INVALID OPERATION

    ORA: 39059 dump file set is incomplete

    ORA: 39246 cannot locate a master table in provided dumpfile breast.

    Note: The Exp was made in oracle 10g (10.2.0.4.0), I import the dump file in Oracle 11.2.0.1.0

    Please advise on this.

    Concerning

    Suresh

    This doesn't make much sense.  I guess you have several dumpfiles from an export order and you don't want to import 1.  How can you know what is in the dumpfile that you want to import?  Is the last thing that will do the job of data pump export the main table.  How do you know which file is in and then you're sure to import objects are in the same dumpfile.

    The answer is NO, this is not supported.  During the Data Pump import starts, it checks that all dumpfiles at time of export are included in the import job. If this is not the case, the job will fail.

    Dean

  • Import of differnet schema table using the data pump in

    Hi all
    I try to export a table to a diagram MIPS_MDM and import it in the MIPS_QUIRINO schema in the different database. I get the below error.

    expdp MIPS_MDM/MIPS_MDM@ext01mdm tables = QUARANTINE directory = DP_EXP_DIR dumpfile = quarantine.dmp logfile = qunat.log

    To import
    Impdp MIPS_QUIRINO/MIPS_QUIRINO@mps01dev tables = QUARANTINE directory = DP_EXP_DIR dumpfile = quarantine.dmp logfile = impd.log

    Please can I know what is the exact syntax to import in the scheme of differnet.

    Thank you.

    http://download.Oracle.com/docs/CD/E11882_01/server.112/e16536/dp_import.htm#BEHFIEIH

  • Import of the DMP Oracle with the unknown schema name

    Hello

    I need to import a DMP Oracle DBMS Oracle 11g by the SYSTEM. I don't know what patterns are stored inside.

    How can I get information, schemas are stored in the Oracle DMP?

    Thank you!
    Dejan

    You can check the conent of the bucket to help

    IMP usernmae/password file = log = show = Yes full = yes

    You can view the log file. It will import all the data, but gathers the information in logifle.

    Anil Malkai

  • Import database using 11 g is important all the packages with debugging information

    We are modernizing our database from 9i to 11g using imp/exp. The problem we see is that all packages/procedureas/functions are imported with debug information.
    It seems that imp utility changes import session to set PLSQL_DEBUG = TRUE. On the 9i database, objects are not compiled with debugging information, and we do a full import with parameters FULL = O and IGNORE = N.

    We found no information about this behaviour anywhere while we ask this is the default behavior, can it be changed so that the imported objects are not compiled with debug information and if not, what is the better and more effective way to drop all debug information on objects that have? We hoped to use DBMS_UTILITY.COMPILE_SCHEMA, but it recompiles objects preserve debug information on the objects that had them before running the command. We can EDIT the PACKAGE COMPILER on all packaging and it will solve our problem, but it will take a lot of time to recompile all our objects from our database is very large.

    Hello

    I just did a test of my own. Here's what I did:

    Database without active debugging:

    create or replace function scott.foo (in number) return number is
    Start
    return 10;
    end;
    /

    has ran exp then looked the dumpfile. That's what I saw:

    ALTER SESSION SET "_LOAD_WITHOUT_COMPILE" = PLSQL
    FORMAT71 CREATE FUNCTION 'FOO' bunch of non ascii here
    ALTER SESSION SET '_LOAD_WITHOUT_COMPILE' = NONE
    ALTER FUNCTION 'FOO' COMPILATION REUSE SETTINGS TIMESTAMP ' 2010 - 03 - 16:10:31:03'

    This resembles the exp has detected that the debug flag is not set and the function exported and recompiled it reset the compile time for the same time of the compilation of the source database.

    Then I did:

    ALTER session set plsql_debug = true;
    create or replace function scott.foo2 (in number) return number is
    Start
    return 10;
    end;
    /

    At this point, function foo was built without debug and function foo2 was build debug.

    I ran exp again and looked in the dumpfile. That's what I saw:

    ALTER SESSION SET "_LOAD_WITHOUT_COMPILE" = PLSQL
    ALTER SESSION SET NLS_LENGTH_SEMANTICS = 'BYTE' PLSQL_CODE_TYPE = 2 = PLSQL_OPTIMIZE_LEVEL "INTERPRETED" PLSQL_DEBUG = TRUE PLSQL_WARNINGS = "DISABLE: ALL" PLSQL_CCFLAGS = "
    CREATE FORMAT71 FUNCTION 'FOO2' - of the bunch of non ascii here
    CREATE FORMAT71 FUNCTION 'FOO' - lots of non ascii here
    ALTER SESSION SET '_LOAD_WITHOUT_COMPILE' = NONE
    ALTER FUNCTION 'FOO2' COMPILATION REUSE SETTINGS TIMESTAMP ' 2010 - 03 - 16:10:35:46'
    ALTER FUNCTION 'FOO' COMPILATION REUSE SETTINGS TIMESTAMP ' 2010 - 03 - 16:10:31:03'

    In this case, it seems that these two functions will be built with active debugging. I don't know what is happening in your case. You can contact the Oracle Support to see if they know about this problem and if they know of a work-around.

    Good luck

    Dean

  • Last_Updated_by column filled with schema, I want the username

    Hello

    Currently my last_updated_by column is updated the schema name of the application.  I want to use the user name of the current users.

    I tried substitution methods in OS, but the methods are ignored.

      public void setLastUpdatedBy(String value)
      {
        OADBTransaction transaction = getOADBTransaction();
        value = transaction.getUserName();
        setAttributeInternal(LASTUPDATEDBY, value);
      }
    

    It turns out that there is a trigger on the table that was setting the columns WHO.  Disable it fixed the problem.

  • Import only the public objects and patterns

    Oracle 11.2.0.1

    I have a test database set up with all users of the application - no data, no object.

    I want to import only (production), users of the DDL application and also public objects such as synonyms and links from db. This will give what I need?

    impdb system/******@orcl parfile=imp.txt
    
    
    --parfile contents
    full=yes
    network_link=remote_link
    content=metadata_only
    directory=DATA_PUMP_DIR
    logfile=schema_only_from_prod.log
    INCLUDE=SCHEMA:"IN('APPSYS1_GLOBAL','APPSYS2_GLOBAL','GLOBAL','PCDB','QDB','VCDB','ZAP')"
    
    

    Hi orclrunner,

    This command will import all the metadata this schema in your clause 'include', including the structure of the table and other items. If you want just synonymous inside and db links patterns, I think that you need will use the 'patterns' clause to specify patterns and the include to specify that you want just the links to the db and synonyms.

    Something like this:

    impdb system/***@orcl parfile = imp.txt

    -parfile content

    schemas = APPSYS1_GLOBAL, APPSYS2_GLOBAL, GLOBAL, PCDB, QDB, VCDB, ZAP

    network_link = remote_link

    Content = metadata_only

    Directory = DATA_PUMP_DIR

    logfile = schema_only_from_prod.log

    INCLUDE = DATABASE_LINK, SYNONYM

    Sorry, I can't test whether the syntax of the command is correct at this time.

    I hope this helps.

    Kind regards

    Anatoli has.

  • Import of the data dictionary trigger definitions

    Hi I just installed Oracle SQL datamodeler and try to import the schema definition. It import all the elements (tables, views, stored procedures, functions and so) except trigger
    Please notify

    Best regards
    Virgil

    Hi, Virgil,.

    Triggers associated with Tables or views must be imported. If you expand the node of the Table or view in the part of the physical model of the browser tree relevant, you should find the triggers there.

    System triggers are not currently imported.

    Note that there is a forum specifically for the SQL Developer Data Modeler: SQL Developer Data Modeler

    Kind regards
    David

  • import of the physical additional columns

    Hi the gems...

    am new in OBIEE (10.1.3.4.1)... until today ' today, I worked on the repository that is already built by someone.
    During this time, the product has been upgraded and this is why there are a lot of tables and a lot of columns in existing tables have been added to the schema.

    so now, depending on the condition, I need to import some new tables and all new columns to existing tables in the repository.

    New tables I can import from the file-> import-> from database.

    But how can I import the new columns to existing tables? is there any other way to do it manually one by one and then update all the line account?

    Please help... Thanks in advance...

    Hello

    It is also similar.

    are you going to RPD--> menu--> file--> import metadata--> enter the user ID, password you are then u DSNS
    Select the new table/columns and then import it.

    Save it and then update all heads of rank.

    obiee10g link to refer:

    http://www.Oracle.com/technetwork/middleware/BI-Enterprise-Edition/tutorials/obiee10g-453439.html

    http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/FMW/bi/BIEE/r1013/bi_admin/biadmin.html

    Thank you

    Deva

  • Download schema embedded in the definition of Document B2B

    Hello
    I have a diagram referring to a different schema (import) and I want to download the root one to B2B document under the custom section definition.
    Is this possible in B2B?

    Thank you.

    In 'Definition', download the zip file containing all the XSD and "Root XSD name", enter the full name of the XSD root (e.g. abc.xsd). If root THAT XSD is inside a folder, and then provide the name as foldername/abc.xsd

    You can view-

    Validation of document xsd custom SEO child xsd via import/include

    Kind regards
    Anuj

  • Import ONLY the DATA without the firering triggers

    Hi, I'm on 10.2.0.4 on windows 2008. I did a (EXPDP) Export with data a USER ly, I want to import (IMPDP) data to the user with the option TRUNCATE.

    Everything looks ok before seeing that the trigger of my paintings are triggered because import no INSERTS...

    There are my settings:


    DUMPFILE = "DESTRUCTION_DATA.dmp"
    LOGFILE = "imp_DESTRUCTION_DATA.log"
    DIRECTORY = DATA_PUMP_DIR
    CONTENT = DATA_ONLY
    TABLE_EXISTS_ACTION = TRUNCATE
    JOB_NAME = 'xxxxxx '.

    What is the best way to EXPORT and IMPORT only the data of a user without when everything is triggered.

    What I want to do is to update my database to test with productiomn data. I don't want to DROP the user and re-create all of its objects.

    Edited by: Jpmill 2010-11-09 12:01

    As the destination tables have already created triggers, you must disable it manually before the impdp and allow it after.

    To disable triggers, simply run the output of the following query connected as the user owner of the data:

    SELECT 'ALTER TRIGGER ' || trigger_name || ' DISABLE;'
    FROM user_triggers;
    

    Or do the same thing with pl/sql:

    BEGIN
      FOR i IN (SELECT trigger_name FROM user_triggers) LOOP
          EXECUTE IMMEDIATE 'ALTER TRIGGER ' || i.trigger_name || ' DISABLE';
      END LOOP;
    END;
    /
    

    To allow them to return is almost the same, just change DISABLE to ACTIVATE.

    The steps are:

    1. disable triggers
    2 - impdp
    3 activate the triggers

    Concerning

  • import of the user of a database to other databases

    Hi people

    Just need your help in the importation of a user called orabpel database UAT test database.

    I exported the database test user orabpel, that the syntax is the following.
    Directory = exp_dir dumpfile expdp System/Manager = orabpel2.dmp logfile = orabpel1.log = orabpel patterns

    When you import in the UAT database located on the same server.
    his saying
    UDI-00008: operation generated ORACLE error 1017
    ORA-01017: name of user and password invalid. connection refused

    the syntax I used is

    Impdp system / directory = exp_dir = orabpel2.dmp = orabpel patterns dumpfile

    exp_dir = / u01/oradata.

    can anyone suggest me a solution.

    who will very be apprciated.

    Thank you

    Edited by: 787684 2010-08-23 18:15

    Edited by: 787684 2010-08-25 10:42

    Oops!, your temporary tablespace data file (temporary file) is missing.

    Select file_name in dba_temp_file;

    Above must return 0 rows. Add a temporary file in your temporary tablespace. If the name of the temporary tablespace is TEMP, use following command

    alter tablespace temp add tempfile 'file_path' size 5G;

    Salman

  • Follow the progress of the import of the data pump network?

    I'm on Oracle 10.2.0.4 (SunOS) and execution of an import of network data pump from a list of tables in a schema.

    I see that the following views are available to track the data pump tasks:

    DBA_DATAPUMP_JOBS - a list and the status of the data pump jobs running
    DBA_DATAPUMP_SESSIONS - list of user sessions attached to each data pump task (which may be attached to the session of v$)
    DBA_RESUMABLE - See labor being imported and its status
    V$ SESSION_LONGOPS - can see the total size of imports and the elapsed time for work of pump data if they run long enough

    What other options are available for the increase in imports of network monitoring?
    Also, is it possible to see at which table is being processed for a network of several tables import?

    That would have helped. :^)

    When you run a job, if you do not specify a task name, then it will generate one for you. In your case, I don't see a name of the specified job, it seems that one would be generated. The generated name looks like:

    SYS_IMPORT_FULL_01 if a plenty to do
    SYS_IMPORT_SCHEMA_01 if make a diagram
    SYS_IMPORT_TABLE_01 if a table
    SYS_IMPROT_TRANSPORTABLE_01 if you are using the transportable tablespace.

    01 is the first array to create. If there is a second job while this job is currently running, it will be 02. The number can also be moved if the job fails, and is not cleaned. In your case, you make a table, so the default task name would be something like:

    SYS_IMPORT_TABLE_01 and lets say you ran this with the diagram of the SYSTEM.

    In this case, you can run this command:

    Impdp system/password attach = system.sys_import_table_01

    This will bring you to the datapump prompt, where you can type in the location or status 10, etc..

    Dean

  • Export/import of the data extraction

    Hello

    Is it possible to export/import a data mining (created via the server front end ordminer) the ACTIVITY of a schema/database to an another schema/database?

    The generation of code pl/sql method and the dbms_data_mining.export_model/import_model no current models.

    I need to transfer a subset of "mining" in one database to another. Using a full schema export/import is not possible because I want to just move some activities.

    Help?

    Concerning

    KS

    Hello
    Sorry, but you cannot export mining activities.
    Activity code generation is a deployment option (to advance the process in some form of request).
    Recreate the mining activities in the new DB would be my recommendation.
    Thank you, Mark

Maybe you are looking for

  • Can I share app with someone else via drop Pages?

    HI - anyone know, please, if I can share the Pages app with a colleague via Airdrop? Is it possible and is it legal? In addition, no one knows if Apple will make possible on Pages linking text as it was with the old app. Thank you. Betsy

  • Where is the tab start on IE 8?

    Where is labeled Startup tab that was on older versions of IE, seems like the only way to shut down my computer is to press the start/stop on the CPU, HELP!

  • How do we uninstall KB923789

    I tried in vain tried to uninstall the update of windows KB923789 of my computer that has windows XP 3.  It is a gateway computer.  I went into Control Panel and tried to delete it, but it won't disappear. Is the reason why, because I have adobe Flas

  • Cannot find my trash.

    I deleted my trash by mistake or you don't.  Where it is.  Does not display on my desk.

  • Update problems - touchpad and keyboard do not work!

    After you install an update, the touch pad and the keyboard on my laptop won't work.  I was able to use a wireless mouse, after a few failed attempts.  Any suggestions?