Create a stored proc, not replace it

We have a number of stored procedures that our clients can customize. We would like to develop a general method of scripting this procs such that if the stored procedure is not present, it will create it but if it is not present, it will leave it alone. We really want to be able to do this without the users seeing any error messages.

I misstated my question. Let me try again: We have a number of stored procedures that our clients can customize. We would like to develop a general method of scripting this procs such that if the stored procedure is not present, it will create it but if it is present, it will leave it alone. We really want to be able to do this without the users seeing any error messages.

Similar Messages

  • Stored Procs not migrating to Oracle.

    I am using Oracle 8.1.5 work bench version 2.0.2.0.0. using SQLSERVER plug-in.
    I am able to successfully capture the source database from SQLSERVER. After creating the Oracle Model the Oracle Model tab is not showing all the user objects (tables, proc etc). But when I generate the Oracle database I see all the tables/indexes and data. The problem is it did not create my stored procedures.
    Can we use the work bench to migrate Stored procedures from SQLSERVER to Oracle ?
    Stored Procedures are not migrating to ORacle.
    Help is appreciated.
    -Ramesh.

    Are you seeing any errors.
    The Workbench will migrate stored procedures usually they are migrated to the 'sa' user in Oracle.
    Please contact [email protected] if you have any more issues.
    Regards
    John

  • Oracle stored proc problem

    HI, I have created a stored proc in oracle similar below:
    CREATE OR REPLACE PACKAGE PACK_REFCURSOR_NHM_TRANSACTION AS
    TYPE TRANS_TableRows IS REF CURSOR
    RETURN NHM_TRANSACTION%ROWTYPE;
    PROCEDURE REFCUR_NHM_TRANSACTION (
    IN_sTMPACC IN string,
    IN_sITEM_TYPES IN string,
    OUT_TRANS OUT TRANS_TableRows);
    END PACK_REFCURSOR_NHM_TRANSACTION ;
    -- the above works fine
    --but this one below has the error when
    CREATE OR REPLACE PACKAGE BODY PACK_REFCURSOR_NHM_TRANSACTION
    AS
    PROCEDURE REFCUR_NHM_TRANSACTION (
    IN_sTMPACC IN string,
    IN_sITEM_TYPES IN string,
    OUT_TRANS OUT TRANS_TableRows) IS
    BEGIN
    OPEN OUT_TRANS FOR
    SELECT T.TRANSACTION_ID, T.TRANSACTION_TYPE,
    T.TRANSACTION_DATE, T.TRANSACTION_TIME,
    T.ITEM_CODE, 0 OE_DETAIL_ID,
    T.QUANTITY, T.LIST_PRICE, T.DISCOUNT, T.SALE_PRICE,
    T.GST_AMOUNT, 'I'INSURER_TYPE
    FROM NHM_TRANSACTION T
    WHERE DISPENSED_FLG = 'Y'
    AND T.ACCOUNT_ID = IN_sTMPACC
    AND T.TRANSACTION_TYPE IN ('01','02', '09')
    AND NVL(T.STATUS,'F') != 'C'
    AND T.BILLED_FLG = 'N'
    AND T.ITEM_TYPE IN (IN_sITEM_TYPES)
    AND T.BILL_ITEM_FLG = 'Y'
    UNION ALL
    SELECT T.OE_TRANSACTION_ID TRANSACTION_ID, TRANSACTION_TYPE,
    T.TRANSACTION_DATE,
    T.TRANSACTION_TIME, NVL(T.ITEM_CODE,T.PACKAGE_CODE)
    ITEM_CODE, T.OE_DETAIL_ID,
    T.QUANTITY, T.LIST_PRICE, T.DISCOUNT, T.SALE_PRICE,
    T.GST_AMOUNT, 'S' INSURER_TYPE
    FROM NHC_OE_TRANSACTION T, NHC_MASTER_ITEM M, NHM_PACKAGE P
    WHERE T.ACCOUNT_ID = IN_sTMPACC
    AND T.ITEM_CODE = M.ITEM_CODE(+)
    AND T.PACKAGE_CODE = P.PACKAGE_CODE(+)
    AND (DECODE(T.ITEM_CODE,NULL,P.BILL_OPTION,M.BILL_OPTION) in
    ('P','O','F'))
    AND NVL(T.STATUS,'F') != 'C'
    AND T.BILLED_FLG = 'N'
    AND ((T.TRANSACTION_TYPE = '09' AND STATUS IN ('P','R'))
    OR T.TRANSACTION_TYPE IN ('01','02','11','12', '10'))
    AND T.BILL_ITEM_FLG = 'Y'
    AND T.ITEM_TYPE IN (IN_sITEM_TYPES) ;
    END REFCUR_NHM_TRANSACTION ;
    END PACK_REFCURSOR_NHM_TRANSACTION ;
    --this gives error: PLS-00382: expression is of wrong type
    but when i tried to change the query similar to this:
    OPEN OUT_TRANS FOR
    SELECT T.*
    FROM NHM_TRANSACTION T
    WHERE DISPENSED_FLG = 'Y'
    AND T.ACCOUNT_ID = IN_sTMPACC
    AND T.TRANSACTION_TYPE IN ('01','02', '09')
    AND NVL(T.STATUS,'F') != 'C'
    AND T.BILLED_FLG = 'N'
    AND T.ITEM_TYPE IN (IN_sITEM_TYPES)
    AND T.BILL_ITEM_FLG = 'Y' ;
    --that worked fine. what i found out is the proc doesn't seem
    to work with complicated queries. instead it works only in
    something similar to SELECT T.*? and not when individual fields are
    extracted? I can't understand why? can anyone help me with this>
    thanks.

    I think what is hapenning is that you are declaring the
    reference cursor in your package spec as a "strong" type as a
    rowtype of table NHM_TRANSACTION. However, in your OPEN FOR SELECT
    statement, you are selecting columns that do not exist in the the
    NHM_TRANSACTION table, such as 0 OE_DETAIL_ID, 'I'INSURER_TYPE,
    etc.
    You would be much better off to declare your reference cursor
    as a "weak" type so that your OPEN FOR SELECT statement actually
    defines the return structure:
    TYPE TRANS_TableRows
    IS REF CURSOR;
    In other words, leave off the RETURN NHM_TRANSACTION%ROWTYPE
    in your ref cursor declaration, and you would probably be OK
    (assuming, of course, that all of the columns selected in your
    UNION statements are like data types).
    Phil

  • Help creating a stored procedure

    I have a query that is going to run many, many times per day, potentially hundreds of thousands so I want to make sure it's as quick as possible
    The purpose is to take a compiled IP number, look it up and relate it back to the country based on data in the table for current IP/countries
    There are currently 113,536 records in the country table, It's typically taking around 4ms to 5ms, so it's not exactly slow, but as the use of this particular lookup is going to increase significantly I'd like to make sure I have it as fast as possible.
    Here's the current code:
    <CFSET ipnumber = (#listgetat(remote_addr,1,'.')# *256*256*256) +  (#listgetat(remote_addr,2,'.')# *256*256) + (#listgetat(remote_addr,3,'.')#  *256) + #listgetat(remote_addr,4,'.')#>
    <CFQUERY name="GetCountry" DATASOURCE="#datasource#">
        SELECT TOP 1(countryshort) as countryshort
        FROM #ipcountry#
        WHERE ipfrom <= #ipnumber# and ipto >= #ipnumber#
    </CFQUERY>
    The first thought is to try to create a stored proc to see if that generates any performance gain, I've search and read over several documents on setting one up, but I have to admit, I just can't quite grasp it.
    I'm wondering if anybody would be kind enough to stick this query into a stored proc for me and let me know what CF code I need to execute it and read the result.
    Once I see this done I am sure I'll be able to push forward from there on my own in the future
    Thanks
    Mark

    JR \"Bob\" Dobbs wrote:
    Bear in mind that database servers, such as Microsoft SQL Server, will cache the execution plan for parameterized SQL queries which will result in performance gains similar to use of a stored procedure. 
    You might try using CFQUERYPARAM in your queries.  This is also recommended to help prevent SQL injection attacks.
    You might also create indexes on the ipfrom column on your table.
    Agreed. Just wrapping a query in a stored procedures does not mean it is going to run faster. Look at the table's indexes and examine the execution plan to see how it can be improved. And you really should be using cfqueryparam in all of your queries. Not just for performance, but because you are risking sql injection attacks without it.
    HiTopp wrote
    EXEC sp_executesql @sql,
    Since the table name is hard coded, there really is not a need for dynamic sql in this query.
    Message was edited by: -==cfSearching==-

  • Stored proc to accept parameters at prompt

    How do you create a stored proc in SQL so that when run in desk you can input parameters?
    I have a simple stored proc but when I create in deski always get an error saying that it expects '@DateStart'.
    here is the sproc ive used:
    CREATE  Procedure [dbo].[sp_redempt](@DateStart Datetime,@DateEnd Datetime)  AS  SELECT *
    FROM redempt             
    WHERE planners.office = 'abc'
    AND ProcessDate >= @DateStart and ProcessDate <= @DateEnd
    -- running it in SQL ent mgr
    exec dbo.sp_NCLredempt '01 february 2011', '28 february 2011';
    can you help with the syntax I use or specify a simple stored proc using the adventure works DB that will prompt for a parameter in deski?
    BO Edge XI 3.0
    App server: MS Win2003 Server Standard SP2
    DB server: MS Win2003 Server Standard SP2
    DB on DB server: SQL 2005

    Hi,
    this is not the best place to post this but you may try the SQL Server forums from Microsoft.
    Might  be an issue in your parameter type definition. What you can do is in
    SQL Server Management Studio, go to the stored procedures (programability) under AdventureWorks database, and Right click -> Script Stored Procedure As -> CREATE to -> New Query Editor Window. Then there you will able to see the syntax how it's used.
    You can run one sample procedure in Deski. In Designer create a secure connection to AdventureWorks database. Then create a Deski report based on the "uspGetManagerEmployees" procedure and you can use MnagerID  6 when you run it. You will get results.

  • Oracle xe newbie trying to create a stored procedure.

    hi there.
    i just installed oracle xe and have created a table with over 100 fields. (they all need to be there, can't make it smaller).
    i've also created an audit table that keeps track of who signed in and the fields that they've changed.
    i was thinking of creating triggers that will keep track of this information and write it out to the audit table.
    in order to accomplish the above, i'm assuming that it's best to create stored procedures that will do the update/insert/deletes to the main data table. is that correct?
    since i have my main table already created, is there any easy way to create a stored proc from it? i'd like to be able to resuse the fields names etc without having to retype everything in.
    i apologize if my question is poorly worded or very basic!
    any assistance would be appreciated.

    Hi,
    If you're always going to do DML (INSERT, UPDATE and DELETE) using your own procedures, then you doin't absolutely need a trigger. Either one can INSERT into the audit table.
    Unless you have other reasons for wanting to use DML procedures, it's probably simpler to use only a trigger.
    I don't know of any built-in tools that write procedures for you.
    You can get a list of columns from
    SELECT  column_name
    FROM    user_tab_cols
    WHERE   table_name   = 'TABLE_X';and use a text editor to do what you need to. You might adapt the query above to do some (if not all) of the editing for you.
    For example, if you want the list indented, with a comma after each column name:
    SELECT  '        ' || column_name || ','
    FROM    user_tab_cols
    WHERE   table_name   = 'TABLE_X';

  • Granting permissions for JAVA STORED PROCS

    If I imported a java class file as user test and created a stored proc, how can I grant permissions to all the users in the DB? Do I have to grant permissions on JAVA CLASS itself when I load it or Do I have to grant permissions on the Stored proc or Both?
    Any help will be greatly appreciated.
    null

    Note: I can manually add the file with the command -
    loadjava -v -user user/password@sid sqljdbc.jar (pg 261 in Oracle Database Programming using Java and Web Services by Kuassi Mensah)
    Which is what I have done to get this to work. But the question still stands - How do I get the sqljdbc.jar file to be loaded when deployed using the deployment descriptor?
    Thanks, Ken

  • Replacing null values in optional prompts and passing to stored proc

    Hi,
    I want to create a stored procedure with OPTIONAL prompts. When user does not pass a value for that parameter, I want to set the value for that parameter by selecting from a column in table then I WANT to use that paramvalue in sql within cursor of stored proc. How do I do that?
    In short, I want to do the following Here is the psuedocode:
    Create or replace procedure test (param IN varchar2 DEFAULT NULL)
    As
    var_param varchar(20);
    select param into var_param from dual;
    If param is null then select custid from table1 else var_param
    OPen ref_cursor for
    Select xyz from table2
    where fyy = var_para
    Can someone let me know the syntax on how to do this in stored proc?
    Regards,
    hena
    Edited by: 904385 on Dec 25, 2011 7:04 AM

    Hi,
    Merry Christmas, and welcome to the forum!
    Here's one way to do what you requested:
    CREATE OR REPLACE PROCEDURE     test
    (    param     IN     VARCHAR2     DEFAULT     NULL
    AS
        ref_cursor     SYS_REFCURSOR;
        var_param     VARCHAR2 (20)     := param;
    BEGIN
        IF  var_param  IS NULL
        THEN
         SELECT     custid
         INTO     var_param
         FROM     table1
    --     WHERE     ...     -- Unless table1 has only 1 row
        END IF;
        OPEN  ref_cursor
        FOR   SELECT  xyz
           FROM       table2
           WHERE       fyy     = var_param;
    END     test;Whatever you're trying to do, this is probably niot the simplest or most efficient way to do it.

  • Error creating Crystal Report using Stored Proc Universe

    Hi,
    I have created a stored procedure Universe, using the new feature available in XI R3.
    This connects to an Oracle database, executing a PL/SQL procedure returning ref cursor.
    I have created a WebI report using this Universe, which works fine and functions as expected.
    So there are no problems with either my Oracle stored proc or the Universe.
    However, I would like to create a Crystal report (2008) using the same Universe.
    I can create the report ok - using the SP Universe.
    When I attempt to refresh the data I get an error:
    Failed to retrieve data from the database.
    Details: ORA-06550: line 1, column 7:
    PLS-00103: Encountered the symbol "." when expecting one of the following:
    begin case declare etc etc
    .................................My Procedure ...................
    CREATE OR REPLACE PROCEDURE BIADM.Bo_Test_Report_R
    (Deposit_Cursor IN OUT SYS_REFCURSOR)
    IS
    BEGIN
    OPEN Deposit_Cursor FOR
    SELECT DISTINCT foracid "A/C"
    , acct_name "A/C Name", acct_opn_date "OP/Date", schm_code "SchmCode"
    FROM gam@finrpt
    WHERE acct_cls_flg ='N'
    AND foracid ='2252020145001';
    --AND cust_id ='CB2020145'
    END Bo_Test_Report_R;
    Please Give me solution as early as possible.
    Masud Iqubal

    Moved to Universe Design forum.

  • Error committing transaction in Stored Proc call - prev solns not working

    Hi All,
    Our process invokes a DB adapter to fetch the response from the table for our request via Stored Procedure call but facing the below issue. Its a synchronous process. Stored Procedure is present inside the Package and we are calling the Stored procedure using that Package.
    What we did is created a DB datasource of XA type and tried to call the Stored Proc but it was giving a problem “ORA-24777: use of non-migratable database link not allowed” and hence according to this thread Using DB links in Stored proc call in DB adapter 11G SOA we have modified the datasource as non-XA type.
    While we do that, we could see that Stored Proc is called and the response is present in the reply payload inside the flow trace. But the instance is getting faulted and the error is “Error committing transaction:; nested exception is: javax.transaction.xa.XAException: JDBC driver does not support XA, hence cannot be a participant in two-phase commit. To force this participation, set the GlobalTransactionsProtocol attribute to LoggingLastResource (recommended) or EmulateTwoPhaseCommit for the Data Source.”
    We have tried the properties of global transaction support as one phase commit, emulate two phase commit and logging last resource but error remains the same.
    Database from which we are getting the response is of version "Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production". Will the database link error arises even if we connect to Oracle Database?
    Please could you advise me solutions to resolve this issue.
    Thanks in advance.

    You are using Non-XA because it means (among all others) that the commit issue can be handle by the DB as well.
    The Emulate Two Phase property imitating the XA transaction in that way, that it allows you to manage a local db transaction.
    You can stay with XA connection, but then you will have to use "AUTONOMOUS_TRANSACTION pragma" in your procedure.
    Enter the following link to find good explanation about all of your questions:
    http://docs.oracle.com/cd/E15523_01/integration.1111/e10231/adptr_db.htm#BGBIHCIJ
    Arik

  • Java Stored Proc, passing BLOB, not stored in a table.

    I have checked this article, and found it will not suit my needs.
    http://otn.oracle.com/sample_code/tech/java/codesnippet/jdbc/lob/LobToSP.html
    I have even looked at the 4 articles on the "JSP How-To Documents" page.
    I need to pass in a BLOB to my Java Stored proc, but not store it in the DB - My java code manipulates the LOB and it should never go into the DB. I know I could do the normal store, get an id and pass to my JSP... but that is a poor way to implement this. Are there any code samples on how to do this please ?
    D

    WOW! That seems like a very bad design.
    Is it just the compiler that has the problem or is the PL/SQL code inside the stored procedure also affected? For example, if I'm doing an
    EXECUTE IMMEDIATE 'insert ... INTO OtherSchema.tblTest';
    Is this going to be a problem?
    The problem with granting the access explicitly is the Archive Schema, which has the stored procedure that is failing, might not exist at the time when the other schemas are created. Therefore, there is no user to grant permissions to. I solved this by granting permissions to the role and when the archive user is created it is assigned that role.
    This seems like the proper way to solve this problem.

  • "Object reference not set to an instance of an object" on stored proc.

    So, I use VS 2005 with Oracle 11 rel. 11.1.06.0.
    I installed ODP for .net (ODAC 11.10621).
    but, when I call some stored proc wich was working previously, when calling stored proc:
    oProcAppendWebFolder2.Parameters("p_siteid").Value = vSiteID
    oProcAppendWebFolder2.Parameters("p_webfoldername").Value = vWebFolderName
    oProcAppendWebFolder2.Parameters("p_includestartpage").Value = IIf(vIncludeStartPage, "Y", "N")
    oProcAppendWebFolder2.ExecuteNonQuery()
    I often got message:
    Object reference not set to an instance of an object. (I got this message when calling ExecuteNonQuery)
    proc is simple:
    FUNCTION AppendWebFolder(p_SiteID IN NUMBER, p_WebFolderName IN VARCHAR2, p_includeStartPage IN char) RETURN NUMBER AS
    v_errcode               PLS_INTEGER :=0;
    v_retval                PLS_INTEGER :=0;
    BEGIN
    UPDATE DBSEQUENCES SET VALUE=NVL(VALUE,0)+1
         WHERE seqid=4
         RETURNING VALUE INTO v_retval;
    INSERT INTO WEBFOLDERS(webfolderid, siteid, webfoldername, include_startpage)
         VALUES (v_retval, p_siteid, p_webfoldername, p_includestartpage);
         RETURN (v_retval);
    EXCEPTION
    WHEN OTHERS THEN
    v_errcode := SQLCODE;
         g_errm := SUBSTR(SQLERRM,1,LONG_VARCHAR);
         Appenderror(g_errm, 0, class_name, 'AppendWebFolder', 'siteid: ' || p_siteid || ' webfoldername: ' || p_webfoldername,0);                                              
    RETURN (v_errcode);
    END AppendWebFolder;
    procedure call declaratiion in .net is:
              oProcAppendWebFolder2 = New OracleCommand("appendwebfolder", oConn)
              oProcAppendWebFolder2.CommandType = CommandType.StoredProcedure
              oProcAppendWebFolder2.Parameters.Add("retval", OracleDbType.Int32, ParameterDirection.ReturnValue)
              oProcAppendWebFolder2.Parameters.Add("p_siteid", OracleDbType.Int32, ParameterDirection.Input)
              oProcAppendWebFolder2.Parameters.Add("p_webfoldername", OracleDbType.Varchar2, ParameterDirection.Input)
              oProcAppendWebFolder2.Parameters.Add("p_includestartpage", OracleDbType.Char, 1, "", ParameterDirection.Input)
              oProcAppendWebFolder2.Prepare()
    note that such error was not appearing when I used oracle XE
    Edited by: user465054 on Dec 17, 2008 9:47 AM

    If it is a web application, I would suggest using HTTP sessions to store the ReportDocument object.
    See this KB for reference code on how to use session.
    http://search.sap.com/ui/notes?id=0001985571&boj=/sap/bc/bsp/spn/scn_bosap/notes.do?access=69765F6D6F64653D3939382669765F7361706E6F7465735F6E756D6265723D30303031393835353731&ssocompatible
    If that does not resolve the issue, provide below info.
    - Version of CR with patch level.
    - Version of VS
    - Win or web app?
    - What happens when you refresh the report in viewer using refresh button?
    Thanks,
    Bhushan

  • Stored Proc to create .csv file from table

    Hi all,
    I have a table with 4 columns and 10 rows. Now I need a stored proc to create a .csv file from the table data. Here the scripts to create a table and insert the row's.
    Create table emp(emp_id number(10), emp_name varchar2(20), department varchar2(20), salary number(10));
    Insert into emp values ('1','AAAAA','SALES','10000');
    Insert into emp values ('2','BBBBB','MARKETING','8000');
    Insert into emp values ('3','CCCCC','SALES','12000');
    Insert into emp values ('4','DDDDD','FINANCE','10000');
    Insert into emp values ('5','EEEEE','SALES','11000');
    Insert into emp values ('6','FFFFF','MANAGER','90000');
    Insert into emp values ('7','GGGGG','SALES','12000');
    Insert into emp values ('8','HHHHH','FINANCE','14000');
    Insert into emp values ('9','IIIII','SALES','20000');
    Insert into emp values ('10','JJJJJ','FINANCE','21000');
    commit;
    Now I need a stored proc to create a .csv file in my local location. Please let me know If you need any other details....

    Some pointers:
    http://www.oracle-base.com/articles/9i/GeneratingCSVFiles.php
    http://tkyte.blogspot.com/2009/10/httpasktomoraclecomtkyteflat.html
    also, doing a search on this forum or http://asktom.oracle.com will give you many clues.
    .csv file in my local location.What is your 'local location'?
    A client machine? The database server machine?
    What database version are you using?
    (the result of: select * from v$version; )

  • Creating a java stored proc in jdev

    Does anyone have a quick ref guide to creating a java stored proc in jdev? I am missing early steps to correctly setup the project.
    Thanks in advance.

    Assuming you are using ADF BC, you can try something like the following on your Application Module:
    /* our java method to call a stored procedure to send email */
    public void sendEmail(String fromEmailAddress, String toEmailAddress,
    String subject, String body1, String body2,
    String body3, String body4, String body5) {
    Object[] parms =
    { fromEmailAddress, toEmailAddress, subject, body1, body2, body3,
    body4, body5 };
    callStoredProcedure("MSKCC.proc_send_mail(?,?,?,?,?,?,?,?)", parms);
    protected void callStoredProcedure(String stmt, Object[] bindVars) {
    PreparedStatement st = null;
    try {
    // 1. Create a JDBC PreparedStatement for
    st =
    getDBTransaction().createPreparedStatement("begin " + stmt + ";end;", 0);
    if (bindVars != null) {
    // 2. Loop over values for the bind variables passed in, if any
    for (int z = 0; z < bindVars.length; z++) {
    // 3. Set the value of each bind variable in the statement
    st.setObject(z + 1, bindVars[z]);
    // 4. Execute the statement
    st.executeUpdate();
    } catch (SQLException e) {
    throw new JboException(e);
    } finally {
    if (st != null) {
    try {
    // 5. Close the statement
    st.close();
    } catch (SQLException e) {
    }

  • Stored Proc to create XML (using nested cursors)?

    From previous posts and from the
    documentation for XSQL I have
    discovered the joys of the
    CURSOR operator to create
    nested tables: i.e:
    SELECT dname,
    CURSOR (SELECT ename, sale....) as employees
    FROM dept
    However, I can not find any other
    documentation on how to program (PL/SQL)
    this functionality.
    I would like to use XSQL as
    it is exactly what I need, but
    I can not because my client does
    not want to use Java and they
    require IIS, but do not want to
    use JRUN, etc... (I tried this
    first).
    Since I only need to do an XML
    dump to a variable for processing
    by other parts of the program, life
    is fairly easy. I have already done
    this using Microsoft Data Shapes in
    VB (client does not want VC++ either...)
    However this was slow.
    In order to speed things up I want to
    create a stored procedure in Oracle to
    dump out the XML hierarchy to a variable given
    an SQLQuery input. If I use
    nested CURSORS this should be very easy.
    I would like to create a recursive PL/SQL
    function to handle this, but I have the
    following questions:
    1) I want the function to have an
    input of an open cursor,
    My plan is to detect the column
    type, when it is a nested cursor
    I would recurse with the open cursor
    to handle the nested cursor.
    2) I can not find a reference on to
    programatically handle "untyped collections
    based on an SQL statement" in anything
    other than the XSQL documentation.
    I am assuming that I can detect the
    column type of nested cursor somehow
    and then recurse on this to handle
    dump the recordset to an XML tagset.
    But I wuold like to find some documentation
    or examples on the calls, type statements,
    etc....

    I think the CURSOR() thing is an invention of the XSQL Servlet; not available elsewhere.
    You can accomplish nesting via user defined types and object views, using the "cast(multiset())" syntax, which is not documented particularly well either. This does require some setup, and so is not particularly dynamic.

Maybe you are looking for

  • I keep getting the alert window that says, "the url is not valid and cannot be loaded"

    My computer is "online" but whenever I try to get on a website, the "Alert" box pops up in the middle of my screen saying, "the URL is not valid and cannot be loaded". This is only happening on Mozilla Firefox, I am able to use Internet Explorer with

  • Using wifi and bluetooth at the same time

    Hello, I have a MacBook Pro bought in 2014 and since the latest updates of OS X (10.10.2) I very often face a drop on wifi efficiency when bluetooth is as well enable on the laptop. Even worse, it sometimes becomes completely frozen; as soon as I dis

  • Problem with Zen Micro headphone j

    The music played is quieter and individual sounds such as vocals cannot be heard unless i push down on the headphones. I've heard this is a common problem for Creative mp3 players which is unfortunate because i have never had any other problem. My wa

  • STS: Why manager can still send for approval?

    Hi Folks, Could you kindly help me on this matter ? Why on the STS, I'm working on it now, the manager (the position is highest) stll can send for approval ? In my opinion, he should only be able to approve / reject. If I check under that user ID, it

  • Problem in IDOC generation

    Hi Freinds, I am facing some problem in IDOC creation . We have used MATMAS03 as basic  type. And activated the chang poineter. But for some materials it is not generating IDOC. When we saw table BDCPS with the change pointer number from BDCP it is s