Pro Oracle App Express issue : Running stored proc from link in e-mail..

Just ran into an issue and need some help with it. A person I work with was using code from John Scott's book (Great Book for APEX!!) and was using the verification e-mail link code, when it started acting up.
The e-mail that is sent is to call a procedure in a database package (pkg_auth) procedure is called send_verification_email. We moved his code up to my hosted area on Oracle's site so I could help further.
The e-mail is sent properly, but when the link is clicked through, the following error is returned from the server:
Bad Request
Your browser sent a request that this server could not understand.
mod_plsql: /pls/otn/f HTTP-400 Missing '=' in query string or post form
The link that is being clicked is:
[http://apex.oracle.com/pls/otn/ACT_SOFTWARE.pkg_auth.verify_user?p_user=becky&p_code=D62B94845A5E8A5149CCB391CE53D31B]
Two parameters being passed are user name and a verification key.
I am stumped since we compared his code to what John has in his book and except for changes in e-mail addresses and server information (don't visit apexdemo.com, its a company in Washington state..)
Thank you,
Tony Miller
Webster, TX

Only tested on Oracle's site right now. He was working on local machine with code, thus we moved to hosted site so we could work together..
Execute rights granted to PUBLIC for named package.
WWV_FLOW_EPG_INCLUDE_MOD_LOCAL: Since this is on Oracle's hosted site, can't really change this setting..
Funny thing is, I believe before the 3.2.1 update, I had a version of this working in a demo for someone (deleted it since then...) now it seems to be having issues..
Strange, the url is being re-written as : [http://apex.oracle.com/pls/otn/f?p=&APP_ID.:101:&APP_SESSION.] after the error is displayed. Also that the url seems to long for the address bar and I need to scroll right..
Thank you,
Tony Miller
Webster, TX
Edited by: Tony Miller on Oct 14, 2009 1:51 PM

Similar Messages

  • Pro Oracle Application Express

    John, I could send you an email, but I'm sure quite a few other visitors might also be interested in your answer.
    When will your book be published?

    Hello Johannes.
    Take a look at..
    Pro Oracle Application Express - Book
    Take a ticket and join the queue.
    Lots of people want to know. :-)
    Simon.

  • Running stored procedure from unix shell

    Hi
    I have a stored procedure proc1 stored in a file, code1.txt in my home directory /home/user. How do i execute this file which contains the stored procedure from unix shell? I would really appreciate it if somebody gives me the complete shell script to accomplish the above task.
    Thanks.

    To put everything together into a single posting:
    The EXEC command is a SQL*Plus macro command. It is not a SQL or PL/SQL command.
    The only way to execute a stored proc from a client, is to wrap the call in an anonymous PL/SQL block. I.e you need a BEGIN and END PL/SQL wrapper around the call.
    E.g.BEGIN
      -- calling a stored proc to start leave processing
      scott.StartLeaveProcessing;
    END;The EXEC macro in SQL*Plus does this automatically for you. Thus less typing. But do not confuse this command with the PL/SQL language.
    Second issue. Use bind variables when making calls from clients. And not just for SQL statements, but also for PL/SQL. Unfortuantely this tends to be a hack in SQL*Plus due to the way SQL*Plus itself treats its bind variable assignments. But in principle, this is what you should do when calling an Oracle stored proc from a client:
    SQL> -- define a host variable
    SQL> var EMPID varchar2(100)
    SQL> var FROM_DEPT number
    SQL> var TO_DEDPT number;
    SQL>
    SQL> -- assign values to these (this is where SQL*Plus hacks it)
    SQL> exec :EMPID := 100;
    SQL> exec :FROM_DEPT := 1;
    SQL> exec :TO_DEPT := 2;
    SQL>
    SQL> -- now make the stored proc call for moving employee 100 from
    SQL> -- department 1 to department 2
    SQL> EXEC scott.EmployeeTransfer( :EMPID, :FROM_DEPT, :TO_DEPT );
    SQL>To do this from a Unix shell script:
    #!/bin/bash
    # environment variables
    # --> put environment such as ORACLE_HOME, ORACLE_SID, TWO_TASK
    # etc. here <--
    # redirect STDIN from TTY (keyboard typewriter device) to the input from
    # this file - which means SQL*Plus will not read from the keyboard but read
    # from this file its input until the EOF marker/text is encountered
    sqlplus -s /nolog << EOF
    connect scott/tiger
    var EMPID varchar2(100)
    var FROM_DEPT number
    var TO_DEDPT number;
    exec :EMPID := 100;
    exec :FROM_DEPT := 1;
    exec :TO_DEPT := 2;
    exec scott.EmployeeTransfer( :EMPID, :FROM_DEPT, :TO_DEPT );
    exit;
    EOF
    #eof

  • Can we call a Java Stored Proc from a PL/SQL stored Proc?

    Hello!
    Do you know how to call a Java Stored Proc from a PL/SQL stored Proc? is it possible? Could you give me an exemple?
    If yes, in that java stored proc, can we do a call to an EJB running in a remote iAS ?
    Thank you!

    For the java stored proc called from pl/sql, the example above that uses dynamic sql should word :
    CREATE OR REPLACE PACKAGE MyPackage AS
    TYPE Ref_Cursor_t IS REF CURSOR;
    FUNCTION get_good_ids RETURN VARCHAR2 ;
    FUNCTION get_plsql_table_A RETURN Ref_Cursor_t;
    END MyPackage;
    CREATE OR REPLACE PACKAGE BODY MyPackage AS
    FUNCTION get_good_ids RETURN VARCHAR2
    AS LANGUAGE JAVA
    NAME 'MyServer.getGoodIds() return java.lang.String';
    FUNCTION get_plsql_table_A RETURN Ref_Cursor_t
    IS table_cursor Ref_Cursor_t;
    good_ids VARCHAR2(100);
    BEGIN
    good_ids := get_good_ids();
    OPEN table_cursor FOR 'SELECT id, name FROM TableA WHERE id IN ( ' &#0124; &#0124; good_ids &#0124; &#0124; ')';
    RETURN table_cursor;
    END;
    END MyPackage;
    public class MyServer{
    public static String getGoodIds() throws SQLException {
    return "1, 3, 6 ";
    null

  • Calling a COBOL stored proc from Java Servlet

    I am trying to call a COBOL stored proc from a Java Servlet. The stored proc is stored on a DB2 database. I need to send 6 inputs to the COBOL stored proc and the output will be the return code of the stored proc. I'm not sure if I'm going about this the right way. This is how my code looks...
    public int callStoredProc(CallableStatement cstmt,
    Connection con,
    String sYear,
    String sReportNbr,
    String sSystemCode,
    String sUserId,
    String sModuleNbr,
    String sFormId){
    int iParm1 = 0;
    try{
    Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
    catch(ClassNotFoundException ex){
    System.out.println("Failed to locate database driver: "
    + ex.toString());
    return iParm1;
    try{
    cstmt = con.prepareCall("{? = CALL MKTPZ90C
    cstmt.registerOutParameter(1, Types.INTEGER);
    cstmt.setString(2, sYear);
    cstmt.setString(3, sReportNbr);
    cstmt.setString(4, sSystemCode);
    cstmt.setString(5, sUserId);
    cstmt.setString(6, sModuleNbr);
    cstmt.setString(7, sFormId);
    cstmt.execute();
    iParm1 = cstmt.getInt(1);
    CloseSQLStatement(cstmt);
    catch(SQLException ex) {
    CloseSQLStatement(cstmt);
    System.out.println("SQL exception occurred:" +
    ex.toString());
    return iParm1;
    return iParm1;
    Could someone tell me if this is the right way to go about doing this?
    Thanks!!!!!!

    I didn't see the code where you create the database connection (variable "con"). However, the answer to your question "Is this the right way...", for me, is "Anything that works is the right way." So try it. That's a first approximation, but once you have something that works you can start on improving it, if that becomes necessary.

  • Call stored proc from inside sp

    I am trying to call a stored proc from inside a stored proc and the stored proc needs to return a ref_cursor. I am trying to loop over the returned ref_cursor, but my problem is that when I compile the sp it says the ref_cursor is not a procedure or is undefined. Can anyone please tell me why I am getting this error? Refer to the code below!
    create or replace
    PROCEDURE TCS_GetPartReferenceData
    contracts IN VARCHAR2
    , showInWork IN INTEGER
    , userClock IN VARCHAR2
    , intMaxResults IN INTEGER
    , ret_cursor OUT SYS_REFCURSOR
    ) AS
    p_cursor SYS_REFCURSOR;
    BEGIN
    TCS_GETDRNSFORCONTRACTS(contracts
    , showinwork
    , userClock
    , intmaxresults
    , p_cursor);
    for r in p_cursor loop
    dbms_output.put_line(r.puid);
    end loop;
    END TCS_GetPartReferenceData;

    Probably you want sth. like
    CREATE OR REPLACE PROCEDURE tcs_getpartreferencedata (contracts       IN     VARCHAR2,
                                        showinwork      IN     INTEGER,
                                        userclock       IN     VARCHAR2,
                                        intmaxresults   IN     INTEGER,
                                        ret_cursor         OUT sys_refcursor)
    AS
    BEGIN
       tcs_getdrnsforcontracts (contracts,
                                showinwork,
                                userclock,
                                intmaxresults,
                                ret_cursor);
    END tcs_getpartreferencedata;
    var cur refcursor
    exec tcs_getpartreferencedata(contracts_value,showinwork_value,userclock_value,intmaxresults_value, :cur)
    print curfill in appropriate values for the parameters _value ....                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Can i call stored proc from VOImpl, not from AM?

    Hi,
    i know how to invoke proc from bb defined in AM...
    in VOImpl i have a method getSelectedRows()
    which gets me rows selected in table by user.
    how can i invoke stored proc from there?
    Edited by: grodno on Jan 31, 2013 3:35 AM

    Hi,
    its exactly the same code. The only missing link you have is the access to the transaction. In a Viewimpl file just call this.getApplicationModule() to get access to an application module.
    The method can also be exposed on a client interface (same as for AM)
    Frank

  • SQL Exception: Invalid column index while calling stored proc from CO.java

    Hello all,
    I am getting a "SQL Exception: Invalid column index" error while calling stored proc from CO.java
    # I am trying to call this proc from controller instead of AM
    # PL/SQL Proc has 4 IN params and 1 Out param.
    Code I am using is pasted below
    ==============================================
              OAApplicationModule am = (OAApplicationModule)oapagecontext.getApplicationModule(oawebbean);
    OADBTransaction txn = (OADBTransaction)am.getOADBTransaction();
    OracleCallableStatement cs = null;
    cs = (OracleCallableStatement)txn.createCallableStatement("begin MY_PACKAGE.SEND_EMAIL_ON_PASSWORD_CHANGE(:1, :2, :3, :4, :5); end;", 1);
         try
    cs.registerOutParameter(5, Types.VARCHAR, 0, 2000);
                        cs.setString(1, "[email protected]");
                             cs.setString(2, s10);
    //Debug
    System.out.println(s10);
                             cs.setString (3, "p_subject " );
                             cs.setString (4, "clob_html_message - WPTEST" );
                   outParamValue = cs.getString(1);
    cs.executeQuery();
    txn.commit();
    catch(SQLException ex)
    throw new OAException("SQL Exception: "+ex.getMessage());
    =========================================
    Can you help please.
    Thanks,
    Vinod

    You may refer below URL
    http://oracleanil.blogspot.com/2009/04/itemqueryvoxml.html
    Thanks
    AJ

  • Calling DB2 Stored Proc from Oracle DB

    Hi,
    I am having two different database running (One is oracle on solaris while the other one is db2 on os/390 mainframe) i want to pass the data realtime. Is there any way I can call a DB2 stored procedure from oracle directly. If anyboy can help in this will be really helpful.
    thanks,
    Kishor

    odi version we have is  ODI_11.1.1.6.0, it is not migrated and 'Always Execute' option is checked already.
    tried using variables in capital format but did not worked,
    begin
    schema_name.proc_name(#LV_TABLE_NAME,#LV_SCHEMA_NAME,#LV_START_DATE,#LV_END_DATE);
    end;
    odi is giving error if it finds any bug in stored proc but after fixing its completing successfully without errors in operator but i am not able to see the result.
    Please advise.

  • Oracle Apps Adapter Issue

    Hi All,
      when i am trying to create the oracle app adapter in jdeveloper , I am getting the following error.
    java.lang.nullpointerexception at oracle.tip.tools.ide.adapters.designtime.adapter.apps.iRep.IRepStartPage.buildWSDL(IRepStartPage.java:1508)
    Could please any suggestions on this issue.
    Thank You,
    Vamsi

    At what stage are you seeing this error?

  • Oracle apps login issue

    When i login as 'apps' user and execute the following command it shows error like this
    set serveroutput on
    declare
    message varchar(20);
    begin
    message := 'hi';
    dbms_output.put_line(message);
    end;
    Error starting at line 28 in command:
    declare
    message varchar(20);
    begin
    message := 'hi';
    dbms_output.put_line(message);
    end;
    Error report:
    ORA-06550: line 5, column 13:
    PLS-00302: component 'PUT_LINE' must be declared
    ORA-06550: line 5, column 1:
    PL/SQL: Statement ignored
    06550. 00000 -  "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:
    This same plsql works fine in 'applsys' user.
    After executed in 'applsys' user it works in 'apps' user also.
    How to solve this issue.
    DB Version:
    VERSION
    11.1.0.7.0
    your prompt respond would be highly appreciated
    Thanks

    876943 wrote:
    immediately after login into the application we are getting this message
    Welcome to Sourcing! Before you can begin using this product, your profile needs to be completed. Please contact your System Administrator to correct your profile.
    We are on oracle apps 11.5.10.2Please see (Supplier Users With Long Job Titles And E-Mails See An Error Message When Login Into Sourcing. [ID 1276292.1]).
    Thanks,
    Hussein

  • Oracle apps performance issue

    Dear All,
    i recenlty cloned an environment on a new server, i can access oracle apps with fine speed once you select a reponsbility and the java take lots of time to open when you are in oracle application (Oracle forms) from there it works so slow even a single click take 1 min or so.
    please let me know how can i troubleshoot and improve performance specially once the java opens the oracle forms
    OS: OEL 5.5
    APPS : R12 (12.1.3)
    DB : 11G R1
    Single node environment.
    Please advise Regards,
    Hassan

    i recenlty cloned an environment on a new server, i can access oracle apps with fine speed once you select a reponsbility and the java take lots of time to open when you are in oracle application (Oracle forms) from there it works so slow even a single click take 1 min or so.What is the SGA size?
    Did you run "Gather Schema Statistics" after the clone?
    please let me know how can i troubleshoot and improve performance specially once the java opens the oracle formsPerformance Tuning
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Performance+AND+Tuning&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Clearing Oracle Parameters to call diferent stored procs

    Sub Main
    Do While i < 3
    make_excel(i)
    i = i + 1
    Loop
    end Sub
    Sub make_excel(ByVal array As Integer)
    objCmd.Parameters.Add(New OracleParameter("p_cursor", OracleType.Cursor)).Direction = ParameterDirection.Output
    end Sub
    objCmd.Parameters.Clear()
    objCmd.Parameters.Remove("p_cursor")

    I agree with you. I was looking into mod_plsql, but it turns out that their development standards include not using Oracle HTTP server. The whole reason why they want to be able to execute a stored proc based on what is specified in an XML doc is that they want to avoid having to change their middle-tier configurations anytime a new stored proc or a change in stored proc parameters is made. I'm not familiar with what all is involved with .NET and the middle-tier, but supposedly this way, they can specify any stored procedure name and its parameters in an XML file. The XML is then suppose to be passed on to an Oracle stored procedure which will parse the XML and dynamically execute the stored procedure that was specified in the XML.
    Here is an example of the XML:
    '<Root>
      <PackageName>TEST_PKG</PackageName>
      <ProcedureName>TEST_PROC</ProcedureName>
        <Parameters> 
        <Parameter>
            <Name>EmpID</Name>
            <Value>12345</Value>
        </Parameter>
        <Parameter>
            <Name>Org</Name>
            <Value>ABC</Value>
        </Parameter>
        </Parameters>
    </Root>I basically need to parse out the pkg/proc names:
      SELECT t.COLUMN_VALUE.extract('//PackageName/text()').getstringval() PkgName,
             t.COLUMN_VALUE.extract('//ProcedureName/text()').getstringval() ProcName
         INTO v_pkg_name, v_proc_name
         FROM TABLE(xmlsequence(XMLTYPE(v_XML_input) .extract('/Root'))) t;...and then execute the procedure:
        EXECUTE IMMEDIATE 'BEGIN '||v_pkg_name||'.'||v_proc_name||'(:a, :b, :c); END;'
          using in v_in_param1, v_in_param2, out v_XML_output;The problem is that this approach is very complicated since there can be any number of IN/OUT parameters and of various datatypes. I would have to create all kinds of possible bind variables!

  • Oracle apps cloninig issue

    Hi
    I will do the single node cloning in oracle application 11.5.10.2 without applying rapid clone patch, its successfullly completed or not please give me the solution.
    Regards
    D

    Hi
    I have mentioned below the log file about adadmin:
    Archiving oracle/apps/mst/planoption/Shuttle$ButtonLayout.class
    Archiving oracle/apps/mst/planoption/Shuttle$ShuttleHandler.class
    Archiving oracle/apps/mst/planoption/Shuttle.class
    Archiving oracle/apps/mst/planoption/ShuttleLayout.class
    Archiving oracle/apps/mst/planoption/TableDataSource.class
    Archiving oracle/apps/mst/setup/ColorChoiceWrapper.class
    Archiving oracle/apps/mst/setup/ExceptionShuttleWrapper.class
    Archiving oracle/apps/mst/setup/ExceptionSpreadTableWrapper$ExceptionItemAdapter.class
    Archiving oracle/apps/mst/setup/ExceptionSpreadTableWrapper$ExceptionMouseAdapter.class
    Archiving oracle/apps/mst/setup/ExceptionSpreadTableWrapper$ExceptionTableAdapter.class
    Archiving oracle/apps/mst/setup/ExceptionSpreadTableWrapper$ExceptionTableFocusAdapter.class
    Archiving oracle/apps/mst/setup/ExceptionSpreadTableWrapper.class
    Archiving oracle/apps/mst/setup/KPIShuttleWrapper.class
    Archiving oracle/apps/mst/setup/LineColorWrapper.class
    Archiving oracle/apps/mst/setup/MapLineThickness$ComboBoxRenderer.class
    Archiving oracle/apps/mst/setup/MapLineThickness.class
    Archiving oracle/apps/mst/util/Debug.class
    Archiving oracle/apps/mst/util/JumpBackPopup.class
    Finishing and closing archive /ydev/u01/oracle/ydevcomn/java/oracle/apps/mst/jar/mstjar.jar.uns
    Done Generating mstjar.jar : Tue Sep 29 2009 06:37:22
    About to Sign mstjar.jar : Tue Sep 29 2009 06:37:22
    Executing: /ydev/u01/oracle/ydevcomn/util/java/1.5/jdk1.5.0_15/bin/java -Djava.security.egd=file:/dev/urandom sun.security.tools.JarSigner -keystore ******** -storepass ******** -keypass ******** -sigfile CUST -signedjar /ydev/u01/oracle/ydevcomn/java/oracle/apps/mst/jar/mstjar.jar.sig /ydev/u01/oracle/ydevcomn/java/oracle/apps/mst/jar/mstjar.jar.uns customer1
    JarSigner subcommand exited with status 0
    No standard output from jarsigner
    No error output from jarsigner
    Done Signing mstjar.jar : Tue Sep 29 2009 06:37:22
    About to Copy mstjar.jar to /ydev/u01/oracle/ydevappl/mst/11.5.0/java/jar : Tue Sep 29 2009 06:37:22
    Done Copying mstjar.jar to /ydev/u01/oracle/ydevappl/mst/11.5.0/java/jar : Tue Sep 29 2009 06:37:22
    Done Analyzing mstjar.jar : Tue Sep 29 2009 06:37:22
    Done Analyzing/Generating jar files : Tue Sep 29 2009 06:37:22
    Errors have occurred; exiting with status 1
    AD Run Java Command is complete.
    Copyright (c) 2002 Oracle Corporation
    Redwood Shores, California, USA
    AD Java
    Version 11.5.0
    NOTE: You may not use this utility for custom development
    unless you have written permission from Oracle Corporation.
    Failed to generate product JAR files in JAVA_TOP -
    /ydev/u01/oracle/ydevcomn/java.
    adogjf() Unable to generate jar files under JAVA_TOP
    Time is: Tue Sep 29 2009 06:37:23
    Backing up restart files, if any......Done.
    You should check the file
    /ydev/u01/oracle/ydevappl/admin/ydev/log/adadmin.log
    for errors.
    please give me the solution.
    regards
    D

  • Oracle 10 express XE cannot find proc.exe

    Hi,
    I am working for a small software-company. A prospective customer of us asked for an oracle-version of our data-migration-tool. The database interface of the tool is iplemented using dynmaic embedded sql (whichis kind of a standard). To get a feeling of how difficult the adaption/extension of the tool would be, I downloaded and installed the free oracle 10g express (XE) package on my WinXp-Box.
    But now, the promblem begins. I cannot find the file proc.exe which contains the embedded sql precompiler. Do I need another package (which might not be free) ??
    I searched in forums and in google and the only hint i found was, to install client-software. So I tried "Oracle Database 10g Express Client" but with no luck.
    This is really a surprise to me, since I thoght, the free oracle express-edition is meant for software-development.
    I really appreciate any help!!
    many thanks in advance

    PRO*C is not included in Oracle XE according to this Re: PROC*C with OracleExpress Edition.

Maybe you are looking for

  • Problem with java and javaw

    Hi, In running the following simple code, I have gotten different results using java and javaw. public class Test { public Test() { public static void main(String[] args) { int x =4; System.out.println("The value is "+ ((x > 5)?6.0:4)); System.out.pr

  • Setting up displays and preview monitor with Quadro FX1700

    Hi, I am using a Quadro FX1700 graphics card with two DVI displays and a montitor with component connection to the PNY breakout box. I want to have a spanned desktop on my DVI displays and use my component monitor to preview video in Premiere. Is thi

  • Distorted Sound with 6735S

    Hi, I have a 6735S and recently the sound has gone distorted and crackly when listening to music, watchin dvdx... even the start up tune! I ve tried headphones and speakers, still the same problem persists. I ve gone through the FAQ on the HP site, a

  • SQL Server Funktion in B1 Abfrage

    Hallo, Ich habe eine Funktion auf dem SQL-Server erstellt (CREATE FUNCTION BWA_START_DATE ...) und möchte diese gerne in einer B1 Abfrage nutzen. Leider erhalte ich die Fehlermeldung: 'BWA_START_DATE' wird nicht als Name einer integrierten Funktion e

  • !csComponentDataNotFound, when enabling a custom compoent in UCM 11g.

    Hi, I am seeing following exception when enabling custom component in UCM 11g (through component manager). Any pointers on what could be the issue. intradoc.common.ServiceException: !csComponentDataNotFound, DV_Eloqua After enabling when i restart th