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.

Similar Messages

  • HI, I need your help. How can I delete all data, when I do not have the special security code, which I didn´t remember ? I also think, that I never create this code before. But I cannot put my settings back.

    HI, I need your help. How can I delete all data, when I do not have the special security code, which I didn´t remember ? I also think, that I never create this code before. But I cannot put my settings back.

    You must remember the code, if you can't then take the phone and proof of purchase to an Apple Store.

  • Asking the Bridge Team:  Bridge "working color space" setting when one does not have the Suite?

    Common sense tells me there is really no such thing as a
    "working color space" in Bridge, because
    Bridge is not an image editor, just a browser
    Therefore, this may turn out to be a purely academic question; but that doesn't keep my curiosity from forcing me to ask it anyway. ;)
    Is there a way to set the Bridge
    "color settings" when one does not have the suite?
    The only Adobe program I keep up to date is Photoshop, so I've never had the suite. My version of Photoshop is 11 (CS4) and I run updated
    (not upgraded) versions of Adobe Acrobat 7.x, Illustrator 10.x and InDesign 2.x. Consequently, the Synchronize color settings command is not available to me.
    It seems to me that Bridge is behaving like a proper color-managed browser (e.g. Firefox with color management enabled), in that it displays tagged image files correctly and assumes sRGB for untagged image files. This normally works fine.
    But what if I wanted Bridge to assume my
    Photoshop color working space for untagged images
    so that it behaves the same as Photoshop? I'm just curious, as I deal with a minuscule, practically negligible amount of untagged files.
    My reason for bringing it up now is that I don't recall this being explicitly mentioned in forum replies when users inquire about color settings in Bridge. A recent post regarding Version Cue in the Photoshop Macintosh forum got me thinking about this. Just wanting to make sure that I'm right in my assumption that
    there is really no such thing as a
    "working color space" in Bridge, because Bridge is not an image editor, just a browser.
    Thanks in advance.

    Hi Ramón,
    Thanks for sharing the outcome of your tests. However, I may have found a bug/exception to Bridge's colour management policy!
    It appears that CMYK EPS photoshop files are not colour managed in Adobe Bridge, even if they contain an embedded ICC profile.
    I've tried every combination in the EPS 'Save As' dialogue box, so it doesn't seem to be an issue with file encoding. Also, Bridge doesn't rely on the low-res preview that is held within the EPS itself.
    My guess is that Bridge is previewing the CMYK EPS with a Bridge-generated RGB image, but it's being displayed as monitor RGB (assigned) rather than colour managed (converted to monitor RGB). For most users the difference will be barely perceptible, but the problem became very noticeable when using Bridge to preview Newsprint CMYK images on a wide-gamut monitor (images that should have appeared muted really leapt off the screen!).
    How do I report this to the Colour Police at Adobe?!?

  • My MBP will not lot start up. It chimes on but will not load up the OS. Any Ideas on how to reboot, btw i do not have the OS Disc.

    My MBP will not lot start up. It chimes on but will not load up the OS. Any Ideas on how to reboot, btw i do not have the OS Disc.

    The System DVDs that originally came w/your MBP has the troubleshooting tools.  Suggest that you find them.
    Do you have any 3rd party utility DVDs?  If so, they may work.  DW would be your best choice.  Does wonders.
    You can get replacement System Install & Restore CD/DVDs from Apple's Customer Support - in the US, (800) 767-2775 - for a nominal S&H fee. You'll need to have the model and/or serial number of your Mac available.
    If you're not in the US, you may need to go through the regional Apple Store that serves your location to find the contact number. Here's a list of links to all of those - http://store.apple.com/Catalog/US/Images/intlstoreroutingpage.html Another resource:  International Support Phone #s.

  • HT4623 how do a I update software from 4.2.6 to 4.3 or higher, when I do not have the option in settings to update software?

    How do I update my software in my iphone 4 from 4.2.7 to 4.3 or higher, and when I go to my settings I do not have the update software option.

    There is this user tip at the head of this forum https://discussions.apple.com/docs/DOC-3141
    That might help

  • HT4539 How do I update my Ipad when I do not have the automatic update appt. on my ipad

    I do not have the automatic update on my Ipad, how do I update with my computer?

    iOS 4: Updating your device to iOS 5 or later

  • HT1481 I have an ipod shuffle which i need to reset as i can not sinc it on my laptop which is using windows 8, but when i open itunes i d not have the 'source panel' on the left hand side which should show up my ipod. any ideas what i need to do? please

    Hi  I have an ipod shuffle which worked well on my old pc but since i have tried to link it with my new laptop I cant get it to sinc. I have athorised the device to my laptop so i thought it maybe worth resetting it but all the info I have read tells me that to reset my ipod i need to open i tunes and on the left hand side in the 'source panel' i will find my ipod listed but when i open itunes i do not have a source panel so i cant reset it. i have spent days trying to get this problem sorted and am about to throw the thing away. I have tried to manually sinc the thing, i have installed and reinstalled the latest version of itunes, i have restarted my laptop but i dont know what to do next. any help would be very much appreciated. Many thanks in advance

    See
    iOS: Device not recognized in iTunes for Windows
    - I would start with
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or              
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    However, after your remove the Apple software components also remove the iCloud Control Panel via Windows Programs and Features app in the Window Control Panel. Then reinstall all the Apple software components
    - New cable and different USB port
    - Run this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests
    Also see:
    iPod not recognised by windows iTunes
    Troubleshooting issues with iTunes for Windows updates
    - Try on another computer to help determine if computer or iPod problem

  • Help with installing Office for Mac 2011 when I do not have the disks on another machine

    I have a purchased legal version of Office for Mac 2011 on my personal laptop, and I just purchased one for the house (kids).  I do not have the original product key.  How do I get it registered so I can download a version to install on the laptop? 
    I have also logged in (or created accounts) with my two e-mail addresses, but it says neither is associated with Office.  I am not sure what to do.  Thx!!

    Hi,
    This forum is to discuss problems of Office development such as VBA, VSTO, Apps for Office .etc. But I find your question is related to the installing of Office for Mac 2011. So I suggest you posting it in Office
    for Mac support for more effective responses.
    Thanks.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • HT4623 im trying to update my phone and have goggled how to but my phone does not have the option to click on software update has anyone else had this problem and if so how did you go about it. thanks in advance.

    Im trying to update my iphone 4s as i can't dowload alot of thing as it says i need to update to IOS 5 i have googgled how to do it but my phone does not have software update option on it. does anyonw know how to fix this problem or had this problem? if so how did you go around fixing it and updating the phone. thanks in advance.

    gemsmobiletans wrote:
    my phone does not have software update option on it.
    If you have iOS 4... See Here...
    http://support.apple.com/kb/HT4972
    OR...
    Connect to iTunes on the computer you usually Sync with and “ Check for Updates “...
    If an Update Appears Install it... if not... you are up to date for your particular Device...
    See the Using iTunes Section Here...
    How to update your iPhone, iPad, or iPod touch
    Make sure you have the Latest Version of iTunes Installed
    iTunes free download from www.itunes.com/download
    Note:
    The Current iOS for the iPhone 4s is iOS 7.

  • HT201318 How to downgrade when you no longer have the Iphone

    I no longer have my Iphone and need to cancel my storage how do I do that? Which means I now longer have the serial number. Help!!

    If you're signed into your iCloud account on your computer, you can downgrade from there.  Otherwise contact the Apple online store at the number shown on the bottom of this page.  They process storage upgrade refunds and should be able to help you with this.  Also, if you ever need to find your serial number and have ever synced your phone with iTunes, you can find it by doing the following:
    Launch iTunes on your computer.
    Hold down your Control key, then on the menu bar in iTunes click iTunes>About iTunes (Mac) or Help>About iTunes(PC).
    Any previously synced devices will scroll in a pop-up window; press the space bar to stop scrolling so you can write down the serial number.

  • How can I delete duplicated Icons in Lauchpad when it does not have the "X"?

    When I go to Lauchpadd it looks duplicated but in Finder it does not.  Safary, Ichat, Dictionary, Etc.. are duplicated.

    '''Show All Bookmarks'''

  • How to create an Album but not have the photos in the main library

    We have some personal pictures of our kids birth and want to create a private folder and place the photos in that folder and then delete them from the main library. So when we show friends etc our photo collection they don't see these private photos.
    However when we move photos into our private album they re-appear in the main library!!... how do we get around this?
    Thanks for any help!
    Power Mac Dual G5 2GHz   Mac OS X (10.4.1)  

    Steve, it sure is possible.
    First gather up all the photos and put them in an album, then Share>export the album to newly created folder on the desktop.
    close iPhoto.
    Hold down the Option key and launch iPhoto. Keep the Option key held down until you see a message window.
    Choose to create a new library and name the library.
    Now import the album on the desktop.
    to switch between libraries use the Option key at at launch.
    When you launch iPhoto holding down the Option key this is the window you will get.
    Create a new library or choose a library to open
    Choose to create a new library if that is what you want to do, or choose a library to open by clicking the "choose" button.
    If you click the "create library" iPhoto will open with a brand new library for you to import images to. If you click "choose" then you will get this window.
    Open library
    Navigate to where the library is on your computer, highlight it, then clcik the "open" button.

  • Hello I have a one year account and I am having problems downloading it onto my Macbook... It is telling me that my apps are already up to date when I do not have the softwares downloaded!

    nun

    CC desktop lists applications as "Up to Date" when not installed
    http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html

  • How to deauthorise when you don't have the device

    Hi, I seem to have five devices authorised on my account but at least 1 of these is an old laptop that I forgot to deauthorise. Is there anyway to address this as I cannot authorise my present laptop.

    Use the Deauthorize All command documented in this article.
    (100148)

  • How do I change an old iCloud I'd when I do not have access to that email anymore?

    How do I change an iCloud ID when I do not have the email account anymore and i do not remember the password?

    If your device is signed into an old ID of yours that is an earlier version of the ID you want to sign in with, do the following:
    If you are using iMessage and FaceTime, make sure you are signed into these services with your current ID.  If they are signed into the old ID, go to Settings>Messages>Send & Receive and Settings>FaceTime, tap the ID, sign out, then sign back in with your current ID.
    Then temporarily recreate the old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  (You should not have to verify the old email account so it doesn’t matter if you no longer have access to it.)  Now go to Settings>iCloud, turn off Find My iDevice and enter your current password when prompted (even though it prompts you for the password for your old ID).  Then save any photo stream photos that you wish to keep to your camera roll (unless you are using iCloud Photo Library).  When finished go to Settings>iCloud, tap Sign Out (or Delete Account if you are not running iOS 8) and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address back to the way it was.  Now you can go to Settings>iCloud and sign back in with your current iCloud ID and password (your data will download back to your device).

Maybe you are looking for