Dbms_datapump in PL/SQL- the file dump deleted after session disconnect

Hi all
I create test procedure to exp and imp table to dump file, it done but when I close session ( relogin to plsql developer to other schemas) the dump file is automatic deleted. how can to make dbms_datapump do not auto delete dump file when session disconnect.
declare
handle1 NUMBER;
handle2 number;
name1 VARCHAR2(30);
name2 VARCHAR2(30);
jobState user_datapump_jobs.state%TYPE;
begin
name1:='abc_tbl1'|| to_char(SYSDATE,'YYYYMMDDHH24MI')||'.dmp';
name2:='abc_tbl2'|| to_char(SYSDATE,'YYYYMMDDHH24MI')||'.dmp';
handle1 := dbms_datapump.open('EXPORT','TABLE');
dbms_datapump.add_file(handle1,name1,'DUMP');
dbms_datapump.metadata_filter(handle1,'SCHEMA_EXPR','IN (''ABC'')');
dbms_datapump.metadata_filter(handle1,'NAME_EXPR','IN (''abc_tbl1'')');
dbms_datapump.set_parallel(handle1,4);
dbms_datapump.start_job(handle1,0);
dbms_datapump.detach(handle1);
end;
thank

Thank for your help, I fixed this one, just change code like this :)
declare
handle1 NUMBER;
handle2 number;
name1 VARCHAR2(30);
name2 VARCHAR2(30);
jobState user_datapump_jobs.state%TYPE;
r_stat1 VARCHAR2(1);
r_stat2 VARCHAR2(1);
date1 DATE;
date2 DATE;
fcc_date DATE;
begin
--take name of dump
name1:='abc_tbl1'|| to_char(SYSDATE,'YYYYMMDDHH24MI')||'.dmp';
name2:='abc_tbl2'|| to_char(SYSDATE,'YYYYMMDDHH24MI')||'.dmp';
---take the date
handle1 := dbms_datapump.open('EXPORT','TABLE');
dbms_datapump.add_file(handle1,'lampp.log','DUMP',NULL,dbms_datapump.ku$_file_type_log_file);
dbms_datapump.add_file(handle1,name1,'DUMP');
dbms_datapump.metadata_filter(handle1,'SCHEMA_EXPR','IN (''ABC'')');
dbms_datapump.metadata_filter(handle1,'NAME_EXPR','IN (''ABC_TBL1'')'); --- input with upper character
dbms_datapump.set_parallel(handle1,4);
dbms_datapump.start_job(handle1,0,0);
dbms_datapump.wait_for_job(handle1, jobState);
dbms_datapump.detach(handle1);
end;

Similar Messages

  • File adapter can I avoid that the file is  deleted when there's an error

    Hello,
    my bpel process reads files with records and deletes them from the source directory after successful retrieval (using file polling) and then updates the status of that records in a database.
    The problem is that it seems like the file is deleted as soon as it is picked up by the BPEL process so if there's an error with the database connection the file was already deleted from the source directory.
    How can I avoid this? The file should only be deleted at the end of the bpel process.
    Regards,
    Lara Fernandes.

    Hi Lara Fernandes,
    In this case of database being not available after you have picked up the file by polling, rather than allowing the process to fault and close, you can put the process into manual recovery and then the process can be retried from there, without any loss of data.
    This would ensure that it would not matter that the file was deleted from the polling directory as soon as the process was initiated.
    Hope this helps,
    Regards,
    Shanmu.
    http://www.prshanmu.com/articles/

  • I updated my iMac to Mountain Lion. All the files were deleted. I have Time Machine backups. When I restart the mac pressing Command R to restore from backup it shows the previous OS X (Leopard) beside the date of the backup. Will it go back if I restore?

    I updated my iMac to Mountain Lion. All the files were deleted. I have Time Machine backups. When I restart the mac pressing Command R to restore it from the backup it shows the previous OS X (Leopard) beside the date of the backup that I want to select. Will it go back to Leopard if I restore it from the backup?

    No, it won't revert to the prior OS X but you you may have third party apps installed that were compatible with Lion that may not be compatible with Mountain Lion.
    App Compatibility Table - RoaringApps - App compatibility and feature support for OS X & iOS
    After you restore from TM, check HD > Incompatible Software

  • Problem with Write To Measurement File Express VI not writing to file if file was deleted after the first call (7.1)

    I'm using the Express Write to LabVIEW Measurement File in LV7.1.
    I have it set to "Save to one file"  and have tried both "Overwrite file" and "Using next available file name" for the "If a file already exists" conditions.
    The path/filename is passed into the function.
    It works fine the first time around.  If the file is deleted before the function is called again, an error occurs since LV is unable to find the file.
    I have had to stop and re-run my program in order to write to use the function again.
    Since I am able to delete the file I assume it was closed but it seems like LV expects it to be there, even though the function was supposed to create/open/close the file...  Is there any way to reset this without stopping/restarting the program?
    Since my application creates several files (only one using the Express VI) I am checking for the filenames and requiring that they be deleted (or a new filename be used) before acquiring data.  Everything has worked great, except for the Express VI.
    Thank you,
    David

    Ok, I've edited the VI you posted to reproduce my error (this time with 8.0). 
    I added a "master stop" and "start log" button.  To demonstrate my problem:
    1.  Run the VI
    2.  Click "START LOGGING" - c:\test.txt is created
    3.  Click "STOP" - c:\test.txt is closed
    4.  Delete the file c:\test.txt with Windows shell or explorer
    5.  Click "START LGGING" - a new c:\test.txt file should be created but instead an error is raised in the Write LabVIEW Measurement File function.
    Any ideas?
    Thanks,
    Dave
    Attachments:
    Write LV Meas File 2.vi ‏96 KB

  • HT4623 How can u set up your iphone when all the files are deleted?

    How can I set up my iphone if all the files are deleted?

    What files are deleted?
    Please explain

  • How to find the file that delete from time capsule?

    How to find the file that delete from time capsule?

    I mean I saved JPEG file in Time capsule and unfortunately delete the file. Can I get it back
    IF.... .no other backups have occured since you deleted the file, you might be able to retrieve it using an application like Disk Warrior. It's about $100 as I recall, and there are no guarantees that it will work.
    DiskWarrior 4 - The Disk Utility for Mac  Disk Repair, Mac Directory ...
    Any of the free or low priced utilities that you might see or try will not be able to retrieve a deleted file from a Time Capsule.
    If any backups have occured since you deleted the file, the deleted file has almost certainly been overwritten. No way to retrieve it in that case.

  • I was listening to a you tube clip.  i guess i didn't click off the actual clip, because now when i turn on my computer the clip audio plays. i can't locate the file to delete it. please help.

    i was listening to a you tube clip.  i guess i didn't click off the actual clip, because now when i turn on my computer the clip audio plays. i can't locate the file to delete it. please help.

      Quit Safari.
      Hold the shift key down and relaunch Safari.
    Empty Caches
    Safari > Preference > Advanced
    Checkmark the box for "Show Develop menu in menu bar".
    Develop menu will appear in the Safari menu bar.
    Click Develop and select "Empty Caches" from the dropdown.
    Best.

  • HT6154 iphone 5s reminder app is not reminding at all. Rather I input in manually or through Siri; the reminder is there but the date & time is not. When input manually; the date & is deleted after a few seconds. How is this corrected?

    After the latest software update; the iPhone 5s reminder app is not reminding at all. Rather I input in manually or through Siri; the reminder is there but the date & time is not. When inputed manually; the date & is deleted after a few seconds. How can this be corrected?
    big Geo.

    After the latest software update; the iPhone 5s reminder app is not reminding at all. Rather I input in manually or through Siri; the reminder is there but the date & time is not. When inputed manually; the date & is deleted after a few seconds. How can this be corrected?
    big Geo.

  • I download confidential info & save to a secured flash drive; how can I delete the file from "downloads" after that?

    I am a mental health professional. My supervisor emails me confidential information as Word documents, which I download using Firefox. When the download is complete, I open the document and save it to my secured flash drive. I would like to then delete the file from my computer, so the flash drive has the only copy, to protect my clients' privacy. The only directions I can find are for deleting the entry from the downloads list, but not the file itself.

    There is technology known as RMS which you could set series of policies like only members in the company could access certain documents and if someone copy them and attempt to run them in another PC or outside company, it won't work. Take a look at:
    http://blogs.technet.com/b/rms/archive/2013/08/29/the-new-microsoft-rms-is-live-in-preview.aspx
    https://technet.microsoft.com/en-us/library/dd277361.aspx

  • Dashboard Widget causes error and I can't get dashboard to stay open - how do I find the file to delete?

    I put "levelwidget" on the dashboard - it is supposed to make a macbook into a Level.  Sounded interesting...now I regret!
    The widget is corrupted and now when I try to open the dashboard it immediately closes and gives me an error message "you can't open the application motion because power pc applications are no longer supported"
    How do I delete this widget so I can open the dashboard.
    I've tried to look up the file, but can't seem to find dashboard widget files. 
    Thoughts?
    Grant

    Sorry didn't realise you were an Apple Newbie!
    No problem, when you're in the Finder, check along the menus at the top of the screen.
    You should see Finder (in Bold) File, Edit, View, Go, Window and Help. Click the Go menu and with the mouse go to the second to last item which is 'Go to Folder…' then you be presented with a dialogue box ready to type some text into.
    Now you can type the text ~/Library/Widgets into the box. The Tilde character is next to the left Shift key (Press and hold the Shift key and then press the ~ key.
    It will be easier if whilst you're reading this message, you highlight the text ~/Library/Widgets and go to the Edit menu, select Copy, then go to the Finder and when you've the Go to Folder… dialogue window open, go Edit Paste and it will fill the box for you. Then just click the Go button and it should show your Widgets. Again if not the one just repeat the Go to Folder… bit and this time just remove the ~ at the beginning of the line
    Mike

  • How do I delete files permanently from a usb flash key? On my mac (Yosemite 10.10) it's telling me the files are deleted, however on plugging key into television they're still there

    I've a problem I've never come across before and it's how to permanently delete files on a usb flash key? I've just migrated from using Windows for 15 years onto Apple iMac and had been deleting files easily and permanently from the key on Windows without any hassle and thought I'd done the same on my iMac but seemingly they're still there as the tele is showing them when key is plugged in, BUT they can not be seen on iMac. I wondered why the key wouldn't take anymore files after, what I thought was, deletion and now I know why-imac hasn't deleted them!
    I've actually gone into Disk Utility and formatted the key in it's usual FAT32 format to finally delete the files.  Anyone any ideas as to why this happens and how to solve this please?
    Many thanks
    puretoon

    In addition to what Drew wrote, remember the Mac has a data fork and a resource fork.
    Here is an old thread but a nice recap by Dr. Smoke
    ._Files
    Note that the ._file files you note are the resource forks of Mac files you copied to the drive from your Mac, and these are only visible when you use the Flash drive on a PC. These are normal and indicate the Flash drive is already formatted for Windows.
    When you copy or save a file from a Mac OS X system to a Windows shared volume or a Windows-formatted disk, the Mac creates two files: the data fork (xxx) and the resource fork (._xxx). This is called Apple Double Format and is normal. The resource fork contains additional data about the file that is exclusive to the Mac that cannot be saved otherwise on Windows-formatted disks. This is new with Mac OS X, as documented in Mac OS X: Apple Double Format Creates File Name With the Prefix '._'.
    The resource fork files (._xxx) are necessary if you want to copy the file back to the Mac and retain the metadata. The resource forks of files are invisible when they are used on the Mac: the Mac OS Extended file system (aka HFS Plus or HFS+) uses forked files, with a file having both data and resource forks.
    You can delete the resource forks on the Windows disk if and only if you don't care about losing the resource fork information should you copy them back to the Mac, such as comments, image preview icon, etc. Some Mac applications use the resource fork data, so deleting the resource fork can be problematic if you copy the file back to the Mac. Likewise moving the file while not also moving its associated resource fork when using the data on a PC can result in problems when using some files again on the Mac.
    You can't prevent the resource forks from being created if you copy or save files from the Mac to the Windows share or Windows-formatted disk via Finder.

  • Can't find the file to delete it that I just transferred using home sharing as it has filled my husbands hard drive

    I used home sharing in iTunes on my husbands computer (op syst windows vista) to transfer my iTunes music from my computer (windows xp). now his hard drive is ful, l is there any way to delete the file I transferred  to his computer I have looked everywhere... PLEASE HELP!!!!!!

    What To Do If Your iDevice Is Lost or Stolen

  • Is the file update=delete+create?

    It seems that when a user edits(updates) some file the iFS completely deletes old copy and creates a new one, that is file update operation = delete + create, isn't it? Or there is some indication (in the IFSSYS DB schema) that allows to tell the difference between the update and delete operations?
    Best regards,
    Vasiliy

    Hi, I assume you can use the default schemas and customize it to add your business rules and use that for quality check of incoming XML payload before you push data into crmondemand while integrating withe external systems
    -- Venky CRMIT

  • I am disabled, so I need voice contact with someone in Support. An alien program has taken over Firefox and I can't locate the files to delete front he rogue.

    The program that has taken over Firefox is called "inbox." I have disabled its cookies, but now, of course, I can't use the Firefox no matter who had taken it over.
    This is serious. I can' find the files with any routine search of my computer files, so they must be hidden.

    Do a malware check with some malware scan programs. You need to scan with all programs because each program detects different malware. Make sure that you update each program to get the latest version of the database before doing a scan.
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

  • Can not select a PDF file in the file uploader window after clicking the Browse... button for a file type input element.

    After upgrading to 5 (this worked in 4) I can not select a PDF file in the File Upload dialog that appears when I click the Browse button next to an HTML file type input element. The specific HTML element source code has the attribute: ACCEPT="image/*". I can select image files such as jpg, png, tiff, etc. But not PDF. This worked great in Furefox 4 and works in the latest version of Safari.
    The HTML code for the form element is:
    INPUT TYPE="file" NAME="file_1" ACCEPT="image/*" SIZE=35
    The File Upload dialog lists all files with PDF extension as dimmed and not selectable in Firefox 5.
    Can you help?

    Hi Purush
    Unfortunately we couldn't solve the problem. Our IT specialist checked it with SAP directly. SAP doesn't support the SAP KW solution anymore. Therefore we checked-in the document in ".doc"-Format.

Maybe you are looking for

  • Can I use 1 computer for Iphone

    I have 1 iphone and 1 ipoh. Can I use itune separately in 1 computer or can I install 1 itune in my external hard disk for using Ipoh? Thanks Wong

  • TS3775 27" iMac as monitor for MacBook Pro?

    Can someone please suggest the easiest way for me to use my 27" iMac as a monitor for my MacBook Pro? Both are using OS X 10.7.4. Thank you.

  • Mux a Video_TS folder in Applescript... Any suggestions?

    Hi folks Trying to do something rather complicated and wondered if anyone had any ideas. I'm working on making an Applescript that will create multiple encodes of a video through Compressor. Got this working but then come the following to-do's: 1. Cr

  • Live Chat

    When I went to cancel last month I had to wait 30 minutes to connect to an online chat advisor. (After several attempts)When I DONT log in and click live Chat I get connected in a few seconds (I did actually time it!)Or when I click to upgrade when I

  • Java 2 on OSX 10.3.9

    I'm having problems running Java Applications on my iMac G5 with OSX verions 10.3.9. The Java apps won't open because it saids that my computer doesn't have Java 2 installed. I tried searching through Apple and Sun's websites for the most recent vers