Queryable Function or Procedure for a Chart?

I have a complex query that I use to generate different pie charts in APEX.
All that changes from one chart to another is the column that is being queried (i.e. OS, Platform, etc)
For maintainability I would rather have this be a single query w/ a method to substitute the value being queried upon.
Any suggestions for doing so? Is there some form of queryable function or procedure?
[Because of the way I list multiple charts per page, I would not want to just have a single chart for all values.]
Here is a sample query.
select link, os, decode(:P421_COUNT_BY,'CPUs',percent_cpu,percent) value
from (
select 'f?p=&FLOW_ID.:6:&SESSION.::::P1_OS:'||i.os link, i.os,
count(*) num,
round(count(*)*100/(sum(count(*)) over())) percent,
sum(nodes*nvl(cores,1)*nvl(cpus_per_node,1)) cpus,
round(sum(nodes*nvl(cores,1)*nvl(cpus_per_node,1))*100/(sum(sum(nodes*nvl(cores,1)*nvl(cpus_per_node,1))) over())) percent_cpu
from customers c, country_region_mapping m, systems i, oracle_versions ov
where c.country = m.country
and c.customer_id = i.customer_id
and ov.version(+)=i.oracle_version
and (:P421_SHOW='Yes' or (i.system_status='Production'))
and (:P421_NODES='BOTH' or :P421_NODES is null or (:P421_NODES='SINGLE' and i.nodes=1) or (:P421_NODES='RAC' and i.nodes>=2))
and (i.os=:P421_OS or :P421_OS is null or :P421_OS='All')
and (m.country=:P421_COUNTRY or :P421_COUNTRY is null or :P421_COUNTRY='All')
and (m.region=:P421_REGION or :P421_REGION is null or :P421_REGION ='All')
and (c.industry=:P421_INDUSTRY or :P421_INDUSTRY is null or :P421_INDUSTRY='All')
and (ov.major=:P421_ORACLE_RELEASE or :P421_ORACLE_RELEASE is null or :P421_ORACLE_RELEASE='All')
and i.os is not null
and i.os not in ('unknown','Not Sure')
group by os)
where decode(:P421_COUNT_BY,'CPUs',percent_cpu,percent) >= 1
order by decode(:P421_COUNT_BY,'CPUs',percent_cpu,percent) desc

Hi Erik,
I wrote a blog post about generic charting a while back that you might (or might not!) find useful -
http://jes.blogs.shellprompt.net/2006/05/25/generic-charting-in-application-express/
Hope this helps,
John.

Similar Messages

  • Grants on Function and Procedure for Network user

    Hi all,
    On my computer (user1), i created one function ( fun1 ). In the network, another user(user2) is there. I want to give execute or alter privilege on this function to user2. I created TNS name for user2 in my TNSNAMES.ORA.
    what is the statement for this.
    Thanks in advance,
    Pal

    I'm not sure I follow...
    - You create TNS aliases for databases, not for users.
    - A function can only be executed by a user connected to the database.
    If you have databases A & B, you can create a database link between them. If user1 is a user on database A that owns a function, and user2 is a user on database B, you could create a new user, user3 in database A, create a database link from B to A that connects to A as user3, grant user3 in database A access to user1's function, and grant user2 in database B access to the database link.
    Justin

  • Query for getting all function and procedure inside the packages

    hi All
    Please provide me Query for getting all function and procedure inside the packages
    thanks

    As Todd said, you can use user_arguments data dictionary or you can join user_objects and user_procedures like below to get the name of the packaged function and procedure names.
    If you are looking for the packaged procedures and functions source then use user_source data dictionary
    select a.object_name,a.procedure_name from user_procedures a,
                  user_objects b
    where a.object_name is not null
    and a.procedure_name is not null
    and b.object_type='PACKAGE'        
    and a.object_name=b.object_name

  • Need procedure for the function

    Hi
    Can any one create a procedure
    for the following
    Following is a function i need a procedure
    which basically Converts the values in the a Column to no of rows
    Example : Column Name: USA; Canada; Japan;
    in to 3 rows : USA
    Canada
    Japan
    create
    or replace function f_get_row_vals(V_column_value VARCHAR2)
    return T_LIST_OF_VALS PIPELINED
    as
    n_str_length NUMBER := 0;
    N_START_CHAR NUMBER := 1;
    N_END_CHAR NUMBER := 0;
    n_counter NUMBER := 1;
    v_value VARCHAR2(50) := NULL;
    begin
    IF V_column_value IS NULL
    THEN
    RETURN;
    END IF;
    n_str_length := LENGTH(V_column_value);
    LOOP
    N_END_CHAR := INSTR(V_column_value,';',1,n_counter);
    IF N_END_CHAR = 0
    THEN
    v_value := SUBSTR(V_column_value, N_START_CHAR, n_str_length - N_START_CHAR + 1);
    ELSE
    v_value := SUBSTR(V_column_value, N_START_CHAR, N_END_CHAR-N_START_CHAR);
    END IF;
    n_counter := n_counter + 1;
    N_START_CHAR := N_END_CHAR + 1;
    pipe row(v_value);
    EXIT WHEN N_END_CHAR = 0 ;
    END LOOP;
    RETURN;
    END;
    Thanks

    This is the procedure they are using previously.
    This procedure is calling the above function. I need like this
    CREATE
    OR REPLACE PROCEDURE P_EXPAND_USER_ACCESS_REV_MART
    IS
    rec_ODS_USER_ACCESS_REV_MART ODS.ODS_USER_ACCESS_REV_MART%ROWTYPE;
    CURSOR c_getrows
    IS
    select * from ODS.ODS_USER_ACCESS_REV_MART;
    BEGIN
    OPEN c_getrows;
    LOOP
    FETCH c_getrows INTO rec_ODS_USER_ACCESS_REV_MART;
    EXIT WHEN c_getrows%NOTFOUND;
    DBMS_OUTPUT.put_line(rec_ODS_USER_ACCESS_REV_MART.wwfo_area);
    DBMS_OUTPUT.put_line(rec_ODS_USER_ACCESS_REV_MART.soln_division);
    INSERT INTO DW_USER_ACCESS_REV_MART
    user_id,
    wwfo_area,
    soln_division
    SELECT rec_ODS_USER_ACCESS_REV_MART.user_id,
    area_tab.column_vaLue,
    soln_tab.column_value
    FROM TABLE(CAST(f_get_row_vals(rec_ODS_USER_ACCESS_REV_MART.wwfo_area)AS T_LIST_OF_VALS) ) area_tab,
    TABLE(CAST(f_get_row_vals(rec_ODS_USER_ACCESS_REV_MART.soln_division)AS T_LIST_OF_VALS)) soln_tab
    END LOOP;
    CLOSE c_getrows;
    COMMIT;
    END;

  • Different Tax base in pricing procedure for a single sales order for different line item material.

    Hi,
    I have a scenario wherein in a sales order, for two different material, the tax base of pricing should get triggered on the basis of sold to party and the material entered at line item level.
    Logic triggers on the basis of Region of Customer & a unique field in the Material Master but problem comes in the calculation of Tax base as the sequence of condition type (from – to)  is already defined in the pricing procedure to pick from a particular step but in second line item the base is different i.e. the sequence of condition types that are maintained in pricing procedure should be different for Tax to calculate differently.
    Kindly suggest if the same can be handled in a single pricing procedure and dynamically taking care of condition type sequence through Alt Cal Base Formula, so far I’ve tried both Alt Cal Formula & Base but it is not working
    Client doesn’t want to go ahead by creating two different orders (through separate Pricing Procedure) for that. They want to have both materials in same order.
    Kindly suggest a suitable way to handle this scenario.
    Regards,
    Aashika Agarwal

    Hi,
    Click on the ''check availability'' button at item overview and then click on ''One-time delivery'' on the top. This will ensure that you will have only one delivery for whatever quantity is confirmed on that date.
    If you want to apply this rule for all orders across a sales area, then you can do the below configuration step :
    SPRO->sales and distribution->basic functions->availability check with ATP logic->Define default settings-> Here in avail. checking rule select A (one time delivery). This will ensure that all orders created for a particular sales area will have only one delivery.
    Hope this helps.
    Regards,
    Palani

  • 2 pricing procedures for the same sales area

    Hi Gurus.,
                  My client requirement is the client requires 2 pricing procedures for the combination of Same sales areaDEocument Pricing procedurecustomer pricing procedure in OVKK
    He doesnt want to use new sales area or new document pricing procedure or new customer pricing procedure,I know that in standard SAP it is not possible.
    Can any of the gurus throw some light on this.Some work around is required here,So can u please say the required changes in Standard functionality.
    Thanks & Regards
    Narayana
    Message was edited by:
            manam narayana
    Message was edited by:
            manam narayana
    Message was edited by:
            manam narayana

    Hi Gurus.,
                   First of all thank you very much for giving me so tremendous response, But my client requirement is,
                  He has one customer and for that customer when raising an order ,for some orders Tax shouldnot caliculate and for some orders Tax should be caliculated,
            For example :  If he gives price 100,Then the base price should be 100,For some orders he  gives price as 130 rs which is inclusive of tax like 110 should be the base price and 20 rs tax should get caliculated
               So i have tried in the pricing procedures and we have standard pricing procedure RVAA01 & RVAB01 ,In which RVAB01 is the price inclusive of tax procedure,We can assighn different pricing procedures if any of the combination in OVKK is changed,But he dont want to change the combination in OVKK.
            So client asks now when he raise an order he decides how the price should be caliculated, i.e the price may be he give price or price inclusive tax,of which the pricing procedure should automatically split the tax and price accordingly,He is asking in the way like when we raise a sales order we should do like a pop up box should appear asking which pricing procedure should be selected,So on selecting the pricing procedure the order should caliculate based on the selected pricing procedure
    Thanks & Regards
    Narayana

  • Step by step procedure for Upgrade to ECC6.0

    Hi,
    I gained a lot from this forum . Can someone please mail me at
    [email protected]
    step by step procedure for upgrade .
    Will award full points for helpful documents..
    With regards,
    Mrinal

    SAP defined a roadmap for upgrade.
    1) Project Preparation
    Analyze the actual situation
    Define the objectives
    Create the project plan
    Carry out organizational preparation for example identify the project team
    2)Upgrade Blueprint
    The system and components affected
    The mapped business processes
    The requirements regarding business data
    3)Upgrade Realization -- In this phase the solution described in the design phase is implemented in a test environment. This creates a pilot system landscape, in which the processes and all their interfaces can be mapped individually and tested on the functional basis.
    4)Final Preparation for Cutover -- Testing, Training, Minimizing upgrade risks, Detailed upgrade planning
    5)Production Cutover and Support
    The production solution upgrade
    Startup of the solutions in the new release
    Post processing activities
    Solving typical problems during the initial operation phase.
    SAP expects at least 2 to 3 months for Upgrade and that again depends on project scope and complexity and various other factors.
    STEPS IN TECHNICAL UPGRADE
    •     Basis Team will do the prepare activities. (UNIX, BASIS, DBA).
    •     Developer need to run the Transaction SPDD which provides the details of SAP Standard Dictionary objects that have been modified by the client. Users need to take a decision to keep the changes or revert back to the SAP Standard Structure. More often decision is to keep the change. This is mandatory activity in upgrade and avoids data loses in new system.
    •     After completing SPDD transaction, we need to run SPAU Transaction to get the list of Standard SAP programs that have been modified.  This activity can be done in phases even after the upgrade. Generally this will be done in same go so that your testing results are consistent and have more confident in upgrade.
    •     Run SPUMG Transaction for Unicode Conversion in non-Unicode system. SPUM4 in 4.6c.
    •     Then we need to move Z/Y Objects.  Need to do Extended programming check, SQL trace, Unit testing, Integration testing, Final testing, Regression Testing, Acceptance Testing etc.,
    The main Category of Objects that needs to be Upgraded is –
    •     Includes
    •     Function Groups / Function Modules
    •     Programs / Reports
    •     OSS Notes
    •     SAP Repository Objects
    •     SAP Data Dictionary Objects
    •     Domains, Data Elements
    •     Tables, Structures and Views
    •     Module Pools, Sub Routine pools
    •     BDC Programs
    •     Print Programs
    •     SAP Scripts, Screens
    •     User Exits
    Also refer to the links -
    http://service.sap.com
    http://solutionbrowser.erp.sap.fmpmedia.com/
    http://help.sap.com/saphelp_nw2004s/helpdata/en/60/d6ba7bceda11d1953a0000e82de14a/content.htm
    http://www.id.unizh.ch/dl/sw/sap/upgrade/Master_Guide_Enh_Package_2005_1.pdf
    Hope this helps you.

  • Function and Procedure

    Hi Friends,
    My Question is : At what time we will use function and Procedure.? How i can prefer it?
    Regards,
    Anu

    Functions are normally used for computations where as procedures
    are normally used for executing business logic.
    there can be many difference between stored procedures and functions
    main are
    1. function can be used in the SQL statements anywhere in the WHERE/HAVING/SELECT section where as Stored procedures cannot be.
    If you have a function in which there are DML statements only then you can not call this function in a SQL query
    for example
    For example, if you have a function that is updating a table, you cannot call that function from a SQL query.
    - select myFunction(field) from sometable; will throw error.
    But you can do it through procedure.
    I hope it is clear

  • Request procedure for migrating PPC 10.4 Server setup to Intel 10.4 Server

    Here's the background: I've got a G5 Xserve running 10.4.11 Server. It's and OD Master, Windows PDC and AFP, NFS & SMB file server for my whole department. We've purchased a new Intel Xserve (prior to Leopard - I'm not ready to go there yet), but I'm uncertain about the procedure for moving the setup from the G5 to the Intel box, keeping everything the same and working. I'm keeping the hostname the same, too.
    What's really unclear (since there's no specific documentation on PPC -> Intel migration) is the order in which to do the OD Replica to Master promotion, the Windows BDC -> PDC promotion and the running of "changeip" to use the original host name on the new machine. I've botched the migration up three times so far, and I'd like to get it right the next time.
    I know there can't be two Windows PDCs running concurrently, so I'm assuming that's the last step, but I'm really having trouble with knowing when to run changeip and whether or not the original machine should be running at the same time while changeip is run. Should the OD Replica be promoted before changeip?
    If anyone's moved the functionality of a PPC 10.4 Server to an Intel 10.4 Server and moved the name of the system along with it, I'd love to hear from you.
    Thanks in advance for your help!

    Here's the background: I've got a G5 Xserve running 10.4.11 Server. It's and OD Master, Windows PDC and AFP, NFS & SMB file server for my whole department. We've purchased a new Intel Xserve (prior to Leopard - I'm not ready to go there yet), but I'm uncertain about the procedure for moving the setup from the G5 to the Intel box, keeping everything the same and working. I'm keeping the hostname the same, too.
    What's really unclear (since there's no specific documentation on PPC -> Intel migration) is the order in which to do the OD Replica to Master promotion, the Windows BDC -> PDC promotion and the running of "changeip" to use the original host name on the new machine. I've botched the migration up three times so far, and I'd like to get it right the next time.
    I know there can't be two Windows PDCs running concurrently, so I'm assuming that's the last step, but I'm really having trouble with knowing when to run changeip and whether or not the original machine should be running at the same time while changeip is run. Should the OD Replica be promoted before changeip?
    If anyone's moved the functionality of a PPC 10.4 Server to an Intel 10.4 Server and moved the name of the system along with it, I'd love to hear from you.
    Thanks in advance for your help!

  • Pricing procedure for service pos

    Hi guys,
    WE have defined two pricing procedures i.e. for domestic and for import.  When we create a service PO, domestic pricing procedure is being populated.  Is this the standard functionality or do we need to use a separate pricing procedure for service POs?  If that is the case, how to do it?
    We are using the same document type and same purchase organisation for purchase order for services and materials
    thanks in advance

    Normaly the std domestic price will work for the service but you have service pricing also,
    for the std service pricing
    SPRO-MM-External service management-Maintain conditon for services
    here you will find the service schema and which will defualt in the service PO
    If want to see the service condtion
    go to PO service tab and click on condition icon at the bottom of the screen and it will show you the service conditon with schema

  • Possibility to register Pre-/Post-Procedures for an SQL Template Handler

    I would appreciate to see the possibility to register pre-/post-procedures for an SQL template handler in ORDS 3.0.
    Why:
    We use Oracle VPD/Row-Level-Security to secure data access. Hence a trigger sets a couple of attributes in the database session context at login time which are then used in static RLS predicates to limit which records the user can see/modify.
    With ORDS 3.0 all sessions are opened under the same technical user (e.g. APEX_REST_PUBLIC_USER), hence all users have the same/no attributes in the session context and could see/modify all data.
    To avoid this situation, I need to set the attributes (e.g. the authenticated user) in the database session context before the actual query/plsql handler is executed.
    Also, resetting the session context after the handler is executed would be good.
    This scenario is in line with scenarios 'One Big Application User' and 'Web-based applications' in http://docs.oracle.com/cd/B28359_01/network.111/b28531/vpd.htm#DBSEG98291.
    Different solution approach:
    Kris suggested to write a PL/SQL handler where the pre-procedure is called before the business logic procedure/query. This is ok for me as long as I modify data and only need to return no or little data.
    As soon as I need to return a lot of data (e.g. select c1, c19, c30 from t1), this approach will force me to write a lot of code in the PL/SQL handler in order to marshal the c1, c19 and c30 to JSON and put it in the HTTP response.
    But this is the beauty of ORDS - I can simply define a template, write a GET SQL Handler 'select c1, c19, c30 from t1'  and have the data available as REST service, without writing any code to write JSON marshaled data in the HTTP response.

    I tried to log the request at Oracle REST Data Services (ORDS) but I could only start a new discussion: Possibility to register Pre-/Post-Procedures for an SQL Template Handler
    As I mentioned there, the PL/SQL handler approach works for me as long as I have no or only little data to send back to the client (e.g. put/post/delete succeeded or an error message why the call failed).
    If I need to return a lot of data from the PL/SQL handler I would need to, as far as I understand, to marshal the data to JSON and write it to the response body in the PL/SQL handler.
    I don't want to do the marshaling, because ORDS does it better.
    However, this works for me:
    I write a pipelined stored procedure that takes as input the attributes I need to set in the session context. I then can reference it in the SQL handler:
    select * from table(my_pipelined_function(:USER, ....)
    Now the JSON/HTTP response is created by ORDS again.
    I still needed to code a couple of lines, but it is way better than duplicating the functionality already existing in ORDS.
    With the hooks it would be perfect because I would not have to write any code (apart from the procedure to set the session context attributes), just configure the REST services in ORDS.

  • How to use type, packages, functions, and procedures in another schema ?

    I have two target schema in one OWB project, such as A and B. In a mapping of A, I would like to use some types, packages, functions, and procedures from B. I have tried the method of synonym as suggested, but I could not find the metadata of these when importing ... The only type of synonym I can import is the synonym for table. Is there a bug for synonym?
    If I cannot use synonym for this issue, is there another way to solve the problem?

    Now, in some instances you will absolutely need to create the second module as Carsten describes, however it should also be noted that you can reference objects in things like Expressions even if you have not loaded up the metadata. It is only when you need strong binding that it becomes neccessary to import objects. For everything else, as long as the reference will resolve at compile-time then you are good to go.
    For example, I have a function in one target schema (S1) and a private synonym to it in another(s2). A mapping in the S2 schema has an expression object that uses the synonym to the function in the expression property for a couple of the output attirbutes. The synonym has not been loaded into metadata - indeed OWB has no knowledge of its existance. But it resolves at compile time so the mapping validates and generates successfully.
    Mike

  • Procedure for multiple DB Links

    Hi Everybody,
    Hope everyone is doing fine. I am working on oracle 11g R2. I have one scenario on which i need your help guys. We need to have one one stored procedure which has comma seprated Database Links as IN parameter. This procedure has one update statement. So whatever multiple database links we will pass, this update statement needs to run only on those databases . Can you please help for options we can do to solve this scneario?
    It will something like this:
    CREATE OR REPLACE PROCEDURE TEST_SP(DB_LINKS_IN VARCHAR2, E_MGR_IN VARCHAR2, E_ID_IN NUMBER)
    AS
    V_SQL VARCHAR2(400);
    BEGIN
    V_SQL: = 'UPDATE EMPLOYEE@'||DB_LINKS_IN
    SET EMP_MANAGER='||''''||E_MGR_IN||''''||'
    WHERE EMP_ID ='||E_ID_IN||;
    EXECUTE IMMEDIATE (V_SQL);
    END TEST SP;
    Above update statement needs to run in loop for Database links coming as comma seprated value from IN parameter DB_LINKS_IN. Can you please help in how to modify above procedure for DB links coming as comma seprated value?
    I will greatly appreciate your comments and responses.
    Regards
    Dev

    You could try the following steps:
    1. Create type
    CREATE OR REPLACE TYPE MYSTRTABLETYPE AS TABLE OF VARCHAR2 (255);
    2. Create function to parse comma-delimited list of db links:
    CREATE OR REPLACE FUNCTION IN_STRLIST( P_STRING IN VARCHAR2 ) RETURN MyStrTableType
    AS
    L_STRING VARCHAR2(32000) DEFAULT P_STRING || ',';
    L_DATA MyStrTableType := MyStrTableType();
    N NUMBER;
    BEGIN
    LOOP
    EXIT WHEN L_STRING IS NULL;
    N := INSTR( L_STRING, ',' );
    L_DATA.EXTEND;
    L_DATA(L_DATA.COUNT) :=
    LTRIM( RTRIM( SUBSTR( L_STRING, 1, N-1 ) ) );
    L_STRING := SUBSTR( L_STRING, N+1 );
    END LOOP;
    RETURN L_DATA;
    END;
    3. Modify your procedure as follows:
    CREATE OR REPLACE PROCEDURE TEST_SP(DB_LINKS_IN VARCHAR2, E_MGR_IN VARCHAR2, E_ID_IN NUMBER)
    AS
    V_DB_LINK MYSTRTABLETYPE := MYSTRTABLETYPE ();
    V_SQL VARCHAR2(400);
    BEGIN
    V_DB_LINK := IN_STRLIST(DB_LINKS_IN);
    for i in 1..V_DB_LINK.count
    loop
    V_SQL: = 'UPDATE EMPLOYEE@'||V_DB_LINK(i)||
    ' SET EMP_MANAGER='||''''||E_MGR_IN||''''||
    ' WHERE EMP_ID ='||E_ID_IN||;
    EXECUTE IMMEDIATE (V_SQL);
    end loop;
    END TEST SP;
    Please note I have not tested the code. Also you might want to consider using bind variables for the EMP_ID and EMP_MANAGER values.

  • How can i find start line of any functions or procedures stored in package body?

    hi
    how can i find start line of any functions or procedures stored in package body?
    is there any way to write a query from for example user_source?
    thanks

    how can i find start line of any functions or procedures stored in package body?
    Why? What will you do differently if a procedure starts on line 173 instead of line 254?
    Tell us what PROBLEM you are trying to solve so we can help you find the best way to solve it.
    If you use PL_SCOPE that info is available in the *_IDENTIFIERS views. See 'Using PL/Scope in the Advanced Dev Doc
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28424/adfns_plscope.htm
    Try this simple sample code. The query is modified from that doc sample:
    -- tell the compiler to collect the info
    ALTER SESSION SET PLSCOPE_SETTINGS='IDENTIFIERS:ALL';
    -- recompile the package
    CREATE OR REPLACE package SCOTT.pack1 as
    PROCEDURE proc1;
    PROCEDURE proc2;
    END;
    CREATE OR REPLACE package BODY SCOTT.pack1 as
    PROCEDURE proc1 IS
    BEGIN
      NULL;
    END;
    PROCEDURE proc2 IS
    BEGIN
      proc1;
    END;
    PROCEDURE proc3 IS
    BEGIN
      proc1;
      proc2;
    END;
    END;
    -- query the info for the package spec
    WITH v AS (
      SELECT    Line,
                Col,
                INITCAP(NAME) Name,
                LOWER(TYPE)   Type,
                LOWER(USAGE)  Usage,
                USAGE_ID,
                USAGE_CONTEXT_ID
        FROM USER_IDENTIFIERS
          WHERE Object_Name = 'PACK1'
            AND Object_Type = 'PACKAGE'
    SELECT LINE, RPAD(LPAD(' ', 2*(Level-1)) ||
                     Name, 20, '.')||' '||
                     RPAD(Type, 20)||
                     RPAD(Usage, 20)
                     IDENTIFIER_USAGE_CONTEXTS
      FROM v
      START WITH USAGE_CONTEXT_ID = 0
      CONNECT BY PRIOR USAGE_ID = USAGE_CONTEXT_ID
      ORDER SIBLINGS BY Line, Col
    LINE,IDENTIFIER_USAGE_CONTEXTS
    1,Pack1............... package             declaration        
    2,  Proc1............. procedure           declaration        
    3,  Proc2............. procedure           declaration        
    -- query the info for the package body - change 'PACKAGE' to 'PACKAGE BODY' in the query above
    LINE,IDENTIFIER_USAGE_CONTEXTS
    1,Pack1............... package             definition         
    2,  Proc1............. procedure           definition         
    6,  Proc2............. procedure           definition         
    8,    Proc1........... procedure           call               
    10,  Proc3............. procedure           declaration        
    10,    Proc3........... procedure           definition         
    12,      Proc1......... procedure           call               
    13,      Proc2......... procedure           call               

  • Using a stored procedure for a  sender jdbc adapter

    Hi all,
    The requirement is to use a stored procedure, for extracting data from a oracle database.
    Is it possible to do this.
    If yes, what should be the source structure in this case.
    Please help with the exact soln.
    Thanks!!
    Younus

    Hi,
    Did you check the blog pointed by Aamir?
    /people/jegathees.waran/blog/2007/03/02/oracle-table-functions-and-jdbc-sender-adapter
    You will need to use Oracle Functions instead of Oracle Stored Procedures. Read thru the blog and the note pointed in the blog . Think it is quite a good example.
    Regards
    Bhavesh

Maybe you are looking for