Using dbms_datapump package to export the schema with the schema name as pa

Hi,
I am using the pl/sql block to export schema using dbms_datapump package,Now I want to pass the scheme name as the parameter to the procedure and get the .dmp and .log files with the schema name included.
CREATE OR REPLACE PROCEDURE export
IS
h1 number;
begin
h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'export1', version => 'COMPATIBLE');
dbms_datapump.set_parallel(handle => h1, degree => 1);
dbms_datapump.add_file(handle => h1, filename => 'EXPDAT.LOG', directory => 'DATA_PUMP_DIR', filetype => 3);
dbms_datapump.set_parameter(handle => h1, name => 'KEEP_MASTER', value => 0);
dbms_datapump.metadata_filter(handle => h1, name => 'SCHEMA_EXPR', value => 'IN(''CHECKOUT'')');
dbms_datapump.set_parameter(handle => h1, name => 'ESTIMATE', value => 'BLOCKS');
dbms_datapump.add_file(handle => h1, filename => 'EXPDAT%U' || to_char(sysdate,'dd-mm-yyyy') || '.DMP', directory => 'DATA_PUMP_DIR', filetype => 1);
dbms_datapump.set_parameter(handle => h1, name => 'INCLUDE_METADATA', value => 1);
dbms_datapump.set_parameter(handle => h1, name => 'DATA_ACCESS_METHOD', value => 'AUTOMATIC');
dbms_datapump.start_job(handle => h1, skip_current => 0, abort_step => 0);
dbms_datapump.detach (handle => h1);
exception
when others then
raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
end;
Thank you in advanced
Sri

user12062360 wrote:
Hi,
I am using the pl/sql block to export schema using dbms_datapump package,Now I want to pass the scheme name as the parameter to the procedure and get the .dmp and .log files with the schema name included.
OK, please proceed to do so
>
CREATE OR REPLACE PROCEDURE export
IS
h1 number;
begin
h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'export1', version => 'COMPATIBLE');
dbms_datapump.set_parallel(handle => h1, degree => 1);
dbms_datapump.add_file(handle => h1, filename => 'EXPDAT.LOG', directory => 'DATA_PUMP_DIR', filetype => 3);
dbms_datapump.set_parameter(handle => h1, name => 'KEEP_MASTER', value => 0);
dbms_datapump.metadata_filter(handle => h1, name => 'SCHEMA_EXPR', value => 'IN(''CHECKOUT'')');
dbms_datapump.set_parameter(handle => h1, name => 'ESTIMATE', value => 'BLOCKS');
dbms_datapump.add_file(handle => h1, filename => 'EXPDAT%U' || to_char(sysdate,'dd-mm-yyyy') || '.DMP', directory => 'DATA_PUMP_DIR', filetype => 1);
dbms_datapump.set_parameter(handle => h1, name => 'INCLUDE_METADATA', value => 1);
dbms_datapump.set_parameter(handle => h1, name => 'DATA_ACCESS_METHOD', value => 'AUTOMATIC');
dbms_datapump.start_job(handle => h1, skip_current => 0, abort_step => 0);
dbms_datapump.detach (handle => h1);
exception
when others then
raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
end;
EXCEPTION handler is a bug waiting to happen.
eliminate it entirely

Similar Messages

  • HT3130 trying to export a 4 minute video to desktop.  Only 1:08 seconds exports.  I've tried other clips and they all cut at 1:08.  Used different exports like Quicktime with the same results.

    trying to export a 4 minute video to desktop.  Only 1:08 seconds exports.  I've tried other clips and they all cut at 1:08.  Used different exports like Quicktime with the same results.

    Good to hear that you've had some success with the import.
    I tried 3 times to do it before I finally changed it to H.264, and it worked on the first try.  The quality of the compression was terrible with those settings compared to my standard settings, but I'm just glad it worked.
    Rather than Share>Export using QuickTime and then choosing your own settings for H.264, you may get a better result if you simply use the Share>Export Movie option. Alternatively, use the Share>Media Browser option (as I mentioned in my earlier post). You will be presented with a range of sizes to choose from. Depending on your target, it's usually best to select the highest size available, such as Large, HD 720p or HD 1080p. However, for producing a DVD it's best to not go beyond the HD 720p size, as the DVD will be downscaled during encoding to Standard Definition in the appropriate size for either PAL or NTSC.
    In my experience, both these options (Export Movie or Media Browser) produce a video file of excellent quality. The files will be in H.264 format and will have the file extension .mov or .m4v depending on the size of the export. I'm assuming that your camera records HD video in AVCHD format.
    These files work well with iDVD (or other DVD authoring programs). The export process for the presets is optimised by Apple to produce high quality video files at a reasonable file size. So, selecting a preset may give you a much better result. Choosing your own H.264 settings when using the "Export using QuickTime" method could be why "the compression was terrible". You may have selected a data (bit) rate that was too low. There is always a trade-off between quality and file size when compressing video.
    So, to summarise, try one of the Apple presets using either Share>Export Movie or Share>Media Browser.
    John

  • Exporting LOGON trigger with per schema filtering

    I am using the datapump on 10.2g (on linux) to export three schemas. I am using the "SCHEMA" option in the dbms_datapump.open() procedure and then using the metadata_filter with the SCHEMA_EXPR option to limit down to my three schema. I also do some data filtering after that. Works great, except...
    I found that we have one LOGON trigger which is NOT getting exported. The trigger IS owned by one of the schemas i am exporting. But, I think that because this is a "system event trigger", rather than a table based trigger, it will not export using the SCHEMA export mode. True ?
    I tried switching to the FULL export mode, but then I can not find a way to limit the export to the three schemas.
    All the exporting/importing is being done as system, so I don't think this is a priveledge issue.
    Ideas? How to datapump specific schemas and also get the system event triggers owned by those schemas ?
    Thanks very much for your help.
    Bill Clery

    Sure. Here is the trigger that is NOT exporting as part of the Schema export. We have a Schema called ReportView. In that schema are many views, one table, one package, and one trigger (below). Everything except the trigger is getting exported and then imported.
    CREATE OR REPLACE TRIGGER reportview.startsess AFTER LOGON ON reportview.SCHEMA
    BEGIN
    reportview.reportapi.AutoLoadPIT();
    END startsess;
    The initiation of the export was done like this
    PumpHandle := dbms_datapump.open('EXPORT','SCHEMA',NULL, JobName,'LATEST');
    dbms_datapump.set_parallel(PumpHandle, 1);
    dbms_datapump.metadata_filter(PumpHandle, 'SCHEMA_EXPR', 'IN (''ERIKSYSCORE'',''RBSAPPCORE'',''REPORTVIEW'')');
    dbms_datapump.add_file(...)
    dbms_datapump.data_filter(...)
    dbms_datapump.data_filter(...)
    dbms_datapump.start_job(PumpHandle);
    dbms_datapump.detach(PumpHandle);
    I tried swtiching to the "FULL" method and using the NAME_EXPR to filter down to the same schemas, but could not get this working.
    PumpHandle := dbms_datapump.open('EXPORT','FULL',NULL, JobName,'LATEST');
    dbms_datapump.set_parallel(PumpHandle, 1);
    dbms_datapump.metadata_filter(PumpHandle, 'NAME_EXPR', ???? );

  • Why is it impossible to export a file with the same fidelity as the version iMovie itself plays for me?

    My movie is a photo slideshow using Ken Burns effect throughout, using iMovie 09. It looks beautiful when I play the project directly from within iMovie, even when enlarged to fullscreen playback. Is there really no way to set the quality settings high enough to reproduce this level of quality in an exported file? It seems so, and I don't understand why. "Export to iDVD" is a joke--even with the best quality settings there is an incredible amount of moire patterns and jagged edges. Exporting to Quicktime is better, but still the comparison with the version played from within the application is very poor. I wouldn't care if my computer had to crunch all night to render a file (and my movie is only 12 minutes long), I would just like to be able to view it on other computers or DVD players at the original quality.
    It seems to me that playing it from within iMovie should be *worse*, because iMovie is not only displaying the movie, it has to render it from scratch in realtime by zooming and panning on the photos. So an exported version (i.e. precalculated, prerendered) of the same quality would certainly be playable on a normal device like a DVD player.
    Can anyone explain? Or (but I doubt it) could anyone tell me what I've missed, and explain how to export a pixel-for-pixel, frame-for-frame replication of what iMovie apparently effortlessly displays??

    montagular wrote:
    …  I would just like to be able to view it on other computers or DVD players at the original quality.…
    a DVD is 720x480 and highly compressed.
    … how to export a pixel-for-pixel, frame-for-frame replication of what iMovie apparently effortlessly displays??
    video is compressed - otherwise, files are getting gargantual (a top-notch intermediate in FCPX is 40-120GBs per hour, a disk, for comparrison is 4GB/h).
    two options:
    • in the Export with Quicktime Option, you'll find a bit-rate setting - depending on your other settings (resolution, framerate, codec), 5-10.000 kbps should result in a superb result.
    • instead of a playback-optimized codec as usual h.264, you can give AppleAnimation a try - much larger files, but e.g. less banding. only for use on Macs.
    to transfer lossless to iDVD, choose AppleIntermediate, which is iMovies internal codec.
    .... but a disk with same quality as a computer HDef? Not possible.

  • Unable to access the objects with out schema as prefix.. can any body help

    Hi,
    i am using 10g.I have one problem like i unable to get the table access with out mention prefix for that table.
    but i created public synonym and gave all grants to all users also. but still i need to mention schema name as prefix otherwise it give the error..
    can any body tell me reason and give me solution.
    ex: owner:eiis table:eiis_wipstock
    connect to: egps schema
    in this position if i try with eiis.wipstock it gives error but if i mention like eiis.wiis_wipstock then its working fine.

    Pl do not spam the forums with duplicate posts - Unable to access the objects with out schema as prefix.. can any body help

  • 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.

  • I want to export my photos with the title and info attached

    I want to export my photos with the title and info attached but cannot seem to do it with this new os.

    Are you confusing Titles and Filenames by any chance?
    When you email you're sending a file. The email client sees the Filename. The title is in the Exif metadata of the file and the email app doesn't see this - neither will the Finder or filebrowser.
    You can export (as above) and opt to use the Title as Filename - it's there at the Filename section.
    Regards
    TD

  • How Do I export photo's with the camera info attached?

    I'm trying to export some photo's to another photographer for some constructive feedback. Is there a way to include my camera info used on each shot, such as ISO, Aperture, Shutter speed, etc attached with the photos?

    A few notes:
    • Exposure settings are stored in the EXIF information which is stored in the image-format file.
    • Any file viewer should be able to show you the EXIF information.  You just have to know how to use the viewer.
    • As shown, in the OS X program "Preview" use "Tools ▹ Show Inspector" to see the EXIF
    • Your friend will have to know how to show the EXIF with the viewer s/he uses.
    • The OS X program "Preview" should not be confused with what in Aperture is called a "Preview".
    • Previews in Aperture are, in effect, large JPG-format thumbnails.  Their existence and size are set in Aperture Preferences.
    • Previews exported from Aperture _should_ contain the EXIF info.  (Sorry, I can't confirm this right now -- but it is easy to check.)
    • Files created  by exporting Images from Aperture contain the EXIF by default.
    • You can put the exposure settings _on_ the picture or on a border around the picture using the highly-regarded Aperture plug-in BorderFX.  I suggest doing this, saving the BorderFX preset, and re-using it for each Image you want to share with your friend.
    • Example:
    (Sorry -- will add later.  Forum software not allowing me to include a picture file.)

  • PS CS5 Extended on Windows -  When trying to use the clone stamp and/or healing brush as soon as I move the cursor over the image I get an exact copy of the existing layer that moves around the window with the movement of the clone stamp/healing brush.  W

    PS CS5 Extended on Windows
    When trying to use the clone stamp and/or healing brush as soon as I move the cursor from the toolbar over to the image I get an exact copy of the existing layer that moves around the window with the movement of the clone stamp/healing brush.  This just started tonight.  What's causing this weird behaviour?

    What are the settings in Window > Clone Source?

  • I need to update my phone, but my computer broke, and do not have a new one. I have an Itunes account, can I use someone else computer to go through with the update?  Is there a chance of loosing all my data, ie: music/photos?

    I need to update my phone, but my computer broke, and do not have a new one. can I use someone else computer to go through with the update if i log on with my itunes account or Is there a chance of loosing all my data, ie: music/photos? And if all else fails can i go to the apple store and have them update my phone?

    Update to what? The 3G you want to update? You have ios3 or 4 on that 3G?
    Go to a friend, authorize that pc.
    Read this : http://support.apple.com/kb/ht1848
    and this : http://support.apple.com/kb/ht2519
    Make a backup of your stuff (from the phone. apps/photos/music/blabla). Update your phone. The phone will restore the backup automatically.

  • I updated the IPAD with the latest update and now when I turned the IPAD on, I get the itunes logo and then nothing else.  How can I fix this to let me use my IPAD?

    I updated the IPAD with the latest update and now when I turned the IPAD on, I get the itunes logo and then nothing else.  How can I fix this to let me use my IPAD?

    YOU ARE IN RECOVERY MODE
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port.
    DO NOT RELEASE BUTTON until you see picture of iTunes and plug
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note:
    1. Data will be lost if you do not have backup
    2. You must follow step 1 to step 4 VERY CLOSELY.
    3. Repeat the process if necessary.

  • I can't read Or write I have been using the iPad With the accessibility icon Is there a video help them teach me how to use it more efficiently

    I cannot read or write I have been using the iPad With the accessibility icon  Is there a video to help teach me To learn how to use this accessibility more efficiently

    It sounds like you may have multiple problems, but none of them are likely to be caused by malware.
    First, the internet-related issues may be related to adware or a network compromise. I tend to lean more towards the latter, based on your description of the problem. See:
    http://www.adwaremedic.com/kb/baddns.php
    http://www.adwaremedic.com/kb/hackedrouter.php
    If investigation shows that this is not a network-specific issue, then it's probably adware. See my Adware Removal Guide for help finding and removing it. Note that you mention AdBlock as if it should have prevented this, but it's important to understand that ad blockers do not protect you against adware in any way. Neither would any kind of anti-virus software, which often doesn't detect adware.
    As for the other issues, it sounds like you've got some serious corruption. I would be inclined to say it sounds like a failing drive, except it sounds like you just got it replaced. How did you get all your files back after the new drive was installed?
    (Fair disclosure: I may receive compensation from links to my sites, TheSafeMac.com and AdwareMedic.com, in the form of buttons allowing for donations. Donations are not required to use my site or software.)

  • I bought a new computer, and i have transfered everything using home share, file transfers, etc.. yet still when i go to sync, itunes tells me ipod can only be synced with one computer... is there a way to retire the relationship with the old computer?

    i bought a new computer.  the itunes app allows for home shareing, file transfers, etc.. but i want to discontinue the syncing with the old computer and sync my ipod touch now only on my new system... but i cant seem to disconnect that old relationship at all.. when i try to syncit says that my ipod is already synced with another computer, do i want to discontinue that and only use the new informationon this computer?  i dont want to do that yet because it doesnt seem like everything has come over, and i am afraid of losing songs that i downloaded from cds, etc..

    if you don't want to sync it because you don't think that everything has been transferred then i would check first if you can, before you commit to used only the data from your new computer.
    though, im not sure if this is true, but i think that when you sync your ipod to a new computer it will take the items from your ipod and put it on itunes, like when you purchase something on your ipod and it gets automatically transfered, but don't take my word for it.

  • I used utilities to source my 10.6 snow leopard install disc to my main hardrive, and now when I turn on my computer the apple with the spinning wheel stays on the screen and stuck like that. How do I fix it Help please. I already tried all the commands

    I used utilities to source my 10.6 snow leopard install disc to my main hardrive, and now when I turn on my computer the apple with the spinning wheel stays on the screen and stuck like that. How do I fix it Help please. I already tried all the commands such as Command R, Holding down the Option key, C and holding down shift at the start up but nothing happens.
    initialy All I was trying to do was downgrade 10.7 to 10.6 .

    You have to consider the possibility the hard drive may be dying.    If your data isn't backed up, try one of the tools below:
    https://discussions.apple.com/docs/DOC-1689
    Once you are sure your data is backed up, we can examine other possibilities.  In the meantime call AppleCare for your original installation DVDs.  You may need them.

  • I just finished downloading and attempting the install of ios 7 on my iPhone 5.  I'm using the newest version of iTunes.  And now, I'm stuck at the screen with the iTunes logo and the plug.  But no matter what recovery mode wont work

    I just finished downloading and attempting the install of ios 7 on my iPhone 5.  I'm using the newest version of iTunes. 
    And now, I'm stuck at the screen with the iTunes logo and the plug.  But no matter how many times I try, recovery mode will not work.  My phone is currently useless unless I can figure this out.

    No problem, glad to help!
    Update: my PC USB hub was connected to a USB 3 port, I connected the 30 pin cable directly to my PC, And the restore worked just fine. Restored phone from iCloud backup and seems to be working fine.

Maybe you are looking for