Prob in DBMS_OUTPUT

Hai,
I am having procedure v_test, which willbe executed from a shell script. It has totally 7 cursors. Each cursors o/p is captured in spool file using dbms_output.
But cursor "c" o/p is not captured in spool file, if i execute the procedure from the shell script. If i execute it from sqlplus using spool options, its capturing cursor "c" o/p also. Moreover i checked wheather the cursor is getting executed or not..? It works!!! only the o/p is not captured(ie. dbms_output is not wrking only for this cursor).
Pls help me on this!!!
Here i am attaching the code for that proc:
CREATE OR REPLACE PROCEDURE v_test
AS
CURSOR C_TINFO IS
SELECT TICKET_NO,PRIORITY,DESCRIPTION FROM tic_info where upper(STATUS) = 'OPEN';
CURSOR c is
SELECT TABLENAME,
FEED_TYPE,
FEED_PERIOD,
SRC_CNT,
DEST_CNT
FROM raw_log      R1
WHERE R1.tablename = 'RDL_JSPEED'
AND TRUNC(R1.feed_period) = (SELECT TRUNC(MAX(R2.feed_period))
               FROM raw_log R2
               WHERE R2.tablename = 'RDL_JSPEED')
AND R1.dest_cnt = R1.src_cnt
AND R1.dest_cnt = (SELECT COUNT(JSP.case_id)
FROM dl_jetspeed JSP
WHERE TRUNC(JSP.feed_period) = (SELECT TRUNC(MAX(R3.feed_period))
FROM raw_log R3
WHERE R3.tablename='RDL_JSPEED'));
CURSOR c1 is
SELECT TABLENAME,
FEED_TYPE,
FEED_PERIOD,
SRC_CNT,
DEST_CNT
FROM raw_log      R1
WHERE tablename = 'RWK_JSPEED'
AND TRUNC(feed_period) = (SELECT TRUNC(MAX(R2.feed_period))
               FROM raw_log R2
               WHERE R2.tablename = 'R_JETSPEED')
AND R1.dest_cnt = R1.src_cnt
AND R1.dest_cnt = (SELECT COUNT(JSP.case_id)
          FROM wk_jetspeed JSP
          WHERE TRUNC(JSP.feed_period) = (SELECT TRUNC(MAX(R3.feed_period))
                    FROM raw_log R3
                    WHERE R3.tablename='RWK_JSPEED'));
CURSOR c2 is
SELECT TABLENAME,
FEED_TYPE,
FEED_PERIOD,
SRC_CNT,
DEST_CNT
FROM rawlog      R1
WHERE tablename = 'RMO_JETSPEED'
AND TRUNC(feed_period) = (SELECT TRUNC(MAX(R2.feed_period))
               FROM raw_log R2
               WHERE R2.tablename = 'RMO_JSPEED')
AND R1.dest_cnt = R1.src_cnt
AND R1.dest_cnt = (SELECT COUNT(JSP.case_id)
          FROM mo_jetspeed JSP
          WHERE TRUNC(JSP.feed_period) = (SELECT TRUNC(MAX(R3.feed_period))
                    FROM raw_log R3
                    WHERE R3.tablename='RMO_JSPEED'));
CURSOR c3 is
SELECT TABLENAME,
FEED_TYPE,
FEED_PERIOD,
SRC_CNT,
DEST_CNT
FROM raw_log      R1
WHERE tablename = 'RHR_SLAPVC_STATS'
AND TRUNC(feed_period) = (SELECT TRUNC(MAX(R2.feed_period))
               FROM raw_log R2
               WHERE R2.tablename = 'RHR_SLAPVC_STATS')
AND R1.dest_cnt = R1.src_cnt
AND R1.dest_cnt = (SELECT COUNT(JSP.feed_period)
          FROM hr_slapvc_stats JSP
          WHERE TRUNC(JSP.feed_period) = (SELECT TRUNC(MAX(R3.feed_period))
                    FROM raw_log R3
                    WHERE R3.tablename='RHR_SLAPVC_STATS'));
CURSOR c4 is
SELECT TABLENAME,
FEED_TYPE,
FEED_PERIOD,
SRC_CNT,
DEST_CNT
FROM raw_log      R1
WHERE tablename = 'RDL_SLAPVC_STATS'
AND TRUNC(feed_period) = (SELECT TRUNC(MAX(R2.feed_period))
               FROM rawlog R2
               WHERE R2.tablename = 'RDL_SLAPVC_STATS')
AND R1.dest_cnt = R1.src_cnt
AND R1.dest_cnt = (SELECT COUNT(JSP.feed_period)
          FROM dl_slapvc_stats JSP
          WHERE TRUNC(JSP.feed_period) = (SELECT TRUNC(MAX(R3.feed_period))
                    FROM raw_log R3
                    WHERE R3.tablename='RDL_SLAPVC_STATS'));
CURSOR c5 is
SELECT TABLENAME,
FEED_TYPE,
FEED_PERIOD,
SRC_CNT,
DEST_CNT
FROM raw_log      R1
WHERE tablename = 'RDW_INCIDENT_VIEW'
AND TRUNC(feed_period) = (SELECT TRUNC(MAX(R2.feed_period))
               FROM raw_log R2
               WHERE R2.tablename = 'RDW_INCIDENT_VIEW')
AND R1.dest_cnt = R1.src_cnt
AND R1.dest_cnt = (SELECT COUNT(JSP.feed_period)
          FROM dw_incident_view JSP
          WHERE TRUNC(JSP.feed_period) = (SELECT TRUNC(MAX(R3.feed_period))
                    FROM raw_log R3
                    WHERE R3.tablename='RDW_INCIDENT_VIEW'));
CURSOR c6 is
SELECT TABLENAME,
FEED_TYPE,
FEED_PERIOD,
SRC_CNT,
DEST_CNT
FROM raw_log      R1
WHERE tablename = 'RWK_INCIDENT_VIEW'
AND TRUNC(feed_period) = (SELECT TRUNC(MAX(R2.feed_period))
               FROM raw_log R2
               WHERE R2.tablename = 'RWK_INCIDENT_VIEW')
AND R1.dest_cnt = R1.src_cnt
AND R1.dest_cnt = (SELECT COUNT(JSP.feed_period)
          FROM weekly_incident_view JSP
          WHERE TRUNC(JSP.feed_period) = (SELECT TRUNC(MAX(R3.feed_period))
                    FROM raw_log R3
                    WHERE R3.tablename='RWK_INCIDENT_VIEW'));
R_TINFO C_TINFO%rowtype;
rec c%rowtype;
rec1 c1%rowtype;
rec2 c2%rowtype;
rec3 c3%rowtype;
rec4 c4%rowtype;
rec5 c5%rowtype;
rec6 c6%rowtype;
BEGIN
DBMS_OUTPUT.PUT_line(chr(10));
DBMS_OUTPUT.PUT_line('********************* DETAILS OF "OPEN" TICKETS IN THE QUEUE *****************');
DBMS_OUTPUT.PUT_line(chr(10));
OPEN C_TINFO;
LOOP
          FETCH C_TINFO INTO R_TINFO;
          IF (C_TINFO%ROWCOUNT = '0') THEN
               DBMS_OUTPUT.PUT_line('No Tickets');
               DBMS_OUTPUT.PUT_line(chr(10));
               EXIT;
          ELSE
               EXIT WHEN C_TINFO%NOTFOUND;
               DBMS_OUTPUT.PUT_LINE(' P'|| R_TINFO.PRIORITY||' Ticket No: '||R_TINFO.TICKET_NO||' Description: '
||R_TINFO.DESCRIPTION);
          DBMS_OUTPUT.PUT_line(chr(10));
          END IF;
END LOOP;
CLOSE C_TINFO;
DBMS_OUTPUT.PUT_line('--------------------------------------------------------------------------------------');
DBMS_OUTPUT.PUT_line(chr(10));
DBMS_OUTPUT.PUT_line('******************************* DATABASE DETAILS ****************************');
DBMS_OUTPUT.PUT_line(chr(10));
DBMS_OUTPUT.PUT_line('TABLENAME FEED_TYPE FEED_PERIOD SOURCE_COUNT TARGET_COUNT');
DBMS_OUTPUT.PUT_line('----------- --------------- ---------------- ----------------- ---------------');
OPEN c;
     LOOP
          FETCH c INTO rec;
          EXIT WHEN c%NOTFOUND;
DBMS_OUTPUT.PUT_line(rec.TABLENAME||' '||rec.FEED_TYPE||' '||rec.FEED_PERIOD||
' '||rec.SRC_CNT||' '||rec.DEST_CNT);
     END LOOP;
CLOSE c;
OPEN c1;
     LOOP
          FETCH c1 INTO rec1;
          EXIT WHEN c1%NOTFOUND;
DBMS_OUTPUT.PUT_line(rec1.TABLENAME||' '||rec1.FEED_TYPE||' '||rec1.FEED_PERIOD||
' '||rec1.SRC_CNT||' '||rec1.DEST_CNT);
     END LOOP;
CLOSE c1;
OPEN c2;
     LOOP
          FETCH c2 INTO rec2;
          EXIT WHEN c2%NOTFOUND;
DBMS_OUTPUT.PUT_line(rec2.TABLENAME||' '||rec2.FEED_TYPE||' '||rec2.FEED_PERIOD||
' '||rec2.SRC_CNT||' '||rec2.DEST_CNT);
     END LOOP;
CLOSE c2;
OPEN c3;
     LOOP
          FETCH c3 INTO rec3;
          EXIT WHEN c3%NOTFOUND;
DBMS_OUTPUT.PUT_line(rec3.TABLENAME||' '||rec3.FEED_TYPE||' '||rec3.FEED_PERIOD||
' '||rec3.SRC_CNT||' '||rec3.DEST_CNT);
     END LOOP;
CLOSE c3;
OPEN c4;
     LOOP
          FETCH c4 INTO rec4;
          EXIT WHEN c4%NOTFOUND;
DBMS_OUTPUT.PUT_line(rec4.TABLENAME||' '||rec4.FEED_TYPE||' '||rec4.FEED_PERIOD||
' '||rec4.SRC_CNT||' '||rec4.DEST_CNT);
     END LOOP;
CLOSE c4;
OPEN c5;
     LOOP
          FETCH c5 INTO rec5;
          EXIT WHEN c5%NOTFOUND;
DBMS_OUTPUT.PUT_line(rec5.TABLENAME||' '||rec5.FEED_TYPE||' '||rec5.FEED_PERIOD||
' '||rec5.SRC_CNT||' '||rec5.DEST_CNT);
     END LOOP;
CLOSE c5;
OPEN c6;
     LOOP
          FETCH c6 INTO rec6;
          EXIT WHEN c6%NOTFOUND;
DBMS_OUTPUT.PUT_line(rec6.TABLENAME||' '||rec6.FEED_TYPE||' '||rec6.FEED_PERIOD||
' '||rec6.SRC_CNT||' '||rec6.DEST_CNT);
     END LOOP;
CLOSE c6;
END vcmp_proc;
/

Hai,
Actually i checked that also...its going inside the loop. Only the
And also the same code is wrking fine in Dev...its not wrking in PROD alone.
So testing much in PROD also big hectic.
OPEN c;
     LOOP
DBMS_OUTPUT.PUT_line(".");
          FETCH c INTO rec;
          EXIT WHEN c%NOTFOUND;
DBMS_OUTPUT.PUT_line(rec.TABLENAME||' '||rec.FEED_TYPE||' '||rec.FEED_PERIOD||
' '||rec.SRC_CNT||' '||rec.DEST_CNT);
     END LOOP;
By above way i tested the code, its printing that dot. Only after fetching the record its not displaying.
Thanks!!!

Similar Messages

  • PL/SQL function not showing DMBS_OUTPUT.PUT_LINE result

    I have compiled a function and when I call it, the DMBS value is not shown.
    I have set serveroutput on
    I am using 9i.
    The function completes and provides a result:
    SQL> select textrawio.HEXTONUM('0D') from dual;
    TEXTRAWIO.HEXTONUM('0D')
    13
    The script:
    CREATE OR REPLACE PACKAGE BODY textrawio
    AS
      FUNCTION hextonum(v_hex VARCHAR2) RETURN NUMBER
      IS
        hex          VARCHAR2(4);
        num          NUMBER;
        num1         NUMBER;
        num2         NUMBER;
      BEGIN
    dbms_output.put_line ('hello');
        hex := SUBSTRB(v_hex,1,1);
        IF ( hex >= '0' and hex <= '9' ) THEN
          num1  := TO_NUMBER(hex);
        END IF;
        IF hex = 'A' TH...Any ideas from this snippet?
    I have never had a prob with DBMS_OUTPUT previously.
    There is no DMBS_OUTPUT_GET_LINE code.

    The full PL/SQL is
    CREATE OR REPLACE PACKAGE TEXTRAWIO
      IS
      FUNCTION tidblobchar(v_object_id char) RETURN VARCHAR2;
    END; -- Package Specification TEXTRAWIO
    SET SERVEROUTPUT ON
    CREATE OR REPLACE PACKAGE BODY textrawio
    AS
      FUNCTION tidblobchar(v_object_id char) RETURN VARCHAR2
      -- This function converts the long raw column of TIDBLOB to
      -- its character representation for manipulation.
      -- It can only be called for an object type of T.
      IS
        raw_data          LONG RAW;
        rawlen            NUMBER;
        hex_data          VARCHAR2(32760);
        char_data         VARCHAR2(32760);
        loop_counter      NUMBER;
      BEGIN
        -- Get the blob using the rowid passed in.
        -- Will always retrun only one row.
    dbms_output.put_line ('1');
        SELECT data
          INTO raw_data
          FROM ifsapp.client_profile_load
         WHERE v_object_id = rowid;
    dbms_output.put_line ('2');
        -- Convert the raw data to hex.   
        hex_data := rawtohex(raw_data);
        rawlen := length(hex_data);
        loop_counter := 1;
    dbms_output.put_line ('3');
        -- Loop through and convert the hex to characters.
        WHILE loop_counter <= rawlen LOOP
            char_data := char_data || CHR(to_number(SUBSTRB(hex_data,loop_counter,2),'xx'));
            loop_counter := loop_counter + 2;
        END LOOP;
        RETURN char_data;
      END;
    END;
    /Both parts compile but when I run it:
    SQL> select
      2  user_name, profile_name, data_length, textrawio.tidblobchar(rowid) data, timestamp
      3  from ifsapp.client_profile_load
      4  where data is not null
      5  ;
    user_name, profile_name, data_length, textrawio.tidblobchar(rowid) data, timestamp
    ERROR at line 2:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "IFSAPP.TEXTRAWIO", line 18I was hoping to use DBMS_OUTPUT to find which is the actual line having the error and later, what values it was dealing with.
    Thanks

  • Prob in decode function

    hi iam having prob with the following decode function
    declare
    c varchar2(20);
    begin
    select decode(deptno,
         10, 'accounting',
         20,'Research',
         30 ,'sales',
         40,'operations','UNKNOWN') into c from dept where loc='DALLAS';
    dbms_output.put_line('DEPARTMENT in DALLAS'||c);
    select decode(deptno,
         10, 'accounting',
         20,'Research',
         30 ,'sales',
         40,'operations','UNKNOWN') into c from dept where loc='INDIA';
    dbms_output.put_line('DEPARTMENT IN INDIA'||c);
    end;
    iam getting no_data_found exception which is reasonable..but what happened to 'unknown' clause in decode function.
    thank u
    rajiv

    DECODE only works on rows returned from the database. If there are no rows, DECODE has nothing to work on.
    Consider:
    SQL> SELECT DECODE(dummy, 'X', 'Found a row', 'No row')
      2  FROM dual;
    DECODE(DUMM
    Found a row
    SQL> SELECT DECODE(dummy, 'X', 'Found a row', 'No row')
      2  FROM dual
      3  WHERE 1=2;
    no rows selectedIf you want to have c contain UNKNOWN when there are no rows returned, you need to do something more like:
    DECLARE
    c VARCHAR2(20);
    BEGIN
       BEGIN
          SELECT DECODE(deptno, 10, 'accounting',
                                20,'Research',
                                30 ,'sales',
                                40,'operations','UNKNOWN')
          INTO c
          FROM dept
          WHERE loc='DALLAS';
       EXCEPTION
          c := 'UNKNOWN';
       END;
       DBMS_OUTPUT.Put_Line('DEPARTMENT in DALLAS'||c);
       BEGIN
          SELECT DECODE(deptno, 10, 'accounting',
                                20,'Research',
                                30 ,'sales',
                                40,'operations','UNKNOWN')
          INTO c
          FROM dept
          WHERE loc='INDIA';
       EXCEPTION
          c := 'UNKNOWN';
       END;
       DBMS_OUTPUT.Put_Line('DEPARTMENT IN INDIA'||c);
    END;HTH
    John

  • Prob with decode function

    hi iam having prob with the following decode function
    declare
    c varchar2(20);
    begin
    select decode(deptno,
    10, 'accounting',
    20,'Research',
    30 ,'sales',
    40,'operations','UNKNOWN') into c from dept where loc='DALLAS';
    dbms_output.put_line('DEPARTMENT in DALLAS'||c);
    select decode(deptno,
    10, 'accounting',
    20,'Research',
    30 ,'sales',
    40,'operations','UNKNOWN') into c from dept where loc='INDIA';
    dbms_output.put_line('DEPARTMENT IN INDIA'||c);
    end;
    iam getting no_data_found exception which is reasonable..but what happened to 'unknown' clause in decode function.
    thank u
    rajiv

    Please see the responses to your prob in decode function
    John

  • My apps dance open and close on their own in my IPad 2 what can be the prob? I have already restored

    I got the charger flex or pin changed and now the apps dance on the screen, photos open and zoom in, then out, the other apps open and close. I have already restored the device with Itunes and prob is still there. What can be the problem? Any suggestion will be welcome. Thank you

    THANKS for your prompt reply  Bluetooth is off in my laptop and IPhone.. and in fact the reset is the only thing that can make it back to normal. But for a lil while. I wonder if it is the touch, or the home botton... both things are very expensive to replace, so I wouldn't like to spend $$ and continue having the prob.....

  • ISE 1.2 - Multiple NICs/Load Balancing for DHCP Probe

    Hello guys
    Just prepping an ISE 1.2 patch 8 setup in our organization. I am going for the virtual appliances with multiple NICs. It will be a distributed deployment with 4 x PSNs behind a load balancer and there is no requirement for wireless or guest user at the moment. I've got 2 points I will like to get some guidance on:
    Our DC has a dedicated mgmt network and I plan to IP the gig0 interface of the PANs, MNTs and PSNs from this subnet. All device admin, clustering, config replication, etc will be over this interface. However, RADIUS/probe/other user traffic to the ISE PSNs will be over the gig1 interface which will be addressed from another L3 network. Is this a supported configuration in ISE?
    I intend to use the DHCP probe as part of device profiling and will ideally like to have just an additional ip helper to add to our switch SVI config. Also, it will appear that WLCs can only be configured for 2 DHCP servers for a given network so another consideration for when we bringing our WLAN in scope. We however use ACE load balancers within our DC and from what I have read, they do not support DHCP load balancing. Are there any workarounds to using the DHCP probe with multiple PSNs without having to add each node as an ip helper/DHCP server on the NADs?
    Thanks in advance
    Sayre

    Hello Sayre-
    For Question #1:
    Management is restricted to GigabitEthernet 0 and that cannot be changed so you should be good there
    You can configure Radius and Profiling to be enabled on other interfaces
    Even though you are not using guest services yet, you can dedicate an interface just for that. As a result, you can separate guest traffic completely from your production network
    Take a look at this link for more info:
    http://www.cisco.com/c/en/us/td/docs/security/ise/1-2/installation_guide/ise_ig/ise_app_c-ports.html
    For Question #2
    If you are using a Cisco WLC and running code 7.4 and newer you don't need to mess with the IP helper configurations. 
    The controller can be configured to act as a collector for client profiling and interact with the DHCP thread along with the RADIUS accounting task that is running on the controller. The controller receives a copy of the DHCP request packet sent from the DHCP thread and parses the DHCP packet for two options:
    –Option 12—HostName of the client
    –Option 60—The Vendor Class Identifier
    After this information is gathered from the DHCP_REQUEST packet, a message is formed by the controller with these option fields and is sent to the RADIUS accounting thread, which is in turn transmitted to the ISE in the form of an interim accounting message.
    Both DHCP and HTTP profiling settings are located under the "Advanced" configuration tab in the WLC
    On the other hand, you can also use Anycast for profiling. You can check out some of Cisco Live's sessions for more info on that. Here is one that is from a couple of years (There are more recent ones that are available as well):
    http://www.alcatron.net/Cisco%20Live%202013%20Melbourne/Cisco%20Live%20Content/Security/BRKSEC-3040%20%20Advanced%20ISE%20and%20Secure%20Access%20Deployment.pdf
    I hope this helps!
    Thank you for rating helpful posts!

  • Help me to make this workaround for dbms_output buffer(6502) problem click.

    Hi,
    what i am trying is to store multiline records into single variable. Say ename||'---'||empno||chr(10) ( chr(10) fro newline) from table emp into variable x. On outputting x o/p should be
    dbms_output.put_line(x)
    o/p to be :-
    scott---7306
    smith---7406
    continued like that.
    dbms_output.put_line( ) has buffer size of 255 so if more records x will not be displayed. value error will be there. for solution what i tried is to substring x again and again and display substring there and then.
    Here is my code :-
    declare
    x varchar2(4000);
    y varchar2(100);
    y1 varchar2(100);
    i number;
    j number :=1;
    k number;
    cursor c is select ename||'----'||empno||chr(10) from emp;
    begin
    open c;
    loop -- for all records to be in multiline manner in a single var
    fetch c into y ;
    exit when c%notfound;
    x:=x||y;
    end loop;
    close c;
    i:=instr(x,chr(10),1,1); -- initialise i with position of first appearance of chr(10)
    k:=2; -- i initialise it 2 so as to find second appearance of chr(10) in the loop
    loop -- this loop for outputting using substr
    y1:=substr(x,j,i); --- getting the first record say smith--7306 like that
    -- dbms_output.put_line(i);
    dbms_output.put_line(y1);
    j:=i+1; --- position from which next string to be extracted
    i:=instr(x,chr(10),1,k)-i; -- length of next appearance of chr(10)
    k:=k+1; -- incrementing for next chr(10)
    exit when(i<=0); -- instr returns 0 when chr(10) not found so exit
    end loop;
    end;
    desired output :-
    smith--7234
    scott--7321
    john--7431
    jack--7921
    output i am getting is like :-
    smith--7234
    scott--7321
    scott--7321
    john--7431
    john--7431
    jack--7921
    Not on expected lines. please help to correct this code.
    regards ravi.

    Is this not what you want?
    SQL>declare
      2     cursor c1 is select ename||'----'||empno details
      3                  from emp;
      4  begin
      5     for r1 in c1 loop
      6        dbms_output.put_line(r1.details);
      7     end loop;
      8  end;
      9  /
    KING      ----7839
    BLAKE     ----7698
    CLARK     ----7782
    JONES     ----7566
    MARTIN    ----7654
    ALLEN     ----7499
    TURNER    ----7844
    JAMES     ----7900
    WARD      ----7521
    FORD      ----7902
    SMITH     ----7369
    SCOTT     ----7788
    ADAMS     ----7876
    MILLER    ----7934
    KING      ----8888
    ADAMS     ----9999
    PL/SQL procedure successfully completed.
    SQL>Why do you need chr(10) again?
    Cheers
    Sarma.

  • DBMS_OUTPUT.PUT_LINE multi records from PL/SQL procedure to Java web page.

    Hello
    I will explain the scenario:
    In our java web page, we are using three text boxes to enter "Part number,Description and Aircraft type". Every time the user no need to enter all these data. The person can enter any combination of data or only one text box. Actually the output data corresponding to this input entries is from five Oracle table. If we are using a single query to take data from all the five tables, the database will hang. So I written a procedure "SEARCH1",this will accept any combination of values (for empty values we need to pass NULL to this procedure) and output data from all the five tables. When I executing this procedure in SQL editor, the execution is very fast and giving exact result. I used "dbms_output.put_line" clause for outputing multiple records in my procedure. The output variables are "Serial No, part Number, Description, Aircraft type,Part No1,Part No2,Part No3,Part No4". I want to use the same procedure "SEARCH1" for outputing data in java web page.The passing argument I can take from the text box provided in java web page. I am using jdbc thin driver to connect our java web page to Oracle 9i database.
    Note1 : If any combination of search item not available, in procedure itself I am outputing a message like "Part Number not found". Here I am using four words ("Part" is the first word,"Number" is the second,"Not" s the third, and "found" is the fourth) for outputing this message.Is it necessary to equalise number of words I am using here to the record outputing eight variable?
    Our current development work is stopped because of this issue. So any one familier in this field,plese help me to solve our issue by giving the sample code for the same scenario.
    My Email-id is : [email protected]
    I will expect yor early mail.
    With thanks
    Pramod kumar.

    Hello Avi,
    I am trying to solve this issue by using objects. But the following part of code also throwing some warning like "PLS-00302: component must be declared". Plese cross check my code and help me to solve this issue.
    drop type rectab;
    create or replace type rectype as object(PartNo varchar2(30),Description varchar2(150),AIrcraft_type varchar2(15),status_IPC varchar2(30),status_ELOG varchar2(30),status_SUPCAT varchar2(30),status_AIRODWH varchar2(30));
    create or replace type rectab as table of rectype;
    create or replace package ioStructArray as
    procedure testsch2(pno in varchar2,pdes in varchar2,air in varchar2,orec in out rectab);
    end ioStructArray;
    create or replace package body ioStructArray as
    procedure testsch2(pno in varchar2,pdes in varchar2,air in varchar2,orec in out rectab) is
    mdescription varchar2(150);
    mpartnum varchar2(30);
    mpno varchar2(30);
    mdes varchar2(150);
    mair varchar2(15);
    mstat varchar2(1);
    cursor c1 is select partnum,description,aircraft_type from master_catalog where partnum=mpno and aircraft_type=mair and description like ltrim(rtrim(mdes))||'%';
    cursor c2 is select partnum from ipc_master where partnum=mpartnum;
    cursor c3 is select partnum from fedlog_data where partnum=mpartnum;
    cursor c4 is select partnum from superparts where partnum=mpartnum;
    cursor c5 is select part_no from supplier_catalog where part_no=mpartnum;
    mpno1 varchar2(30);
    mpno2 varchar2(30);
    mpno3 varchar2(30);
    mpno4 varchar2(30);
    mpno5 varchar2(30);
    maircraft_type varchar2(15);
    mstat1 varchar2(30);
    mstat2 varchar2(30);
    mstat3 varchar2(30);
    mstat4 varchar2(30);
    begin
    mstat:='N';
    mpno:=pno;
    mdes:=pdes;
    mair:=air;
    if mpno is not null and mdes is not null and mair is not null then
    begin
    mstat:='N';
    mpno:=pno;
    mdes:=pdes;
    mair:=air;
    for i in c1 loop
    mstat:='N';
    mstat1:='N';
    mstat2:='N';
    mstat3:='N';
    mstat4:='N';
    mpno1:=i.partnum;
    mpartnum:=i.partnum;
    mdescription:=i.description;
    maircraft_type:=i.aircraft_type;
    for j in c2 loop
    mpno2:=j.partnum;
    end loop;
    for k in c3 loop
    mpno3:=k.partnum;
    end loop;
    for l in c4 loop
    mpno4:=l.partnum;
    end loop;
    for m in c5 loop
    mpno5:=m.part_no;
    end loop;
    if mpno2=mpartnum then
    mstat1:=mpno2;
    end if;
    if mpno3=mpartnum then
    mstat2:=mpno3;
    end if;
    if mpno4=mpartnum then
    mstat3:=mpno4;
    end if;
    if mpno5=mpartnum then
    mstat4:=mpno5;
    end if;
    if mpno1=mpartnum then
    mstat:='Y';
    orec.PartNo:=mpno1;
    orec.Description:=mdescription;
    orec.AIrcraft_type:=maircraft_type;
    orec.status_IPC:=mstat1;
    orec.status_ELOG:=mstat2;
    orec.status_SUPCAT:=mstat3;
    orec.STATUS_AIRODWH:=status_AIRODWH;
    end if;
    end loop;
    end;
    end if;
    end testsch2;
    end ioStructArray;
    Expecting your early reply.
    With thanks
    Pramod kumar.

  • I'm try to buy a movie from iTunes with my I pad 3 and it tells me there is not enough local storage and when I go to my local storage there is a lot on free storage I also restarted my ipad but still the same prob what do I do?

    I'm try to buy a movie from iTunes with my I pad 3 and it tells me there is not enough local storage and when I go to my local storage there is a lot on free storage I also restarted my ipad but still the same prob what do I do?

    5GB is typically not enough space to download a movie.  Often, movies take from 3 - 5 GB to begin with.  The only option you have is to delete more things from your iPad.  You can remove unused Apps, pictures, music, text message (messages with pictures can take up a lot of space), email messages, books, magazines etc.

  • Issue in FF v 3.6.10: I have a page which have more than 20 link, clicking on these link opens up a popup using window.showModalDialog, for the first 20 popup opens up without any prob but for the 21st n more click it block the popup and do not open.

    Issue in FF v 3.6.10: I have a web page which have more than 20 link, clicking on each of these link opens up a pop-up using window.showModalDialog, for the first consecutive 20 popup opens up without any prob but for the 21st n more click it block the popup and do not open. This is m problem, the real user on the web page can click on more than 20 link in such a scenario it may create problem, please help

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 9.0 r999
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    In Firefox 3.6 and later versions you need the Next-Generation Java™ Plug-In present in Java 6 U10 and later (Linux: libnpjp2.so; Windows: npjp2.dll).
    http://java.com/en/download/faq/firefox_newplugin.xml
    See also http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html

  • Prob. with iTunes, Phone won't shut off.  Tks.

    3GS with 6.1.3 Prob. with iTunes.  When I want to close out of iTunes after a Podcast the App will not close out when I hit Home. All other Apps shut down, only prob. is with iTunes.  Cant turn phone off goes back ti iTunes when turned on again.  Tks.

    I hope the previous replies are wrong. It was my understanding that even when Match is turned off in iTunes, music previously matched or uploaded to iCloud will stay there, associated with my Apple ID, even through a cold boot etc. If you want to remove songs from iCloud, but keep them locally, do this:
    1. Click "Store" in the iTunes top Menu
    2. Select "Turn on iTunes Match" (if it isn't already turned on)
    3. Close iTunes.
    4. Hold down the Shift key while you open iTunes - this will prompt you to choose or create a (new, locally empty) Library in a different folder from your main Library.
    5. Now you should see ONLY music that is stored in iCloud.
    6. Delete them all. iTunes will show a checkbox or button for you to click to delete the selected items from iCloud.
    7. Turn off iTunes Match (see #1)
    8. Restart iTunes with the Shift key again, so you can get back to your main Library - with Match turned off.

  • Prob with iTunes on Vista! Please Help!

    hi guys,
    i am getting the following error message when i install iTunes 7.5 version
    [IMG]http://img403.imageshack.us/img403/8344/itunesprobbo9.jpg[/IMG]
    i also tried iTunes 7.4 version but i am getting the same error message
    iTunes used to work before, but suddenly the prob
    i tried unistalling and installing the app again but in vain...
    Please Help!
    Thanks in advance!
    -Manish

    “iTunes.exe – Bad Image” ... “C:\Windows\system32\mssip32.dll is either not designed to run on Windows or it contains an error. Try installing the program using the original installation media or contact our system administrator or the software vendor for support.”
    Okay. Literally, it's saying that one of the dlls associated with Cryptographic Services on the PC is damaged. That can cause an iTunes launch failure.
    ... However, most of our experience here at Discussions is with troubleshooting these sorts of messages on Windows XP systems, rather than Vista and I don't have a Vista box handy for reference.
    So, if you don't receive any further replies here, it might be best to try posting instead at the Windows Vista Community Discussions Groups. Fingers crossed someone there might be better placed to help you troubleshoot this:
    http://windowshelp.microsoft.com/communities/newsgroups/en-us/default.mspx
    (Not trying to get rid of you here, just trying to get you on the radar screens of people who might be in a better position to help.)

  • TS1702 Telegraph app does not allow access to newspaper says have not paid subscription. Paid through iTunes and tel says it is iTunes prob. Can't talk to anybody at itunes

    Telegraph app does not allow access to newspaper. Says. Have not paid sub but pay via iTunes Store. Telegraph says it is an iTunes prob but I can't get to talk to anyone there! Any suggestions please?

    Just got this -
    Dear iTunes Customer,
    You recently received an email informing you that your iTunes Match Subscription could not be auto-renewed. We have resolved the problem and your iTunes Match Subscription has been renewed.
    We apologize for the delay with your auto-renewal. If you have any questions, please contact AppleCare at http://www.apple.com/support/itunes/
    I hope everyone else is all set too.

  • Hi, have a iphone/macbook itunes prob. i connected my phone to mac to add songs, and it wiped 99% of music from my phone. on the mac it still lists the songs on my phone but they are greyed out. can anyone help? very frustrated and want my music back.

    hi, have a iphone/macbook itunes prob. i connected my phone to mac to add songs, and it wiped 99% of music from my phone. on the mac it still lists the songs on my phone but they are greyed out. can anyone help? very frustrated and want my music back.

    I am having the same problem. I have just tried this. Unplug iphone > open itunes > delete all music from itunes library > close itunes > re-open itunes > add music from original folder > plug in iphone > select songs > press sync > unplug iphone using eject button onscreen > checked phone .... still nothing in music folder on phone. On itunes the "On this iphone" tab the songs remain there but greyed out.

  • Itunes in my laptop is not showing my iphone5 (7.0.4) but it has no problem wat so ever showing in another laptop...and my laptop has no prob showing other iphones

    itunes in my laptop is not showing my iphone5 (7.0.4) but it has no problem wat so ever showing in another laptop...and my laptop has no prob showing other iphones

    Hi siva samba,
    If you are having issues with your iPhone not being recognized in iTunes, you may find one of the following articles helpful:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    iOS: Device not recognized in iTunes for Mac OS X
    http://support.apple.com/kb/TS1591
    Regards,
    - Brenden

Maybe you are looking for

  • Problem with free of cost when contract price is maintained

    We want to create an FOC sales order for a particular customer, particular material, etc. This material has a contract price (ZCON). We set the usage in the header to FOC and itemcategory ZTNN is determined. This is correct. Nevertheless the item is

  • IDVD scratch disk

    Having an older computer with a much smaller internal drive (that does not have much spare space), can I either have iDVD using a scratch disk on another drive with much bigger capacity, or will iDVD be happy not being on the boot drive? I have heard

  • Command line option to specify Bridge master cache

    Please allow a bridge command line option to allow the user to select a specific bridge master cache. The  motivation is as follows:  I have written a c++ programme to key-word  all of my many thousands of photo projects.  Essentially each project is

  • How do you export a movie to an image sequence in iMovie 10.0.4?

    Hi, I'm trying to create an animated gif.  In order to do so I need to export my short two-second movie as a sequence of .jpg's or .png's.  This was possible in earlier versions, but I can't find it on this one. I'm using an iMac with OS 10.9.4 runni

  • Oracle 9.2 Join error

    Hi, When i try to execute joins in Oracle 9.2 its failing. Select a.empno,a.name,b.deptnum from emp a , dept b where a.deptno=b.empno. When i try to execute the query in VisualBasic,its not selecting the a.empno whereas it is selecting the remaining