Download the procedure not found on the server.

Hello

I created a feature to download files using the Oracle (http://download.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/up_dn_files.htm#CIHBFCDH) tutorial. The files are copied from the flow table in a custom table named SR_ATTACHMENTS with the following structure:

Default primary key Type Nullable data column name
IMAGE_ID NUMBER - 1
NAME VARCHAR2 (60) Yes.
Filename VARCHAR2 (60) Yes.
Mime_type VARCHAR2 (60) Yes.
DOC_SIZE NUMBER Yes-
CREATED_BY VARCHAR2 (255) Yes.
DATE of CREATED_ON Yes-
Content_type VARCHAR2 (60) Yes.
BLOB BLOB_CONTENT Yes-
REQ_ID NUMBER Yes-


There is a file record in the SR_ATTACHMENTS table:

SELECT MIME_TYPE, BLOB_CONTENT, filename, DBMS_LOB. GETLENGTH (blob_content)
OF SR_ATTACHMENTS
WHERE IMAGE_ID = '41090122232687300';

Results:
'MIME_TYPE', 'BLOB_CONTENT', 'FILENAME', 'DBMS_LOB. GETLENGTH (BLOB_CONTENT).
' application/pdf', "[no support for data type]", "relish_menu.pdf", "90353"


Here is the link which is built in the apex in the column links:

#OWNER # .file_download? p_index = #IMAGE_ID #.


Here is the link as it appears on the page when the cursor is placed:

http://My_server:7777/pls/Apex/PRSVCREQDEV.file_download?p_index=41090122232687300



When the user clicks on the link, I get the following error:
Not found
The requested URL /pls/apex/PRSVCREQDEV.file_download was not found on this server.



Here is the procedure:

CREATE OR REPLACE PROCEDURE file_download (p_file in number) AS
v_mime VARCHAR2 (48);
V_LENGTH NUMBER;
v_file_name VARCHAR2 (2000);
Lob_loc BLOB;
BEGIN
SELECT MIME_TYPE, BLOB_CONTENT, filename, DBMS_LOB. GETLENGTH (blob_content)
IN lob_loc, v_file_name, v_mime, v_length
OF SR_ATTACHMENTS
WHERE IMAGE_ID = p_file;
--
-set up the HTTP header
--
-Use a NVL around the mime type and
-If it is null it the value application/octect
-application/octect can initiate a download of windows window
owa_util.mime_header (nvl(v_mime,'application/octet'), FALSE);

-set the size so that the browser knows how to download
HTP.p ("Content-length: ' |") v_length);
-the name of the file will be used by the browser if users only one 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 file_download;
/


Grants are:

Name of the constituent object of the privilege dealer
NO PUBLIC PERFORMANCE NO PRSVCREQDEV FILE_DOWNLOAD


Any help is greatly appreciated!

Thank you
Matt

Hello

No problem, by the way, don't forget you can assign points to get useful answers here ;)

John
--------------------------------------------
Blog: http://jes.blogs.shellprompt.net
Work: http://www.apex-evangelists.com
Author of Pro Application Express: http://tinyurl.com/3gu7cd

Tags: Database

Similar Questions

  • The URL requested/pls/apex/procedure is not found on this server

    Hello

    I'm moving to a new server, applications and spin the issues with file download procedures.

    I received the following error message when you try to upload a blob by using the procedure:


    Forbidden

    You don't have permission to access the/pls/apex/PDSQADB. CUSTOM_IMAGE_DISPLAY on this server.


    Based on this post (Re: DOWNLOAD Custom default after upgrade to 3.1.2 we have implemented comment line for authorization of the DADDY configuration file):

    < apex/pls/location >
    Order deny, allow
    Docs PlsqlDocumentPath
    AllowOverride None
    PlsqlDocumentProcedure wwv_flow_file_manager.process_download
    PlsqlDatabaseConnectString ServerAlias:1521:SBox ServiceNameFormat
    PlsqlNLSLanguage AMERICAN_AMERICA. AL32UTF8
    PlsqlAuthenticationMode Basic
    SetHandler pls_handler
    PlsqlDocumentTablename wwv_flow_file_objects$
    PlsqlDatabaseUsername APEX_PUBLIC_USER
    Apex PlsqlDefaultPage
    PlsqlDatabasePassword apex_user
    #PlsqlRequestValidationFunction wwv_flow_epg_include_modules.authorize
    Allow all the
    < / location >


    This allowed execution of procedure (below):

    create or replace PROCEDURE "CUSTOM_IMAGE_DISPLAY" (p_image_id in number)
    as
    l_mime VARCHAR2 (255);
    number of l_length;
    l_file_name varchar2 (2000);
    lob_loc BLOB;
    Start
    Select mime_type, blob_content, dbms_lob.getlength (BLOB_CONTENT)
    in l_mime, lob_loc, l_length
    from ds_documentation where id = p_image_id;
    -Set up the HTTP header
    -Use a NVL around the mime type and if it is a null value, set it to
    application/octect - who can initiate a download of windows window
    owa_util.mime_header (NVL(l_mime,'application/octet'), FALSE);
    -Set the size so that the browser knows how to download htp.p ("Content-length: ' |") l_length);
    -The name of the file will be used by the browser if users is a htp.p "save under" ("Content-Disposition: filename ="' | l_file_name |) '"');
    -Close the headers
    owa_util.http_header_close;
    -Download the BLOB
    wpg_docload.download_file (lob_loc);
    end;


    Here is the URL of the link in the report:

    #OWNER #. CUSTOM_IMAGE_DISPLAY? p_image_id = #ID #.


    There is another application in the same workspace, but the other schema using an identical procedure and the url link that gives the following error:

    Not found
    The/pls/apex/EDSQADB requested URL. CUSTOM_IMAGE_DISPLAY was not found on this server.


    The following grants have been applied:

    Name of the constituent object of the privilege dealer
    YES EDSQADB CUSTOM_IMAGE_DISPLAY PUBLIC PERFORMANCE
    DEBUG THE PUBLIC YES EDSQADB CUSTOM_IMAGE_DISPLAY


    Entire area suggestions greatly appreciated.

    Thank you
    Matt

    The error with the 'CPIT.file_download' might be missing privileges. Run the statement below as "sys" and check if it solves the problem.

    Grant execute on CPIT.file_download to apex_public_user;

    CITY

  • The/apex/apex requested URL was not found on this server

    I must have made a mistake, now I can't access my APEX! Help, please!

    Previously, I tried to [solve a problem for my application | http://forums.oracle.com/forums/message.jspa?messageID=3690272]. I created a 'APEX_030200.wwv_flow_epg_include_mod_local' function as user sys, then I dropped it.

    Later, I think I should open as the user 'APEX_030200' SQL * Plus, so I tried this "connect APEX_030200", but when I entered a password (I don't know what it is), he told me the account is locked. So I used this command to unlock, "change user APEX_030200 account unlock.

    So far, I realized that there must be a reason any that the account was kept locked. So I wanted to make sure that the application is still working. Bad news! It stopped working! Once I clicked "Go to database home page", he always redirected me to "http://127.0.0.1:8080/apex/apex" and the error message is "the/apex/apex URL was not found on this server is requested".

    I'm sure the DB is running and the service is running, because I can access it here "http://127.0.0.1:8080 / i /. Something has went bad because of my operation. Please help me! I was going just to complete the application, but now everything is gone!

    1 million thanks!

    My environment:
    Oracle Express Edition
    APEX 3.2
    Windows XP
    I installed at the TOP of this way:
    [Installation of the database and configure the embedded PL/SQL gateway | http://download.oracle.com/docs/cd/E14373_01/install.32/e13366/db_install.htm#insertedID4]

    Hello: >
    I created a 'APEX_030200.wwv_flow_epg_include_mod_local' function as user sys, then I dropped it. >

    You cannot have 'created' this function! The feature is installed by Setup of the APEX. This function must exist in the database for APEX work properly. Install the function described below in your database

    CREATE OR REPLACE function APEX_030200.wwv_flow_epg_include_mod_local(
        procedure_name in varchar2)
    return boolean
    is
    begin
        return false; -- remove this statement when you modify this function
        --
        -- Administrator note: the procedure_name input parameter may be in the format:
        --
        --    procedure
        --    schema.procedure
        --    package.procedure
        --    schema.package.procedure
        --
        -- If the expected input parameter is a procedure name only, the IN list code shown below
        -- can be modified to itemize the expected procedure names. Otherwise you must parse the
        -- procedure_name parameter and replace the simple code below with code that will evaluate
        -- all of the cases listed above.
        --
        if upper(procedure_name) in (
              '') then
            return TRUE;
        else
            return FALSE;
        end if;
    end wwv_flow_epg_include_mod_local;
    /
    

    CITY

  • The error is "The request that URL was not found on this server." (- 1100)

    Hi guys!

    Perhaps you have faced with the following question: the error is "the query URL is not found on this server." (- 1100) trying to get a glimpse of the PDF on the Home Viewer.

    I've successfully added of links to pdf files, downloaded HTMLResources.zip a month ago. Now, I need to create a test for the same folio version and links don't work at all - I get this error message - the error is "The request that URL was not found on this server." (- 1100).

    What this may be connected with? I has not changed anything in the article work files or...

    Hello

    I solved this problem in the following way:

    1. put that you a folder of zip upwards. Average if the current position of your zip is... / sources/test - put the zip... /sources.

    2. then import HTMLResources once more.

    Note: zip should not contain a folder with the same name.

    Kind regards

    Sam

  • I can't open my email on Firefox, it works on explore. When you go to the page I get this message "the requested URL /hunter/ajax_login/redirect.php was not found on this server."

    Question
    I can't open my email on Firefox, it works on explore. When you go to the page I get this e message "the requested URL /hunter/ajax_login/redirect.php is not found on this server."

    Reload Web pages, and ignore the cache.

    • Hold SHIFT and click reload.
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Cmd + Shift + R' (MAC)

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".
  • ADVAPI32. DLL - the entry point of procedure not found in the dll

    I just updated my OS from Win XP x 64 for Win 7 x 64. On my XP, I had a program called VVD works just fine. The software is protected by HASP device.

    When you install the VVD on my new operating system, at the end of the installation, an error message comes up with the title "ADVAPI32.dll" followed with a red circle with a white "x" mark and text "the entry point of procedure not found in the dll."

    According to the Publisher of the software, the program is running (and install) free disorder on many machines x 64 Win7 so there must be something special on my PC.

    Shoul, I try to replace the file? How do I do that?

    Any help is greatly appreciated.

    Hello.

    I just did a clean boot and tried to install the software. I got the same message: "the procedure not found in the dll entry point." This message appears at the end of the installation during "update system configuration. Please wait. »

    I don't think that I have no viruses. I run Microsoft Security Essentials on my machine. In addition, installation also failed on two other Win7 computers with the same message. I tried to install the software in all kinds og compatibility modes but keep getting the same exact message. Is there another way/method I could use to isolate the problem?

    The problem is now resolved after SafeNet has released a new version og the pilot.

    Thank you for the effort.

  • Error: The entered procedure not found point_AIL_init_sample@12

    Have a few games to work, but now doesn't.  I get the error: "the entry of procedure not found point_AIL_init_sample@12 for each of them.

    Hello

    1. what game are you talking about?

    2. don't you make changes to the computer until the problem occurred?

    3. when exactly you get this error message?

    I suggest you to try the steps below and check if it helps.

    Method 1:

     Try to put your computer in a clean boot state, and check to see if the same problem happens.

    By setting your boot system minimum state helps determine if third-party applications or startup items are causing the problem.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or Windows 7:
    http://support.Microsoft.com/kb/929135

    Note: After the boot minimum troubleshooting step, follow step 7 in the link provided to return the computer to a Normal startup mode.

    Method 2: If the problem persists then try to uninstall and reinstall the game and check if that helps.

    Hope this information is useful.

  • HTTP 404 not found - the/apex/f requested URL was not found on this server

    All of a sudden, I get the following errors on one page in my application - "the apex/f URL requested is not found on this server".

    I tried to export and import the page with no luck.  The import/export process works successfully; However, I get the same error on the new exported page.

    I can edit the page and the rest of the application is operational - I can not simply run the page without receiving the "Not found" error

    I use the Oracle 11.2.0.3 database.  I use thepl/sql gateway to connect to the APEX.

    I looked at many articles from forum, but nothing seems to be due to my problem.

    It seems that the key generated on the URL is damaged:

    http://localhost:8585/apex/f? p = 101:3:1337553032969279:NO:

    If I remove the 1337553032969279:NO: URL, the login page is running successfully, but a time Oracle tries to access the page it adds the BACKSPACE on the URL and I get the message "not found".

    The keys for the other pages of the DBMS work very well. Only, I have a problem with this page.

    Hello

    You get this error when you run the APEX page?

    Can you import your application to apex.oracle.com or reproduce the HTTP 404 not found error?

    If you share the developer connection information in the workspace, I can try to take a look at what could be the problem.

    Kind regards

    Jari

  • The/apex/listenerConfigure requested URL was not found on this server

    Please help me...

    After running in the command prompt (java-jar c:\apex.war) to install the earpiece of the apex.
    I have error when I call link http://localhost: 8080/apex/listenerConfigure.

    In the browser displays:

    Not found
    The/apex/listenerConfigure requested URL was not found on this server

    How can I fix this error?


    Thx  :)  :)  :)

    How to mark this thread?

    It seems that you have marked threads as answered present. ;) Probably, you will also find a way to mark messages like 'proper' or 'helpful '...

    at this point, I select complete development environment for the execution environment of this stage is spent. is it good?

    Fix.

    next step is 3.3.3 change the password of the ADMIN account, I think that this step went too couse I read
    "In a new installation of the Oracle Application Express, or if you convert a runtime environment in a development environment, you must change the internal ADMIN account password. In an upgrade scenario, the password is retained and carried over from the prior release. "is right?

    Well, it depends on... You have installed APEX the first time, you do not have a new facility. Anyway, it does not hurt to reset this password... After all, you have validated, you don't know, right? So the only option you have to meet her anyway...

    and a question again, how do to restart proses in point 3.3.4 restart the process?

    Documentation is actually a bit confusing, as this whole section applies only to installation with the APEX listener, so usually there is no Oracle HTTP Server must be restarted. Service that you do not want to restart the listener APEX itself.

    -Udo

  • Colon, causing a "the requested object is not found on this server" error

    I have a Description field that is defined as a text box, its game to maintain up to 4000 characters and works perfectly, but if the user enters a colon: in the text and tries to save changes, or navigate to another page, we get a "the requested object was not found on this server" error. If I update the field through SQL, it updates very well.

    Please let know us in this moment test phase of the customer. Thank you, Laura

    When you close a thread and mark, you must assign points to correct answers...

    Thank you

    Tony Miller
    Webster, TX

  • The/pls/apex/f requested URL was not found on this server. -out of blue

    Hello
    I started getting error '/ pls/apex/f URL was not found on this server.' requested while trying to 'run' on the page. I can edit it and, if iexport/import it it works fine, until after I start making changes to all switch elements of "item displayed as text basedo n lov, does not save state' to 'Save State '. It doesn't seem to be a specific item...
    Where can I see the log which is agitated hapenning during execution of this page?
    Thank you
    Andrew

    Andrew,

    RE: 1 - because now I just want to be able to see step by step what happens when rendering or submit occurred.

    Running in debug mode will show you that.

    RE: 2 - you said: "then the method I described (that you used) is the simplest way." I'm not sure I understand - what methodology?

    You said in the second post on this topic, "the approach I used to nail the region is the link: here", and you have access to a post where I described how I would do, still shows here:

    I would disable systematically on the side 'show' of the page. Start by regions. Put a condition never on each. Run the page. If the error Stops, you know that the problem was in one of the regions. If this is not the case, turn off the process and calculations, etc.. Then enable these components one by one until the problem recurs. When you conclude that the problem area (if it's a region), then disable the elements and buttons in the region and so on. The problem may be due to an unhandled exception somewhere inside one of the components.

    RE: 3 - all types. It is not clear (to me at least) if the binding occurs correctly, what values are passed to the pl/sql. I have referred to the session variable correctly or I made a typeoff, etc., etc.

    Again, more details on the situation would be useful. At page debug output is not sufficient, and equip your own code is not enough, you can always find your database session and see what happened. Add & ptrace = YES to the URL, run the page or send the page check the destination database for the trace file and tkprof dump to get a report.

    Scott

  • How can I download the server behavior extensions?

    How can I download the server behavior extensions?

    the page will have to be carried out has been an HTML page.

    You cannot use the old panels of database server & PHP on ordinary HTML files.  They need to be saved as .php files to analyze the code on the server side.

    If your remote & local test server uses PHP 5.5 or higher, I do not recommend using panels of database server & deprecated.  The code is incompatible, obsolete & non-secure.

    Further, you should be manually coding with (improved) MySQLi or PDO.

    Nancy O.

  • ARMv6 (experimental) was not found on this server.

    After clicking on the link for ARMv6 (experimental) download, I get:
    Not found

    The requested URL /pub/mozilla.org/mobile/nightly/latest-mozilla-central-android-armv6/fennec-16.0a1.en-US.android-arm-armv6.apk was not found on this server.

    http://FTP.Mozilla.org/pub/mozilla.org/Mobile/nightly/latest-Mozilla-Central-Android-ARMv6/Fennec-17.0A1.en-us.Android-arm-ARMv6.APK works for me as of today.

  • /Analytics/saw.dll resource not found on this server

    Hi all
    I Googled, I searched on forums.oracle.com and I have not found an answer.
    So I would appreciate help.
    I tried to update OBI 10.1.3.4 10.1.3.4.1 SE SE (using installation 10.1.3.4.1 EA). During installation, it asked me to set the source JDK path. So I installed java jdk 1.6 and point to this jdk.
    After completing the update to 10.1.3.4.1, it seems that I can not open analytics or edges.
    When I enter http://doc-training/analytics/saw.dll?Dashboard, I got an error:

    * 404 not found *.
    /Analytics/saw.dll resource not found on this server

    Then I started installing 10.1.3.4.1 EE once more. But this time when I was asked to define source JDK enter C:\oracle\bise1\jdk. But of course it did not help.
    Can someone help me and write me what I am doing wrong?

    Thanks for help
    M.

    Redeploy your analytical application in your oc4j.

  • Help debugging: / pls/apex/f requested URL was not found on this server.

    Hi - unfortunately, I was on a hiatus APEX 7 months; I'm a little rusty.

    I'm going back to the application, I was working on that and get some behaviors
    that I don't remember. (Doesn't mean it wasn't there...)

    There is a page in my application (a report page) that once I sail
    for her, an attempt to access any other page in the application (for example to sort the results,
    results go back to the page where the query specs are entered, change a line):

    The/pls/apex/f requested URL was not found on this server.

    The generated url look completely valid and identical, with the exception of the page number,
    for those that are generated by another similar set of pages. Session state protection is
    disabled.

    Ideas?

    Thank you
    Carol

    Carol,

    If you can isolate it on a single page, say the login page after the termination, then you must disable a component on this page both (start with areas) until the problem no longer occurs. Also check the level of the application of the process of calculations and the authorisation schemes.

    It could be a problem with a value of source element / default or a query LOV too.

    Scott

Maybe you are looking for