Link to PL/SQL procedure using a Template Manager template.

Hi,
I need to link a portal application report (report from SQL query) to a SQL procedure that uses a template manager template. The PL/SQL procedure requires parameters. I'm not be able to create a link based on a PL/SQL procedure. The only solution I found is to setup a link to a Form based on that procedure. But the form is only used to call the PL/SQL procedure by clicking the submit button and redirect to the template.
Another question:
Is it planed to support dynamic links based on column conditions?
I'm using Portal release 3.0.7.6.2.
thanks in advance
Jens

Jens,
You may want to search the Oracle9iAS Portal Applications forum. It may have the answer you are looking for. This forum is for questions related to the Portal Development Kit.
Thanks,
Sue
Sue

Similar Messages

  • How to call a PL/SQL procedure from a xml Data Template

    We have a requirement in which we need to call a pl/sql package.(dot)procedure from a Data Template of XML Publisher.
    we have registered a Data Template & a RTF Template in the XML Publisher Responsibility in the Oracle 11.5.10 instance(Front End).
    In the Data Query part of the Data Template , we have to get the data from a Custom View.
    This view needs to be populated by a PL/SQL procedure.And this procedure needs to be called from this Data Template only.
    Can anybody suggest the solution.
    Thanks,
    Sachin

    Call the procecure in the After Parameter Form trigger, which can be scripted in the Data Template.
    BTW, there is a specialized XML Publisher forum:
    BI Publisher

  • Regarding execution of pl/sql procedure using JSP

    HI all
    Please help me.
    i am customizing a jsp page ,which is executing one sql procedure first then selecting data from the table in which procedure is inserting.
    How can i pass parameter dynamically to the sql procedure ? ,which i am getting from an HTML page.
    Please help me out.
    regards
    satendra

    this is the sample code provided by oracle.
    * This sample shows how to call PL/SQL blocks from JDBC.
    import java.sql.*;
    class PLSQL
    public static void main (String args [])
    throws SQLException, ClassNotFoundException
    // Load the Oracle JDBC driver
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    String url = "jdbc:oracle:oci8:@";
    try {
    String url1 = System.getProperty("JDBC_URL");
    if (url1 != null)
    url = url1;
    } catch (Exception e) {
    // If there is any security exception, ignore it
    // and use the default
    // Connect to the database
    Connection conn =
    DriverManager.getConnection (url, "scott", "tiger");
    // Create the stored procedures
    init (conn);
    // Cleanup the plsqltest database
    Statement stmt = conn.createStatement ();
    stmt.execute ("delete from plsqltest");
    // Close the statement
    stmt.close();
    // Call a procedure with no parameters
    CallableStatement procnone = conn.prepareCall ("begin procnone; end;");
    procnone.execute ();
    dumpTestTable (conn);
    procnone.close();
    // Call a procedure with an IN parameter
    CallableStatement procin = conn.prepareCall ("begin procin (?); end;");
    procin.setString (1, "testing");
    procin.execute ();
    dumpTestTable (conn);
    procin.close();
    // Call a procedure with an OUT parameter
    CallableStatement procout = conn.prepareCall ("begin procout (?); end;");
    procout.registerOutParameter (1, Types.CHAR);
    procout.execute ();
    System.out.println ("Out argument is: " + procout.getString (1));
    procout.close();
    // Call a procedure with an IN/OUT prameter
    CallableStatement procinout = conn.prepareCall ("begin procinout (?); end;");
    procinout.registerOutParameter (1, Types.VARCHAR);
    procinout.setString (1, "testing");
    procinout.execute ();
    dumpTestTable (conn);
    System.out.println ("Out argument is: " + procinout.getString (1));
    procinout.close();
    // Call a function with no parameters
    CallableStatement funcnone = conn.prepareCall ("begin ? := funcnone; end;");
    funcnone.registerOutParameter (1, Types.CHAR);
    funcnone.execute ();
    System.out.println ("Return value is: " + funcnone.getString (1));
    funcnone.close();
    // Call a function with an IN parameter
    CallableStatement funcin = conn.prepareCall ("begin ? := funcin (?); end;");
    funcin.registerOutParameter (1, Types.CHAR);
    funcin.setString (2, "testing");
    funcin.execute ();
    System.out.println ("Return value is: " + funcin.getString (1));
    funcin.close();
    // Call a function with an OUT parameter
    CallableStatement funcout = conn.prepareCall ("begin ? := funcout (?); end;");
    funcout.registerOutParameter (1, Types.CHAR);
    funcout.registerOutParameter (2, Types.CHAR);
    funcout.execute ();
    System.out.println ("Return value is: " + funcout.getString (1));
    System.out.println ("Out argument is: " + funcout.getString (2));
    funcout.close();
    // Close the connection
    conn.close();
    // Utility function to dump the contents of the PLSQLTEST table and
    // clear it
    static void dumpTestTable (Connection conn)
    throws SQLException
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("select * from plsqltest");
    while (rset.next ())
    System.out.println (rset.getString (1));
    stmt.execute ("delete from plsqltest");
    rset.close();
    stmt.close();
    // Utility function to create the stored procedures
    static void init (Connection conn)
    throws SQLException
    Statement stmt = conn.createStatement ();
    try { stmt.execute ("drop table plsqltest"); } catch (SQLException e) { }
    stmt.execute ("create table plsqltest (x char(20))");
    stmt.execute ("create or replace procedure procnone is begin insert into plsqltest values ('testing'); end;");
    stmt.execute ("create or replace procedure procin (y char) is begin insert into plsqltest values (y); end;");
    stmt.execute ("create or replace procedure procout (y out char) is begin y := 'tested'; end;");
    stmt.execute ("create or replace procedure procinout (y in out varchar) is begin insert into plsqltest values (y); y := 'tested'; end;");
    stmt.execute ("create or replace function funcnone return char is begin return 'tested'; end;");
    stmt.execute ("create or replace function funcin (y char) return char is begin return y || y; end;");
    stmt.execute ("create or replace function funcout (y out char) return char is begin y := 'tested'; return 'returned'; end;");
    stmt.close();
    }

  • PL/SQL Procedures using TIME

    hello all,
    i need some help with using time in my table. how do i insert a time (what data type do i use, and what does the INSERT statement look like), eg. i want a time like 1:00:00am, 2:00:00pm in my receiveTime column.
    i have a table:
    ID receiveTime
    1 need a time
    2 need a time
    3 need a time
    THEN, how would i write a condition for this procedure, the condition is that i want to compare my System Time with the Time in the receiveTime column.
    eg. if system time > receive time THEN blah blah;
    Edited by: kwerty on Nov 7, 2008 11:47 PM
    Edited by: kwerty on Nov 8, 2008 1:18 AM
    editted my post a little

    DECLARE
        t TIMESTAMP := TIMESTAMP '2008-11-08 11:00:00';
    BEGIN
        DBMS_OUTPUT.PUT_LINE('t:             ' || t);
        DBMS_OUTPUT.PUT_LINE('time now:      ' || SYSTIMESTAMP);
        DBMS_OUTPUT.PUT_LINE('30 mins ago:   ' || (SYSTIMESTAMP - INTERVAL '30' MINUTE));
        DBMS_OUTPUT.NEW_LINE;
        IF t < SYSTIMESTAMP - INTERVAL '30' MINUTE
        THEN
            DBMS_OUTPUT.PUT_LINE('Time t is in the last 30 minutes');
        ELSE
            DBMS_OUTPUT.PUT_LINE('t is 30 minutes ago or earlier');
        END IF;
    END;
    t:             08-NOV-08 11.00.00.000000
    time now:      08-NOV-08 11.33.49.010000000 +00:00
    30 mins ago:   08-NOV-08 11.03.49.010000000 +00:00
    Time t is in the last 30 minutes
    PL/SQL procedure successfully completed.

  • Mozilla firefox get hang , when i click on a link to download a file using Interenet Download manager. any solution??

    When i click on any link to download a file ( software, document etc.) using idm , the firefox get hang for sometime till the download dialogue box don't come. any solution to this problem.??

    Try to start Firefox in [[Safe mode|Safe mode]]. This mode disables all extensions, user customizations, hardware acceleration, etc. temporarily for diagnostic and troubleshooting. If Firefox works find in Safe Mode, then this is likely an add-on issue. Restart Firefox in normal mode, then type "About:addons" (without the quotes) in the address bar. Disable your extensions one by one, restarting Firefox between each one, until you find the trouble maker. Once you do, you can disable that add-on and report the issue to that add-on's developer.
    A few other basic trouble shooting things you can try is this:
    Run all Windows Updates, install all needed service packs, etc.
    Update your graphics driver (Firefox uses your graphics card for some rendering, and an out of date graphics card driver can cause problems. [https://support.mozilla.org/en-US/kb/how-do-i-upgrade-my-graphics-drivers https://support.mozilla.org/en-US/kb/how-do-i-upgrade-my-graphics-drivers].
    Update all your plugins (Flash, Java, etc.): [http://www.mozilla.org/plugincheck/ http://www.mozilla.org/plugincheck/].
    Download and Install MalwareBytes Anti-Malware, run a full Scan. [http://www.malwarebytes.org/ http://www.malwarebytes.org/]. This helps check that there are no viruses on your computer causing issues. You can uninstall this program after you clean off any infections.

  • DB Adapter calling PL/SQL Procedure gives error

    Created partner link, calling pl/sql procedure with one in variable and one out variable. Invoke works fine. Assigning pl/sql return value to output is causing run time error. "Rebuild" and "Deploy" works file.
    Here is the error:
    Assign_2
    [2007/08/03 14:18:06]
    Error in evaluate <from> expression at line "93". The result is empty for the XPath expression : "/ns3:OutputParameters/ns3:OUT_STATUS_CODE".
    oracle.xml.parser.v2.XMLElement@ba1893
    Copy details to clipboard
    [2007/08/03 14:18:06]
    "{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown.
    - <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
    - <part name="summary">
    <summary>
    empty variable/expression result.
    xpath variable/expression expression "/ns3:OutputParameters/ns3:OUT_STATUS_CODE" is empty at line 93, when attempting reading/copying it.
    Please make sure the variable/expression result "/ns3:OutputParameters/ns3:OUT_STATUS_CODE" is not empty.
    </summary>
    </part>
    </selectionFailure>
    Any input would be appreciated..
    Thanks.

    Thanks, it works.
    In the “Assign Variables”
    Changed from:
    <copy>
    <from variable="Invoke_1_ASNDBTest103_OutputVariable"
    part="OutputParameters" query="/ns3:OutputParameters/ns3:OUT_STATUS_CODE"/>
    <to variable="outputVariable" part="payload"
    query="/ns2:ASNReturnStatus102"/>
    </copy>
    Changed to:
    <copy>
    <from variable="Invoke_1_ASNDBTest103_OutputVariable"
    part="OutputParameters" query="/ns3:OutputParameters"/>
    <to variable="outputVariable" part="payload"
    query="/ns2:ASNReturnStatus102"/>
    </copy>
    So far so good, but one question, compiler gives warning…but everything works well.
    Warning(97):
    [Error ORABPEL-10041]: Trying to assign incompatible types
    [Description]: in line 97 of "C:\HOME\jdevOAExt3\jdevhome\jdev\mywork\ASNTest101\BPELProcess1\bpel\BPELProcess1.bpel", <from> value type "{http://xmlns.oracle.com/pcbpel/adapter/db/APPS/XRX_BPEL_INSERT_ASN_TMP102/}OutputParameters anonymous type" is not compatible with <to> value type "{http://www.thiscompany.com/ns/sales}ASNReturnStatus102".
    [Potential fix]: Please make sure that the return value of from-spec query is compatible with the to-spec query.
    Also, instead of direct variable to variable copy, used expression to variable copy and it works. You can avoid the warning from the compiler.
    Does not work ==> bpws:getVariableData('Invoke_1_ASNDBTest103_OutputVariable','payload','/ns3:OutputParameters/ns3:OUT_STATUS_CODE')
    Works ==> bpws:getVariableData('Invoke_1_ASNDBTest103_OutputVariable','payload','/ns3:OutputParameters’)
    So, why the compiler warning?

  • Make EXE for Pl/sql procedure

    Hi all,
    I have one Pl/sql procedure for which i want make EXE.
    can we make EXE files for PL/sql procedures using ' Oracle Developer Tools for Visual Studio .NET'
    Thank you.

    Hi Al,
    Can you tell me in steps how to create EXE for pl/sql procedure using C# console application.
    I have one webservice link which i want to invoke and i have to put the webservice output in a saparate file.
    I wrote Pl/sql procedure which invokes/consumes the webservice using UTL_HTTP and also placed the output of Webservice in a saparate file using UTL_FILE.
    But i have to execute this procedure on a Workstation where there is No Oracle installed.
    as you suggested using C# console application. Will this Procedure with UTL_FILE & UTL_HTTP packages run in that c# console application.
    Thank you

  • Generating Web Service from PL/SLQL procedures using ODSI

    1) Is there a way for us to generate REST based web services from PL/SQL procedures using Oracle data services Integrator? If Yes, Can you please point me to any available documentation
    2) I am trying to create a phyiscal data source based on PL/SQL procedures in the hope of turning these data sources into web services. I created a JDBC connection in web logic server console and am trying to view the packages under APPS but ODSI always crashes after selecting APPS. Is there a way to resolve this?
    Thanks
    Bhanu

    Hi..
    We came accross this problem a while back (I think it was us that the patch was created for). The patch was released under CR369707.
    Additionally it took us a while to figure out how to use it correctly.. Here's the info for it from a mail i receievd from our support contact..
    Here is more information from engineering on the patch:
    This is patch for filtering Stored Procedures in the New Physical Data Service Wizard. It is a partial fix to the problem. It just does filtering - it still retrieves all the jdbc metadata for everything that matches the filter. Ideally, the wizard would let you explore the stored procedures - retrieving the name only - and once you selected a stored procedure, it would retrieve the argument types (which is the expensive part).
    Copy these two files to a safe place
    <bea_home>\<aldsp_home>\eclipse-plugins\dsp\eclipse\plugins\com.bea.dsp.ide.external_10.3.0\dsp-ide-ldshredder.jar
    <bea_home>\<aldsp_home>\eclipse-plugins\dsp\eclipse\plugins\com.bea.dsp.ide.import_metadata_10.3.0.jar
    Replace the files with the ones provided in the patch (which I sent you be eMail recently).
    Creating Relational Database Physical Data Services -> Stored Procedures will be affected as follows :
    The Search field used to represent a pattern for the stored procedures only, and this patterns were applied against every schema visible to ALDSP. The patch allows you to also specify a list of catalogue patterns (useful only when applicable), a list of schema patterns and a list of procedure name patterns. These lists are separated by the pipe symbol, and the lists themselves are command-separated. The catalogue and schema patterns are regular expressions, the procedure pattern is for a database 'like' clause. For, Oracle, the catalogue patterns are not applicable.
    Example:
    |ODM1,ODM2|B% // look in schemas containing the strings ODM1 or ODM2 for procedures that start with B
    // possible results would be MY_ODM1.BUILDER, ODM2.BOTTOM
    |^ODM$|B%D // look in the ODM schema for procedures that start with B and end with D.
    Also - if there is a search string in the Search box, that search string will be applied to the schema when you click on the + to expand it in the Tree.
    Note that once a schema has been 'explored' - either by a search, or by expanding it in the tree, further searches will not update it's children. You would need to quit the wizard and restart.
    Once you get the patch if you have issues let me know..

  • Calling pl/sql procedure from a java class.

    I have an onSubmit event that needs to call a pl/sql procedure using the named connection. Can anyone tell me how this is code in a Model 1 ADF JSP page?

    Look at the following related thread:
    Programatically setting attribute values.

  • PL/SQL procedure -- log files?

    Say when i execute a PL/SQL procedure using SQL* Plus. Is there a place where these executions are stored/logged? Any trace files?
    And, when a Java program calls my stored procedure, is there a place these transactions are stored, just to check what exactly is being passed to my stored procedure and what the procedure gave back as result set?
    Any pointers will be appreciated. Thanks.

    Hi
    Use a system.out.println(parametername) to check what values you are passing to the procedure.. you can see the results in your application server console.
    Thanks

  • Calling PL\SQL procedures

    What's the best way to invoke a PL\SQL procedure using Java?
    I am hoping to use the values passed from the JSP into the database for computations but don't know how to call the procedure after the commit.
    Any ideas?
    Thanks a lot!

    Example follows for a PL/SQL proc call from a Java application that returns a result set and displays it in a scrolling pane. Hope it helps you:
    setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
    try
    CallableStatement call =
    OpenDBConnections.myJdbcConnection.prepareCall
    ("{? = call MY_PLSQL_PROC(?)}");
    call.registerOutParameter(1,OracleTypes.CURSOR);
    call.setString(2,partNumber_tf.getText().toString());
    call.execute();
    OracleResultSet rset=(OracleResultSet)call.getObject(1);
    /* use caching result set cuz it is non scrollable stored proc result */
    model = new CachingResultSetTableModel(rset);
    result_tbl = new JTable(model);
    status_tf.setText(result_tbl.getRowCount()+" matching Rows found.");
    jScrollPane1.getViewport().add(result_tbl, null);
    rset.close();
    call.close();
    setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
    catch (SQLException esql)
    System.out.println(esql.toString());
    }

  • Import guest OS into Oracle VM manager template

    I am getting ready to install the Oracle VM Manager template on my Oracle Virtual Server. Originally I had the VM manager on a separate machine than the OVS. I have decided that I want to free up that machine and use the VM manager template. From the instructions on installing the template it does not seem that difficult. My question is since I currently already have a few guest OS's running on my current Manager how do I import those into the VM manager template when I get it installed. Because the VM manager template will be in the running pool with the other guest OS so how does it register those guest os's that have been previously created?
    Thanks

    If your servers are already registered with an Oracle VM Manager, the template will not work -- it's designed to create a new server pool, which will fail. If you want to switch to the template, dismantle the pool first (but don't delete the VMs!) and then run the template installer script. It will automatically create a pool and add the server on which you start the VM. You can then add the remaining server(s) and then import the existing VMs.

  • How to query a distant database without using db link in pl/sql

    Hi
    I have two different distantly located databases say d1,d2
    There is a table dept which had deptno (primary key),department name as columns .
    I need to query database d2 on the basis of the deptno present in database d1.
    In database d2 , there are some tables which have columns as deptno.
    I cannot use DB link .
    Is there any other method that I can use from Pl/sql ?
    Is it possible thru XML ?
    PLs let me know in details .
    regards
    SHUBH

    You need to have an Oracle Apache Server installed. It can be on any platform that has connectivity to the Oracle Server. Preferably on the same server as Oracle itself.
    The Apache Server is installed in its ORACLE_HOME/Apache/Apache. It should have been configured by the installer. All you need to do is to create a DaD (Database Access Descriptor) for MOD_PLSQL. This is a custom Apache Module that provides direct access to PL/SQL via OCI. DaDs are defined in the ORACLE_HOME/Apache/modplsql/conf directory. There are README files, sample files and a dads.conf file in which you need to define a URL to assign as the service for your database, the Oracle username and password to use to logon, and the database connection details (e.g. TNS alias).
    The Apache Server needs to be restarted for the changes to take effect (using either opmnctl or apachectl).
    Let's say the URL path defined is /mydatabase. When Apache receives a URL that starts with /mydatabase, it passes it to MOD_PLSQL. MOD_PLSQL looks in the dads.conf for the database to connect to. The rest of the URL contains the PL/SQL package or function to call, e.g.
    /mydocuments/scott.p123.procABC&emp_id=123
    Where procedure procABC is called in packahe p123 in the Scott Schema. The variable EMP_ID is passed with value 123. Thus the procABC definition will look as follows in the package:
    procedure procABC( emp_id number ) is
    begin
      .. code..
    end.;This proc can write HTML data - i.e. dynamically create a HTML response page. Or it can create an image or any other Mime type that the browser can handle.
    Oracle provides a bunch of PL/SQL packages for that. E.g. HTP and OWA packages.
    This in a nutshell is how MOD_PLSQL is used to allow a web browser URL to be passed directly to a PL/SQL procedure.
    The details are under Oracle Application Server PL/SQL (http://download-west.oracle.com/docs/cd/B14099_12/web.htm). Two manuals are applicable:
    * mod_plsql User's Guide
    * Web Toolkit Reference
    It is not complex to use. In fact, the easiest to get all this going is to install HTMLDB 2. Download the Oracle 10G Companion CD for your platform (even if you're running 9.2). Install HTMLDB (this will be in a seperate ORACLE_HOME and will not touch your existing Oracle installation). This will install the latest Apache and MOD_PLSQL software from Oracle. Also HTMLDB is built entirely on MOD_PLSQL and with PL/SQL procedures - and serves as Microsof Access type web interface for developing and deploying web applications on Oracle using PL/SQL. Very powerful and flexible and very easy to use.

  • Linking PL\SQL procedure as Concurrent Process

    Hi.
    I'm link PL-proc as concurrent process, and it runs without any
    errors.
    Now I need also run it as standart report, but can't generate
    output file to store any words to.
    help.
    mailto: [email protected]

    Thanks for your response.
    I am writing a BPEL PM process for inserting AP Invoices by inserting data into the interface tables, and then executing the corresponding concurrent program (APXIIMPT). I would like to trap any errors and send them back to the BPEL process.
    One suggestion on how to do this is to write a pl/sql procedure which inserts the data, executes the concurrent program, collects any error messages, and passes them back via OUT parameters. Such a procedure could be called using an adapter from BPEL PM.
    So the issue for this forum is how to make the single pl/sql procedure wait for completion of the concurrent process.
    Alternatively, is there a business event raised when the concurrent process completes?

  • Execute Dynamic SQL statement using procedure builder

    i want to execute a dynamic SQL statment using procedure builder not using forms
    because my statement depending on a variable table name
    i know that i can do that from forms using
    FORMS_DDL('SQL_STAT');
    but i wanna to use the procedure builder
    which function i should use and how?
    please explain in example if you don't mind.
    thanks

    Hi,
    You can very well use DBMS_SQL Package supplied by Oracle for doing this.
    Search for DBMS_SQL in OTN. You will get all info regarding this.
    Regards.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by itslul:
    i want to execute a dynamic SQL statment using procedure builder not using forms
    because my statement depending on a variable table name
    i know that i can do that from forms using
    FORMS_DDL('SQL_STAT');
    but i wanna to use the procedure builder
    which function i should use and how?
    please explain in example if you don't mind.
    thanks<HR></BLOCKQUOTE>
    null

Maybe you are looking for

  • MC.A,MC.B,MB5B,MB58 How to make it usefull for Canadians?

    Hi, We need an AUM option in selection screen & Output of MB5B. Users can know what was available in stock on a prior day when trying to re-concile inventory? Is there any Standard setting to do this kind of things or will it be possible only with Z

  • Can I use an iPad and a ipad2 with the same iTunes in my computer? I want to use both

    Can I use an iPad and a ipad2 with the same iTunes in my computer? I want to use both. Want to give one to wife.do I need to open a new iTunes account for her?

  • How to refer a column value of a single row in conditional column display?

    Hello, does anybody have an idea, how i can refer a column value of a single row in conditional display of a column? So my idea is, that a report has a column, which value is only displayed, when another column value of this row has a specific value.

  • Soa suite 11.1.1.4 & Grid 12C

    Periodically in Grid 12C and Grid 11 we have got database soainfra workload and we have find it that this is becouse of very strange select SELECT COUNT(*) FROM CUBE_INSTANCE ci WHERE ci.COMPONENTTYPE = :1 AND ci.STATE IN (6, 10) and we receive about

  • Interactive Reporting-Importing jar files

    Hello Experts, We have Hyperion Interactive reporting 8.3 installed and I am trying to implement user level restrictions to access the Brio reports, using a dashboard section. We already have a table tab_user where the login_id and password are store