Delete from apex_application_files

IF ( :P1_FILE_NAME is not null ) THEN
INSERT INTO file_subjects(id,NAME, SUBJECT, BLOB_CONTENT, MIME_TYPE)
SELECT ID,:P1_FILE_NAME,:P1_SUBJECT,blob_content,mime_type
FROM APEX_APPLICATION_FILES
WHERE name = :P1_FILE_NAME;
DELETE from APEX_APPLICATION_FILES WHERE name = :P1_FILE_NAME;
END IF;
Is it problem to use this(as above) without : DELETE from APEX_APPLICATION_FILES WHERE name = :P1_FILE_NAME; ?

No, there is no problem.
It is just better to "clean up" the shared file store, since you already copied the file to your local table. But you could live without that.
BTW: APEX_APPLICATION_FILES is not known in XE, use htmldb_application_files here.
Regards,
~Dietmar.

Similar Messages

  • Delete from wwv_flow_file_objects$ where file name like 'p1_name'

    I am having an issue deleting an object in my apex application. I have uploaded an object into the application i can open the application but i cannot delete from that application. I can delete it when i login to the server and provide this command:
    delete from wwv_flow_file_objects$ where filename like 'Whatever.pdf';
    I am looking for the code to assign to a button and how do i get it to process.
    process
    the code i currently have is this: DELETE from APEX_APPLICATION_FILES WHERE name = :P4_NAME and it is not working. What am i missing.
    process point = on submit
    run process = once per session
    when button is pressed pdf_remove
    name: pdf_delete
    button:
    action when clicked
    action - submit page
    execute validation - no
    database action - no database action "it does not show my process"

    Christian
    Thank you very much,
    I switched to Apex Listener over Weblogic Server that was already working, just added a new managed server and deployed apex.war and i.war on it.
    the server resources are very good now.

  • Download doc problem when copied from APEX_APPLICATION_FILES to local table

    Good morning!
    As the subject indicatesm, I am experiencing problems downloading a document I have copied from APEX_APPLICATION_FILES to my local table FILE_SUBJECTS
    and would be very grateful if someone could help.
    Here is the problem:
    I can successfully upload a document into APEX_APPLICATION_FILES and dowload it from there too.
    I can copy the record from APEX_APPLICATION_FILES into my local table FILE_SUBJECTS and delete that entry from APEX_APPLICATION_FILES but I cannot download it from my local table, it keeps pointing me to a page which cannot be found, so I'm guessing there is something wrong with either, my INSERT INTO statement or, my link in the report.
    My INSERT INTO statement is:
    INSERT INTO file_subjects (id,filename,updated_by,updated_on,blob_content,mime_type)
    SELECT id, filename, name, updated_by, updated_on,blob_content,mime_type
    FROM APEX_APPLICATION_FILES
    WHERE APEX_APPLICATION_FILES.filename = :P2_FILE_NAME;
    REPORT LINK
    I have tried just a normal column link in my report like: #ID# (this works when looking at APEX_APPLICATION_FILES)
    but I have also tried the following:
    #OWNER#.DOWNLOAD_MY_FILE?p_file=#ID#
    where download_my_file is a procedure:
    create or replace PROCEDURE "DOWNLOAD_MY_FILE" (p_file in number) AS
    v_mime VARCHAR2(48);
    v_length NUMBER;
    v_file_name VARCHAR2(2000);
    Lob_loc BLOB;
    BEGIN
    --apex_application.g_flow_id := 166;
    --if not(APEX_CUSTOM_AUTH.IS_SESSION_VALID) then
    -- owa_util.status_line(404, 'Page Not Found', true);
    -- return;
    --end if;
    SELECT MIME_TYPE, BLOB_CONTENT, name,DBMS_LOB.GETLENGTH(blob_content)
    INTO v_mime,lob_loc,v_file_name,v_length
    FROM FILE_SUBJECTS
    WHERE id = p_file;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
    -- set the size so the browser knows how much to download
    htp.p('Content-length: ' || v_length);
    -- the filename will be used by the browser if the users does a save as
    htp.p('Content-Disposition: attachment; filename="'||replace(replace(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( Lob_loc );
    end DOWNLOAD_MY_FILE;
    Many thanks in advance!
    Sue

    Sue,
    If you are running XE or running with the EPG versus the http server, you need to grant access to the procedure you are using for it to be run properly..
    You may need to look at this function, if you are using XE or have the EPG setup for your database.. http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e12856/adm_wrkspc.htm#BABEFDHI [Look for the section called *Restricting Access to Oracle Application Express by Database Access Descriptor (DAD)*]
    Thank you,
    Tony Miller
    Webster, TX

  • Error while deleting from BIA index

    HI EXPERTS GETTING BELOW ERROR PLZ GIVE CLARITY ON THIS:
         1.A communication error occured, with the TREX TcpIp     
         2.Error while deleting from BIA index; reconstruction required     
    THANKS &REGARDS,
    rAMESH,

    Dear Ramesh,
    Please check the connection with BIA. Please ask the Basis team to check the BW to BIA connection if they maintain it.
    YOu can go to rsddbiamon2 and check BIA connection availibility for more details.
    If that is right please try redoing the step at which you faced error and it should help.
    Please close the question if you have got the answer or solved it.
    Regards,
    Den

  • Voice memos do not delete from iPhone...

    How do I delete the voice memos that are stored on my iPhone 4, and are no longer on my MacBook Pro?
    My voice memos folder on my MacBook Pro was over 4 Gb, so I copied its contents to an external hard drive. I left the folder and deleted the voice memos from it. I then synchronized with my iPhone 4, with the hopes that those voice memos would delete from the phone. Unfortunately, they did not.  iTunes 11 only shows 4 voice memos, and the iPhone has all of them.
    If I control + click on any of the voice memos on my iPhone while looking at them in iTunes, those memos will still play. iTunes 11 does not show an option to delete these voice memos via option + click.
    I am running Mac OS 10.9.1, and IOS 7. Thank you for your advice.

    Nope, won't do it.  If I gently swipe right to left, it jumps to other songs randomly.  It has stopped playing the song as it did before I rebooted the phone.
    I'm familiar with the swipe process, as I can do it successfully with texts, reminders, and so forth.
    Now as I look through my artists, I see perhaps 10% of them are dupes, and none will delete.  And in all cases one of the songs will have an I-Cloud icon, while the other does not.
    Please explain to me why any of my 300 songs in I-Phone (out of 1900 in I-Tunes) should be coming down from the Cloud?  All of them were uploaded from I-Tunes; none were purchased from the I-Phone.
    Thanks, Jim!
    Peter

  • IMAP option to not delete from server OR recommend alternate mail app?

    Using POP in Windows computer and IMAP on iphone.
    In the iphone, POP has the opton to "delete from server: never"
    There seems no way to accomplish this in the stock mail app when using IMAP ?
    Using POP on the iphone is not an option due to the longstanding issue of the Apple mail apps not sending a  proper termination signal back. The mailbox remains locked until the server times it out for inactivity and cleans up the stale lock after 10 minutes. The result is "wrong password" on the computer if it then tries to retrieve during that period. It's a feature of POP by design to use a lock to prevent corruption caused by simultaneous access to the mailbox. BUT, BB,Android,Windows all handle this correctly so that their POP transaction (and the mailbox lock) only lasts seconds! Only ever see this persistent lock with Apple mail clients
    The user likes to keep his phone inbox clean, he will delete messages as he deals with them as well as messages he is postponing to deal with on computer later.
    Moving messages to a 'later' folder won't help, as that 'later' folder will not be available thru POP (for the computer)
    They also don't want to use IMAP on the computer because they don't want their communications stored on the server any longer than necessary.
    Can anyone recommend:
    - Windows IMAP client which downloads all and keeps a local copy of inbox which does not synch with server inbox.
    - Alternate mail app for iphone which allows "delete from device only // never delete from server "

    That's not how IMAP works. If you want to keep the inbox clean, but not delete the messages, create folders and move the messages into them for later review.

  • ITunes store says app is 'downloaded'. It's been accidentally deleted from my mac, so iTunes can't find it. How do I redownload it?

    Due to changing backup disks, some apps were deleted from my mac. iTunes says it can't find them, but when I look for them on the App Store, the button says 'downloaded', and there's nowhere to click to re-download them. Where do I go from here?

    Hey NeilJones,
    Thanks for the question. You’ll want to delete the app from your computer (even though technically it cannot be found). Once deleted from iTunes, you can return to your purchase history and re-download it:
    How to delete content you've downloaded from the iTunes Store, App Store, iBooks Store, or Mac App Store
    http://support.apple.com/kb/HT5772
    Mac or PC
    Open iTunes.
    From the Library pop-up menu, choose Apps.
    Click the app you want to delete.
    Press Delete on your keyboard.
    Download past purchases
    http://support.apple.com/kb/ht2519
    Thanks,
    Matt M.

  • Trash will not delete from trash folder! What can cause this effect?

    Trash will not delete from trash folder! What can cause this effect?

    u can actually force it to delete, oviously i assume you dont have the application or data etc open neware else?
    try restarting your computer, go into finder close all your open applications etc, servers, **** even clear your data in your web browser, do a disk utility check and verify your drives and repair em if nessicary.
    as chamar suggested look at http://www.thexlab.com/faqs/trash.html
    i had the same problem before but with a good 5-10 minutes of googling i was able to solve it..
    best of luck

  • After updating my iphone 5 of ios 7, I delete or trash my emails rorm my inbox and they pop back up in my inbox.  How do I fix this?  They are deleted from the main server but show up in my email on my phone and will not stay deleted.

    I recently updated my iphone 5 to IOS 7 and since doing this, i cannot get my email messages to stay deleted when I trash them.  They have been deleted from the main mail server but show up on my phone.  When I trash them, they disappear for a few seconds and then re-appear in the inbox. I tried deleted my mail account from my phone and re-adding it, but this worked for about 12 hours and now its doing it again. I also have shut my phone off and rebooted it but this did not work.  How do I fix this?

    Have you tried restarting or resetting your iPhone?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after It shuts down, press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds).
    Also consider deleting and reinstalling the Mail Account in question.

  • My iPad is double downloading iTunes TV series shows and when I delete, the extra show does not delete from the available memory.  I have lost almost 30GB of my 64 to this phantom shows.

    I am losing available memory on my iPad (64 GB 3rd gen) and it appears to lose memory because some TV shows that I have downloaded from iTunes are appearing twice in my downloads.  Both download, but when Only appear as 1 show on my "videos".  After viewing the show, I delete, but the duplicate show appears to be still there somewhere (not visible anywhere) taking up the same amount of memory that showed before downloading.  It reduces my available memory to download other shows.  The general settings do not show any of these phantom shows taking any memory, but the total available is much, much less than what is showing for all usage such as music, videos, photos, apps, etc
    Is it possible to delete a show from the download portion of iTunes if you have already seen a show and do not want to waste time or memory downloading again?  The only way that I know is to let it download completely and the delete from "Videos".

    John0618. Did you ever get a response or solution to problem?  I have the same problem (starting about three months ago). 

  • There are songs on my icloud that I deleted from my itunes, but still show up on icloud. I want to delete them from icloud, but can't since they don't appear in my itunes!

    I have a large library on icloud- 26203 songs is the count when I'm playing over my apple TV, but my itunes only shows 25989 songs. There are songs on icloud that no longer are in my itunes library, or show up in itunes as being on icloud. I want to delete these songs but can't figure out how. I have reset my itunes match on both my computer and my apple tv to no avail.

    No. It's on and I update it daily.
    When I talk about removing songs from my shuffle play, I'm referring to listening over apple TV. My cloud limit is nearly maxed out, so I am constantly removing/adding songs. That's why I was surprised when I went to delete a song I no longer wanted in the mix and was surprised to find it already deleted from my itunes, but still present in the cloud. I've signed in and out of itunes/and match on apple tv as well, but that didn't remove the tunes in question!

  • Why are emails I deleted from another computer still showing up in my iPad inboxes.

    This is just plain annoying. Every time I pick up my iPad, I have to delete dozens of emails I already deleted from my mailboxes (I have multiple accounts ... yahoo gmail hotmail etc.) I looked for a setting that would fix this, but nothing I'm finding seems to resolve this particular issue. How can I sync my iPad email accounts so they are current, and don't require me to delete messages I already deleted from my phone or work laptop or home desktop?

    What you're describing occurs when your email provider uses POP rather than IMAP as your email protocol. Are you familiar with the difference? Most webmail providers use IMAP, which is set up for syncing across multiple devices, just the way you want. It sounds as if one or more of your providers is still using POP, the older standard.
    I personally like POP, since it lets me choose whether to deal with emails on my iPad or defer them until I'm next on my Mac, but it's a personal preference. Switch to IMAP-only email, and you should be all set.

  • Photos deleted from iPhoto, but still in Library folder

    iPhoto 9.5.1
    Strange behavior in iPhoto : let's say I imported 100 photos. Then, in iPhoto, deleted 80, keeping 20. Emptied trash in iPhoto. Then emptied Trash in Finder.
    Let's say the "_DSC1234.JPG" photo was among deleted files. When searching "_DSC1234.JPG" in Spotlight, I find it in the "Master" folder of the "iPhoto Library" folder (Photothèque in French).
    I've got a lot of photos deleted, but kept in Library, Not good for privacy, not good for hard drive space.
    For exemple, I find 514 ".NEF" photos in the iPhoto searchbox. But when searching in the iPhoto LIbrary folder with Spotlight for files with ".NEF" in their names, I find 1048 ! No duplicates, no previews or "faces" (hey are in JPEG), but photos I deleted, before emptying iPhoto and Finder trash !!
    Rebuilding Library didn't help.
    I'm using a user account not allowed to administrate the computer. Maybe a link ?
    The question was already asked, but never answered :
    Growing iPhoto Library, deleted photos still in folders
    Deleted Photos:  Why are they still in my iphoto library folder?
    Photos deleted from within iPhoto are still in Library folder
    Thanks for your help !

    Strange behavior again, with the original library : If I select NO event and use the menu Information, I've got 14.634 photos. If I select all events, I've got 15.760 photos. How can I have more photos in all events than in my Library ??????
    Check, if you have hidden photos.
    File > New Smart Album,  with a rule: Photo is hidden
    In my iPhoto Library the "Hidden" flag accounts for the difference in the Photos count between selecting all events and no events.
    Make sure, "View > Hidden Photos" is enabled in the View menu, so you can recognize hidden photos by the X.

  • Memory/Speed of Split 1D array vs Delete from array

    Just wondering how Split 1D array works - does it create two new arrays in a new section of memory or does it just split the existing array in two, reusing the memory in place. (assuming that the original array is not needed elsewhere). If the latter is the case then presumably it is more efficient to use split array than delete from array if I want to remove element(s) from the beginning or end of the array. Is there a speed advantage as well?
    If I use split array but don't then use one of the output arrays is that memory deallocated or does the array remain in memory?
    Thanks
    Dave

    Ok please ignore the results I posted earlier, they are rubbish - not least because I got the column headings mixed up but also because my code was full of bugs
    So, here is a revised table, and the code - which hopefully only contains a few bugs... I'm not clued into benchmarking yet so please feel free to rip the code apart.
    I still get different results depending on where in the array I split it, most noticeably with subset and reshape. There is no effect with split. I'm guessing this is to do with the memory allocation. (I have not preallocated memory in my code, but I did wire the output arrays to Index Array)
    Message Edited by DavidU on 08-12-2008 04:49 PM
    Attachments:
    Benchmarks 2.png ‏13 KB
    split array test.vi ‏25 KB

  • All Values Deleted from Target System when transporting new values added

    Hi,
    Wasn't really sure where to put this question.
    I created a maintenance view between two Z tables. A main key table and a text table.
    I added the new values to the maintenance view and transported successfully.
    I then had a request to create 3 more values.
    I added these three and transported these to the target QA system.
    However when the transport completed, all entries bar one had been deleted from the Z table but the Z text table had all existing entries plus the three new ones.
    I've tried manually creating a transport and adding all 10 entries but this has the same problems.
    If I SCC1 the entry from one dev client to another it works fine.
    Has anyone come across this problem befor and know how to resolve it?
    Many Thanks
    David

    Yes, I managed to sort it.
    This is what I did:
    I created a new blank transport.
    For the task created under the transport I then opened the task object list.
    I then added two entries in this list. i.e. one for each table that was in the view.
    My entries where:
    Entry 1:
    Program ID: R3TR
    Object Type: TABU
    Object Name: ZNR_REASON
    Then click on the key icon and add:
    Table Name: ZNR_REASON
    Table Keys: 200* (NOTE 200 is our development client). The '*' is needed to that ALL entries are included in the transport.
    Entry 2:
    Program ID: R3TR
    Object Type: TABU
    Object Name: ZNR_REASONT
    Then click on the key icon and add:
    Table Name: ZNR_REASONT
    Table Keys: 200* (As above 200 is our development client). Again the '*' is needed to that ALL entries are included in the transport.
    I hope this helps.
    Regards
    David

Maybe you are looking for

  • Z-Reports

    Hi Experts, I would like to understand about Z Reporting.  Please explalin, if its the job of FI consultant to prepare Z reports through Report Painter or is that an ABAP person who does this. sonica

  • How to clone generic instance variables?

    Hi guys, If I have private class Item<T>         private T value;         private int priority;         public Item(T value, int priority)             this.value = value;             this.priority = priority;         @Override         public Object c

  • PC will not automatically repair itself

    When I turn on my PC, it goes to a screen that says it cannot repair itself. I am no longer under warranty and the person I talked to said I needed to ask for troubleshooting help.

  • Check box on samrtforms

    Hi guys , I want a check box to be printed on the smartforms . Please any one can let me know the way to print check box on smartforms . Regards, Vijay .

  • How can i check if all my datafiles have been backed up?

    DB Version : 10.2 Using RMAN, how can i check if all my datafiles have been backed up.