How to see the datas stored in DBMS_SQL.Varchar2S variable?

how to see the datas stored in DBMS_SQL.Varchar2S variable?
it says error if i use dbms_out.put_line.

in PLSQL :
procedure p_try (p_test IN OUT DBMS_SQL.VARCHAR2S) is
begin
    p_test.delete ;
    p_test(    -3000) := '===============' ;
    p_test(       22) := 'Hello'  ;
    p_test(    55555) := 'World' ;
    p_test(987654321) := '===============' ;
end p_try;
set serveroutput on
declare
     l_test dbms_sql.varchar2s ;
     i number ;
begin
     p_try (l_test) ;
     i :=  l_test.first ;
     while i >= l_test.first and i <= l_test.last loop
             dbms_output.put_line (l_test(i)) ;
             i := l_test.next(i) ;
     end loop ;
end ;
===============
Hello
World
===============when using Forms, you would use TEXT_IO instead of DBMS_OUTPUT

Similar Messages

  • How to see the data stored in the t.code: cat2.

    Hi All
    I am doing Userexits
    here using CATS0006 exit.and T.code CAT2 i am entering values and i saved, it's showing data is saved.
    but i am not able to see that values, where it will store the data.
    Regards....

    Hi Chinna,
    The entries are stored in the CATSDB table.. you can do a look up by PERNR, DATE & Attendance/Absence type on this table to see what you have saved voa CAT2 transaction.
    Regards,
    Suresh Datti

  • How to see the data records for a dso based upon the request id?

    Hi all,
    How to see the data records based upon the request id on the dso.
    I need to see the data for a dso based upon the request id 444493 loaded from another dso through repair full update.
    thanks

    Hi,
    Step 1: select your request from DSO request tb
    Step 2: Select your DSO just above your contents/requests/reconstruction tabs
    Step 3: Click contents(Spectacles symbol) in the top area of your screen
    Step 4: Slect the required fields
    Regards,
    Suman

  • How to see the data after deploying

    Hi, I installed owb 9.2.0.2 and created a test mapping and deployed it successfully. It inserted few rows in my table. How can i see the data which was inseted other than SQLplus.
    Can i view data trough any OWb reports or do I need to use discoverer or report tools to view the data.

    Hi Sam,
    SQL Plus is one route, the other is indeed Discoverer or any relational query tool. For 10gR2 we are adding data viewers so you can see this directly in OWB.
    Jean-Pierre

  • How to access the data stored in Java tables in E-Commerce 7.0

    For the CRM E-Commerce 7.0 Web shop all the data related order templates, Shop Id and catalog variants are not getting stored in CRM tables. Can anyone please let us know where all the details are getting stored.
    By searching here, in SDN Forum we found that these details are getting stored in some java tables. If this is true  kindly let us know the following points.
    1). How can we access these tables.
    2).Where these java tables are stored .
    3).Do we have authorizations to check and modify these tables.
    4).If we donu2019t have authorizations to check and modify these tables, how can we get the access to them.
    4).How can we write Database Queries to retrieve the data from these tables.

    I am afraid, all these three entities are in CRM tables.
    Web Shops - Function module CRM_ISA_SHOP_GETLIST, Table crmm_isa_shop_h
    Catalog Variants - Function module - COM_PRDCAT_GET_VARIANTS (they are also stored in CRM tables) for a given catalog.
    Now for the Order Templates - They are technically order objects with system status set to "Order Template" I1034. You should be able to see them in CRM tables alongwith other orders... crmd_orderadm_h and etc...

  • How to see the data in data containers when working on Generic Sync ?

    Hi All,
    I am working on Mobile Sales For HandHeld Generic Sync based application. To check the data transafer from Mi Client > MI server> CRM backend, we are using Generic Sync Queue Monitor in NWA. But how to check the actual dara in data containers showed on the monitor? Any specific transaction ( e.g. merep_mon for smart sync) to chk the same?
    Thanks & regards,
    Rucha Atre

    Hi,
    This is a tedious process of viewing the data in the containers since there is no tool to monitor the same. The data sent from the client is stored MESYHEAD and MESYBODY. Once the entire processing is completed then the entries from this table is deleted. If the processing has failed or not taken place then the entries will in this table.
    Data Containers will name value pairs with field name and data in the data field. This table will also contain data from smart sync applications.
    Thanks..
    Preetham S

  • How to retrieve the data stored in BLOB field in MySql using java?

    Hi all!
    i stored a file content into the MySql database in BLOB field.
    and i now want retrieve the data......
    Please help me out in doing the task...........
    Thanx...........

    Thrisha..
    When u get a result set u can have rs.getBlob() function that will give u a BLOB object that can be captured using Blob interface of javax.sql package...
    Blob interface has getBinaryStream, getBytes etc as functions...
    i think i cleared u
    regards
    Shanu

  • How to see the data of the table once it has been published

    Hi
    How can we access the data of the table in the data model which has been successfully deployed on Apache Axis2 using OC4J.
    Thanks

    Hi Brad,
    Thanks a lot for your reply.
    I found StartPointbaseConsole.cmd file at following location .
    C:\BEA\weblogic81\common\bin
    C:\BEA\weblogic81\common\eval\pointbase\tools
    C:\BEA\weblogic81\samples\domains\end2end
    C:\BEA\weblogic81\samples\domains\portal
    C:\BEA\weblogic81\samples\domains\integration
    C:\BEA\weblogic81\samples\domains\workshop
    C:\BEA\user_projects\domains\<mydomain>
    I opened the the pointbase console and in each case i am getting the message while executing the query "select * from PF_PORTLET_DEFINITION"
    "Invalid table name".
    I am new to weblogic portal please provide me some more information regarding this.
    Regards,
    Sandeep K
    Edited by: user10952751 on Jul 15, 2009 8:34 AM

  • How to see the ABAP Code behind SAP Exit Variables.

    Hi Everyone.
    I was wondering if anyone could help me with the steps to see the ABAP Code behind a SAP Exit Variable.
    Sometime back I remember of going to Transaction SE37 - Function Module and give the Variable name,
    Eg: 0F_ADAY, Hit F4 or something like that and was able to see the ABAP Code/Function Module/Exit written for that Variable.same
    But today I tried to do the same thing to see the code for Variable 0P_FVAEX but I was NOT able to see it.
    I think I am missing something.
    Can someone help me recollect what I am missing.
    Thank You for your time
    NOVICE

    Hi bi novice,
    big sorry for the late reply!
    The following variables are defined in function module RREX_VARIABLE_EXIT as case statement:
    '0CMONTH', '0CWEEK', '0CYEAR', '0CQUART', '0DAT', '0CWD', '0FYEAR', '0FPER', '0FYTCFP',
    '0FYTLFP', '0FYTCD', '0CYTCM', '0CYTLM', '0CYTCD', '0LYTCLD', '0CMONTHT', '0CWEEKT', '0CYEART', '0CQUARTT', '0DATT', '0FYEART', '0FPERT'
    Best regards,
    Andreas

  • How to see the record stored in multiple table

    please send me the

    Hi,
    You can do it like this:
    DECLARE
    rec_count NUMBER;
    BEGIN
    FOR tbl_cur IN (SELECT table_name from user_tables)
    LOOP
      EXECUTE IMMEDIATE 'SELECT COUNT(*) FROM '||tbl_cur.table_name INTO rec_count;
      IF rec_count >0 THEN
        DBMS_OUTPUT.PUT_LINE(tbl_cur.table_name||' has data.');
      ELSE
        DBMS_OUTPUT.PUT_LINE(tbl_cur.table_name||' has no data.');
      END IF;
    END LOOP;
    END;**not tested**
    Regards
    Avinash

  • How to see the data from the execute immediate o/p

    Hello
    i tried the following code
    SQL> declare
      2  vSql varchar2(3000);
      3  begin
      4  vSql:='SELECT';
      5   for i in (select column_name from user_tab_columns where table_name='EMP' order by column_name
      6   loop
      7     vSql:=vSql||i.column_name||',';
      8   end loop;
      9   execute immediate rtrim(vSql)||' '||'from emp';
    10  end;
    11  /
    declare
    ERROR at line 1:
    ORA-00900: invalid SQL statement
    ORA-06512: at line 9Please guide me to solve this error
    Edited by: josh1612 on Jun 22, 2010 3:58 AM

    josh1612 wrote:
    I need to execute that printed statment select ... from emp
    You are already executing it by using:
    execute immediate rtrim(vSql,',')||' from emp';What you probably want is to display results, right? Then you can either use bulk collect into clause in execute immediate or use cursor variable. Bulk collect example:
    set serveroutput on
    declare
      vSql varchar2(3000);
      type emp_rec_tbl_type is table of emp%rowtype;
      emp_rec_tbl emp_rec_tbl_type;
    begin
      vSql:='SELECT ';
       for i in (select column_name from user_tab_columns where table_name='EMP' order by column_id)
       loop
         vSql:=vSql||i.column_name||',';
       end loop;
       dbms_output.put_line(rtrim(vSql,',')||' from emp');
       execute immediate rtrim(vSql,',')||' from emp' bulk collect into emp_rec_tbl;
       for i in 1..emp_rec_tbl.count loop
         dbms_output.put_line(rpad(emp_rec_tbl(i).ename,10) || emp_rec_tbl(i).sal);
       end loop;
    end;
    SELECT EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO from emp
    SMITH     800
    ALLEN     1600
    WARD      1250
    JONES     2975
    MARTIN    1250
    BLAKE     2850
    CLARK     2450
    SCOTT     3000
    KING      5000
    TURNER    1500
    ADAMS     1100
    JAMES     950
    FORD      3000
    MILLER    1300
    PL/SQL procedure successfully completed.
    SQL> Cursor variable example:
    set serveroutput on
    declare
      vSql varchar2(3000);
      emp_rec emp%rowtype;
      cv sys_refcursor;
    begin
      vSql:='SELECT ';
       for i in (select column_name from user_tab_columns where table_name='EMP' order by column_id)
       loop
         vSql:=vSql||i.column_name||',';
       end loop;
       dbms_output.put_line(rtrim(vSql,',')||' from emp');
       open cv for rtrim(vSql,',')||' from emp';
       loop
         fetch cv into emp_rec;
         exit when cv%notfound;
         dbms_output.put_line(rpad(emp_rec.ename,10) || emp_rec.sal);
       end loop;
       close cv;
    end;
    SELECT EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO from emp
    SMITH     800
    ALLEN     1600
    WARD      1250
    JONES     2975
    MARTIN    1250
    BLAKE     2850
    CLARK     2450
    SCOTT     3000
    KING      5000
    TURNER    1500
    ADAMS     1100
    JAMES     950
    FORD      3000
    MILLER    1300
    PL/SQL procedure successfully completed.
    SQL> SY.

  • How can I see the data in the aggregates

    how can see the data available in the aggregates.
    Jay

    Hi Jay,
    its so simple,
    please goto the manage aggregates screen and copy the technical name of the aggregate and add
    /bic/exxx  xxx is the aggregate technical name, and for f fat table use /bic/fxxx, and go to se16 and enter the table name and thats it ur data is with u.
    R

  • How to see the GL Accounts balance carry forwarded date

    hi gurus
    can you help me, how to see the date of last GL accounts Carry forwarded?
    thanks in advance
    amk

    That information will not be any use.
    You can carry forward any number of times - the last should be after closing of previous years accounts.
    Hope it is clear.

  • How to check the data in a temporary table

    Hi,
    A procedure inserting data into a temporary table , data exists in the table now. so, how to see the data from the temporary table. Is it possible to see from the sqlplus by selecting, right now i'm not getting any data. .thanks Bcj.

    If you are referring to Global Temporary Tables, then the only way to see the contents of the table are to select from the table while connected to the same session that inserted the data into the GTT.
    Please note however that there is not a 1 to 1 correspondence between sessions and users (shcemas). A user may be connected to 1 or more sessions, but it is only the session that inserted the records that will be able to view the records.

  • How to see the result

    hi every body...
    i want to get the result of any table..
    for ex: select * from dept;
    the o/p should be like(10~Accounts~new york)
    for this i wrote this code.... it run sucessfully;
    my prob is how to see the Result..
    declare
    tn varchar2(35);
    sqlstmt varchar2(2000);
    rc sys_refcursor;
    begin
    tn := '&tn';
    sqlstmt := 'select * from '||tn;
    open rc for sqlstmt;
    end;
    post u r comments,Hints and suggestion...

    post u r comments,Hints and suggestion...
    SQL> var rc refcursor
    SQL> begin
      2     open :rc for  'select * from &tn';
      3  end;
      4  /
    Enter value for tn: emp
    old   2:    open :rc for  'select * from &tn';
    new   2:    open :rc for  'select * from emp';
    PL/SQL procedure successfully completed.
    SQL> print rc
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7369 SPENCER    CLERK           7902 17-DEC-80        800                    20
          7499 VERREYNNE  SALESMAN        7698 20-FEB-81       1600        300         30
          7521 VAN WIJK   SALESMAN        7698 22-FEB-81       1250        500         30
          7566 MAINGUY    MANAGER         7839 02-APR-81       2975                    20
          7654 KISHORE    SALESMAN        7698 28-SEP-81       1250       1400         30
          7698 BARRY      MANAGER         7839 01-MAY-81       2850                    30
          7782 BOEHMER    MANAGER         7839 09-JUN-81       2695                    10
          7788 PADFIELD   ANALYST         7566 09-DEC-82       3000                    20
          7839 SCHNEIDER  PRESIDENT            17-NOV-81       5500                    10
          7844 GASPAROTTO SALESMAN        7698 08-SEP-81       1500          0         30
          7876 CAVE       CLERK           7788 12-JAN-83       1100                    20
          7900 CLARKE     CLERK           7698 03-DEC-81        950                    30
          7902 JAFFAR     ANALYST         7566 03-DEC-81       3000                    20
          7934 ROBERTSON  CLERK           7782 23-JAN-82       1430                    10
           109 JOMAR                                                                   30
          8800 VISWARAYAR INTERN          7934 03-OCT-82          0                    10
    16 rows selected.
    SQL> Cheers, APC
    Blog : http://radiofreetooting.blogspot.com/

Maybe you are looking for

  • Mac wifi really, really slow after 10.9.4 update

    Hi, So the other day I updated my MacBook Pro (2.5 GHz Intel Core i5) to Version 10.9.4. Everything worked fine that evening, then I packed up my mac and drove all day home. Then when I got home my wifi was being ridiculously slow, almost as if I was

  • Does not open in illustrator

    I'm logged with the same account on the Mac and iPad but when I send the file nothing happens on the mac. The same for Photoshop and InDesign. Any Ideas? Thanks!

  • CS6 Vector Shape not visible in Layers Panel

    Anyone have any idea how to get my shape outline back? Adjusting the panel preferences has no effect. Really obnoxious bug, since obviously I can't even see my shape until I select it (and even then, it's pretty hard to find).

  • API changes in AEM 5.6

    Hi All,       Is CQ Providing any documentation related to API changes from previous versions of CQ - CQ 5.6. Example: [1] com.day.cq.workflow [2] com.adobe.granite.workflow API [1] has been replaced with [2] in AEM 5.6. Thanks Siva

  • MRP document type

    Dear Expert I am creating PR from MRP run but the system is creating PR of different document type how can i tag the document type using mrp run Regards