Delete file Application Server

Hi ...
I have an application wrote with Forms Dev. ... Is it possible delete a file on the application server ??
Is it also possible delete a file in the Application server by a stored procedure ??
Thank's in advance

It is also possible to implement a java procedure on the database being invoked with a PL/SQL wrapper class.
In this way (and if used right) there is also granularity regarding the filestructure permissions given and it may be called during a Forms or other PL/SQL session.
As it is a requirement in this post to delete file from the AS, the database instance holding the JAVA class needs to be installed on the Application Server itself (which is not recommended anyway). But the article below explains a more generic approach how to invoke shell commands from within an Oracle Instance.
Be careful with this, because it really works ;)
Refer to :
http://www.oracle-base.com/articles/8i/ShellCommandsFromPLSQL.php
Message was edited by:
user434854

Similar Messages

  • Delete from application server

    Hi all,
    How to delete file from application server. There is any function module for that.
    I do not wanted to do it through program. Just manually we have to do it.
    regards,
    John

    Hi,
    Try DELETE DATASET <dataset name> .
    or use FM EPS_DELETE_FILE
    ie;
    You can use DELETE DATASET with target path.
    Use statement
      delete dataset '\tmp\file.txt'.
    \tmp\file.txt is the file path on application server which you want to delete.
    Reward points if found helpful…..
    Cheers,
    Chandra Sekhar.

  • Why a program doesn't have permission to delete file on server when I can

    Hi
    I am running an image cataloguer to manage an image collection on a server. I mount the server share point on my desktop. The cataloguer has a function to delete file(s), but I receive the message that it doesn't have the permission, but I can delete the file from the Finder.
    I checked that the program is running with my UID.
    Any ideas?
    thanks in advance

    If you get an error message that you do not have sufficient permissions to update then easiest is to trash the currently installed version to do a clean install of the new version.
    * Download a new copy of the Firefox program and save the DMG file to the desktop
    * Firefox 4.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Trash the current Firefox application to do a clean (re-)install
    * Install the new version that you have downloaded
    Your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder], so you won't lose your bookmarks and other personal data.

  • ASP Delete File from server

    I have made a file sharing app, and the description and file
    name are stored in my access db, when i delete the recordset for
    the file i also want to delete the actual file. i am able to delete
    the file with the full path entered and the file name as a
    variable,
    with this code:
    <%
    Dim filepath
    filepath = Session("file_del")
    set filedel = CreateObject("Scripting.FileSystemObject")
    filedel.DeleteFile("C:\localhost\CallCenter\EMPLOYEE_FILES\"&
    filepath), True
    set filedel = nothing
    %>
    I put the name of the file in the file_del session variable
    on the page that deletes the recordset.
    But i would like to make it work on my hosted site without
    having to change the path to my sites, so i have made this code:
    <%
    Dim filepath
    filepath = Session("file_del")
    strPhysicalPath = Server.MapPath(filepath)
    set filedel = CreateObject("Scripting.FileSystemObject")
    filedel.DeleteFile strPhysicalPath , True 'Line that causes
    ERROR
    set filedel = nothing
    %>
    But the error comes File Not found.
    if i just display the strPhysicalPath variable on the page
    without the delete action it displays the proper path.
    how can i get the strPhysicalPath to be read, i have tried
    all of the ways i can think of
    filedel.DeleteFile strPhysicalPath , True
    filedel.DeleteFile & strPhysicalPath & , True
    filedel.DeleteFile (strPhysicalPath) , True
    filedel.DeleteFile ("" & strPhysicalPath & "") , True
    filedel.DeleteFile ( & strPhysicalPath) , True
    But none of them work ?
    Any help would be great

    After some rest and a closer examination, i realized the
    error was in the mappath line, it wasnt including the folder that
    held the files. strPhysicalPath = Server.MapPath(filepath) was
    wrong so, I added the folder name: strPhysicalPath =
    Server.MapPath("EMPLOYEE_FILES/" & filepath) then the file is
    deleted. so complete code is:
    <%
    Dim filepath, strPhysicalPath
    filepath = Session("file_del")
    strPhysicalPath = Server.MapPath("EMPLOYEE_FILES/" &
    filepath)
    set filedel = CreateObject("Scripting.FileSystemObject")
    filedel.DeleteFile (strPhysicalPath), True
    set filedel = nothing
    %>

  • Unable to view PDF files -application server class CL_GUI_PDFVIEWER- open_d

    Hi
    I have PDF files in application server and trying to display the PDF files by using class CL_GUI_PDFVIEWER->open_document but i am unable to view the pdf files.
    Please let us know any other alternative way to view the PDF files via application server.
    Regards
    G

    Hi,
    steps tu visualize PDF files from app server via html_viewer:
    1. Upload PDF file to table type x255. (using for ecampo FM SCMS_UPLOAD)
    2. Create container (TYPE REF TO cl_gui_custom_container),
        create html_viewer (TYPE REF TO cl_gui_html_viewer).
    3. Load data from ypur xsting table to url:
      CALL METHOD html_viewer->load_data
        EXPORTING
          TYPE                = 'application'
          SUBTYPE           = 'pdf'
         IMPORTING
           assigned_url     = url
        CHANGING
          data_table          =  data_pdf.  "line type x255
    4. Show data from url:
      CALL METHOD html_viewer->show_data
        EXPORTING
          url                    = url.
    Regards,
    MaryM

  • How to delete file from server with space in name

    I am a novice, learned a little several years ago, but have to start all over again.
    I have set up the remote server (upload.comcast.net) without problems. I am unable to delete a file (file error:). I was able to upload the file, but cannot delete it. I figured out that that filename has a leading space. Now it's up on the server, but I cannot access it.
    Experiment:
    On the local folder, I deleted the leading space, and was able to upload, and delete it successfully. The original file remains unaccessible on the remote server.
    Thanks,
    Sonny

    Thanks for getting back so fast.
    Here is the error:
    /_4230151.ORF - error occurred - An FTP error occurred - cannot delete remote file _4230151.ORF.  Access denied.  The file may not exist, or there could be a permission problem.   Make sure you have proper authorization on the server and the server is properly configured
    As I mentioned before, I don't think that there is an authorization problem, as the changed name works fine, as does index.html
    What I do find interesting is that I was able to upload the file with the leading space. If I remember from several years ago, such a file would not even upload.
    I shutter to think of contacting Comcast. I think that they just give us the space with internet cable, but we are on our own with the website. Do you think that there might be some way to erase everything? I have only index.html up there, and don't mind starting over again.
    Sonny

  • Delete files from server

    Rather that putting or getting files from the server, how do
    I delete them off of the server? I've been clicking on a file, then
    right clicking and selecting delete, but does this actually remove
    the file off of the server?
    I've perused the internet and the help menu and can't find
    the answer-is that because it's as obvious as what I am doing
    already?
    Thanks in advance for any help offered!
    p

    >>right clicking and selecting delete, but does this
    actually remove the
    >>file off of the server?
    It does if you're using Remote View in the Files panel.
    Walt
    "sdluthier" <[email protected]> wrote in
    message
    news:ggk4a3$atf$[email protected]..
    > Rather that putting or getting files from the server,
    how do I delete them
    > off
    > of the server? I've been clicking on a file, then right
    clicking and
    > selecting
    > delete, but does this actually remove the file off of
    the server?
    >
    > I've perused the internet and the help menu and can't
    find the answer-is
    > that
    > because it's as obvious as what I am doing already?
    >
    > Thanks in advance for any help offered!
    > p
    >

  • How do you delete files, applications, downloads, music, movies, not used?

    When i turned on my new Macbook in the morning today, i was at 56gb's, out of 80gb. Now it states its a 53gb's. i obtained some music files but wish now to delete them off my computer. how do i do this? how can i get precious gb's back?
    isnt there something on the macbook to delete unwanted things? like control panel on windows? also need to delete photos and music and one movie. how do i do this? simply drag to trash can or is there more?
    there has to be something already on my macbook that can delete and manage my unwanted files so i can attain more gb's back.

    In spotlight when I search Superman, it find it. I click it
    and automatically Quicktime opens.
    Clicking on the file will open the file. To the right of any items found with a Spotlight search is a light blue circle with an i in the center short for info. Click on this which provides the location of the file.
    When downloading files from the internet with Safari, etc. you can designate a default location to save the downloaded files. I choose the Desktop and if the download is something I want to keep, I transfer it to the location of my choice.
    2nd: Music. It did not originate from iTunes but is on iTunes now.
    I deleted the original music folder with about 10 songs by taking it
    to the trash can and emptying it...but its still playing in iTunes.
    Would deleting it on iTunes completly delete it and providing me
    with more gb's?
    Yes as previously provided - if you have "Copy files to iTunes Music folder when adding to library" selected at Advanced under the General tab for iTunes preferences (which I believe is the default setting), then there are two copies of the music you obtained if the music was downloaded or placed on the hard drive.
    The links that you provided... will they take care of these issues?
    Can they EASILY help me delete unwanted items so i can obtain
    back my gb's ?
    The links I provided will not help you with the downloaded music and movie issue. I would create a music named folder to place downloaded music and a movie named folder to place downloaded movies, etc. This way, you know where any downloaded data is stored/located.
    After importing any downloaded music into iTunes keeping "Copy files to iTunes Music folder when adding to library" selected, you can then delete the original downloaded files and the same when importing any downloaded pictures to iPhoto.
    The first link I provided includes information on deleting applications and then 2nd link provides suggestions on freeing up hard drive space.

  • Can't unlock or delete files on server

    At work, we've got a few folders on our Xserver that we can't delete. Trying to drag the folders to the trash gives us "The operation can’t be completed because the item “Icon” is locked" message. Each folder has a file inside of it called "Icon", and it's locked and says it's a Unix executable file. When we get info on this file, the box for "Locked" is checked, but we can't uncheck it. The sharing and permissions show as both read and write. Is there a way we can get these files unlocked, so we can delete the files and their folder?
    Thanks in advance for your help and/or suggestions.

    Have you tried using the 'rm' command?
    If that doesn't work, you may have to use chflag.
    http://macos-x-server.com/wiki/index.php?title=Chflags_Intro
    hth
    Jeff

  • How delete file on server

    Hi experts,
    I'd like to delete a file on sap server.
    I  already looked in all forums, but no proposal solution seems to work! 
    I tried some test with FM (SE37)--> SCMS_FILE_DELETE, DX_FILE_DELETE, EPS_DELETE_FILE, ITS_FILE_DELETE....
    put filename and server path, but some FM end with exception and other seems to work but my file is always there (I checked in AL11).
    Consider that I can only use a FM or a program already exist (that is I cannot create reports).
    Why do these FM not work?
    Thanks for your reply.
    C.

    Why don't you use
    Delete Dataset "COMPLETE FILEPATH".
    E.g. Delete Dataset '\usr\sap\dir\interface\va01.txt'.
    Edited by: Kapil Sharma @ Steria on Sep 28, 2009 3:38 PM

  • Delete data from application server

    Hi All.
    I have created file in application by using OPEN DATA SET, I need to delete from application server after some validation ,  how to delete?
    Please guide me.
    Thanks in Advance.

    Hi,
    DATA FNAME(60) VALUE 'file'.
    OPEN DATASET FNAME FOR OUTPUT.
    OPEN DATASET FNAME FOR INPUT.
    IF SY-SUBRC = 0.
      WRITE / 'File found'.
    ELSE.
      WRITE / 'File not found'.
    ENDIF.
    DELETE DATASET FNAME.
    OPEN DATASET FNAME FOR INPUT.
    IF SY-SUBRC = 0.
      WRITE / 'File found'.
    ELSE.
      WRITE / 'File not found'.
    ENDIF.
    The output appears as follows:
    File found
    File not found
    Use cane Also Use Function Modue: EPS_DELETE_FILE
    Regards,
    Gurpreet

  • PDF file to server (AL11)

    Hi gurus,
    Does anybody knows how can I manage (create and delete) files in server (AL11) in PDF format??
    I've already made a pdf file with my report output (ALV) in order to send it by email. That works fine; but I'll need save this information in a server file too; and overwrite it (delete an create) in each execution.
    Thanks in advance!

    Hi,
    Use the statement below to create file.
    OPEN DATASET l_out_file FOR OUTPUT IN TEXT MODE
    ENCODING DEFAULT.
    *Then Transfer the data to l-out_file. by Looping the internal table...
    Here Declare wa(wa_control_file contains n no of fields with required length) according to required length per line...
    TRANSFER wa_control-file TO l_out_file.
    And this definitely transfers the Total data from itab to Application server....
    Better use CG3Y and Transfer all the data to the local file and check how much data is available...

  • Process Chain - Delete File from Application Server

    Hi Gurus,
    Im working with Process chain, and i have a load from a flat file, so my question is :
    How can i delete that file from the application server after was loaded ?
    THANKS IN ADVANCED !!! I REALLY APRECCIATE YOUR HELP.
    Marcos

    hi,
    I have gone through the forum you have posted for deleting files from application server through process chain.
    I have similar reuirement in my project.
    Can you please provide me the solution?
    Your inputs will be highly appreciated.
    Thanks in advance.
    Regards,
    Lavanya.

  • How to delete file from application server(Unix)

    Hi All,
    Using the below code downloading a file from application server(Unix) to client machine. I want to delete the file from application server once it is downloaded to client
    We work on Forms 11.1.1.4.0 and Oracle DB 10g. Client machine are Windows 7.
    BEGIN
      IF webutil_file_transfer.AS_to_Client
      (clientFile => Name_In('global.g_file_name')
      ,serverFile => ls_AppServer_Loc)THEN
      message('Data exported Successfully');
      ELSE
       message('File download from Application Server failed');
      END IF;
    EXCEPTION
      WHEN OTHERS THEN
      message('File download failed: '||SUBSTR(sqlerrm,1,200));
      END;
    I have search for solution on OTN. Few suggested to use HOST.
    Can any one help me how to use Host() built_in to delete the file.
    Thanks,
    Maddy

    Can any one help me how to use Host() built_in to delete the file.
    Host('/bin/rm <complete file path>');

  • Delete file from application server

    Hi,
       Can any one tell me how to delete a file from application server?
    Thanks,
    Rahul.

    Basic question, please search for available information.
    Thread locked.
    Thomas

Maybe you are looking for

  • Screen redraw issues

    Hi everyone My new Macbook appears to have screen redraw issues (as I've mentioned in other posts). It often does not redraw the screen quickly or smoothly. It may redraw the screen in bands from the top, or the Dock may come up in jerks. Also, the c

  • Attaching documents in BI-Integrated Planning 7.0 layout

    Hello, We have implemented BI-IP. One of the requirements is that we provide capability to attach documents to the planning layout for 0FUNDS_CTR and 0CMMT_ITEM characteristics of our model. However, there is a problem. Commitment items constitute Fu

  • FM/Bapi for MIR4

    Hi experts, i need to do the button SaveAsCompleted on parked invoice; is there a FM/Bapi to do it? I try to use the FM MRM_INVOICE_PREPARE_AND_POST, but the state of invoice isn't changed. Could you help me, please? Thanks and regards Antonella

  • System down --dev_disp

    Hi , I am running ECC6 on AIX with DB2. My instance is getting shutdown authomatically. Please find the dev_disp log . the database is still running Signal 33 encountered. => 64 bit R/3 Kernel => 64 bit AIX Kernel => Heap limit = unlimited => Stack l

  • Calendar Syncing most recent change

    Syncing calendars on iPhone 3GS with Outlook 2007 via iTunes. Is there a setting that will direct the sync to select the most recent calendar entry and/or change? For example, a planned event exists on both calendars. If I change the event date in Ou