Don't know the source tablespace to use in REMAP_TABLESPACE

11.2.0.2/Solaris 10
We have an expdp dump of a development related schema. We had dropped the source DB. Now, we want to create a new schema in a new DB using this dump. We don't know the tablespaces used by the source schema as that DB doesn't exist now.
To find the tablespaces used by the source schema, I can go ahead and do impdp and go through the "tablespace does not exist" errors in the impdp log file (need to do some googling to create an awk script for this )
But is there any other way to determine the tablespaces used by the source schema when the source database no longer exists ? We don't have the expdp log file either (Currently searching for it )

I can think of 2 options for you.
1. run your import with sqlfile and then grep that file for the TABLESPACE keyword. This will give you all of the tablespaces that will be used during the import command.
2. run your import but with these:
keep_master=y master_only=y job_name=my_master_only
this will load just the master table and then you can query the master to find the tablespaces. If your dumpfile is large, this may be much
faster than sqlfile Once this import is complete, do a query like this:
SQL> connect schema_running_job/password
SQL> select unique object_tablespace from my_master_only where process_order > 0 and duplicate = 0;
SQL> select unique object_name from my_master_only where process_order > 0 and duplicate = 0 and object_type = 'TABLESPACE';
Hope this helps.
Dean
Edited by: Dean Gagne on Sep 12, 2012 10:22 AM

Similar Messages

  • How can I stop something printing if I don't know the source?

    MNy grandson set up my printer by mistake to print comics and puzzles 2x a day, and I need to know how to stop it, and don't know what site it's coming from.,

    Hi,
    Please use the following link (under "Manage Print Apps" to cancel/remove it:
      http://h10025.www1.hp.com/ewfrf/wc/document?docnam​e=c02940901&cc=us&dlc=en&lc=en&product=5058336&tmp​...
    You may also get this:
    My Print Apps
    To view and manage print apps for your printer, use the display on the printer itself. This website cannot manage print apps for your printer. In this case, you have to cancel from your printer.
    Please also try this (if the above mothod did not help):
      http://h10025.www1.hp.com/ewfrf/wc/clc?tmp_showAll​=false&destPage=document&cc=us&dlc=en&docname=c031​...
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • I don't know the email address I used to register my photoshop cs6

    I have the serial number, how do I find the email used to register it?

    If an actual Adobe employee is not able to find your serial number in the registration database (or is not allowed to do so due to the security concern that you are trying to steal service by CLAIMING to be the owner) you are not going to find what you want

  • HT204053 I want to use the same apple Id but I don't know the password for my email account to verify iCloud any answers?

    I want to use the same apple ID but I don't know the password for my email account to verify iCloud any answers?

    iForgot.com

  • I just created an iCloud email and I want to use that email for my iTunes account as well. I need help suiting the old apple I'd because I do not remember anything associated with that email and I don't know the security questions

    I just created an iCloud email and I want to use that email for my iTunes account as well. I need help switching the old apple ID because I do not remember anything associated with that email and I don't know the security questions or the login for that old email.

    You cannot do that.  The AppleID you used to create the iCloud account is an active primary email address.  The email address you created with the iCloud account is also an active primary email address (all Apple domain email address automatically become AppleIDs as well).  You cannot replace the primary email address on one active AppleID with the primary email address on another, active AppleID.
    You can use your iCloud email/AppleID with iTunes, but it will be a separate account, so all your previous purchases remain tied to the other AppleID you have.
    I don't understand your statement that you could not remeber your old AppleID password, as you would have had to use it to create the iCloud account in the first place (the first step of creating the iCloud account required you to login with your existing AppleID and password)?

  • I use since 1 year iTunes match. Do I get a mail from apple to renew my subscription or do I have to renew my subscription for my own? I don't know the exactly date from the end of lifetime?

    I use since 1 year iTunes match. Do I get a mail from apple to renew my subscription or do I have to renew my subscription for my own? I don't know the exactly date from the end of lifetime?
    Kind best regards - sunshine34778

    The subscription will renew automatically (unless you have disabled that) and you will get an email approximately one month before renewal.

  • My iphone wont let me use it because i don't know the password or apple id to my itunes account i cant even restore it. What can I do?

    my iphone wont let me use it because i don't know the password or apple id to my itunes account i cant even restore it. What can I do?

    How can you not know your Apple ID?
    If you can't remember it, try recovering it here: https://iforgot.apple.com

  • I want to delete someone from using my apple id- the problem is I don't know the security questions and for some reason it is set up to email that person and I dont want that person on my account.

    I have set up my apple id years ago in my name- my husband recently used my id for his phone and has the email password changes going to him- I want to change this and no longer allow him access to my apple id.  How do I do this?  I don't know the securtiy questions.

    The Best Alternatives for Security Questions and Rescue Mail
        a. Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
        b. Call Apple Support in your country: Customer Service: Contact Apple support.
        c. Rescue email address and how to reset Apple ID security questions.

  • I want to find my ipad but don't know how. Can I use the Cloud to do this?

    I want to find my ipad but don't know how.  Can I use the Cloud to do this?

    Report to police along with serial number. Change all your passwords.
    These links may be helpful.
    How to Track and Report Stolen iPad
    http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
    Reporting a lost or stolen Apple product
    http://support.apple.com/kb/ht2526
    Report Stolen iPad Tips and iPad Theft Prevention
    http://www.stolen-property.com/report-stolen-ipad.php
    How to recover a lost or stolen iPad
    http://ipadhelp.com/ipad-help/how-to-recover-a-lost-or-stolen-ipad/
    How to Find a Stolen iPad
    http://www.ehow.com/how_7586429_stolen-ipad.html
    Apple Product Lost or Stolen
    http://sites.google.com/site/appleclubfhs/support/advice-and-articles/lost-or-st olen
    Oops! iForgot My New iPad On the Plane; Now What?
    http://online.wsj.com/article/SB10001424052702303459004577362194012634000.html
    If you don't know your lost/stolen iPad's serial number, use the instructions below. The S/N is also on the iPad's box.
    How to Find Your iPad Serial Number
    http://www.ipadastic.com/tutorials/how-to-find-your-ipad-serial-number
     Cheers, Tom

  • I am using a different divice than normal and because if security it is asking me questions that I don't know the answers to, so I get them wrong.

    I am using a different divice than normal and because if security it is asking me questions that I don't know the answers to, so I get them wrong.

    Click here for information. If the option to have the answers emailed to you isn't available or doesn't work(the email may take a few hours to arrive), contact the iTunes Store staff via the link in the 'Additional Information' section of that article.
    Nobody on these boards can reset them for you.
    (92406)

  • I purchased an used macbook and I don't know the old owners password, how can I reset it?

    I purchased an used macbook and I don't know the old owners password, how can I reset it?

    Well, it is part of the Mac. So you were shortchanged.
    Call AppleCare and ask them to send you a replacement set. They will ask for the serial number and model number to sure they are give you the correct set. They will charge you a nomibnal fee for shipping and handling.
    Allan

  • I don't know the owner I found an iPhone4 how could I use this???

    i don't know the owner how could I use this???

    If you found a phone you should take it to the police. You don't have the right to hang onto it. If it's not claimed after a period then you may be able to retain it. But in any case if it is 'Activation Locked' only the original owner can unlock it. There is no way round this, and without being able to contact him (and if you could you should return it) the phone is permanently unusable if locked in this way.

  • Hi I'm using iPad.i would like to purchase one of my game but I couldn't,because I don't know the answer to the question.like where was your first job and where was your favorite job.would you please help me.thank you

    Hi I'm using iPad.i would like to purchase one of my game but I couldn't,because I don't know the answer to the question.like where was your first job and where was your favorite job.would you please help me.thank you

    See Kappy's great User Tips.
    See my User Tip for some help: Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities https://discussions.apple.com/docs/DOC-4551
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    Send Apple an email request for help at: Apple - Support - iTunes Store - Contact Us http://www.apple.com/emea/support/itunes/contact.html
    Call Apple Support in your country: Customer Service: Contacting Apple for support and service http://support.apple.com/kb/HE57
     Cheers, Tom

  • I want to know my previous ios firmware version for iphone 4s because now I am using latest ios version 7.2 and I want to downgrade it but I don't know the previous version exactly for iphone 4 s

    I want to know my previous ios firmware version for iphone 4s because now I am using latest ios version 7.2 and I want to downgrade it but I don't know the previous version exactly for iphone 4 s

    The iOS is 6.1.3, problem is Apple will not sign the file through iTunes to install it on the iPhone 4S.

  • How to impdp when I do not have the source tablespace.

    I have a situation where a may not know what a client's source tablespace is. I only know the source schema. What I need to be able to do is import the data into another schema(that's easy with remap_schema). What i need impdp to do is to place the 'new' objects from the export file into the default tablespace of the destination user. I cannot user REMAP_TABLESPACE because i don't know what it is ahead of time, and there may be mutliple tablespaces. I want EVERYTHING to go into the destination user's default tablespace. Does anyone know how to do this.? Here's the pl/sql that I'm currently using:
    DECLARE
    dph NUMBER;
    BEGIN
    dph := dbms_datapump.open(operation => 'IMPORT', job_mode =>'SCHEMA',job_name => 'test15_IMPORT');
    dbms_datapump.add_file(handle => dph,filename => 'test_client_backup.dmp', directory => upper('CLIENT_FILES_DIR'),filetype=>1);
    dbms_datapump.add_file(handle => dph,filename =>'clientimpdp'||to_char(sysdate,'ddmmyyyyHHMMSS')||'.log' ,directory =>upper('CLIENT_FILES_DIR'),filetype=>3);
    dbms_datapump.metadata_filter (handle => dph, name =>'SCHEMA_EXPR',value => 'IN(''TEST_SOURCE_SCHEMA'')');
    DBMS_DATAPUMP.METADATA_REMAP(dph,'REMAP_SCHEMA',upper('TEST_SOURCE_SCHEMA'),upper('TEST_DEST_SCHEMA'));
    dbms_datapump.set_parameter(handle => dph,name =>'TABLE_EXISTS_ACTION', value =>'REPLACE');
    DBMS_DATAPUMP.METADATA_FILTER(dph,'EXCLUDE_PATH_EXPR','=''GRANT''');
    DBMS_DATAPUMP.METADATA_FILTER(dph,'EXCLUDE_PATH_EXPR','like''%GRANT''');
    DBMS_DATAPUMP.metadata_filter (handle => dph, name => 'EXCLUDE_PATH_EXPR', VALUE => '=''USER''');
    DBMS_DATAPUMP.metadata_filter (handle => dph, name => 'EXCLUDE_PATH_EXPR', VALUE => '=''TABLESPACE''');
    DBMS_DATAPUMP.metadata_filter (handle => dph, name => 'EXCLUDE_PATH_EXPR', VALUE => '=''TABLESPACE_QUOTA''');
    DBMS_DATAPUMP.metadata_filter (handle => dph, name => 'EXCLUDE_PATH_EXPR', VALUE => '=''SYSTEM_GRANT''');
    DBMS_DATAPUMP.metadata_filter (handle => dph, name => 'EXCLUDE_PATH_EXPR', VALUE => '=''ROLE_GRANT''');
    DBMS_DATAPUMP.metadata_filter (handle => dph, name => 'EXCLUDE_PATH_EXPR', VALUE => '=''DEFAULT_ROLE''');
    DBMS_DATAPUMP.metadata_filter (handle => dph, name => 'EXCLUDE_PATH_EXPR', VALUE => '=''PROCACT_SCHEMA''');
    dbms_datapump.start_job(dph);
    dbms_datapump.detach(dph);
    --EXCEPTION
    --WHEN OTHERS THEN
    --dbms_output.put_line('Error:' || sqlerrm || ' on Job-ID:' || dph);
    END;

    I can't really understand your code. But if, the source tablespace is not available in the target database then the default behaviour is, it will automatically go to the default tablespace of that user. say for ex. you export the data from tablespace TB1 in the source. You try to import them in TB2 (which is the default tablespace for the user in target database) it will be automatically imported to TB2 if there is no TB1 or if the user have no quota on TB1.

Maybe you are looking for

  • Adding javascript to sherpoint master page

    How can i include this in a master page ?  This code should hide the empty lists , but since i noob , i don't now how and where to add this script. Thanks <script type="text/javascript"> function HideEmptyWebParts() var itemsfound = new Array; var el

  • Service master for freight, pallet charges instead of SD Condition types

    HI SD experts, In our project, we are using service master (eg: MDELIVERY etc.,) for capturing delivery charges instead of SD condition type. Now, we are considering to change the practice and use SD condition type instead, for delivery charges. This

  • Help file in dreamweaver

    i am trying to use the help file in dreamweaver 8 but the font size is so low that i cannot read it , i tried from preferences i could not find the way to increase the font size. other programs display normal size font, so i do not think it is my sys

  • Get_context_change_log retrieves no changes although turned on

    Dear all, Thank you for looking into this issue. We have a complex WD ABAP application with many views, embedded views, etc. In most of the views embedded in the main view we're calling in the wddoinit the context method enable_context_change_log to

  • Lost init.ora file

    hi on one of our database we have lost an init.ora file. is there a way to recover this file if one does not have a backup of this file regards kedar