PL/SQL Program for automation

Hi All,
I want to write a Pl/sql program for the following requirement.
1. wnat to connect to remote desktop .
2. There we can find one more DB like AS-access. This one contains one file( ltake it as "XYZ" i)n some particular path.
3. want to save this file in share folder.
4. this share folder contains some "abc.txt" file.
5.want to replace the data which XYZ contains.
6. It is already having one ".XLS" file in share folder. want to delete it. ( because while running the exporting data the ".XLS" file created daily)
7. now in share folder we have one ".mdb" file.If we click on that it will ask like "create Report"," Exit".
8. we should click on "Create Report"
9.then one pop up will come like "All the exisiting data will be lost",then press "OK"
10. Again one window will open. It contains 2 buttopns. 1. Import Data 2. Export data.
11.Click on Import data. Then it will ask for "Password"
12.After giving the password it will import the whole data. ( It's taking around Hr time)
13. After that one pop up will come says " Import completed". then press OK and then click on "Export data"
14.After clicking this it will generate ".xls" file in share folder.
15. after that open that ".XLS" file and then Goto Tools --> Macros --> Macros, to run the Macros from Excel sheet.
16. Run the macro - "PERSONAL.XLS!macNewEFG".
17.Once done, save the ".xls" as "Report - <Month 'YY>.xls" in share folder.
18.Send then this generated report to respective mail-ids automatically.
daily manually we are doing this job. But I am planning to do it automatically.
so can any one please give me ur suggestions fir this.
Thanks in adv.

Hi,
thanks for your quick response.Can you please suggest me how to write a shell script for this .
I hope this is not the correct place to ask this.But please help me out regarding this.
Thank you.

Similar Messages

  • HOW TO WRITE QUERY OR PL/SQL PROGRAM FOR THIS

    I HAVE TABLE X
    SELECT ENO FROM X
    ENO
    123
    423
    332
    562
    678
    986
    621
    WHEN I RUN PL/SQL PROGRAM I WILL PASS PARAMETER
    FOR EXAMPLE LIKE 134
    I NEED OUTPUT LIKE
    134 EXIST OUTPUT
    123
    423
    332
    562
    621
    134 NOT EXIST OUTPUT
    678
    986
    Regards
    Dev

    This?
    <tested in TOAD>
    SQL> accept my_parm
    old: with t as (
    select '123' eno from dual union all
    select '423' from dual union all
    select '332' from dual union all
    select '562' from dual union all
    select '678' from dual union all
    select '986' from dual union all
    select '621' from dual )
    select eno || ' ' || output_type results
    from (
    select to_char(&&my_parm) eno, 'EXIST OUTPUT' output_type, 1 output_id
    from dual union all
    select null eno, null output_type, 3 output_id
    from dual union all
    select to_char(&&my_parm) eno, 'NOT EXIST OUTPUT' output_type, 4 output_id
    from dual union all
    select
    eno,
    null,
    case when regexp_instr(eno,'[' || &&my_parm || ']') >0
    then 2
    else 5
    end output_id
    from t
    order by output_id, eno
    new: with t as (
       select '123' eno from dual union all
       select '423' from dual union all
       select '332' from dual union all
       select '562' from dual union all
       select '678' from dual union all
       select '986' from dual union all
       select '621' from dual )
    select eno || ' ' || output_type results
    from (
       select to_char(134) eno, 'EXIST OUTPUT' output_type, 1 output_id
       from dual union all
       select null eno, null output_type, 3 output_id
       from dual union all
       select to_char(134) eno, 'NOT EXIST OUTPUT' output_type, 4 output_id
       from dual union all
       select  
          eno,
          null,
          case when regexp_instr(eno,'[' || 134 || ']') >0
             then 2
             else 5
          end output_id
       from t
    order by output_id, eno
    SQL> with t as (
       select '123' eno from dual union all
       select '423' from dual union all
       select '332' from dual union all
       select '562' from dual union all
       select '678' from dual union all
       select '986' from dual union all
       select '621' from dual )
    select eno || ' ' || output_type results
    from (
       select to_char(134) eno, 'EXIST OUTPUT' output_type, 1 output_id
       from dual union all
       select null eno, null output_type, 3 output_id
       from dual union all
       select to_char(134) eno, 'NOT EXIST OUTPUT' output_type, 4 output_id
       from dual union all
       select  
          eno,
          null,
          case when regexp_instr(eno,'[' || 134 || ']') >0
             then 2
             else 5
          end output_id
       from t
    order by output_id, eno
    RESULTS            
    134 EXIST OUTPUT   
    123                
    332                
    423                
    621                
    134 NOT EXIST OUTPUT
    562                
    678                
    986                
    10 rows selected.Message was edited by:
    MScallion

  • ABAP program for automation

    Hi all...
    Actually, i have a problem...
    I need to automate 1 reconcilation for my current project... for that im given 1 another recon as a reference...
    In the reference recon there is some part of the code that i didnt understand...
    Can someone help me out...?
    *selection screens
    Run options
    SELECTION-SCREEN BEGIN OF BLOCK proc_opt WITH FRAME TITLE text-001.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS p_read RADIOBUTTON GROUP rad DEFAULT 'X' USER-COMMAND rad.     "Radiobutton MPVL
    SELECTION-SCREEN COMMENT 5(10) g_read.
    PARAMETERS p_write RADIOBUTTON GROUP rad.
    SELECTION-SCREEN COMMENT 20(10) g_write.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF BLOCK write WITH FRAME TITLE text-004.
    PARAMETER: s_syid(3)  OBLIGATORY MODIF ID 101,                       " Source System
               s_clid(3)  OBLIGATORY MODIF ID 101,                       " Source Client
               s_csyid(3) NO-DISPLAY MODIF ID 102  DEFAULT sy-sysid .    " BW System
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETER: mpvl RADIOBUTTON GROUP g1      MODIF ID 101.
    SELECTION-SCREEN COMMENT 4(10) g_mpvl     MODIF ID 101.
    PARAMETER: mpalf RADIOBUTTON GROUP g1     MODIF ID 101.
    SELECTION-SCREEN COMMENT 20(10) g_mpalf   MODIF ID 101.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK write.
    SELECTION-SCREEN END OF BLOCK proc_opt.
    The above given is the code...
    Please help me out...

    Hi,,
    This is just the selection screen.
    SELECTION-SCREEN BEGIN OF BLOCK proc_opt WITH FRAME TITLE text-001.
    All the parameter or comment will come in one line.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS p_read RADIOBUTTON GROUP rad DEFAULT 'X' USER-COMMAND rad. "Radiobutton MPVL
    This is a radiobutton which is by default cheked.
    SELECTION-SCREEN COMMENT 5(10) g_read.
    PARAMETERS p_write RADIOBUTTON GROUP rad.
    SELECTION-SCREEN COMMENT 20(10) g_write.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF BLOCK write WITH FRAME TITLE text-004.
    PARAMETER: s_syid(3) OBLIGATORY MODIF ID 101, " Source System
    s_clid(3) OBLIGATORY MODIF ID 101, " Source Client
    s_csyid(3) NO-DISPLAY MODIF ID 102 DEFAULT sy-sysid . " BW System
    Again these are the parameter first two are mandatory.
    3rd parameter  wont displayed in the screen.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETER: mpvl RADIOBUTTON GROUP g1 MODIF ID 101.
    SELECTION-SCREEN COMMENT 4(10) g_mpvl MODIF ID 101.
    PARAMETER: mpalf RADIOBUTTON GROUP g1 MODIF ID 101.
    SELECTION-SCREEN COMMENT 20(10) g_mpalf MODIF ID 101.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK write.
    SELECTION-SCREEN END OF BLOCK proc_opt.
    You jusy copy the code and execute it in se38 in sandbox.
    Then you can understand easily.
    Thanks,
    Saveen kUmar

  • Need pl/sql stmnts. for this simple logic

    Hi,
    I need PL/SQL program for this simple logic i am doing mistake somewhere unbale to trace
    out ..
    select * from GSR03_PO_DTL;
    PO_NUM
    L53177000 -- > no changes reqd (only one entry with new format)
    L00041677 --> to be updated to L41677000(only one entry with OLD format)
    L43677000 -- > no change reqd (exists one row with new format and old format like below)
    L00043677 -- > to be deleted this is old format (and new format like above already exists)
    EX:
    L00012345 --- old format
    L12345000 --- new format
    Hope question is clear. I written the following program.
    update is working fine but delete is not working.
    Please help.
    Thanks in Advance
    Devender
    declare
    Cursor c_test is
    (select po_num from GSR03_PO_DTL);
    BEGIN
    FOR r_test in c_Test
    LOOP
    dbms_output.put_line (r_test.po_num);
    IF ('L'||substr(r_test.po_num,5,5)) = ('L'||substr(r_test.po_num,2,5)) then
         dbms_output.put_line ('delete stmnt');
    END IF;     
    EXIT WHEN c_test%NOTFOUND;
    END LOOP;
    FOR r_test in c_Test
    LOOP
    IF r_test.po_num like 'L000%' then
    IF ('L'||substr(r_test.po_num,5,5)) is not NULL then
         update GSR03_PO_DTL set PO_NUM = 'L'||substr(po_num,5,5)||'000'
         where po_num like 'L000%' ;
         dbms_output.put_line ('update stmnt');
    END IF;     
    END IF;
    END LOOP;
    END;
    *********************

    No need for PL/SQL, man.
    SQL> SELECT po_no FROM po1
      2  /
    PO_NO
    L53177000
    L00041677
    L43677000
    L00043677
    SQL> UPDATE po1 y
      2  SET    y.po_no = 'L'||substr(y.po_no,5,5)||'000'
      3  WHERE  y.po_no LIKE 'L000%'
      4  AND    NOT EXISTS ( SELECT null FROM po1 x
      5                      WHERE x.po_no =  'L'||substr(y.po_no,5,5)||'000')
      6  /
    1 row updated.
    SQL> DELETE FROM po1 y
      2  WHERE  y.po_no LIKE 'L000%'
      3  AND    EXISTS ( SELECT null FROM po1 x
      4                  WHERE x.po_no =  'L'||substr(y.po_no,5,5)||'000')
      5  /
    1 row deleted.
    SQL> SELECT po_no FROM po1
      2  /
    PO_NO
    L53177000
    L41677000
    L43677000
    SQL> Cheers, APC

  • Need suggestions to write a PL/SQL program

    Hi,
    We have some readme documents in different places. we need to keep the docs in specified folders. for example if we have around 100 docs we need to figure out the required docs by giving the just any one word from that doc name.
    now the requirement is need to keep all the docs in one specified folder (check the product name, if the product is there then it will pick all the docs related to that particular product and keeps in separate folder). whenever we need to find out any one of the document from that product we need to give the short word from that doc name then it will show you the required doc.
    So could you please let me know is it possible to write any PL/SQL program for the above requirement else suggest me which one will support to resolve the above requirement.
    Kindly suggest me for the above request.
    thanks in advance.

    You may want to consider loading the documents into blobs or using BFILES.
    BFILE defnition
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/sql_elements001.htm#SQLRF50996
    BLOB definition
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/sql_elements001.htm#SQLRF50997
    Regardless of whether you use BLOB's or BFILE's, you'll have to build a metadata table for each document.
    For example, if you decided upon BLOB's, you would need some kind of metadata table as follows;
    create table doc_table (id number, doc_name varchar2(20), b blob);
    insert into doc_table values (1, 'DOC_A', to_blob('A'));
    insert into doc_table values (2, 'DOC_B', to_blob('B'));
    commit;
    create table doc_metadata (id number, keyword varchar2(20));
    insert into doc_metadata values (1, 'A');
    insert into doc_metadata values (2, 'B');
    commit;You would then search for a document based on a keyword, for example,
    to find document A;
    select dt.doc_Name      
    from   doc_table    dt
          ,doc_metadata dm
    where  dt.id = dm.id
    and    dm.keyword like 'A';You could add more columns (as you like), for example location, size etc.

  • What are the best books to purchase for pl/sql programming?

    What are the best books to purchase for pl/sql programming?
    I am new to this field and I am looking for the best books to help me in pl/sql programming. Can someone please suggest?
    Thanks

    In my opinion one of the best to start
    Oracle PL/SQL Programming, Third Edition
    Steven Feuerstein

  • I am trying connect to a SQL instance for our CRM program and I am receiving To Connect to this Server you must use SQL Management Studio or SQL Server Management

    I am trying connect to a SQL instance for our CRM program and I am receiving To Connect to this Server you must use SQL Management Studio or SQL Server Management 
    This is a Brand new Server 2012 that is running our CRM product and it is trying to connect to a Server 2008 R2 server with SQL Server 2008 R2 SP2 instance (10.50.4000)
    I have seen this in the past where it needed the 2005 backwards compatibility components installed but those are not supported on 2012 server and this is not a 2005 SQL instance.
    I am trying to install the Shared Management Objects for SQL Server 2008 but it tells me I need to install the CLR types, which I did install. But it continues to tell me to install the CLR types.
    Has anyone ran into any issues like this? (this happens trying to connect to multiple SQL Servers from this new 2012 Server)
    Thanks!
    -Max

    Hello,
    Which version and edition of the SQL Server instance did you installed on the new server machine?  If you install SQL Server 2012 Express edition, you can try to install SQL Server Management Studio 2012 from
    this link.
    You can connect to SQL Server 2008 R2 or earily verions with SSMS 2012.
    What's more, Microsoft SQL Server 2008 Management Objects Collection requires Microsoft Core XML Services (MSXML) 6.0, Microsoft SQL Server Native Client, and Microsoft SQL Server System CLR Types. You can try to download and install
    SQL Serve 2008 Feature Pack
    which contains packages above.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Transaction or standard program for testing Open SQL statements

    Hi experts,
    Is there a standard program or transaction that can be used to test Open SQL statements?, I was thinking in something similar to a SQL client like sqlcli, but for Open SQL and within SAP GUI.
    I know i can write a test ABAP program for this matter but I rather a standard testing facily in this case
    Thank you for any help
    regards

    Hi Ozcan
    I tried DB02 -> Diagnosis -> SQL Command editor , but I couldn't made it work. It is for Open SQL or for Native SQL?
    I tried the following simple Open SQL statements inside the SQL Code tab there were erros
    SELECT *
    FROM /BI0/PCOMP_CODE
    error was: Incorrect syntax near '/'.
    SELECT * FROM DD03L
    error was: Invalid object name 'DD03L'.
    Where is the mistake?
    regards

  • How do I submit a concurrent request (for PL/SQL program)   from RDF

    Hi,
    I have a requirement i need to call a PL/SQL program using concurrent request from Oracle RDF, I am using below code.
    -> PL/SQL program has two input parameters
    Case:- 1
    reqid :=
    fnd_request.submit_request ('SQLAP','IPCS_ACH_VENDOR_PAYMENT1','','', FALSE,
                   :P_PAYMENT_BATCH,'N' , '', '' ,
    If i ran the above rdf i am getting below errors from concurrent request log
    ORACLE error 6550 in FDPSTP
    Cause:  FDPSTP failed due to ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'GEN_ACH'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Case :- 2
    reqid :=
    fnd_request.submit_request ('SQLAP','IPCS_ACH_VENDOR_PAYMENT1','','', FALSE,
                   :P_PAYMENT_BATCH,'N' );
    -> Able to compile the report without any errors.
    -> Upon running the rdf getting below error messages
    REP-0736: There exist uncompiled program unit(s).
    REP-1247: Report contains uncompiled PL/SQL.
    => Case:1 very well worked for Host file .
    --- Please help me how to submit a concurrent program( PL/SQL with 2 paramerers) in RDF ...
    Thanks
    Edited by: Apps Beginer on Dec 2, 2009 1:40 PM

    Looking at the 11.5.10 version of the [Oracle Applications Developer's Guide|http://download.oracle.com/docs/cd/B25516_18/current/html/docset.html] on page 21-32 - it states that the FND_REQUEST function must know information about the user and responsibility that is submitting the request. Therefore, the function only works from concurrent programs or forms within Oracle Applications. There are ways around this by initializing this information in your session before your call to SUBMIT_REQUEST. I've never tried this from a Report, but I've done it from PL/SQL that executes outside of Apps. You could try the following to see if it works.
    DECLARE
         n_RESP_APPL_ID          NUMBER;
         n_RESP_ID          NUMBER;
         n_USER_ID          NUMBER;
         n_REQUEST_ID          NUMBER;
    BEGIN
         n_RESP_APPL_ID := apps.FND_PROFILE.VALUE('RESP_APPL_ID');
         n_RESP_ID := apps.FND_PROFILE.VALUE('RESP_ID');
         n_USER_ID := apps.FND_PROFILE.VALUE('USER_ID');
         apps.FND_GLOBAL.Apps_Initialize(n_USER_ID, n_RESP_ID, n_RESP_APPL_ID);
         /* I prefer to use Named Notation for this call rather than enter placeholders for all 100+ parameters to SUBMMIT_REQUEST */
         n_REQUEST_ID := apps.fnd_request.submit_request(
                                       application => 'SQLAP',
                                       program => 'IPCS_ACH_VENDOR_PAYMENT1',
                                       start_time => To_Char(sysdate,'DD-MON-YYYY',
                                       argument1 => :P_PAYMENT_BATCH
                                       );Obviously, I don't know all of the parameters you need for your request, so I made a "BEST GUESS" based on your code sample so I doubt my example call to Submit_Request will work if you Copy-N-Paste. Make sure you use the correct parameters when you try this in your report.
    Hope this helps.
    Craig...
    If a response is helpful or correct, please mark it accordingly

  • Vision Builder for Automated Inspection and communication to external programs

    I want to use Vision Builder for Automated Inspection in my application to do the vision tasks. However, the vision task
    is only a part of the total application. Like for example, the application starts by reading the input of a barcode scanner.
    Based on the value of the barcode, the proper program should be loaded in Vision Builder for AI. I was thinking about
    using the .NET environment to build the application and call Vision Builder for AI from out of there. Is this possible? If
    not, are there other solutions?
    Thanks!
    Bert Christiaens

    Hi Bert,
    Vision Builder includes a Product Selection functionality that allows to automatically change an inspection based on the result of a step. For example, if the interface to the barcode scanner is Serial or TCP, you can use the corresponding step in Vision Builder to read the barcode, and based on the result select the appropriate inspection.
    That is if you want to stay within the Vision Builder environment.
    If your application is already written in .NET and you need to add Vision to it, then as mentioned in the post above, Vision Builder has a programmatic API that you can call from .NET (example located here:
    C:\Program Files (x86)\National Instruments\Vision Builder AI 2011\API Examples\dotNET Examples
    The API allows to programmatically load an inspection, run it and get results, close it, etc. From the information you're providing, it seems like it might be the option that is the most appropriate to your application.
    Best regards,
    Christophe

  • Tools for automated testing

    Hi,
    our QA dept is looking for a tool for creating automated tests that simulate user activity on web sites (APEX-based particularly).
    This tool probably should be able to create initial test scripts on behalf of QA engineer and then play them on its own to test our business processes.
    Could anybody recommend a good tool for this purpose?
    Thanks

    Hi Edward,
    Although it's maybe not entirely APEX, I saw Steven Feuerstein showing "Quest Code Tester for Oracle" (http://www.quest.com/code%2Dtester%2Dfor%2Doracle/ or http://unittest.inside.quest.com/product_info.jspa).
    As Steven describes: Code Tester automates the process of building and running tests of your PL/SQL programs. The major breakthrough achieved by this tool is that you describe the expected behaviour of your program through a graphical interface, and then Code Tester generates the test code needed to implement those tests.
    I found it quiet nice and as we're using a lot of PLSQL packages too, I think it can be useful in an APEX environment.
    Dimitri
    http://dgielis.blogspot.com

  • How to create and execute PL/SQL program or Procedure from Java (JDBC)

    hi all,
    user will enter the Pl/Sql program from User-Interface. that program has to be create in DB and execute that.
    due to some confusions, how to execute this from Java, i (user) entered the same logic through a Procedure.
    my Java code is
    Statement st = con.createStatement();
    Statement.execute(procedure_query); // procedure name is myPro
    CallableStatement cs = con.prepareCall("{call myPro}");
    (as given in SUN docs - http://java.sun.com/docs/books/tutorial/jdbc/basics/sql.html)
    but its not creating the procedure.
    and i tried to run a procedure (which is already created) with CallableStatement, and this is also not working.
    how to get this.
    thanks and regards
    pavan

    Hi,
    SInce the PL/SQL block is keyed in dynamically, you probably want to use the anonymous PL/SQL syntax for invoking it:
    // begin ? := func (?, ?); end; -- a result is returned to a variable
    CallableStatement cstmt3 =
    conn.prepareCall(“begin ? := func3(?, ?); end;”);
    // begin proc(?, ?); end; -- Does not return a result
    CallableStatement cstmt4 =
    Conn.prepareCall(“begin proc4(?, ?); end;”);
    SQLJ covered in chapter 10, 11, and 12 of my book furnish a more versatile dynamic SQl or PL/SQL mechanisms.
    Kuassi
    - blog http://db360.blogspot.com/
    - book http://db360.blogspot.com/2006/08/oracle-database-programming-using-java_01.html

  • Calling Transaction Import Concurrent Program in PL/SQl program

    Hi,
    I am trying to run Transaction Import process by calling the concurrent program in my pl/sql program.I think I am passing all the right paramters which are necessary.But the actual PAXTRTRX is never being called and I am not getting any request ID back.No exception is being thrown.Following is how I am calling the concurrent program...
    p_tran_imp_request_id := fnd_request.submit_request
         ( application => 'PA'     
              , program => 'PAXTRTRX'
              , sub_request => FALSE
              , argument1 => 'My Transaction Source name here'
              , argument2 => 'My batch name here'
    ,argument3 => 'my TXN_INTERFACE_ID here'
    If I run the PRC: Transaction Import from front end...the process is run and import was completed just fine.But I am not able to call concurrent program from my program.Is there anything I am missing...Is there any thing I need to do before I call the concurrent program...
    Any help in this issue is greatly appreciated.
    Thanks

    Hi,
    Thanks for the advise. Yes I was calling the initialize function but I was passing wrong application id and responsibility id to that.Now that is taken care of.
    Thanks

  • PL/SQL program not working when connect database via SqlNet

    Hi,
    This is a segment of a PL/SQL program before opening a cursor using input descriptor. It is working fine ( to get the value of unOutputCount ) without connect to a database via SqlNet, can anyone tell me why it is not working ( unOutputCount return 0)while connecting to a database via SqlNet and how to make it work without opening a cursor before DESCRIBE OUTPUT ...?
    EXEC SQL ALLOCATE DESCRIPTOR GLOBAL 'input_111'
    WITH MAX 100;
    EXEC SQL ALLOCATE DESCRIPTOR GLOBAL 'output_111'
    WITH MAX 100;
    EXEC SQL PREPARE STMT1 FROM :psSqlStatement;
    EXEC SQL DECLARE CURSOR1 CURSOR FOR STMT1;
    EXEC SQL DESCRIBE INPUT STMT1
    USING DESCRIPTOR GLOBAL 'input_111';
    /* Get count of input parameters in statement */
    EXEC SQL GET DESCRIPTOR GLOBAL 'input_111' :unInputCount = COUNT;
    EXEC SQL DESCRIBE OUTPUT STMT1
    USING DESCRIPTOR GLOBAL 'output_111';
    /* Get count of output parameters in statement */
    EXEC SQL GET DESCRIPTOR GLOBAL 'output_111'
    :unOutputCount = COUNT;

    Hi,
    Welcome to Oracle OTN Forums!
    I changed your code a little. I think this help you
    CREATE OR REPLACE
    PROCEDURE xx_test
    IS
      v_pid VARCHAR2(100);
      v_cn  VARCHAR2(100);
      v_id  VARCHAR2(1000);
      v_val VARCHAR2(1000);
      CURSOR C1
      IS
        (SELECT product_id, 'PRODUCT_ID'  cn
            FROM product1 );
      BEGIN
        FOR V1 IN C1
        LOOP
          FETCH C1 INTO v_pid, v_cn;
          dbms_output.put_line('==== '||v_pid||'==== '||v_cn);
          EXECUTE IMMEDIATE
          'SELECT product_id, DECODE(COUNT (product_id),1,MAX (product_id))||'''||V_CN||''' as val
            FROM product1
           WHERE product_id =:a
           GROUP BY product_id)' INTO v_id, v_val USING v_pid;
          dbms_output.put_line('==== '||v_id||'==== '||v_val);
          EXECUTE IMMEDIATE 'UPDATE product2 SET '||v_cn||' = ' ||''''|| v_val ||''''|| ' WHERE product_id = :b' USING v_pid;
          dbms_output.put_line('++++ '||v_cn||'++++ '||v_val||'++++ '||v_pid);
        END LOOP;
      END xx_test;

  • Concurrent manager encountered an error while running sql*plus for your concurrent request create internal order

    Hi
    We have a big problem, We can't create internal orders, when I run the CREATE INTERNAL ORDER, it finish with ERROR:
    Concurrent Manager encountered an error while running SQL*Plus for your concurrent request 134980682.
    Review your concurrent request log and/or report output file for more detailed information.
    this is the log:
    +---------------------------------------------------------------------------+
    Purchasing: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    POCISO module: Create Internal Orders
    +---------------------------------------------------------------------------+
    Current system time is 26-JUL-2013 09:21:09
    +---------------------------------------------------------------------------+
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    +---------------------------------------------------------------------------+
    Start of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    Begin create internal sales order
    Updating Req Headers
    14 Reqs selected for processing
    Top of Fetch Loop
    Source Operating Unit: 82
    Selecting Currency Code
    Currency Code : MXP
    Selecting Order Type
    Order Type ID:1001
    Selecting Price List from Order Type
    Deliver To Location Id: 196
    Inserting Header : 3908784
    Getting the customer id
    Getting the customer id: 15334
    Unhandled Exception : ORA-01403: no data found
    +---------------------------------------------------------------------------+
    End of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    Concurrent Manager encountered an error while running SQL*Plus for your concurrent request 134980682.
    Review your concurrent request log and/or report output file for more detailed information.
    +---------------------------------------------------------------------------+
    Executing request completion options...
    Output file size:
    78
    Output is not being printed because:
    The print option has been disabled for this report.
    Finished executing request completion options.
    +---------------------------------------------------------------------------+
    Concurrent request completed
    Current system time is 26-JUL-2013 09:21:14
    +---------------------------------------------------------------------------+
    Some suggestion for resolve it??
    Thanks & Regards.

    In the document 294932.1 Section 4 there are no pre-installation patches or update for OS RedHat LinuxAS4.
    When I type echo $LD_ASSUME_KERNEL it doesn't display any value so do I need to set the LD_Assume_Kernal value manually.
    If yes, please let me know the path and command to set the kernel value.
    Thanks
    Amith

Maybe you are looking for

  • Mail immediately crashes everytime I open it

    Hey everyone, I have a problem with Mail. Basically, every time I open it it crashes and closes within a couple of seconds. I've repaired disk permissions, no change, removed everything related to mail and reinstalled it, no change. Any ideas?

  • How do I get a microsoft employee to respond to me by email?

    None of these forums address an issue, and there isn't a contact email on the company website. Don't tell me to search, I already have and it's not addressed neither here, the company's website nor any "help files". Don't ask me to explain the issue,

  • Workflow issue in MM

    hi there, Object type: BUS1001006 (i hope this is std) in this below parts are active: methodds-- StandardMaterial.GetInternalNumber StandardMaterial.Create StandardMaterial.SaveData StandardMaterial.Savereplica StandardMaterial.MaterialGetAll Standa

  • Should I repair an Ibook logic board

    I can have a 12 inch ibook 1.2ghz if I pay to repair it. It was just 14 months old, had been treated with great respect, when the logic board failed. Needless to say its owner had not purchased any extended warranty. Its owner purchased a new macbook

  • Problems with "not in" statement

    I have a query that should return less than 20 lines, but instead I get about 51. I'm not sure what's wrong here. I've tried a bunch of different things. select i.w_id, i.p_id, count(decode(o.ord_id, ' ', i.p_id, 0)) ORDERS_ISSUED, sum(decode(o.order