Integrating PL/SQL with Perl

Hello All,
I have just started learning PL/SQL and this my first R&D stuff with PL/SQL :)
I have a very basic beginner question.
Suppose I want to insert 1 lakh rows in a table through Perl. One and easiest way to do is to prepare and execute insert queries using Perl module - 'DBI' module in a loop
But I guess this will send lot of traffic over the LAN. What I rather feel is that if I execute these 1 lakh SQL queries using PL/SQL it will be comparatively more network efficient and fast.
So I have following questions:
1. Is it possible to integrate PL/SQL with Perl using 'DBI' module
2. Is there a way in PL/SQL that it will return status of all the 1 Lakh SQL queries after execution that will let me know which SQL queries were successfully executed and which failed.

1. Is it possible to integrate PL/SQL with Perl using 'DBI' moduleyes, just use a PL/SQL statement instead of a sql one
2. Is there a way in PL/SQL that it will return status of all the 1 Lakh SQL queries after execution that will let me know which SQL queries were successfully executed and which failed.yes, you have to manage an exception block for each row and store the single row result in a cumulative variable:
The following code is an incomplete and not testet example:
my $STM = "
declare
ret varchar2(10);
begin
  begin
    insert into mytab values(1);
    ret := ret||'0';
  exception
    when others then
      ret:=ret||'1';
  end;
  begin
    insert into mytab values(2);
    ret := ret||'0';
  exception
    when others then
      ret:=ret||'1';
  end;
... and so on ...
  select ret into :OUTRES from dual;
end;";
my $outres;
my $hnd = $db->prepare($STM);
$hnd->bind_param_inout( ":OUTRES", \$outres, 10);  -- 10 is the variable length, e.g. the number of inserts
$hnd->execute();
print "inserts output: $outres\n";At the end of the script you should hava a string of bits. A 0 for each successful insert an 1 for each unsuccessful...
Max
[My Italian Oracle blog|http://oracleitalia.wordpress.com/2010/01/10/crittografia-in-plsql-utilizzando-dbms_crypto/]

Similar Messages

  • Integrating PL / SQL with a Button on a Web Page ...

    I would be very grateful if someone could help with the following query.
    I have a database with a table called '*Tbl1*', which contains the following columns:-
    1). tbl1_unique_id (number, primary key);
    2). tbl1_title (VARCHAR2, 200);
    3). tbl1_description (VARCHAR2, 2000);
    4). tbl1_notes (VARCHAR2, 500);
    5). tbl1_status (Open, Closed).
    I have also created a page, which displays all of the records where the tbl1_status is equal to 'Open'.
    What I would like to do is add a button to the page, which when pressed, replaces whatever information is in the tbl1_notes column with a default statement.
    I have managed to produce PL / SQL code, which will query the table and update only those rows where tbl1_status is equal to 'Open' when using the 'SQL Commands' window, but I am having trouble integrating it with a button on the web page.
    I think that I need a 'Page Process', but I do not know what type (Data Manipulation, On Demand, PL / SQL, etc) or how to set it up correctly.
    Any help you can provide with regard to the above query will be appreciated.

    Trevor,
    Navigate to the page where you would like to add the process. Add the button if you've not already done so. Then click the "create page process" button under the Page Processing column.
    Select PL/SQL and click Next >.
    Enter a Name and click Next >.
    Paste your code from the SQL Workshop and click Next >.
    Enter success/failure messages if you like and click Next >.
    Select the button you added and click Create Process.
    Regards,
    Dan
    Blog: http://DanielMcGhan.us/
    Work: http://SkillBuilders.com/apex/

  • Integrating pl/sql with report

    Hi all,
    I have a report with query
    select con_id,si_no,gr_no,cl_no,pr_no from kconts
    where the value of pr_no is like 1001:1003:1006 (values stored using multiple select list) in each record.
    so in each row of the report the values of pr_no will be displayed like this.
    I have a pl/sql code for converting the pr_no to pr_name.
    example the above pr_no will be like cement:coal:petrol
    This is working fine in sql workshop.
    now, i want to integrate into the report and get the names instead of nos.
    ie each row of the report should display in the pr_no column as
    cement:coal:petrol and not as 1001:1003:1006
    Is it possible to do it?
    COuld anyone please give me an solution?
    thanks in advance
    bye
    srikavi
    Message was edited by:
    srikavi

    Srikavi,
    You need to create a function which will loop through the pr_no and get the description
    for each value and concatenate that into the string you want to see:
    CREATE OR REPLACE FUNCTION get_string (p_pr_no IN VARCHAR2)
       RETURN VARCHAR2
    IS
       v_new_string   VARCHAR2 (32000);
    BEGIN
       FOR c IN (SELECT description
                   FROM my_table
                  WHERE INSTR (':' || p_pr_no || ':', ':' || pr_no || ':') > 0)
       LOOP
          v_new_string := v_new_string || ':' || c.description;
       END LOOP;
       v_new_string := RTRIM (v_new_sting, ':');
       RETURN v_new_string;
    END get_string;. After that, you include
    the function in your sql:
    SELECT con_id, si_no, gr_no, cl_no, get_string (pr_no) pr_no
      FROM kcontsDenes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Problem in Integration of Apex with R12

    Hello,
    I followed the paper apex-ebs-extension-white-paper-345780.pdf to do Integration of Apex with R12. but stuck on one step.
    I am done with all the steps in R12. Now if i click the menu in R12, its going to my existing Apex aplication but still asking username and password.
    Can anyone help me out in what exactly I need to change in Apex Authentication scheme in Apex. Right now I am using Authentication scheme as Application Express.
    Please help me out
    Thanks in advance
    Ananya
    Edited by: Ananya on 26 Dec, 2011 8:51 PM

    Hi Mini,
    Thanks a lot for ur replies. But it is not working for me. I am not able to figure out whats going wrong.
    My Requirement is to redirect to the first page of my application without asking for the APEX login page from the EBS menu.
    So summarizing whatever I steps i have followed:-
    (1) Created Profile and function in APPS as given in "apex-ebs-extension-white-paper-345780.pdf"
    (2) I created the following package in APPS schema
         CREATE OR REPLACE PACKAGE APPS.XXAPX_SECURITY_PKG AUTHID DEFINER AS
         FUNCTION generate_hash (
         p_string IN VARCHAR2
         , p_offset IN NUMBER DEFAULT 0) RETURN VARCHAR2;
         FUNCTION validate_hash (
         p_string IN VARCHAR2
         , p_hash IN VARCHAR2
         , p_delay IN NUMBER DEFAULT 5) RETURN BOOLEAN;
         END XXAPX_SECURITY_PKG;
         CREATE OR REPLACE PACKAGE BODY APPS.XXAPX_SECURITY_PKG AS
         g_key VARCHAR2(100);
         FUNCTION generate_hash (
         p_string IN VARCHAR2
         , p_offset IN NUMBER DEFAULT 0) RETURN VARCHAR2
         IS
         BEGIN
         IF p_string IS NULL THEN RETURN NULL; END IF;
         RETURN RAWTOHEX(UTL_RAW.cast_to_raw(
         DBMS_OBFUSCATION_TOOLKIT.MD5(
              input_string=>p_string||':'||
              TO_CHAR(SYSDATE-(p_offset/24*60*60), 'YYYYMMDD HH24MISS')||g_key)));
         END generate_hash;
         FUNCTION validate_hash (
         p_string IN VARCHAR2
         , p_hash IN VARCHAR2
         , p_delay IN NUMBER DEFAULT 5) RETURN BOOLEAN
         IS
         BEGIN
         FOR i IN 0..p_delay LOOP
         IF p_hash = generate_hash (p_string, i) THEN RETURN TRUE; END IF;
         END LOOP;
         RETURN FALSE;
         END validate_hash;
         BEGIN
         SELECT encrypted_user_password INTO g_key
         FROM FND_USER WHERE user_name = 'SYSADMIN';
         END XXAPX_SECURITY_PKG;
    (3) Created a function in the APPS schema:-
         create or replace FUNCTION ebs_authenticate (
         p_username IN VARCHAR2
         , p_password IN VARCHAR2) RETURN BOOLEAN
         AS
         BEGIN
         IF apps.XXAPX_SECURITY_PKG.validate_hash (p_username, p_password) THEN RETURN TRUE; END IF;
         RETURN (apps.FND_WEB_SEC.validate_login (p_username, p_password) = 'Y');
         END ebs_authenticate;
    (4) In my authentication scheme of my apex application i have changed it to use custom authentication to use the below function
         return apps.ebs_authenticate
    (5) Created a procedure in the APPS schema:-
         create or replace PROCEDURE apps_logon
         IS
         v_username VARCHAR2(100);
         v_password VARCHAR2(32);
         BEGIN
         wfa_sec.getsession(v_username);
         v_password := xxapx_security_pkg.generate_hash(FND_GLOBAL.user_name);
         IF v_password IS NOT NULL THEN
         APEX_CUSTOM_AUTH.login(
              P_UNAME => v_username,
              P_PASSWORD => v_password,
              P_SESSION_ID => v('APP_SESSION'),
              P_APP_PAGE => apex_application.g_flow_id||':38'
         ELSE
         RAISE_APPLICATION_ERROR(-20001, 'Password is null, session id = '||icx_sec.g_session_id);
         END IF;
         END apps_logon;
    (6) In my login page, i have created a process Get Username Cookie and with the process point: onload(Before Header)
         BEGIN
         apps.apps_logon;
         EXCEPTION WHEN OTHERS THEN NULL;
         END;
    Now I am getting this error with the login page :-
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small Content-type: text/html; charset=UTF-8 Set-Cookie: WWV_CUSTOM-F_1120314105059329_811=B4134623EB436033; path=/; Location: f?CallFromForm='Y'&p=811:38
    Please help me figure out the problem as I am struggling a lot with this from last few days :(
    Thanks in advance.

  • How to insert document into xmltype column through an http post request with perl

    Oracle 11.2.0.3
    Windows server 2008r2
    Apache tomcat 7.0
    Oracle APEX 4.2.1
    Oracle APEX Listener 2.0
    I would like to insert a XML document into the database through an APEX restful web service. The POST into the web service in done with PERL. The following code will insert an empty record in a table with column of XMLType type.
    Perl Code
    use strict;
    use warnings;
    use LWP::UserAgent;
    use HTTP:Headers;
    my $headers = HTTP::Headers->new();
    my $url = "http://host:port:apex/<application_workspace>/<restfull service module>/<uri template>/
    my $sendthis = ('<?xml version="1.0" enconding="utf-8"?>
    <students>
    <row>
           <name>Mark</name>
          <age>30</age>
    </row>
    <./students>';)
    $headers -> header('Content-Type' => 'text/xml; charset=utf-8');
    my $request = HTTP:Request->new('POST', $url, $headers, $sendthis);
    $request-> protocol('HTTP/1.1');
    my $browser = LWP::UserAgent->new();
    my $response = $browser->request($request);
    my $gotthis= $response->content();
    my $the_file_data = $response->content();
    APEX restful service
    Method: POST
    Source type: PL/SQL
    MIME Types allowed: blank
    require secure access: none
    source:
    {declare
    doc varchar2(32000);
    begin
    insert into table <column name>
    values(doc);
    commit;
    end;
    Table code
    { create table <tablename>
    (column name XMLType>);
    The above code will insert an empty column into the table.
    Any ideas why?

    It's a really bad idea to assemble XML using strings and string concatenation in SQL or PL/SQL. First there is a 4K limit in SQL, and 32K limit in PL/SQL, which means you end up constructing the XML in chunks, adding uneccessary complications. 2nd you cannot confirm the XML is valid or well formed using external tools.
    IMHO it makes much more sense to keep the XML content seperated from the SQL / PL/SQL code
    When the XML can be stored a File System accessable from the database, The files can be loaded into the database using mechansims like BFILE.
    In cases where the XML must be staged on a remote file system, the files can be loaded into the database using FTP or HTTP and in cases where this is not an option, SQLLDR.
    -Mark

  • Running sql or perl script using DBMS_JOB

    Hi,
    Is there a way to run a sql or perl script using DBMS_JOB procedures? I have a perl script which checks out the table usage and emails the report to specific users. I want to run this script in a job scheduler, where I am using dbms_job to add the job. Please help. Any suggestions are greatly appreciated. Thanks.
    -Kristine

    You cannot run sql or perl scrips using DBMS_JOBS. You can run only Oracle procedures, functions, packages with DBMS_JOBS. They have to be stored in the database. You will have to create a Pro*C program that is listening on the pipe and push data to that pipe by using dbms_pipe. Then you can execute anything you want.

  • If..then..else statement in SQL with 'generalized' conditions in the if sta

    it is possible to write something approaching an if..then..else statement in SQL with 'generalized' conditions in the if statement.
    Attached is the query for the payment register, in which I've written a series of decode statements, one for each possible value of the payment code. The query works OK - however, its specific and as the number of paycodes expand (and they do), the report won't pick up the new paycode until the code is changed. More importantly, the report won't be correct until someone 'discovers' that a paycode is missing, which might take months.
    If I were writing the equivalent of this series of decode statements in Focus, it would be something like this:
    DEFINE.......
    PAYMED/D12.2 = IF PAYMENT_CD LE 18
                   THEN PAYMENT_AMT
                   ELSE 0 ;
    PAYIND/D12.2 = IF PAYMENT_CD GE 19 AND PAYMENT_CD LE 49
                   THEN PAYMENT_AMT
                   ELSE 0 ;
    PAYEXP/D12.2 = IF PAYMENT_CD GE 70
                   THEN PAYMENT_AMT
                   ELSE 0 ;
    PAYREC/D12.2 = IF PAYMENT_CD GE 50 AND PAYMENT_CD LE 69
                   THEN PAYMENT_AMT
                   ELSE 0;
    END
    IN SQL/PLUS:
    SELECT ACCOUNT_NAME,
    LOCATION_1,
    CLMNT_LAST_NAME,
    CLAIM_NBR,
    DATE_OF_INJURY,
    DATE_CHECK_REGISTER,
    PAYEE_NAME_1,
    PAYMENT_CD,
    SERV_OFC,
    CPO_CHECK_NBR,
    PAYMENT_FORM,
    DECODE(PAYMENT_CD, 20, PAYMENT_AMT, 21, PAYMENT_AMT,
    22, PAYMENT_AMT, 23, PAYMENT_AMT, 25, PAYMENT_AMT,
    26, PAYMENT_AMT, 27, PAYMENT_AMT, 28, PAYMENT_AMT,
    29, PAYMENT_AMT, 30, PAYMENT_AMT, 31, PAYMENT_AMT,
    32, PAYMENT_AMT, 33, PAYMENT_AMT, 34, PAYMENT_AMT,
    35, PAYMENT_AMT, 36, PAYMENT_AMT, 37, PAYMENT_AMT,
    39, PAYMENT_AMT, 40, PAYMENT_AMT, 41, PAYMENT_AMT,
    42, PAYMENT_AMT, 43, PAYMENT_AMT, 44, PAYMENT_AMT,
    45, PAYMENT_AMT, 46, PAYMENT_AMT, 47, PAYMENT_AMT,
    48, PAYMENT_AMT, 49, PAYMENT_AMT, NULL) INDEMNITY,
    DECODE(PAYMENT_CD, 0, PAYMENT_AMT, 1, PAYMENT_AMT,
    2, PAYMENT_AMT, 3, PAYMENT_AMT, 4, PAYMENT_AMT,
    5, PAYMENT_AMT, 6, PAYMENT_AMT, 7, PAYMENT_AMT,
    8, PAYMENT_AMT, 9, PAYMENT_AMT, 10, PAYMENT_AMT,
    11, PAYMENT_AMT, 12, PAYMENT_AMT, 13, PAYMENT_AMT,
    14, PAYMENT_AMT, 15, PAYMENT_AMT, 18, PAYMENT_AMT,
    17, PAYMENT_AMT, NULL) MEDICAL,
    DECODE(PAYMENT_CD, 70, PAYMENT_AMT, 71, PAYMENT_AMT,
    72, PAYMENT_AMT, 73, PAYMENT_AMT, 74, PAYMENT_AMT,
    75, PAYMENT_AMT, 76, PAYMENT_AMT, 77, PAYMENT_AMT,
    78, PAYMENT_AMT, 79, PAYMENT_AMT, 80, PAYMENT_AMT,
    81, PAYMENT_AMT, 82, PAYMENT_AMT, 83, PAYMENT_AMT,
    84, PAYMENT_AMT, 85, PAYMENT_AMT, 86, PAYMENT_AMT,
    87, PAYMENT_AMT, 88, PAYMENT_AMT, 89, PAYMENT_AMT,
    90, PAYMENT_AMT, NULL) EXPENSES,
    DECODE(PAYMENT_CD, 50, PAYMENT_AMT, 51, PAYMENT_AMT,
    52, PAYMENT_AMT, 53, PAYMENT_AMT, 54, PAYMENT_AMT,
    55, PAYMENT_AMT, 56, PAYMENT_AMT, 57, PAYMENT_AMT,
    58, PAYMENT_AMT, NULL) RECOVERIES,
    DECODE(PAYMENT_FORM, 'N', PAYMENT_AMT, NULL) NONCASH,
    DATE_FROM_SERVICE,
    DATE_THRU_SERVICE
    FROM &INPUT_TABLES
    WHERE &SECURITYCOND
    DATE_OF_PAYMENT BETWEEN :START_DATE AND :END_DATE
    ORDER BY LOCATION_1, CPO_CHECK_NBR
    As you can see, this is both much easier to write and covers the possibility of expansion of paycodes (expansions always fit in these defined ranges).
    My question is, then, is it possible to write something like this in SQL and, if so, could you give me some sample code? (I'm one of those people who learn best from looking at the code as opposed to a set of instructions)

    Here is one way you could do it.
    Create a table that has columns like:
    Payment_code varchar2(2),
    Effective_Date Date,
    Payment_type varchar2(20),
    Expiration_Date Date)
    Payment type for example could be
    I- indemnity
    M- medical
    R- recovery
    E- expenses
    Let the table name for example be PAYMENT_CODE.
    The select query would look like
    SELECT ACCOUNT_NAME,
    LOCATION_1,
    CLMNT_LAST_NAME,
    CLAIM_NBR,
    DATE_OF_INJURY,
    DATE_CHECK_REGISTER,
    PAYEE_NAME_1,
    PAYMENT_CD,
    SERV_OFC,
    CPO_CHECK_NBR,
    PAYMENT_FORM,
    DECODE(p.payment_type,'E',PAYMENT_AMOUNT,0) expenses,
    DECODE(p.payment_type,'I',PAYMENT_AMOUNT,0) indemnity,
    DECODE(p.payment_type,'M',PAYMENT_AMOUNT,0) Medical,
    DECODE(p.payment_type,'R',PAYMENT_AMOUNT,0) recoveries,
    DECODE(PAYMENT_FORM, 'N', PAYMENT_AMT, NULL) NONCASH
    FROM &INPUT_TABLES,
    PAYMENT_CODE P
    WHERE P.PAYMENT_CODE = SOMEINPUT_TABLE.PAYMENT_CODE
    and other conditions
    The idea is to group all the payment codes into a few groups to reduce the clutter. If there is ever a change to the payment code, you could modify the table and it will be reflected in your select query.

  • Getting Error while integrating Crystal reports with Java

    Hi All,
    I am getting below error while integrating crystal report with java
    [java] os.arch = x86
    [java] java.lang.NoSuchMethodError: com.crystaldecisions.Utilities.d.<init>
    (Ljava/awt/Image;I)V
    [java] at com.crystaldecisions.Utilities.af.try(Unknown Source)
    [java] at com.crystaldecisions.Utilities.af.a(Unknown Source)
    [java] at com.crystaldecisions.Utilities.af.<init>(Unknown Source)
    [java] at com.businessobjects.crystalreports.viewer.applet.g.a(Unknown
    Source)
    [java] at com.crystaldecisions.ReportViewer.ReportViewer.start(Unknown
    Source)
    [java] at ReportViewerFrame.<init>(ReportViewerFrame.java:51)
    [java] at JRCViewReport.launchApplication(JRCViewReport.java:29)
    [java] at JRCViewReport$1.run(JRCViewReport.java:50)
    [java] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:
    178)
    [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:443)
    [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDi
    spatchThread.java:190)
    [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDisp
    atchThread.java:144)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
    ava:138)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
    ava:130)
    [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
    Any help can be appreciated
    Kalyan

    Hi All,
    For got to mention i am using crystal reports XI release 2 with JDK1.4.
    Kalyan

  • Best practice for integrating oracle atg with external web service

    Hi All
    What is the best practice for integrating oracle atg with external web service? Is it using integration repository or calling the web service directly from the java class using a WS client?
    With Thanks & Regards
    Abhishek

    Using Integration Repository might cause performance overhead based on the operation you are doing, I have never used Integration Repository for 3rd Party integration therefore I am not able to make any comment on this.
    Calling directly as a Java Client is an easy approach and you can use ATG component framework to support that by making the endpoint, security credentials etc as configurable properties.
    Cheers
    R
    Edited by: Rajeev_R on Apr 29, 2013 3:49 AM

  • Problem in SQL with CURSOR( ) ,Why the CURSOR did not work?

    hi All:
    I have a problem in SQL with CURSOR.
    The data is as the attachments.
    Here is the SQL statement as follow:
    SELECT A.WADCTO,A.WADOCO,B.IGCOST,CURSOR (SELECT X.IGLITM
    FROM F3102 X
    WHERE X.IGDOCO=A.WADOCO
    AND X.IGCOST IN ('B1','D1','C3')) AS DETAIL
    FROM F4801 A INNER JOIN F3102 B ON A.WADOCO=B.IGDOCO AND A.WADCTO=B.IGDCTO AND B.IGCOST>' '
    WHERE A.WADOCO='10004'
    The statement above returns records as follow:
    WADC WADOCO IGCOST DETAIL
    WO 10004 A1 CURSOR STATEMENT : 4
    CURSOR STATEMENT : 4
    IGLITM
    1KV90CPG2
    1KV90CPG2
    1KV90CPG2
    But, after I add one statement in the subquery, there is no record returned from CURSOR.
    Here is the SQL statement:
    SELECT A.WADCTO,A.WADOCO,B.IGCOST,CURSOR (SELECT X.IGLITM
    FROM F3102 X
    WHERE X.IGDOCO=A.WADOCO
    AND X.IGCOST=B.IGCOST
    AND X.IGCOST IN ('B1','D1','C3')) AS DETAIL
    FROM F4801 A INNER JOIN F3102 B ON A.WADOCO=B.IGDOCO AND A.WADCTO=B.IGDCTO AND B.IGCOST>' '
    WHERE A.WADOCO='10004'
    The statement above returns records as follow:
    WADC WADOCO IGCOST DETAIL
    WO 10004 A1 CURSOR STATEMENT : 4
    CURSOR STATEMENT : 4
    no rows selected
    Why the CURSOR did not work?
    The database version is Oracle Database 10g Release 10.2.0.4.0 - 64bit Production.
    F3102 DATA:
    IGDOCO     IGDCTO     IGLITM     IGCOST
    10004     WO     1KV90CPG2      A1
    10004     WO     1KV90CPG2      B1
    10004     WO     1KV90CPG2      C3
    10004     WO     1KV90CPG2      D1
    F4801 DATA:
    WADCTO     WADOCO
    WO     10004
    Edited by: user2319139 on 2010/3/2 上午 1:17
    Edited by: user2319139 on 2010/3/2 上午 1:20

    Why this structure and not a join?
    The cursor() function returns a cursor handle that needs to be processed - in other words, the client needs to fetch data from it. The Oracle® Database SQL Reference+ (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/expressions005.htm#i1035107) describes it as being equivalent to a ref cursor handle.
    Thus why are you creating ref cursor handles as a column in a SQL projection - where each row will have a "+nested+" ref cursor handle to process. What problem are you attempting to hack solve this way?

  • How to reduce different versions of SQL with bind variables

    There is an application, developed on Java.
    Application executes SQL following types:
    select * from t where id in (:1)
    select * from t where id in (:1, :2)
    select * from t where id in (:1, :2, :3)
    select * from t where id in (:1, :2, :3, :4)
    ...And as a result very many versions (thousands) of similar SQL.
    Do you know a method to reduce number of such SQLs?
    I see one method: use one form of SQL with large number of prepared bid variables.
    Like as
    select * from t where id in (:1, :2, :3, :4, :5, :6, :7, :8, ...);And if query will be executed with one variable, the others will be equal to null.
    Is there another method?

    Cannot you insert those values into a temporary table and work within a subquery against that table ? That will make the code more secure, especially if the number of values is high.
    Nicolas.

  • Integrating Portal Server with MS Exchange Server

    I am trying to outline a solution for integrating MS Exchange with Portal
    Server. I realize that this can be done through the Exchange Netlet in iPS
    3.0, but this will enable Outlook client access on the users machine through
    the portal, and is not what we are looking for. What we would like to
    provide is calendar (appointments, tasks, etc.) and mail information within
    a channel on the portal. We would then provide a link to the web-based
    interface for Exchange within the channel. The interface is simple, since
    web-Exchange provides a URL, although any insight on providing SSO to the
    application would be helpful.
    Is there a way we can interface with Exchange using Java-based wrappers to
    retrieve the calendar and mail information for a specific user? It seems
    like the NetMail and iPlanet Calendar Server implementations would be
    overkill for what we are looking for.
    Any help with this would be greatly appreciated. Here are some of my
    thoughts:
    1. Since Outlook has a web-interface(provides a URL), we can obviously serve
    the web application up through the portal.
    2. iPlanet Portal Server 3.0 NetMail. This will provide us with an IMAP
    interface to the contents of the mail server, allow a user to send emails,
    read emails, create folders, change folders, etc. This seems to provide a
    full-fledge email application, which may be more than we actually need. Is
    there any way to use the Java NetMail Servlet or the NetMail Lite version to
    get what we are looking for?
    3. Using iPlanet Calendar Server for the appointments and schedule, although
    I believe that Exchange does not conform to the iCalendar protocol
    specification? Again, this is a full-fledge calendar application, and seems
    to be overkill for what we may need.
    4. Using a netlet to connect to Microsoft Exchange server, which can be done
    with Portal Server 3.0 because it implements the Microsoft Exchange/DCE
    protocol. Again, this provides Outlook client access, and I am not sure if
    this is what we want. Can we use the NetLet to capture the information
    being retrieved from exchange and display it using JSP rather than s
    5. Writing a Java wrapper to the contents of the mail server using the Java
    Mail API, although this does not solve the calendar problem. We can then
    display whatever info we want on our JSP pages using the wrapper classes.
    Sean.
    [email protected]

    4. Using a netlet to connect to Microsoft Exchange server, which can bedone
    with Portal Server 3.0 because it implements the Microsoft Exchange/DCE
    protocol. Again, this provides Outlook client access, and I am not sure if
    this is what we want. Can we use the NetLet to capture the information
    being retrieved from exchange and display it using JSP rather than sHave you actually gotten this to work? Would you mind sharing this part of
    your configuration with us?
    /Steve

  • Test inside  the table is truncated when integrating Adobe forms with WD4A

    Hi All,
    I am facing issue in table when integrating adobe forms with web dynpro for ABAP.
    Whenever the pagination happens the text in the table row cells is truncated and it starts from next row in next page. Is there any properrty of table in Form builder which I can use to allow the test to go to the next page?
    Best Regards,
    Arti.

    Hi. You should place your question in "SAP Interactive Forms by Adobe" forum. You will get advice quicker there.

  • Integrating WebLogic Server with CA SiteMinder Web Agent R6

    Hi I have searched on the topic of integrating WebLogic Server with the CA SiteMinder Web Agent R6 to provide single sign on services, and have been unable to find anything. Does anyone have any experience with this that could provide some tips, or could direct me to some documentation?

    It definitely can work. We have done the same thing in several installations. The question is "How secure does it need to be?" You will be using SM to do authentication. You will configure SSO to trust the SM header variable. If you really want to be secure you need to configure your boxes so that the http server on you SUSE box (for Portal) can only be accessed from the Reverse Proxy. If another machine can access it someone could spoof the header variable and log in as anyone they want.
    Hope this is helpful.
    Anton

  • List of GL required in the integration of FI With SD & MM

    Hi,
    I need a list of all the GL required for integration of FI with SD & MM.
    Please help me with the same.
    Regards,
    SAHU.

    Hi,
    As per client requirment we maintain GL account. I can give you few example.
    For SD: Sales revenue,Discount allowed
    For MM: Inventory a/c, raw material consumption a/c, GR/IR account
    Regards,
    Sreekanth

Maybe you are looking for

  • In Address Book, cannot assign a contact to a list.

    I am unable to assign a new contact to a list in the Address Book. I've entered the contact's info but when I highlight that contact's name, press the Ctrl key and attempt to copy it to a list, nothing happens. There is a plus symbol on the cursor as

  • Production Order Basic Finish Dates

    Our plant managers expect production order start and finish dates to freeze at release, even when operation confirmations are not made according to schedule or when the component availability situation changes.  Is there a way to freeze the productio

  • Process of transferring the confguration documentation to Solution Manager

    Hi Team / Experts, Could any one pleae let me know  What is the "process of transferring the confguration documentation to Solution Manager"  as we got some requirement to implement & configure Solution Manager for one our Client. However,i would nee

  • Windows format to mac

    I originally formatted my ipod using a PC but now have a Mac and was wondering if there is a way to reformat it and if it is worth it for updates or if it's fine to keep it as is. Thank you!

  • USB or Firewire Audio Mixer?

    If I'm going to record in real-time (not just copy audio files to the HD), would it be better to get a mixer that has USB or firewire outputs? Or should I just use analog RCA outs on the mixer to the analog mini-in on the Mac? - Mike