The link to a user defined oracle stored procedure does not work

This is based on the HowTo Download a file
http://otn.oracle.com/products/database/htmldb/howtos/howto_file_upload.html
I have given a link to a procedure as follows, which will download the file (as given in the HowTo):
#OWNER#.download_my_file?p_file=#ID#.
However, this does not work. It tries to open a page rather than executing the procedure. It displays the page not found message

that page not found message is a generic one. you'd want to check your apache logs for more info on what really happened. my guess is that you missed step 5 of that how-to, "grant execute on download_my_file to public"
hope this helps,
raj

Similar Messages

  • Stored procedure does not work!

    okay, this is one of the weirdest things i have ever seen...so i have created a registration page to my code which on submit it will fire the following codes
    protected void btsSubmit_Click(object sender, EventArgs e)
    if (tbxFName.Text.Trim().Length == 0 || tbxLName.Text.Trim().Length == 0 || tbxUsername.Text.Trim().Length == 0 || tbxPassword.Text.Length == 0)
    ScriptManager.RegisterStartupScript(this, this.GetType(), "myscript", "ShowNotification('Warning','Please fill the required textboxes');", true);
    else
    try
    string conString = ConfigurationManager.ConnectionStrings["IRELDBCS"].ConnectionString;
    using (SqlConnection con = new SqlConnection(conString))
    SqlCommand sc = new SqlCommand("spUserRegister", con);
    sc.CommandType = CommandType.StoredProcedure;
    sc.Parameters.AddWithValue("@a", tbxFName.Text.Trim());
    sc.Parameters.AddWithValue("@b", tbxLName.Text.Trim());
    sc.Parameters.AddWithValue("@c", tbxUsername.Text.Trim());
    sc.Parameters.AddWithValue("@d", tbxPassword.Text);
    sc.Parameters.AddWithValue("@e", ddlUserType.SelectedValue);
    con.Open();
    int ReturnCode = (int)sc.ExecuteScalar();
    if (ReturnCode == -1)
    ScriptManager.RegisterStartupScript(this, this.GetType(), "myscript", "ShowNotification('Error','This user is already exists.');", true);
    else
    ScriptManager.RegisterStartupScript(this, this.GetType(), "myscript", "ShowNotification('Success','you registration was successful');", true);
    catch
    ScriptManager.RegisterStartupScript(this, this.GetType(), "myscript", "ShowNotification('Error','Something went wrong, please try again in a few minutes');", true);
    i was using sc.ExecuteNonQuery(); instead of int ReturnCode = (int)sc.ExecuteScalar();
    and it was working fine and it was functioning till i have added the part which it stops user from registering with the same email address which is 
    int ReturnCode = (int)sc.ExecuteScalar();
    if (ReturnCode == -1)
    ScriptManager.RegisterStartupScript(this, this.GetType(), "myscript", "ShowNotification('Error','This user is already exists.');", true);
    else
    ScriptManager.RegisterStartupScript(this, this.GetType(), "myscript", "ShowNotification('Success','you registration was successful');", true);
    and this is my stored procedure
    USE [dbo.IrELearn]
    GO
    /****** Object: StoredProcedure [dbo].[spUserRegister] Script Date: 04/01/2014 19:35:08 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER PROCEDURE [dbo].[spUserRegister]
    @a nvarchar(30),
    @b nvarchar(50),
    @c nvarchar(150),
    @d nvarchar(30),
    @e smallint
    as
    BEGIN
    declare @Count int
    declare @ReturnCode int
    SELECT @Count = COUNT(Username)
    FROM tbl_Users WHERE Username = @C
    IF @Count > 0
    Begin
    Set @ReturnCode = -1
    End
    Else
    Begin
    Set @ReturnCode = 1
    INSERT INTO tbl_Users (FirstName, LastName, Username, Password, UserType) VALUES (@a,@b,@a,@b,@e)
    End
    SELECT @ReturnCode as ReturnValue
    END
    now users cant register anymore and when i tried to debug and find where the problem is, it completely skips the "if" section after 
    int ReturnCode = (int)sc.ExecuteScalar();
    im not sure whats goin on!! can anyone find out what the problem is?
    thank you in advance

    Can you try to replace the statement in the Stored Proc
    SELECT @ReturnCode as ReturnValue
    with
    RETURN @ReturnCode
    The SELECT statement returns the value as a dataset but the RETURN statement returns it as a Return Code for success/failure of the Stored Proc execution.
    Normally RETURN(0) i.e. a zero is returned as a default for success and a non-zero value is returned for a failure. But don't obther about the values at this time, just try the RETURN statement.
    - Aalam | (Blog)

  • Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work. Please help. Thanks.

    Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work. Please help. I am getting lots of spelling errors as the MacBook laptop screen is too small. Thank you so much! .

    Contentmom6 wrote:
    Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work.
    Normally, you just connect the monitor to the MacBook using a VGA adaptor that you can buy from an Apple Store.  Now try System Preferences > Displays > Detect Displays.  You should now be able to select a display mode for the monitor.  If it still doesn't work, then I'd check that everything is properly connected.  I've had problems with colours disappearing due to a faulty connection in the VGA adaptor.
    Bob

  • The hold button on my ipod touch 3rd generation does not work and ipod randomly flashes on and off, asking if i want to restart it when no button has been pushed, any suggestions?

    the hold button on my ipod touch 3rd generation does not work and ipod randomly flashes on and off, asking if i want to restart it when no button has been pushed, any suggestions?

    it might be a malfunction in your device. you might ave to send it to repairation
    1.ave you try resetting it or restoring it?
    2. did your hold boutons whas working beffor?

  • My dad has a brand new iMac. If he quits an app, this window closes, but the app won't finish shutting down, Force quitting does not work.  Once another app is opened, it will not close either.  Now none of the apps are responding. Any ideas?

    My dad has a brand new iMac. If he quits an app, this window closes, but the app won't finish shutting down, Force quitting does not work.  Once another app is opened, it will not close either.  Now none of the apps on the dock are responding. I asked him to click on the apple, and drop down to "About this Mac", but that wouldn't open either. Any ideas?  If I was at his house, I would call Apple Care in a heartbeat, but am home with my sick daughter,,,  Thanks!

    For starters, have him open Disk Utility in Applications>Utilities, select the volume (the indented listing) and Verify Disk. If it reports any problems, have him try a Safe Boot by holding the Shift key at startup. This boot will take much longer than usual. It's checking and trying to repair the drive directory, if possible. Once in Safe Boot, have him repair Permissions.
    For other Disk repair remedies see
    http://support.apple.com/kb/TS1417
    Also, have him try a PRAM Reset. At the startup chime, hold down CMD-Option-P-R together, listen for two more chimes, total three, then let go to finish booting.
    Also, is he running any AV? If so, have him uninstall it. It might be responsible for this behavior. (There are no viruses for OS X.)

  • I had an iphone 4s and it worked nice with facetime and imessage using my phone number but  it was stolen on December so I buy a new iphone 4s using the same cellphone number  but now imessage and facetime does not work with my number, it only works with

    I had an iphone 4s and it worked nice with facetime and imessage using my phone number but  it was stolen on December so I buy a new iphone 4s using the same cellphone number  but now imessage and facetime does not work with my number, it only works with my apple ID.   Please Help me I speak Spanish so  if my English is not ok  I´m sorry about it.
    Do you think that apple has to   reset in their database of the old serial number attached with my phone number and that’s why I can´t activate imessage and facetime with my number in the new iphone 4s?? 

    I understand all of this Meg; that is why I bought an Iphone; but never expected my phone not even give a at least a 24 or even 12 hours....I work 12 hour shifts and also would expect to have to charge each night but not twice a day or more.  I am not always somewhere I can charge my phone.
    Your points are true; however it doesn't help me......

  • The attach a file button (in netzero e-mail) does not work in firefox but does in explorer

    The "attach file button" (in net zero e-mail) does not work in firefox but does in explorer.
    == URL of affected sites ==
    http://

    *Tools > Options > Privacy > History: Firefox will: "Use custom settings for history"
    *Tools > Options > Privacy > History: "Remember search and form history"
    See also [[Form autocomplete]]

  • I have an iPhone 5,  and unfortunately the phone  fell into a mud pit, since then, does not work.  I would like to inform me, where I can repair it Sao Paulo,Brasil

      I have an iPhoen 5, and unfortunately the phone fell into a mud pit,sice then does not work.I wouod like to infor me, where I can repair it  in Sao Paulo,Brasil
    Thank's
    Marc

    If you have an Apple store in your city, that would be the place to start...an Apple store genius bar can help.  Damage of this kind is considered out-of-warranty damage by Apple and not covered by the warranty.  Replacement of an iPhone 5 is $229 in the US, but not sure of the conversion to Brazilian currency.
    You can also find an appropriate customer service number to call on http://support.apple.com/kb/HE57

  • Oracle dbms.set_role does not work in APEX application

    Hi, in our j2ee applications, we use secure application role. Basically, the data source use the app user schema to connect to the database. the app user only has create session privileges. the database logon trigger will copy a set of attribute to the local secure context. (ip address, session user, client id, application name). The applications explicitly invoke the stored procedure sec_mgr.set_role before any DMLs are executed.
    the sec_mgr.set_role will check the local context attribute , authorize the ip, application name, and set an appreciated role to this session based on session user.
    we want to apply the same framework to the APEX application. First, we change the paring schema to the app schema which only has create session privilege. then we put the plsql code in which sec_mgr.set_role is called in the application builder --> shared components ---> edit security attribute ---> Virtual Private Database (VPD).
    however, we got the error ORA-06565: cannot execute SET ROLE from within stored procedure
    the sec_mgr.set_role is defined as invoker's right(AUTHID CURRENT_USER)
    do i missing something in APEX to get it work?
    Thanks

    Please explain it does not work in APEX? Is the application updating tables that have a trigger? APEX does NOT override trigger actions. Is it possible the values your trigger is looking for are NOT available in your APEX application? Can you post the trigger code here for review?
    Thank you,
    Tony Miller
    Webster, TX
    What if you really were stalking a paranoid schizophrenic... Would they know?
    If this question is answered, please mark the thread as closed and assign points where earned..

  • User WF-BATCH and BAPI_PO_RELEASE does not work without printer assigned

    Hello Gurus,
    The function BAPI_PO_RELEASE is used in our PO approval workflow, but this one does not work till the user WF_BATCH has no printer defined in USR01-SPLD. This is a strange behavior because the output message assigned to the PO has a message transmission medium equals to 5 (External send) => not print.
    Does someone have already met the same issue?
    How this could be solved without assigning a default printer to user WF_BATCH?
    Kind regards
    Chris

    Hello Tison,
    we're using also the WF-BATCH user having no default printer assigned and it works fine with the final release.
    However, there's usually the output message NEU with a prerequesite maintained that the PO has to be finally released. So this way there can be an additional output message found upon releasing. But we have a printer assigned using the condition records and we're not using the type that you've specified.
    So I'd guess that, indeed, the problem lies within the message. You could copy the WF-BATCH user to a dialog user and release the purchase order in dialog and see what happends.
    With the very best wishes,
       Florin

  • If a user is no admin, airplay does not work in iTunes

    I am using maverick and iTunes 12.0.1.26. All works well, apart from a strange bug. The airplay in iTunes does not work when the user has no admin rights. The icons show correct blue and it even states that it is connecting to the Apple tv, but the sound is never played on the Apple tv. The airplay of the speaker icon of the OSX works. Giving the user admin rights solves the issue. (tried it several times, it seems to be consistent). Any ideas? I would prefer to have the account for my wife as a standard user. No problems with the older versions of iTunes.

    It is not any OS administrator that can connect as sysdba. It is only the user who installed Oracle that can connect as sysdba this way.

  • Ref_cursor -procedure does not work for Microsoft ODBC for oracle driver

    Hi,
    I have a stored procedure to retreive record set values from db.
    so i used PL/SQL table type. that is
    type tt1 is table of ........
    but if i replaced the table type with ref_cursor i get an ODBC error :
    "ODBC driver does not support the requested properties.--2147217887".
    The problem is i get a connection string from other module and i cannot change the connection string.
    So is there a way to get it working the ref_cursor using "Microsoft ODBC for Oracle" driver.
    Thanks

    Babu,
    Not sure, a quick Google indicates it should work (given you're using the correct syntax of course :-) )
    Have you tried the Oracle ODBC driver? Are you using the latest version(s)?
    Of course you're likely to have much more luck if you post this question in the ODBC forum :-)
    ODBC
    Cheers,
    Colin

  • BUG: Oracle Schema Processor does not work in Servlets

    We found a bug with Oracle's Schema Processor. It does not work in Servlets.
    When we try to validate a XML document in a Servlet it does not work, but we can execute the same code in a stand alone application and it works.
    The following is the code we are using:
    try {
    File f =new File(filename);
    FileReader r = new FileReader(f);
    DOMParser dp = new DOMParser();
    URL url = createURL (filename);
    dp.setValidationMode(false);
    dp.setSchemaValidationMode(true);
    dp.setPreserveWhitespace(true);
    dp.parse(url);
    System.out.println("it is parsed");
    } catch(Exception e){System.out.println("there is Error"+e.getMessage());}
    null

    I don't think this is related to Servlets per se.
    Check that the Schema processor classes used by the servlet container, and your application are the same.
    Java does not have proper versioning of classes, I have seen many applications collapse. People compiled their code on developer machines, where it worked fine, but when moved to a production machine they failed because the production machine had a different version of classes. Usually the name of the class doesn't change, but either a method or a variable is missing in several classes. VM doesn't complain but simply crashes.
    In your Schema Processor classes that are used by the servlet engine might be different from the one that the app uses. Do a search on the file system to see how many copy of the same class bundle (zip, jar) you have on the system.

  • 32-bit Oracle ODBC Driver does not work under Windows 64-bit

    We have both Oracle Server 64-bit (10.2.0.3) and Oracle Client 32-bit (10.2.0.1) installed on the same Windows 2003 64-bit server.
    We can create and test 64-bit Oracle ODBC System DSN using 64-bit ODBC Administrator.
    We can also create a 32-bit Oracle ODBC System DSN using 32-bit ODBC Administrator.
    However, the "test connection" does not work:
    Unable to connect
    SQLState=IM003
    Specified driver could not be loaded due to system error 998 (Oracle in OraClient10g_home32)
    We need the 32-bit driver due to 32-bit applications acessing the local 64-bit Oracle server.
    How should we accomplish this?
    Thanks.

    I applied 10.2.0.3 path to Oracle Client 32-bit and now the error is different.
    This error message appears 3 times before configuring, creating or testing a System DNS:
    "An unsupported operation was attempted."
    I just click OK 3 times and then can configure, create or test the DSN.
    However the 32-bit application still cannot access Oracle...
    Yours.

  • At the top of my Mozilla home page, it lists the current URL site I am on. How do I delete them and the others in the drop down box? Highlighting and hitting delete does not work

    At the top of my Mozilla home page, it lists the current URL site, such as http://www.safeco.com, I am on plus the others in the drop down box. How do I delete them. Highlighting and hitting delete does not work.
    I am using windows Vista 007 and Mozila 3.6.1.3

    Do those entries have a yellow star at the far right?
    If they have then they are bookmarks. You can remove them if you open that link and click the star to open the Edit This Bookmark dialog and click the Remove button in that dialog.
    * [[Clearing Location bar history]]
    * [[Cannot clear Location bar history]]

Maybe you are looking for

  • How do I move imove content from one user to another on the same computer?

    We bought our Macbook pro about six months ago. We made the mistake of creating two users for it (my husband and myslef) but bow we only log in under my user name. The problem is we originally imported all of our video camera content to his "log in"

  • How to get Grand Total Text in ALV GRID

    Hi Folks, I am able to get the SUBTOTAL TEXT .....But i need... How to get Grand Total Text in ALV GRID Display... Can any one give a Solution for this...

  • Number of Rows, displaying a table with only one row

    Hello, I am doing my first VC tests on the discovery System. I have an input form where I put in the username, then choose a user from a table and with the user ID I want to show the user details in another table. Now since I am only pickling one use

  • Create a new roll name on import

    Instead of iPhoto numbering new rolls, is there a way it can ask me for a name each time I import? That would be easier than going back later and renaming the numbered rolls into something with more meaning. Thanks.

  • Problem with bb link and z10

    hello, i´ve try to connect my z 10 to pc whith bb link and i can t, it stays a lot of time thinking, and nothing. how can i do a  backup copy of my z 10 whitout bb link, and why in the divice bb protect don´t allow backups?