How can I move or delete files with PL-SQL???

I have Oracle 9i and Sun Solaris 5.8
I have a table (“TABLE_FILENAME”) with the files name in one directory. (I read the files name in a directory and put it in a table). I charge some files with external tables and then I have to move some fields to another directory and delete others files.
How can I delete files with PL-SQL and How can I move files with PL-SQL?
I have the names of files and the actions (Delete o Move) in a table (“TABLE_FILENAME”) (The files in this table are dynamics).

If you're using 9i then you will find that the new functions UTL_FILE.FCOPY and UTL_FILE.FREMOVE will allow you to do what you want. Check out the documentation for more details.
Cheers, APC

Similar Messages

  • Yours sincerely! I just bought a Sony DCR-SD1000 camera only when installing the cd drivers not supported by the operating system Machintosh. I've contacted the seller said the store did not provide for the apple os. How can I move all the files on the ca

    Yours sincerely! I just bought a Sony DCR-SD1000 camera only when installing the cd drivers not supported by the operating system Machintosh. I've contacted the seller said the store did not provide for the apple os. How can I move all the files on the camera the port out is to use a USB data cable to a laptop for my macbookpro can not read the contents of the file and the camera. I also want to use the lens on the camera as a substitute for the embedded camera on my macbookpro, what should I do to replace the embedded camera on macbookpro with sony camera so that the camera could be more variety and can I record when I turned macbookpro . Please help for this so that I can quickly capture the results from sony camera to my macbookpro. Thank you.

    See this page http://macosx.com/forums/networking-compatibility/296947-sony-camcorder-my-mac.h tml - might be some helpful tips there.
    Clinton

  • Can I move ninety video files with their keyword tags from 'My Catalogue' into another catalogue?

    Can I move ninety video files with their keyword tags from 'My Catalogue' into a another catalogue?

    Nyinyikay a écrit:
    Can I move ninety video files with their keyword tags from 'My Catalogue' into a another catalogue?
    Two problems :
    1 - You can't merge catalogs in PSE
    2 - The usual workaround is to 'write metadata to files', export the files and 'get' them into the other catalog. But you can't write metadata to files with video files.
    The only thing you could do would be to duplicate the catalog and delete all pictures other than your ninety videos...

  • How can I move an icon/file from one screen of my ipad to another?

    How can I move an icon/file from one screen on my ipad to another?

    Press and hold the icon until they start to wiggle. Then while holding it, drag it to the edge of the screen and wait for the page to switch, then let go of the app

  • How can I open a cpr- file with snow leopard ?

    How can I open a " cpr " file with my Mac OS X 10.6.8. ?

    Thank you for your fast reply ! The recommended software referes to video data. I received the cpr file from the ALDI fotobook software, if a want to secure a footobook layout. Therefor cpr must be a foto file.

  • How can I automatically create the files with serie-name?

    Hello, Everyone,
    I have a question again.
    How can I automatically create the file with a serie-filename?
    e.g. I have a program, it will repeat 5 times, and every time it will create a bmp-file, and I want to let this program automatically save these 5 files with a Serie-filename like File001.bmp, File002.bmp, .... File005.bmp.
    How can I do it?`
    Thanks a lot.
    Regarts,
    Johnny

    Hi Deepu,
    one more comment
    The format code should be "%04d" to get leading zeros and have filenames with same length...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How can i write a XML file with oracle data ?

    How can i write a XML file using PL/SQL.
    Can i do as follows.
    1.Open a file using UTL_FILE.FOPEN(LC_DIR_LOC,'abc.xml','W')     ;
    2.write all the required tag and value using UTL.put_line
    that is enough. Is not, please guide me to write.
    gk

    Having Oracle 9i.
    One more doubt. In the speck, some constand values are there, When i write the same into file, How can i write ?.
    1. l_str := ' "E27" '
    or
    2. l_str := ' E27 '
    UTL_FILE.PUT_LINE(L_FILE_POI,l_str,TRUE);          
    1 case : in XML file : "E27"
    In 2 case : E27
    When we write a XML file through editors , we have to define the constant within quote . is it?      
    Which one can i use ? Or any other way is there ..
    Thanks and Regards
    gopi

  • How can I move a pdf file from my pc to my ipad without overwriting all the pdf files in my ipad?

    How can I move a single pdf file from my pc to my ipad without overwriting all the pdf files already in my ipad?

    Email PDF to iPad.

  • How can I create a exe file with a tab control on it that work´s ?

    I have a VI with many controls and indicators,these are spread on a tab control.This tab control works with out any problems but if i create a exe file then the tab control is fixed. How can I create a exe file so that the tab control on it work´s ?

    I have made a new Posting with the same question but this time I added a screenshot of the VI.
    Attachments:
    project7.1.jpg ‏129 KB

  • How can (parse) i use XML file with missing EndTag

    hi,
    i have an application which writes an "XML file".
    another application should read that XML file, build an DOM and
    access the nodes with xpath.
    my problem. if the first application is not finished there are tags
    missing. e.g. </xml>. but the seconds application cannot wait until the first application finishes it task.
    if i now read the XML file the parser cannot load it because the end tags are missing.
    my question:
    how can i deactivate the check or how can i read the XML file and access it via XPath (my application is using at the moment XPath to access the nodes and i dont want to change that)
    as parser i am using XERCES
    alex

    As far as I know, you can't do this - xml must be well formed (this is sort of a bedrock of xml). There may be some work around's, but I'm not aware of any - and they would most likely be hacks.

  • How can i download these jar files to load SQL server derive

    Hi
    pls tell me how can i download these jar files and from what site i can do that to enable to load SQL server driver
    msbase.jar
    msutil.jar
    mssqlserver.jar

    if u use sqlserver 2000 u can download for free from microsoft.com
    and other sites are freetds.com i guess

  • How can I move the music files back into my itunes library?

    Hi. I hope you can help. We bought a new computer and I was using my iPod as an external drive to move the music from one to another. This did not work, it said it ran out of room even though there was room on it...Anyway when i returned to my iTunes page the music was no longer in the library. When i check the files on my computer it is still there, yet it is not in the library. How can I get it back there? Whenever I plug in my iPod now it tries to sync it with the library which would wipe away all of the music.
    Thanks

    +"When i check the files on my computer it is still there, yet it is not in the library."+
    Putting the files on your computer does not cause them to be added to the library. To add them, use the command File > Add Folder to Library, and point it to My Music or whatever folder(s) all the music is in.

  • How can I REPLACE original RAW files with JPG's and keep my 'Develop mode' edits?

    An image describing my problem:
    http://i.imgur.com/hcqMYkv.jpg
    (Lightroom 5)
    'edits' = Edits made in develop mode.
    'CR2' = My RAW image file format.
    I have existing CR2's with edits for them saved in Lightroom.
    I want to replace the CR2's with JPG's, and do nothing else. I want those JPG's to inherit the CR2's edits, but I DO NOT want the edits to be permanently applied to the image.
    If I export the CR2's (which have edits) to JPG's, the edits will be permanently applied to them. I do not want this.
    If I export the CR2's to JPG's without the edits, I have no way of getting the edits back and will have to redo the work if I use that photo again.
    Any solutions? I've been trying for a while and have no idea how to do this.
    Q: Why not keep the CR2's?
    A: I am uploading these files to an online host (S3) as my primary storage method and uploading CR2's takes way too long with my internet speeds. Furthermore, online storage costs money.
    Q: Why not shoot with JPGs instead of shooting raw?
    A: I do my initial edits with the raw files and then archive them as JPG's to save storage space. They won't be raw anymore if I apply future edits, but I still have the option of retouching them from the 'original' state and still have my old edits preserved.

    Probably the best thing for you to do is simply use lossy DNG format (e.g. export as, or convert to..): raw data is re-formatted with jpeg compression (full-rez or reduced-rez), but all raw settings apply.
    If you insist on trying to have a true jpeg file with (mostly) raw settings, then:
    The simplest way I can think of to do it without a script or plugin:
    * Reset the raw photo (consider preserving things that don't translate well, like profile-based lens corrections and white balance).
    * Export jpeg
    * Un-reset the image (e.g. using edit history or pre-reset snapshot).
    * Sync settings from raw to jpeg (note: omit settings that don't transfer well, or that were not reset..).
    * Optionally: Delete raw
    To automate/streamline would require a script or plugin.

  • Calendar app on Mavericks: Can't move or delete appointments with Gmail account

    I use Google Apps for Business with the Apple Calendar app on Mavericks. When I try to move an appointment or delete it the app reverse the action - almost like an Undo. So in the Calendar app I can't move appointments nor can I delete them. I can add them, no prob.
    Calendar app version is 7.0 (1835)
    Sincerely,
    Alex

    Eleanor,
    Just had another look into this, and when I migrated my old system across to the new iMac, the migration assistant apparently setup another account for me - I thought it would just bring across the files & applications I needed to see my new iMac's account the same as my old Powerbook, only running OSX 10.5!
    Not so, must have missed this bit in the instructions, I now have two user accounts on my new machine - my new account and the one from my old Powerbook. No real problems so far . . . . ! So once I'd found this, I went into the old account (new iMac) and tried to delete some of the files in Mail. Guess what - No problems at all! All works perfectly.
    This is really strange. I might have to start all over again, and do a re-install, using migration assistant from the old PB, and use the old account instead of a new one on my new iMac!
    Had a few other problems with permissions etc., maybe a re-install of the OS (10.5) would cure all of this!
    Any other input greatly appreciated before I take this rather drastic step!
    Cheers,
    Steve

  • SMB Users can't move or delete files, Mac users can

    Hi all,
    I'm using Leopard Server with a share point set up with the following details:
    LDAP directory is where the users and groups are stored.
    There is a group called 'techie' which has several users assigned to it.
    Share point called 'Software' is set up with ACL for 'techie' to have Full Control.
    AFP protocol settings are 'inherit permissions from parent'.
    SMB protocol settings are 'Enable oplocks' and 'inherit from parent'.
    I have propagated permissions down to all folders.
    The user can log in from a Mac with Leopard installed, as his own username which belongs to the 'techie' group and he can move files on this share, he can delete then, rename them, whatever he wants (connection is by AFP).
    When connecting using SMB from Windows XP or Vista, using the same username which is part of 'techie', he cannot do this. He gets permission errors etc.
    Anyone have any idea why, or what might cause this? Is it a setting or a bug?
    Regards,
    David.

    I'm having a semilar issue:
    I can login in from Windows XP SP2 but I can't delete files.
    I can write to the directory and read files but I cannot delete them.
    Thanks.

Maybe you are looking for