Skip the import of a schema in the dumpfile

version:11.2.0.3
Platform : RHEL 5.4
Imagine you have 100 schemas backed up (expdp) in a dumpfile and you want to import just one schema from that dumpfile in a DB. You can specify just that one schema you want using SCHEMAS parameter in the impdp. But things are not straightforward when you want use REMAP_SCHEMA.
Here is my scenario:
===================
I took the expdp dump of schemas A and B in one go. So, dumpfile has objects from both A and B.
The dumpfile name is : schemas_AandB.dmp
Now , I want to create schema C from A using REMAP_SCHEMA parameter
-- Putting 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:CEverything goes fine. Schema C is created from Schema A in the dumpfile.
But impdp is trying to create schema B as well because schema B was present in the dumpfile. Since the schema B and its objects are already in the DB , 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 existsSince I don't want Schema B to be imported, I tried using the SCHEMAS parameter by mentioning just A.
-- Adding SCHEMAS parameter
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 SCHEMASBut 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 requestedMaybe REMAP_SCHEMA and SCHEMAS parameters won't work together. Is there any way to prevent the impdp from importing user B and its objects ?

YOU HAVE TO USE THE OPTION EXCLUDE=SCHEMA:"IN ('B') INSIDE THE expdp
EXCLUDE SCHEMAS
http://rkdba.blogspot.in/2011/04/expdp-exclude-multiple-tables-and.html

Similar Messages

  • TS2972 why is the import button not showing at the button right hand corner of iTunes?

    why is the import button not showing at the bottom right hand corner of my ITunes page.  I am trying to transfer files from my home share library onto a new computers library.

    See if it isn't hidden under the View menu. iTunes- Turning on iTunes menus in Windows 8 and 7.

  • How Can I obtain the tables of one schema and the record size???

    How Can I obtain the tables of one schema and the record size???
    Example:
    TableName Record Size
    Tabla1 12500
    Tabla2 7800
    Tabla3 2046

    This is not an OWB question, but you can obtain bda-type information on tables by using the system view dba_tables.
    Regards:
    Igor

  • Why is the folder strukture based on the import date, and not on the Creation date? How can i setting this?

    Why is the folder strukture based on the import date, and not on the Creation date? How can i setting this?

    What folder structure?
    If you're referring to how Aperture stores the originals in a managed library then the answer is you can't change it.
    If having the originals stored in a specific file structure is important to you you will need to switch to a referenced original setup.

  • STMS: how to hide the Import All Requests button in the import queue view?

    Hi All,
    I'd like to know how to hide the "Import all requests" button in the import queue view.
    Thanks a lot for your answers.
    G.

    Hi,
    about hiding i have a doubt but u can inactivate by following procedure,
    As referred in a thread:
    On the domain controller, in STMS>overview>systems>(double click the one you want to change)>Select Transport Tool tab and click on change. Add Import_single_only value 1, import_single_strategy value 1 and no_import_all value 1. Save distribute and activate.
    or
    Refer to OSS NOTE 194000.
    Thanks & regards.

  • How is the 'import-packages' information saved in the database, and how long?

    Hello,
    I am  developping a ECM Connector for Adobe LiveCycle ES, which is a customized component.
    1 - Who should I contact to have some specific support  ?
    There is no detailed information yet on this on the adobe site  (http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl/js/html/w whelp.htm?href=000931.html&accessible=true) .
    If you  think that I should address my problem to another department of Adobe, please  tell me which department?
    I give you another description of my problem. In fact, I have  been investigating on it.
    2 - If I  put this in my component.xml file, in step  1:
    <component-id>com.rsd.adobe.livecycle.RSDFoldersConnector</component-id>
    <version>1.0</version>
    <import-packages><package  version="1.0">com.rsd.simpleApiFolders</package>  </import-packages>
    If I change the  version to 1.1 and remove the  'import-packages' (in step 2) , will the new component need the  com.rsd.simpleApiFolders package. It seems that is still needs it.
    3 - How is the  'import-packages' information saved in the  database, and how  long?
    In  fact, on thursday, I used 'import-packages'  to make a test. And since them, I  can not deploy any of my components.
    LiveCycle throws a  ClassNotFoundException.
    ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException:  Internal error.
    [java] at  com.adobe.idp.dsc.registry.component.impl.ComponentRegistryImpl$6.doInTransaction(Compone ntRegistryImpl.java:338)
    ... Caused  by: java.lang.ClassNotFoundException: http-0.0.0.0-8080-1Class name  com.rsd.simpleApiFolders.Context from package com.rsd.simpleApiFolders not found.
    [java] at  com.adobe.idp.dsc.DSContainerSearchPolicy.searchClassUsingParentFirst(DSContainerSearchPo licy.java:234)
    Thank you in advance
    Regards.

    1 - Who should I contact to have some specific support  ?
    That would depend on your Adobe support contract and if your organization has a TAM assigned.  You should check with your organization's Adobe contact and see what support options your organization has purchased.
    Having said that, this forum has a few people that may be able to help (but the forum does not have a SLA associated with it)
    2 - If I  put this in my component.xml file, in step  1:
    <component-id>com.rsd.adobe.livecycle.RSDFoldersConnector</component-id>
    <version>1.0</version>
    <import-packages><package  version="1.0">com.rsd.simpleApiFolders</package>  </import-packages>
    If I change the  version to 1.1 and remove the  'import-packages' (in step 2) , will the new component need the  com.rsd.simpleApiFolders package. It seems that is still needs it.If your component class needs the simpleApiFolders class then yes, you still need it.  Think of import-packages like a class-path statement (but with packages and not jars).  Its not physically moving the package into your application, but allowing you to access it from another container.
    3 - How is the  'import-packages' information saved in the  database, and how  long?
    As far as I know they are not imported into the database. As I stated above, I believe that the import-packages just allows you to point to classes that are in the app server's classpath, but are not physically in you component jar file.  As long as that class is in the app server class-path (or in the Adobe EAR file) then you should be able to access it.  Is the jar file containing the simpleApiFolders class in the app server's lib directory?

  • Photoshop crashes at the "import pdf" dialog, and causes the OS to be unstable.

    After using InDesign and Photoshop for some time... Photoshop crashes at the "import pdf" dialog, and causes the entire system to be slow and unstable.
    I have recently upgraded to CS6 from CS3. I'm using the current version of OSX Mountain Lion on an early 2008 Mac Pro.

    An application cannot bring down the operating system on Mac or Windows unless something is very, very wrong with the system.
    If you did an upgrade install of Mountain Lion my first suggestion would be to back up your data, deactivate your applications and then do a clean install.
    Bob

  • I remember accidently pressing the import all photos instead of the 10 that i wanted, so i clicked delete. Also i always just pull card from computer & get a error when it do it

    I remember accidently pressing the import all photos button instead of the 10 photos that i wanted, so i clicked delete. Another thing i always just pull camera card from computer slot & then get a error when it do it saying i shouldnt do it that way, I just never knew what to do. Sorry I am so ignorant when it comes to computers. I hope you can help this silly blonde

    Hi there,
    You're running an old version of Safari. Before troubleshooting, try updating it to the latest version: 6.0. You can do this by clicking the Apple logo in the top left, then clicking Software update.
    You can also update to the latest version of OS X, 10.8 Mountain Lion, from the Mac App Store for $19.99, which will automatically install Safari 6 as well, but this isn't essential, only reccomended.
    Thanks, let me know if the update helps,
    Nathan

  • I'm trying to import photos from my SD card into iPhoto, which I have done many times before, but now I'm not seeing the "Import All" button to start the import.

    I have an iMac, with an SD card slot, equipped with iPhoto '11(v9.2.3), and until recently have imported photos from my SD card without problem. But now, after turning on iPhoto, and inserting my SD card, nothing happens, except that a "canon_dc" icon appears on my desktop.  The "Import All" button no longer displays above my previously imported photos and I am, therefore, unable to complete the photo import.  Has something changed?

    By design, the organizer (and any other database management systems) is there to prevent you from duplicating your media files. The catalog management allows you to have the same image in different categories or albums. Duplication in different folders is to be absolutely avoided.
    The same image file can have multiple tags like 'family', 'vacations', 'birthdays' and be present in three different albums with the same names. On obvious advantage is less disk space. Another one with your present folder system is that if you edit one of your duplicates, the other ones are unchanged.
    I don't see an easy way to make your present folder structure simplified for the organizer ...

  • I see the other libraries but don't get the "import" ribbon and buttom at the bottom

    I just added a new computer to the homesharing and while I see the other libraries, I don't get the ribbon at the bottom that has the import button. This is only happening on the new system. How can I get the ribbon to come up

    are you using a Mac or PC ?

  • Generating the wsdl with inline schema for the bpel process

    Hi
    When a BPEL process is deployed, we can get the WSDL of the same by logging into the BPEL console, but the WSDL contains the reference to the schema using the namespace. Can we generate the wsdl with the inline schema.
    Suggestions are highly appreciated.
    Thanks

    Hi,
    If the wsdl is referring to a Schema file you won't be able to see the schema definition in the WSDL file itself,for that you have to refer to the deployed jar which contains the XML schema.The default path for the deployed jar is <Oracle_SOA_Installed_Home>/bpel/domains/<domain_name>/tmp/<bpelprocess.jar>
    Otherwise if you have the source project you can always refer to it in JDev.
    Rgrds.

  • HT1473 Where is the import to iTunes icon from the USB

    In the new version of iTunes the import option has been left off.  How can I import through the USB port from another device?

    you dont.  pull the music off to desktop then drag files to itunes library
    Peace, Clyde

  • Since the import feature is missing from the Firefox 9 File menu, how do I import my bookmarks from Safari on an iMac using Lion?

    I don't know what to add to the question, which is quite specific. I downloaded Firefox 9, but cannot find the Import section on the File Menu, as in previous versions, and as in the help section in Firefox Help.

    i had the same problem you describe. the simplest way i found to import my bookmarks from safari is to: with firefox open click on "bookmarks" then " show all bookmarks". you will get a folder titled "library". in the menu bar you will see a 5 pointed star. click on it to open the drop down box. one of the options is to "import data from another browser". then follow the instructions from there. this worked for me. hope this helps.

  • Can i change the temporary tablespace for schemas during the transactions??

    In My Prod database some of the tablespaces assigned system as Temporary tablespace. I want to change the temporary tablespace for these schemas and the default temporary tablespace of the database.
    Can I make this change while the users are accessing the database. Is there any impact If i make this change while the transactions are running.
    Below is the change i want to do........
    1. Change the users for SYSTEM to TEMP in the temporary tablespace by executing the following SQL
    statements:
    alter user SYSTEM temporary tablespace TEMP;
    alter user SYS temporary tablespace TEMP;
    alter user AD_MONITOR temporary tablespace TEMP;
    alter use SI_INFORMTN_SCHEMA temporary tablespace TEMP;
    alter user EM_MONITOR temporary tablespace TEMP;
    alter user ORDPLUGINS temporary tablespace TEMP;
    alter user TSMSYS temporary tablespace TEMP;
    alter user XDB     temporary tablespace TEMP;
    alter user SCOTT temporary tablespace TEMP;
    alter user DBSNMP temporary tablespace TEMP;
    alter user DIP     temporary tablespace TEMP;
    alter user OUTLN temporary tablespace TEMP;
    alter user ANONYMOUS temporary tablespace TEMP;
    alter user ORDSYS temporary tablespace TEMP;
    alter user MDDATA temporary tablespace TEMP;
    2. Set the default temporary tablespace to TEMP by executing the following SQL statement:
    alter DATABASE default temporary tablespace TEMP;

    user11829256 wrote:
    But if one transaction is using the old temporary tablespace and if i change the temporary tablespace of user will that transactions of that user fails which is using the old temp segment....It will continue to use the old one till the end of transaction.
    Here a quick test (hopefully readable) :
    -- session 1 as a dba user
    SQL> grant create session to nga identified by nga;
    Grant succeeded.
    SQL> alter user nga temporary tablespace tmp;
    User altered.
    SQL> select temporary_tablespace from dba_users where username='NGA';
    TEMPORARY_TABLESPACE
    TMP
    -- session 2 as NGA
    SQL> insert into gtt
      2  select * from (select * from all_objects union all select * from all_objects union all select * from all_objects);
    80559 rows created.
    -- session 1 as a dba user
    SQL> select tablespace from v$tempseg_usage where username='NGA';
    TABLESPACE
    TMP
    SQL> alter user nga temporary tablespace pstemp;
    User altered.
    SQL> select tablespace from v$tempseg_usage where username='NGA';
    TABLESPACE
    TMP
    SQL> select temporary_tablespace from dba_users where username='NGA';
    TEMPORARY_TABLESPACE
    PSTEMP
    -- session 2 as NGA
    80559 rows created.
    SQL> roll;
    Rollback complete.
    -- session 1 as a dba user
    SQL> select tablespace from v$tempseg_usage where username='NGA';
    no rows selected
    -- session 2 as NGA
    SQL> insert into gtt
      2  select * from (select * from all_objects union all select * from all_objects union all select * from all_objects);
    80559 rows created.
    -- session 1 as a dba user
    SQL> select tablespace from v$tempseg_usage where username='NGA';
    TABLESPACE
    PSTEMPNicolas.

  • Error when creating the Oracle SOA Suite Schema in the Oracle Database

    Hi all,
    I got errors as below, when trying to run /u02/soft/Disk1/install/soa_schema /irca/irca.sh
    [oracle@scs irca]$ ./irca.sh
    Integration Repository Creation Assistant (IRCA) 10.1.3.5.1
    (c) Copyright 2006 Oracle Corporation. All rights reserved.
    Exception in thread "main" java.lang.UnsupportedClassVersionError: oracle/tip/install/tasks/IRCA (Unsupported major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    Please help!
    Thanks,
    Quoc Tri.

    Hi René van Wijk,
    I installed JDK 6 as below
    [root@vpora1 oracle]# rpm -ivh jdk-6u25-linux-i586.rpm
    Preparing... ########################################### [100%]
    1:jdk ########################################### [100%]
    Unpacking JAR files...
    rt.jar...
    jsse.jar...
    charsets.jar...
    tools.jar...
    localedata.jar...
    plugin.jar...
    javaws.jar...
    deploy.jar...
    But i still get the same errors
    Quoc Tri.
    Edited by: hqtri on Jun 1, 2011 8:35 AM

Maybe you are looking for

  • A NULL interface pointer has been dereferenced

    This was an answer to someone who had this error message. I scoured the web to see what I could find. This is what I wrote to him. Does anyone else have any answers or know a work around??? Hello, After doing some research on the error message, "A NU

  • Please help...excel to html

    Dear, I have a assignment about java. My platform is red hat linux, jsp, tomcat server. I don't know how to upload a excel file and display this in browser. The main problem is that how to convert excel file into html format or anyother method? that

  • Can't open a CS3 document in CC

    Hi there, A have an old CS3 InDesign document, that I cant open in CC...?

  • XML Includes and XMLPArse()

    I have an XML file that has the following at the top: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE MyDtd[ <!ENTITY getInclude SYSTEM "thisInclude.xml"> ]> Later on in the file I call the include: <product> <name>productName</name> <version>Produc

  • Converting RM files (Real Video) for use in iMovie

    Hello, I'm looking for a program that can help me convert RM (real video) files for use with iMovie. I have heard that ffmpegX is great to use. I went to their website, downloaded everything and got it up and running...but when I try to convert anyth