Cant delete file from a folder..

Hello All,
I am using Oracle Database 10g on Linux OS
I want to delete some file using PL-SQL for that I have written following program.
DECLARE
fileHandler UTL_FILE.FILE_TYPE;
BEGIN
UTL_FILE.FREMOVE ('MY_DIRECTORY','my_filet.txt');
EXCEPTION
when others then
dbms_output.put_line('error is = '||sqlerrm);
END;
but when I execute this I get a error message as
error is = ORA-29283: invalid file operation
but the Directory Name and File name are valid, though the error is there .Why?
Pls help
thanks in advance
Regards,
Abhijit.

It probably has to do with the permissions and file ownership of the target file on the server.
I tried the same code. I was able to delete a file where the owner was 'oracle' , and got the same error you have mentioned while trying to delete a file of another user with wrong permissions.
-Ashwin
Message was edited by:
ashwinkr

Similar Messages

  • Deleting files from trash folder 10.9.2

    I recently updated to 10.9.2. Nothing seemed to have changed but the trash folder is acting funny. Now I am not able to delete any file from the trash. I select empty trash securely and then the dialog box displaying the number of files to be deleted appears and disappears in 1-2 seconds and the file/s dont get deleted.
    Is there a way out of this?
    Cheers!

    Trash – Can’t Empty or Move File To Trash
    Trash – Empty When File is Locked or in Use
    Try holding down the option button while trying to delete the Trash. If that doesn’t work, here is some more information.
    Trash FAQ          
    Trash Permission Error
    Trash Permission Error (2)

  • Cant delete files from my ipod

    i cannot delete a file from my ipod and now i do not have enough room to move any songs onto my ipod

    If you have all your music on your computer as well, then just Restore:
    http://docs.info.apple.com/article.html?artnum=60983
    This will wipe everything from your iPod.

  • Cant delete email from email folder

    I got an email in my inbox with a tick by it that i cant delete its also saved in my saved messages folder and i cant delete it fromn there either its so annoying can anyone help PLEASEEEEEEEEEEEE

    lindafromgainesville wrote:
    ...is there a seperate trash for email?
    In Mail, yes -

  • Cannot delete file from shared folder

    While I was looking for another file in my shared folder, I discovered a jpg file named shannonhenry.jpg. All it appears to be is a school photo of a boy, maybe 14 or so. I tried to move it to trash to delete it because I do not know who this kid is, and I got an error message saying that I do not have sufficient priviledges. Anyone know what this file is or could be????

    Well Kelley, that photo did not come with the system so it had to come from you or someone else putting in the Shared folder.
    Choose the file and "get info" (command- i) turn the dislclosure triangle on "Ownership & Permissions" make sure you can "read & write" and make yourself the "owner"(open the lock and enter your admin password).
    Then check under General, turn the disclosure triangle and be sure the "locked" box in NOT checked.
    Let us know.
    -mj
    [email protected]

  • Cant Delete Photos from Picture folder

    I'm having a problem with deleting pictures on my BlackBerry Q10, it displays a message that says "The items) could not be deleted, i tried deleting from File Manager, they disappeared from file manager but they still show up under photos, when I try to open them they won't open.  I even tried multiple times restarting the Device by holding the power off button for long time till the red light blinks. I cn see those photos when i open the picture folder and when i click on those photos them it shows blank. This problem is with few photos only on particular days. The recent photos i am able to delete.  Any kind of help will b so mch appreciated Regards Rajeev

    It probably has to do with the permissions and file ownership of the target file on the server.
    I tried the same code. I was able to delete a file where the owner was 'oracle' , and got the same error you have mentioned while trying to delete a file of another user with wrong permissions.
    -Ashwin
    Message was edited by:
    ashwinkr

  • Hi,delete file from folder?

    hi,i am deleting file from folder as follwos
    <%@ page import="java.io.File" %>
    <%
    File myFile = new File("D:\\jakarta-tomcat-4.1.18\\webapps\\ROOT\\upload_files\\xyz.txt");
    myFile.delete();
    %>
    i am sucessfuly deleted file from above path.
    if i use follwing code i unable to delete my file, can one help,
    how to do it,
    <%@ page import="java.io.File" %>
    <%
    String fname="xyz.txt";
    File myFile = new File("D:\\jakarta-tomcat-4.1.18\\webapps\\ROOT\\upload_files\\'"+fname+"'");
    myFile.delete();
    %>
    thanks
    pullareddy

    i think if above doesn't work try this it should work
    change this line
    File myFile = new File("D:\\jakarta-tomcat-4.1.18\\webapps\\ROOT\\upload_files\\'"+fname+"'");
    to this
    File myFile = new File("D:\\jakarta-tomcat-4.1.18\\webapps\\ROOT\\upload_files\\"+fname);

  • Delete file from folder only (not from list)

    Hi all,
    I've searched a lot and didn't succeed so far, that's why I need your help. In a cloud context, I'm actually creating and uploading files (pdf and/or xml files) "on the go" to sharepoint folders via the SOAP API and this is perfectly working. But
    in a cloud context, I also need to decomission services which is translated into deleting files into Sharepoint.
    That's where it became complicated, because according to the API we cannot delete files if they are not part of a list structure, which is not my case. Is that true ?
    The only info I have when trying to delete a file via the SOAP Api is : its name, its folder, and the endpoint where the folder is. So my question remains simple I guess : is this possible ? If so, how to (a link to the SOAP body would be usefull)
    Thanks a lot
    Regards
    Baptiste

    Hi,
    According to your post, my understanding is that you want to delete file from folder.
    In SharePoint 2010, It is recommended to use Client Object Model to achieve it, the following code snippet for your reference:
    string siteURL = "http://siteurl";
    ClientContext context = new ClientContext(siteURL);
    //specific user
    NetworkCredential credentials = new NetworkCredential("username", "password", "domain");
    context.Credentials = credentials;
    Web web = context.Web;
    context.Load(web);
    context.ExecuteQuery();
    string relativeUrl =web.ServerRelativeUrl +"/DocumentLibraryName/FolderName/FileName";
    File file = web.GetFileByServerRelativeUrl(relativeUrl);
    context.Load(file);
    file.DeleteObject();
    context.ExecuteQuery();
    If you still want to use SOAP API, we can use the UpdateListItems method under Lists web service to achieve it.
    http://www.dhirendrayadav.com/2010/06/delete-list-items-using-web-service.html
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/61466984-1844-48a1-8c1e-1c59a0f9876a/move-and-delete-files-remotely-using-sharepoint-web-services-?forum=sharepointdevelopmentlegacy
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Delete File From Folder

    anybody know how we can delete the file from a folder??
    plz help!!!
    thanks in advance..

    File file = new File("d:\\file.txt"); //path to File
             if(file.exists()) {
             file.delete();
             }

  • I have installed itunes 11.0.2.26. When I delete a file or podcast I am not being prompted to delete the file from its folder at the same time.

    I have installed itunes 11.0.2.26. When I delete a file or podcast I am not being prompted to delete the file from its folder at the same time. How do I restore this facility? I am running a 64bit Windows 7 OS

    Is the media files in question in the iTunes library or elsewhere on the computer?

  • Is there a way to move files from one folder to another without copying and pasting and then going back to delete the original?

    Is there a way to move files from one folder to another without copying and pasting and then going back to delete the original?  The cut and paste function is not available and there's no "move to" function.  Am I missing something?  It was so easy with Windows.

    Drag the files, or press Option when pasting them; this accesses the Move To function.
    (124070)

  • How can I bring a file from a folder on my desktop to this program and make it editable. Like deleti

    How can I bring a file from a folder on my desk top int this program and make it editable., in order to replace words or remove words or texts..?  jn

    Hi,
    FormsCentral cannot be used to edit existing PDF documents. That functionality is available in Adobe Acrobat:
    http://www.adobe.com/products/acrobat.html
    Regards,
    Brian

  • Delete file from adobe reader?

    hi guys..i want delete file from adobe reader after download from email. unfortunately i cant see any delete icon in my file. Any ways to delete it?

    Check out the new and FREE 'AIR Browser' File Manager in appworld. You can use it to create/rename/delete folders and sub-folders, it can also copy, cut, paste and delete files.
    Jerome
    If a post was helpful, please click the kudos star button below it.
    If a post solved the problem you raised in your thread, click on 'Accept as Solution'.

  • Importing All the files from a folder at a time

    Hi....
    Can any body tell me how to import set of files from a folder into IDM.
    It is becoming very difficult to import the files one after other....
    Waiting for Reply....
    Thanks in advance..........

    We used an ant script to build an XML file that will contain the files. The script is configured to use the folder structure of our CVS repository.
    We'd checkout our XML module and then run the build script and import the resulting init file.
    Code to the script is below -- caveat emptor. You'll need to change the folder structure to suit your own environment.
    <?xml version="1.0" encoding="UTF-8"?>
    <project basedir="." default="all" name="MyInit">
        <target name="init">
            <property location="." name="src.dir"/>
            <property location="." name="dest.dir"/>       
            <property name="project.name" value="${ant.project.name}"/>
            <property location="${dest.dir}/MyInit.xml" name="MyInit.output"/>
            <property name="source.configuration" value="${dest.dir}/configuration"/>       
            <property name="source.emailTemplate" value="${dest.dir}/emailTemplate"/>
            <property name="source.forms" value="${dest.dir}/forms"/>
            <property name="source.reports" value="${dest.dir}/reports"/>               
            <property name="source.resource" value="${dest.dir}/resource"/>          
            <property name="source.rules" value="${dest.dir}/rules"/>
            <property name="source.workflow" value="${dest.dir}/workflow"/>
            <!-- get the source path -->
            <path id="configuration.path">
                <fileset dir="${source.configuration}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="cp" refid="configuration.path" />
             <path id="emailTemplate.path">
                <fileset dir="${source.emailTemplate}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="ep" refid="emailTemplate.path" />
             <path id="forms.path">
                <fileset dir="${source.forms}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="fp" refid="forms.path" />
            <path id="reports.path">
                <fileset dir="${source.reports}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="rptp" refid="reports.path" />                 
            <path id="resource.path">
                <fileset dir="${source.resource}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="rep" refid="resource.path" />        
            <path id="rules.path">
                <fileset dir="${source.rules}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="rp" refid="rules.path" />
            <path id="workflow.path">
                <fileset dir="${source.workflow}" >
                   <include name="*.xml" />
                </fileset>
             </path>
             <property name="wp" refid="workflow.path" />
            <!-- get the path prefix -->
             <path id="source.path">
                <pathelement location="${src.dir}" />
             </path>
             <property name="sp" refid="source.path" />       
        </target>
        <target depends="init"  name="win_init">
            <!-- change the path of xml files to windows path -->
            <property name="importfile.path" value="${sp}"/>                            
        </target>              
        <target depends="init" name="make">
        <!-- using XML character entity references to escape
        <  <
        >  >
        '  &apos;      -->    
            <echo file="${MyInit.output}" append="false"><?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE Waveset PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <Waveset>
    ${cp}
    ${ep}
    ${fp}
    ${rptp}
    ${rp}
    ${wp}
    </Waveset>
            </echo>
         <!-- replace path prefix with ImportCommand -->
         <replace file="${MyInit.output}"
                  token = "${sp}"
                  value = "<ImportCommand name='include' file='${importfile.path}" />
         <!-- deal with file and path separators in an os independent way -->
         <replace file="${MyInit.output}"
                  token = "${file.separator}"
                  value = "/" />        
        <replace file="${MyInit.output}"
                  token = "${path.separator}"
                  value = "${line.separator}" />
        <replace file="${MyInit.output}"
                  token = ".xml"
                  value = ".xml'/>" />
        </target>
        <target depends="init,win_init,clean,make" description="Build everything." name="all"/>
        <target depends="init" description="Clean all build products." name="clean">
            <delete file="${MyInit.output}"/>
        </target>
    </project>

  • How to permanently delete files from trash?

    I usually see TV series online. Every time I visit to the website, it automatically downloads a Mac_Installer file to my Downloads folder. I delete the file without opening it and secure empty the trash. When I visit the website again, the same file is downloaded to my Downloads folder, and the "previous deleted file" from the trash can reappears on it. How to solve this matter? My computer is a MacBook Pro and is running OS X Mavericks.
    Thanks.

    Try erasing free space using Disk Utility.
    Erase free disk space
    When you delete files in Mac OS X, your Mac deletes the information used to access the deleted files but doesn't physically remove them. Although the space used by the deleted files appears as free space, the deleted files remain on the disk until new files are written over them. As a result, these files can be recovered. Erasing free space does not delete any other files on your disk besides the ones that you already deleted.
    After the drive is connected, launch the Disk Utility application in any of the following ways:
    Type the first few letters of its name into Spotlight. Select it from the results.
    Go Finder > Applications > Utilities > Disk Utility
    Go Launchpad > Utilities > Disk Utility
    Once you are in the Disk Utility app, select the disk or partition you would like to erase from the left.
    Select the Erase tab.
    Choose the Erase Free Space button.
    Use the Slider to choose how many times you would like to write over the free space.
    Select Erase Free Space.
    Note: After this process starts, you can cancel it at any time without harming any of your data. You might see a message stating that you are running out of disk space. This is normal and to be expected. You can ignore this message.
    When the process is complete, you should have the same amount of free space. If you do not have the same amount of free space, try restarting the computer.
    I hope I helped.
    Austin

Maybe you are looking for

  • Scanning Multiple Pages to ONE PDF O/J 8620

    I am scanning an airplane logbook so I can NOT use the ADF. I need to scan to a PDF and have multiple pages. I only want 1 PDF - not 10 different PDF's with 10 different pages... Trying everything and nothing seems to work.   My old O/Jet did this wi

  • IPhoto and Photoshop Elements 4.0

    Did a quick browse and didn't find my answer... I just purchased the PS Elements 4, and am starting to play around with it. I've noticed that when i edit a photo imported from iPhoto, i can't import it back to the iPhoto library. Now, i've been using

  • How to reset the value in valueChangeListener

    I would like to reset the value in a component to its earlier value in the valueChangeListener. Here is an example method in the bean: public void valueChangeListener(ValueChangeEvent valueChangeEvent) { Date oldDate = (Date)valueChangeEvent.getOldVa

  • Showing Zero Unit Price/Row Total

    Hi, We currently allow posting rows for item sales with zero unit price. I am having trouble showing the unit price and row total as "$0.00" instead of a blank field with PLD. Both of these fields are system variables (80 and 84), neither field is li

  • Domino Notes / Ldap connection Wls6.1

    hi all, is there a way to connect Wls 6.1 sp1 with Domino Notes 5 Ldap Server ? Can we do an authentification login for groups and user? If you did it can you reply me with a sample of connection parameters. thanks Hugues Simonnet Consultant Principa