How many LOBs in a table?

Does it make sense having a table with 13 CLOBs? It seems to me that it would be better having not more than one LOB in a table. Do I remember well? In the DB I've been asked to tune and optimize, I've found such situations. Is it terrible or am I mistaken? Thanks!

MichaelS wrote:
LOB's are stored in seperate space outside the table with a LOB pointer stored on the tableNot generally: Inline and Out-of-Line LOB Storage, e.g. the smaller sized lobs can be stored inline.Ooo, yeah, I forgot about the inline ones. Good reminder thanks.

Similar Messages

  • Is there an easy way to see how many rows in a table? (selected or unselected)

    Hi all,
    Forgive me if this is a REALLY dumb question but I would love to know if there there is an easy way to to see how many rows there are in a table in InDesign?
    (And I bet I am really going to kick myself when I hear the answer and how simple it probably is..lol !)
    I am working on a huge catalog and am dealing with LOTS of tables...very long tables too at times. I am also doing a lot of copying and pasting back and forth between InDesign and Excel and it would REALLY help if I knew how many rows there are in a table without having to manually count them (TIRESOME!!).
    Also, is there a way to see how many rows I have selected at any one time? It would be SO WONDERFUL if the info box could also provide this information.
    Thank you SO MUCH in advance for your help:))
    Christine
    **UPDATE**
    Oh boy I AM going to kick myself! Why only NOW that I wrote this question did I suddenly notice that the Table palette shows the number of rows and columns? lol.
    Okay, then is there a way to see how many rows I have selected at any given time?

    @Christine – try the following ExtendScript (JavaScript):
    if(app.selection.length === 0
        || !app.selection[0].constructor.name === "Cell"
        || !app.selection[0].constructor.name === "Table"){
        exit(0);
    var sel = app.selection[0];
    if(sel.constructor.name === "Cell"){
        var tableRowLength = sel.parent.rows.everyItem().getElements().length;
    if(sel.constructor.name === "Table"){
        alert("All "+sel.rows.everyItem().getElements().length+" rows selected in current table." );
        exit(0);
    var numberOfRowsSelected = sel.rows.length;
    var indexOfSelectedRows = sel.rows.everyItem().index;
    var startRowSel = indexOfSelectedRows[0]+1;
    var endRowSel = indexOfSelectedRows.length+indexOfSelectedRows[0];
    alert(numberOfRowsSelected +" row(s) selected.\r"+startRowSel+" to "+endRowSel+" out of "+tableRowLength+" of current table.");
    You need not select whole rows, just one or a couple of cells.
    Then run the script.
    An alert message is telling you how many rows belong to the cell range you have selected and:
    which rows of the table are selected…
    A typical message would be:
    6 row(s) selected.
    3 to 8 out of 20 of current table.
    The script does some basic checks of the selection.
    If no cell or table is selected, it will just do nothing…
    Uwe
    Message was edited by: Laubender | Some language cosmetics in the alert message

  • How many extents allocated when table created?

    I am using Oracle 9,
    is the number going to be what we specified by minextents?
    thanks

    Srinivas,
    You said,
    If its AUTOALLOCATE , Oracle starts with 1 extent of 64KB , then 128KB as the first extent becomes full, then 256KB so on....
    Can you help me in understanding this statement?I don't think that its true. See here,
    SQL> select * from V$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    SQL> drop tablespace test including contents and tablespaces;
    drop tablespace test including contents and tablespaces
    ERROR at line 1:
    ORA-00905: missing keyword
    SQL> drop tablespace test including contents and datafiles;
    Tablespace dropped.
    SQL> create tablespace test datafile 'd:\test.dbf' size 100m extent
    ocal autoallocate ;
    Tablespace created.
    SQL> select tablespace_name,initial_extent,next_extent from dba_tab
      2  where tablespace_name='TEST'/
      3
    SQL> select tablespace_name,initial_extent,next_extent from dba_tab
      2  where tablespace_name='TEST'
      3  /
    TABLESPACE_NAME                INITIAL_EXTENT NEXT_EXTENT
    TEST                                    65536
    SQL> --Creating a table inside in this tablespace
    SQL> create table t as select * from dba_objects;
    Table created.
    SQL> alter table t move tablespace test;
    Table altered.
    SQL> select tablespace_name, extent_id, bytes/1024, blocks
      2  from user_extents
      3  where segment_name = 'T';
    TABLESPACE_NAME                 EXTENT_ID BYTES/1024     BLOCKS
    TEST                                    0         64          8
    TEST                                    1         64          8
    TEST                                    2         64          8
    TEST                                    3         64          8
    TEST                                    4         64          8
    TEST                                    5         64          8
    TEST                                    6         64          8
    TEST                                    7         64          8
    TEST                                    8         64          8
    TEST                                    9         64          8
    TEST                                   10         64          8
    TABLESPACE_NAME                 EXTENT_ID BYTES/1024     BLOCKS
    TEST                                   11         64          8
    TEST                                   12         64          8
    TEST                                   13         64          8
    TEST                                   14         64          8
    TEST                                   15         64          8
    TEST                                   16       1024        128
    TEST                                   17       1024        128
    TEST                                   18       1024        128
    TEST                                   19       1024        128
    TEST                                   20       1024        128
    21 rows selected.
    SQL>
    SQL> insert into t select * from t;
    50356 rows created.
    SQL> /
    100712 rows created.
    SQL> /
    201424 rows created.
    SQL> /
    402848 rows created.
    SQL> commit;
    Commit complete.
    SQL> analyze table t compute statistics;
    Table analyzed.
    SQL> select tablespace_name, extent_id, bytes/1024, blocks
      2  from user_extents
      3  where segment_name = 'T';
    TABLESPACE_NAME                 EXTENT_ID BYTES/1024     BLOCKS
    TEST                                    0         64          8
    TEST                                    1         64          8
    TEST                                    2         64          8
    TEST                                    3         64          8
    TEST                                    4         64          8
    TEST                                    5         64          8
    TEST                                    6         64          8
    TEST                                    7         64          8
    TEST                                    8         64          8
    TEST                                    9         64          8
    TEST                                   10         64          8
    TABLESPACE_NAME                 EXTENT_ID BYTES/1024     BLOCKS
    TEST                                   11         64          8
    TEST                                   12         64          8
    TEST                                   13         64          8
    TEST                                   14         64          8
    TEST                                   15         64          8
    TEST                                   16       1024        128
    TEST                                   17       1024        128
    TEST                                   18       1024        128
    TEST                                   19       1024        128
    TEST                                   20       1024        128
    TEST                                   21       1024        128
    TABLESPACE_NAME                 EXTENT_ID BYTES/1024     BLOCKS
    TEST                                   22       1024        128
    TEST                                   23       1024        128
    TEST                                   24       1024        128
    TEST                                   25       1024        128
    TEST                                   26       1024        128
    TEST                                   27       1024        128
    TEST                                   28       1024        128
    TEST                                   29       1024        128
    TEST                                   30       1024        128
    TEST                                   31       1024        128
    TEST                                   32       1024        128
    TABLESPACE_NAME                 EXTENT_ID BYTES/1024     BLOCKS
    TEST                                   33       1024        128
    TEST                                   34       1024        128
    TEST                                   35       1024        128
    TEST                                   36       1024        128
    TEST                                   37       1024        128
    TEST                                   38       1024        128
    TEST                                   39       1024        128
    TEST                                   40       1024        128
    TEST                                   41       1024        128
    TEST                                   42       1024        128
    TEST                                   43       1024        128
    TABLESPACE_NAME                 EXTENT_ID BYTES/1024     BLOCKS
    TEST                                   44       1024        128
    TEST                                   45       1024        128
    TEST                                   46       1024        128
    TEST                                   47       1024        128
    TEST                                   48       1024        128
    TEST                                   49       1024        128
    TEST                                   50       1024        128
    TEST                                   51       1024        128
    TEST                                   52       1024        128
    TEST                                   53       1024        128
    TEST                                   54       1024        128
    TABLESPACE_NAME                 EXTENT_ID BYTES/1024     BLOCKS
    TEST                                   55       1024        128
    TEST                                   56       1024        128
    TEST                                   57       1024        128
    TEST                                   58       1024        128
    TEST                                   59       1024        128
    TEST                                   60       1024        128
    TEST                                   61       1024        128
    TEST                                   62       1024        128
    TEST                                   63       1024        128
    TEST                                   64       1024        128
    TEST                                   65       1024        128
    TABLESPACE_NAME                 EXTENT_ID BYTES/1024     BLOCKS
    TEST                                   66       1024        128
    TEST                                   67       1024        128
    TEST                                   68       1024        128
    TEST                                   69       1024        128
    TEST                                   70       1024        128
    TEST                                   71       1024        128
    TEST                                   72       1024        128
    TEST                                   73       1024        128
    TEST                                   74       1024        128
    TEST                                   75       1024        128
    TEST                                   76       1024        128
    TABLESPACE_NAME                 EXTENT_ID BYTES/1024     BLOCKS
    TEST                                   77       1024        128
    TEST                                   78       1024        128
    TEST                                   79       8192       1024
    TEST                                   80       8192       1024
    TEST                                   81       8192       1024
    82 rows selected.
    SQL>Its not working in the way youmentioned. The extents are of 65kb till 16 extents than it changes to 1024kb untill 78 and then 8192 kb. Is it something that I am missing?
    Aman....

  • How many times will internal table get filled?

    Dear BW / ABAP gurus:
    I am observing a routine in a transformation in 7.0 data flow.
    The internal table is created as follows in the global declaration in the Start Routine:
    TYPES:  BEGIN OF ST_PROD,
              /BIC/AZPROD TYPE /BIC/OIAZPROD,
              /BIC/AZCOST TYPE /BIC/OIAZCOST,
            END OF ST_PROD.
    DATA: IT_PROD TYPE TABLE OF ST_PROD,
          WA_PROD TYPE ST_PROD.
    The programmer is fetching data for product cost which is not available in the source. This code is written in the Start Routine:
    SELECT /BIC/AZPROD /BIC/AZCOST
      FROM /BIC/PAZPROD
      INTO CORRESPONDING FIELDS OF TABLE IT_PROD
      WHERE OBJVERS = 'A'.
    My questions:
    (1) Is it a standard practice to create the internal table in the global declaration?
    (2) Is it a standard practice to fill the internal table with data in the Start Routine? Is it possible to fill the internal table with data in the global declaration? Or is the global declaration only reserved for declaring variables and creating internal tables?
    (3) What is the use of 2nd part global?
    (4) Let's say there are 100, 000 records at the source and the DTP package size is 50,000. Then the Start Routine will get executed 2 times. So the code in the Start Routine will hit the database 2 times to fill the internal table. Is this correct?
    Note to mods: Please do not delete the thread. Move to the beginner section if you think this is basic. But please do not delete. It take a long time to type out the questions.

    hi Saurav,
    (1) Is it a standard practice to create the internal table in the global declaration?
    1. No ,internal table should be created in global part only if they are getting used in field level or end routine .Else they must be in local part and should get refreshed at the end  so that performance not get affected.
    (2) Is it a standard practice to fill the internal table with data in the Start Routine? Is it possible to fill the internal table with data in the global declaration? Or is the global declaration only reserved for declaring variables and creating internal tables?
    1.No if only you want to use the data in field level routine and start routine ,you will fill table in start routine otherwise no .
    2.first global part is for data declaration so no in first global part select cannot come .
    3.Second global part can have select but you cannot write any statement using source package or result package here as they are private object of transformation class and not recognized at this area.However simple select on any table other than these will be fine .
    (3) What is the use of 2nd part global?
    1.In second global part you can declare internal table ,structures that are not of type source package or result package but independent and can use them .
    2.If you will declare these table in first global part they will be private object and you cannot write select using them in second global part .
    3.Second global part is also declaration but outside the class so these objects are global across transformation with more flexibility .
    4.If you will declare any data here using the structure of source /result package you will get error .This is a data declaration part comes between transformation definition and implementation part .
    (4) Let's say there are 100, 000 records at the source and the DTP package size is 50,000. Then the Start Routine will get executed 2 times. So the code in the Start Routine will hit the database 2 times to fill the internal table. Is this correct?
    yes the source and result package are actually the DTP packages only so code will get executed same no of time as you have number of packages in DTP extraction .
    Hope this will be helpful .
    Regards,
    Jaya Tiwari

  • At max how many columns is advisable to create in a table/view

    Hi All,
    I have two transaction table from which i want to create a simple view or materialized view. But the number of columns is about 200. So i want to know at max how many columns is advisable from the performance point of view.
    Even though i will create 200 columns in a view , for a perticular client installation i may not use all the columns.
    one more thing i will never use 200 columns in the select statement . At a time i will use only 4/5 columns.
    It may happen from this four column one column will be the 1st and 2nd column will be the 200th one.
    I want to know how it affects the performance and in which scenario . Please help if any body knows or already faced this kind of scenario.
    I am using oracle 10g .

    Annapurna Nayak wrote:
    thanks for ur reply .
    We are going to use this view in a report , so if i will create it as simple view it will affect report performance. because the view script is too long ...so every time quring to a view will decrease the performance.
    Are you asking me if it will? I think it probably won't but of course you have the means to test it to be sure, right?
    As u said MV should be done with minimum possible column . what can be the maximum column in MV ..??It would be defined by the limits on:
    * The maximum number of columns that a table can contain
    * The size of the query needed to define the select statement
    * Limitations on queries needed to maintain the data
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/limits003.htm#i288032

  • How many types of tables exists and what are they in data dictionary?

    hi,
    How many types of tables exists and what are they in data dictionary?
    regards.

    Hello Liu,
    Please search in forum before posting any question .
    anyhow check the below link :
    http://web.mit.edu/sapr3/dev/sap_table_types.htm
    Thanks
    Seshu

  • How to know how many child tables are present for a parent table

    hi all,
    i created a table USERS in db user pavan (pavan.users (id primary key) ).
    and child tables are may be in the same user pavan or in other users of database also.
    for the other users i given relative grant permissions to access this USERS table and maintain relation to it.
    now, my requirement is how to check the number of references to pavan.users.id
    how many tables are dependent on it.
    thanks in advance.
    regards
    pavan

    Try this
    select a.owner,
           a.constraint_name,
           a.column_name,
           a.table_name,
           c.table_name Referenced_table,
           d.column_name referenced_column
    from
            all_cons_columns a,
            all_constraints b,
            all_constraints c,
            all_cons_columns d
    where a.table_name=b.table_name
    and a.constraint_name=b.constraint_name       
    and b.constraint_type='R'
    and b.r_constraint_name=c.constraint_name
    and c.constraint_name=d.constraint_name
    and a.owner='PAVAN'
    and c.table_name='USERS'
    and d.column_name='ID'

  • Many to Many PL/SQL - how to nest a linking table?

    I have two objects that are linked with a many-to-many relations. These two objects have to be nested inside a third object. How should I do ?
    I created the type and the table for A, I did the same for B and I finally created the linking table for A and B. How shall I nest this table inside the object C?
    Thank you very much for your help as I am new to PL SQL.

    I need to create one object called Container. From a modelling perspective, this object has contains all the other objects.
    The other objects are items and composed items. The Container contains the items (it is a one-to-many relationships so I created a nested table) but it also contains composed items, which are items linked to parts and this is a many-to-many relationship. How do I do to include the many-to-many in the object container? I included question marks when I did not know. Thank you
    CREATE OR REPLACE TYPE Item_type (
    Id NUMBER (6),
    Type CHAR (7)) ;
    CREATE OR REPLACE TYPE Part_type (
    Id NUMBER (6),
    Type CHAR (7)) ;
    CREATE TABLE Item OF Item_type
    (Id NOT NULL,
    PRIMARY KEY (Id));
    CREATE TABLE Part OF Part_type
    (Id NOT NULL,
    PRIMARY KEY (Id));
    CREATE TABLE ComposedItems
    (ItemId REF Item_type ,
    PartId REF Part_type);
    CREATE OR REPLACE TYPE ComposedItems_nested as TABLE OF *????????*
    CREATE OR REPLACE TYPE Item_type (
    Id NUMBER (6),
    Type CHAR (7));
    CREATE OR REPLACE TYPE Item_nested as TABLE OF Item_type;
    CREATE OR REPLACE TYPE Container_type (
    Id NUMBER (6),
    Type CHAR (7),
    Item Item_nested,
    /

  • How many tables are in my database

    I wanted to check how many tables I have so I ran the following query to list all of the tables in all of the tablespaces.
    select t.table_name, df_name from dba_tables t, v$tablespace df
    where t.tablespace_name = df.name;
    I got back 34377 tables or records.
    but if I wanted to count the number of tables I have I could run the following command.
    SQL> select count(*) from dba_tables;
    I got back 34700 tables.
    Can anyone tell me why these numbers don't match or what I am missing here?

    Also you can try to count them regarding to your tablespace which is better
    SELECT COUNT(*),tablespace_name  FROM USER_TABLES group by tablespace_name;also Laurent Schnieder provide with way that you count your tables in specific schema like the following :
    SQL> select
      2    table_name,
      3    to_number(
      4      extractvalue(
      5        xmltype(
      6     dbms_xmlgen.getxml('select count(*) c from '||table_name))
      7        ,'/ROWSET/ROW/C')) count
      8  from user_tables;http://www.dba-oracle.com/t_count_tables_schema.htm

  • Fact table contains how many no. of Dim. ids and Key figures?

    Fact table contains how many no. of Dim. ids and Key figures?

    Max 233 KeyFigures,Max of (16dimensions*)248 DIM Ids?
    dim table doesnt contain Charateristics,but Primaray keys of DIM Ids + SIDs where as Fact table contain corresponding Foreign Keys and keyFiures
    Message was edited by: Murali

  • How many bytes does a refresh check on the DDLOG table cost?

    Hello,
    each application server checks after "rdisp/bufrefreshtime" in the DDLOG table on the database whether one of it's tables or entries of tables are invalid.
    Only tables or entries of tables that are invalid appear in the DDLOG table. If an application servers gets to know which of his tables are invalid, he can synchronize with the next read access.
    Does anybody know how many bytes such a check cost?
    The whole DDLOG must be read by each application server, so it depends on the number of entries in the DDLOG.
    Does anybody know?
    thx, holger

    Hi,
    except of system and some timestamps, everything is stored in a raw field.
    Checking FM SBUF_SEL_DDLOG_RECS I found some additional info:
    - There are several synchronization classes
    - Classes 8 and 16 don't contain table or key info -> complete buffer refresh
    - Other classes should have a table name
    - In this case is an option for a key definition
    -> I guess, generic and single buffers are handled with corresponding key fields, full buffered is probably handled without key fields.
    An entry in DDLOG itself is the flag / mark for: this buffer is invalid.
    It's obviously single/generic key specific - otherwise the whole concept of single/generic key would be obsolete.
    Christian

  • How to check how many tables used in one particular program

    Hi Gurus,
          I am wondering how to check for how many tables are used for one particular  program whether its a custom (Y* or Z* program) or
    a sap program (R*) .I have tried ST05 .But its not satisfactory .Could u help me plz in this  regard .
    Thanks in Advance !!!!!!!!

    hi,
    Go with the transaction se80
    select type as the Progarm
    in the below block provide your program name.....
    there u can find the drop down of your object related tables, types, fields, etc.....go with the tables u can find the respective information of the tables....
    or
    go with the se30
    and enter the program name...
    and go with the trips and tricks....
    u can find the drop down of the
    abap objects performanceexamples....
    and go with the required thing.....
    then u can find the required....
    Cheers,
    Brahma

  • How many line item dimensions can a fact table have?

    Hi,
    How many line item dimensions can a fact table have? Is it tht Max of 16 dimensions(13+3) .Does the 16 dimensions include line items dimensions as well .
    Pls reply.
    Thanks
    Praveen

    It includes all dimensios, including line item dimensions.
    If you have line item dimension, pl note you cant assign any other characteristic to that dimension.
    Ravi Thothadri

  • How many tables can i create in Oracle 10g ?

    hi every body !
    how many tables can create in oracle 10g ?
    thank you !

    Unlimited
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14237/limits003.htm

  • How many records are  fetched my query into my internal tables

    Hi
    I am in the debugger, would like to know, how many records are  fetched my query into my internal tables. How do I  find out ?
    thanks
    siva

    Hi,
    Do the following,
    Step 1:
      Fill your internal table with select query.
    Step 2 : Use DESCRIBE statement with LINE addition to get the no of rows in the internal table.
    for further informations, check
    http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3798358411d1829f0000e829fbfe/content.htm
    Regards,
    Anirban

Maybe you are looking for

  • How can I build an app ?

    I'm a pediatrician with some ideas for iPhone apps.  How can I go about building an app? Is there a particular program I can purchase that would simplify the process of building apps? Some of the apps I would create would be simple audio tracks, and

  • Where is the LDAP server in Suns Webserver?

    Attempting to run Sun's j2ee tutorial on Windows XP, specifically: C:\Sun\j2eetutorial14\doc\index.html Chapter 33: The Java Message Service API A Simple Example of Synchronous Message Receives I was under the impression that the JMS info entered in

  • Oracle Forms and Reports 9i on Oracle 10G

    Is Oracle9i Developer Suite (9.0.2) - Forms and Reports Patchset 3 : (Ver 9.0.2.3.0) and Application Server 9i Release 2 (9.0.2) supported on Oracle database 10g (v 10.2.0). Please confirm. Thanks in Advance

  • Opening files in a specific application

    Sometimes, when I try to open files, the wrong program is opened for the specified file... (CSV files are opening in excel 2011 [should be 2008], BIN files are opening in unarchiver [there are two different apps that should open these files usually],

  • Pls my canon image class printer D530 always prints double lines on paper. what can i do pls?

    i have changed the toner that came with the printer but its the same old problem.  it also leaves an overflow of ink  on the top of papers. pls any body who could help