Find table level privileges

For table t1 in schema user1
If I login as sysdba, do
select * from dba_tab_privs
where table_name='t1';
to check any privileges (e.g. select, delete) set up for table table t1 in schema user 1, in this case it return 0 row in the dba_tab_privs. Is there any other ways to check or that is the correct answer I got which means there is no privilege set up for table t1.
Edited by: user56753443 on Oct 14, 2008 5:41 PM

Hi
In insert, update, delete and select privilege is given to user2 on user1.table1 then user2 can do alll dml and select from table1.USER2 need to use the table as USER1.TABLE1. Instead of granting all , grant only the reuired privilegei,e., grant insert,delete,update,select on user1.table1 to user2;
Now, i understand, is that you donot want that USER2 uses USER1.TABLE1, instead the user2 users TABLE1.Then
create synonym user2.table1 for user1.table1;
06:44:40 sys@VENTURE> create user user1 identified by user1;
User created.
Elapsed: 00:00:00.00
06:44:52 sys@VENTURE> create user user2 identified by user2;
User created.
Elapsed: 00:00:00.00
06:44:58 sys@VENTURE>
06:44:58 sys@VENTURE>
06:44:59 sys@VENTURE> garnt connect,resource to user1;
SP2-0734: unknown command beginning "garnt conn..." - rest of line ignored.
06:45:11 sys@VENTURE>
06:45:12 sys@VENTURE>
06:45:12 sys@VENTURE> grant connect,resource to user1;
Grant succeeded.
Elapsed: 00:00:00.00
06:45:18 sys@VENTURE> grant connect,resource to user2;
Grant succeeded.
Elapsed: 00:00:00.00
06:45:20 sys@VENTURE>
06:45:23 sys@VENTURE>
06:45:23 sys@VENTURE>
06:47:14 sys@VENTURE>
06:47:14 sys@VENTURE> select table_name from dba_tables where owner='USER1';
TABLE_NAME
T1
TABLE1
Elapsed: 00:00:00.00
06:47:33 sys@VENTURE> select GRANTEE,TABLE_NAME,GRANTOR,PRIVILEGE from dba_tab_privs where table_name='T1' and owner='USER1';
no rows selected
Elapsed: 00:00:00.00
06:47:59 sys@VENTURE> select GRANTEE,TABLE_NAME,GRANTOR,PRIVILEGE from dba_tab_privs where table_name='TABLE1' and owner='USER1';
no rows selected
Elapsed: 00:00:00.00
06:48:06 sys@VENTURE> GRANT ALL ON USER1.TABLE1 TO USER2;
Grant succeeded.
Elapsed: 00:00:00.00
06:48:28 sys@VENTURE> select GRANTEE,TABLE_NAME,GRANTOR,PRIVILEGE from dba_tab_privs where table_name='TABLE1' and owner='USER1';
GRANTEE                        TABLE_NAME                     GRANTOR                        PRIVILEGE
USER2                          TABLE1                         USER1                          ALTER
USER2                          TABLE1                         USER1                          DELETE
USER2                          TABLE1                         USER1                          INDEX
USER2                          TABLE1                         USER1                          INSERT
USER2                          TABLE1                         USER1                          SELECT
USER2                          TABLE1                         USER1                          UPDATE
USER2                          TABLE1                         USER1                          REFERENCES
USER2                          TABLE1                         USER1                          ON COMMIT REFRESH
USER2                          TABLE1                         USER1                          QUERY REWRITE
USER2                          TABLE1                         USER1                          DEBUG
USER2                          TABLE1                         USER1                          FLASHBACK
11 rows selected.
Elapsed: 00:00:00.00
06:48:32 sys@VENTURE> create sysnonym user2.table1 for user1.table1;
create sysnonym user2.table1 for user1.table1
ERROR at line 1:
ORA-00901: invalid CREATE command
Elapsed: 00:00:00.00
06:54:31 sys@VENTURE> create synonym user2.table1 for user1.table1;
Synonym created.
*USER2 session*
06:50:26 user2@VENTURE> select * from table1;
select * from table1
ERROR at line 1:
ORA-00942: table or view does not exist
Elapsed: 00:00:00.00
06:50:30 user2@VENTURE> select * from user1.table1;
no rows selected
Elapsed: 00:00:00.00
06:50:38 user2@VENTURE>
*CRAETED SYNONYM*
06:50:39 user2@VENTURE>
06:50:39 user2@VENTURE> select * from table1;
no rows selected
06:50:39 user2@VENTURE>HTH
Anand
Edited by: Anand... on Oct 16, 2008 6:59 AM

Similar Messages

  • How to find the level of each child table in a relational model?

    Earthlings,
    I need your help and I know that, 'yes, we can change'. Change this thread to a answered question.
    So: How to find the level of each child table in a relational model?
    I have a relacional database (9.2), all right?!
         O /* This is a child who makes N references to each of the follow N parent tables (here: three), and so on. */
        /↑\ Fks
       O"O O" <-- level 2 for first table (circle)
      /↑\ Fks
    "o"o"o" <-- level 1 for middle table (circle)
       ↑ Fk
      "º"Tips:
    - each circle represents a table;
    - red tables no have foreign key
    - the table in first line of tree, for example, has level 3, but when 3 becomes N? How much is N? This's the question.
    I started thinking about the following:
    First I have to know how to take the children:
    select distinct child.table_name child
      from all_cons_columns father
      join all_cons_columns child
    using (owner, position)
      join (select child.owner,
                   child.constraint_name fk,
                   child.table_name child,
                   child.r_constraint_name pk,
                   father.table_name father
              from all_constraints father, all_constraints child
             where child.r_owner = father.owner
               and child.r_constraint_name = father.constraint_name
               and father.constraint_type in ('P', 'U')
               and child.constraint_type = 'R'
               and child.owner = 'OWNER') aux
    using (owner)
    where child.constraint_name = aux.fk
       and child.table_name = aux.child
       and father.constraint_name = aux.pk
       and father.table_name = aux.father;Thinking...
    Let's Share!
    My thanks in advance,
    Philips
    Edited by: BluShadow on 01-Apr-2011 15:08
    formatted the code and the hierarchy for readbility

    Justin,
    Understood.
    Nocycle not work in 9.2 and, even that would work, would not be appropriate.
    With your help, I decided a much simpler way (but there is still a small problem, <font color=red>IN RED</font>):
    -- 1
    declare
      type udt_roles is table of varchar2(30) index by pls_integer;
      cRoles udt_roles;
    begin
      execute immediate 'create user philips
        identified by philips';
      select granted_role bulk collect
        into cRoles
        from user_role_privs
       where username = user;
      for i in cRoles.first .. cRoles.count loop
        execute immediate 'grant ' || cRoles(i) || ' to philips';
      end loop;
    end;
    -- 2
    create table philips.root1(root1_id number,
                               constraint root1_id_pk primary key(root1_id)
                               enable);
    grant all on philips.root1 to philips;
    create or replace trigger philips.tgr_root1
       before delete or insert or update on philips.root1
       begin
         null;
       end;
    create table philips.root2(root2_id number,
                               constraint root2_id_pk primary key(root2_id)
                               enable);
    grant all on philips.root2 to philips;
    create or replace trigger philips.tgr_root2
       before delete or insert or update on philips.root2
       begin
         null;
       end;
    create table philips.node1(node1_id number,
                               root1_id number,
                               node2_id number,
                               node4_id number,
                               constraint node1_id_pk primary key(node1_id)
                               enable,
                               constraint n1_r1_id_fk foreign key(root1_id)
                               references philips.root1(root1_id) enable,
                               constraint n1_n2_id_fk foreign key(node2_id)
                               references philips.node2(node2_id) enable,
                               constraint n1_n4_id_fk foreign key(node4_id)
                               references philips.node4(node4_id) enable);
    grant all on philips.node1 to philips;
    create or replace trigger philips.tgr_node1
       before delete or insert or update on philips.node1
       begin
         null;
       end;
    create table philips.node2(node2_id number,
                               root1_id number,
                               node3_id number,
                               constraint node2_id_pk primary key(node2_id)
                               enable,
                               constraint n2_r1_id_fk foreign key(root1_id)
                               references philips.root1(root1_id) enable,
                               constraint n2_n3_id_fk foreign key(node3_id)
                               references philips.node3(node3_id) enable);
    grant all on philips.node2 to philips;
    create or replace trigger philips.tgr_node2
       before delete or insert or update on philips.node2
       begin
         null;
       end;                          
    create table philips.node3(node3_id number,
                               root2_id number,
                               constraint node3_id_pk primary key(node3_id)
                               enable,
                               constraint n3_r2_id_fk foreign key(root2_id)
                               references philips.root2(root2_id) enable);
    grant all on philips.node3 to philips;
    create or replace trigger philips.tgr_node3
       before delete or insert or update on philips.node3
       begin
         null;
       end;                          
    create table philips.node4(node4_id number,
                               node2_id number,
                               constraint node4_id_pk primary key(node4_id)
                               enable,
                               constraint n4_n2_id_fk foreign key(node2_id)
                               references philips.node2(node2_id) enable);
    grant all on philips.node4 to philips;
    create or replace trigger philips.tgr_node4
       before delete or insert or update on philips.node4
       begin
         null;
       end;                          
    -- out of the relational model
    create table philips.node5(node5_id number,
                               constraint node5_id_pk primary key(node5_id)
                               enable);
    grant all on philips.node5 to philips;
    create or replace trigger philips.tgr_node5
       before delete or insert or update on philips.node5
       begin
         null;
       end;
    -- 3
    create table philips.dictionary(table_name varchar2(30));
    insert into philips.dictionary values ('ROOT1');
    insert into philips.dictionary values ('ROOT2');
    insert into philips.dictionary values ('NODE1');
    insert into philips.dictionary values ('NODE2');
    insert into philips.dictionary values ('NODE3');
    insert into philips.dictionary values ('NODE4');
    insert into philips.dictionary values ('NODE5');
    --4
    create or replace package body philips.pck_restore_philips as
      procedure sp_select_tables is
        aExportTablesPhilips     utl_file.file_type := null; -- file to write DDL of tables   
        aExportReferencesPhilips utl_file.file_type := null; -- file to write DDL of references
        aExportIndexesPhilips    utl_file.file_type := null; -- file to write DDL of indexes
        aExportGrantsPhilips     utl_file.file_type := null; -- file to write DDL of grants
        aExportTriggersPhilips   utl_file.file_type := null; -- file to write DDL of triggers
        sDirectory               varchar2(100) := '/app/oracle/admin/tace/utlfile'; -- directory \\bmduhom01or02 
        cTables                  udt_tables; -- collection to store table names for the relational depth
      begin
        -- omits all referential constraints:
        dbms_metadata.set_transform_param(dbms_metadata.session_transform, 'REF_CONSTRAINTS', false);
        -- omits segment attributes (physical attributes, storage attributes, tablespace, logging):
        dbms_metadata.set_transform_param(dbms_metadata.session_transform, 'SEGMENT_ATTRIBUTES', false);
        -- append a SQL terminator (; or /) to each DDL statement:
        dbms_metadata.set_transform_param(dbms_metadata.session_transform, 'SQLTERMINATOR', true);
        -- create/open files for export DDL:
        aExportTablesPhilips := utl_file.fopen(sDirectory, 'DDLTablesPhilips.pdc', 'w', 32767);
        aExportReferencesPhilips := utl_file.fopen(sDirectory, 'DDLReferencesPhilips.pdc', 'w', 32767);
        aExportIndexesPhilips := utl_file.fopen(sDirectory, 'DDLIndexesPhilips.pdc', 'w', 32767);
        aExportGrantsPhilips := utl_file.fopen(sDirectory, 'DDLGrantsPhilips.pdc', 'w', 32767);
        aExportTriggersPhilips := utl_file.fopen(sDirectory, 'DDLTriggersPhilips.pdc', 'w', 32767);
        select d.table_name bulk collect
          into cTables -- collection with the names of tables in the schema philips
          from all_tables t, philips.dictionary d
         where owner = 'PHILIPS'
           and t.table_name = d.table_name;
        -- execution
        sp_seeks_ddl(aExportTablesPhilips,
                     aExportReferencesPhilips,
                     aExportIndexesPhilips,
                     aExportGrantsPhilips,
                     aExportTriggersPhilips,
                     cTables);
        -- closes all files
        utl_file.fclose_all;
      end sp_select_tables;
      procedure sp_seeks_ddl(aExportTablesPhilips     in utl_file.file_type,
                             aExportReferencesPhilips in utl_file.file_type,
                             aExportIndexesPhilips    in utl_file.file_type,
                             aExportGrantsPhilips     in utl_file.file_type,
                             aExportTriggersPhilips   in utl_file.file_type,
                             cTables                  in out nocopy udt_tables) is
        cDDL       clob := null; -- colletion to save DDL
        plIndex    pls_integer := null;
        sTableName varchar(30) := null;
      begin
        for i in cTables.first .. cTables.count loop
          plIndex    := i;
          sTableName := cTables(plIndex);
           * Retrieves the DDL and the dependent DDL into cDDL clob       *      
          * for the selected table in the collection, and writes to file.*
          begin
            cDDL := dbms_metadata.get_ddl('TABLE', sTableName, 'PHILIPS');
            sp_writes_ddl(aExportTablesPHILIPS, cDDL);
          exception
            when dbms_metadata.object_not_found then
              null;
          end;
          begin
            cDDL := dbms_metadata.get_dependent_ddl('REF_CONSTRAINT', sTableName, 'PHILIPS');
            sp_writes_ddl(aExportReferencesPhilips, cDDL);
          exception
            when dbms_metadata.object_not_found2 then
              null;
          end;
          begin
            cDDL := dbms_metadata.get_dependent_ddl('INDEX', sTableName, 'PHILIPS');
            sp_writes_ddl(aExportIndexesPhilips, cDDL);
          exception
            when dbms_metadata.object_not_found2 then
              null;
          end;
          begin
            cDDL := dbms_metadata.get_dependent_ddl('OBJECT_GRANT', sTableName, 'PHILIPS');
            sp_writes_ddl(aExportGrantsPhilips, cDDL);
          exception
            when dbms_metadata.object_not_found2 then
              null;
          end;
          begin
            cDDL := dbms_metadata.get_dependent_ddl('TRIGGER', sTableName, 'PHILIPS');
            sp_writes_ddl(aExportTriggersPhilips, cDDL);
          exception
            when dbms_metadata.object_not_found2 then
              null;
          end;
        end loop;
      end sp_seeks_ddl;
      procedure sp_writes_ddl(aExport in utl_file.file_type,
                              cDDL    in out nocopy clob) is
        pLengthDDL  pls_integer := length(cDDL);
        plQuotient  pls_integer := null;
        plRemainder pls_integer := null;
      begin
          * Register variables to control the amount of lines needed   *
         * for each DDL and the remaining characters to the last row. *
        select trunc(pLengthDDL / 32766), mod(pLengthDDL, 32766)
          into plQuotient, plRemainder
          from dual;
          * Join DDL in the export file.                            *
         * ps. 32766 characters + 1 character for each line break. *
        -- if the size of the DDL is greater than or equal to limit the line ...
        if plQuotient >= 1 then
          -- loops for substring (lines of 32766 characters + 1 break character):
          for i in 1 .. plQuotient loop
            utl_file.put_line(aExport, substr(cDDL, 1, 32766));
            -- removes the last line, of clob, recorded in the buffer:
            cDDL := substr(cDDL, 32767, length(cDDL) - 32766);
          end loop;
        end if;
          * If any remains or the number of characters is less than the threshold (quotient = 0), *
         * no need to substring.                                                                 *
        if plRemainder > 0 then
          utl_file.put_line(aExport, cDDL);
        end if;
        -- record DDL buffered in the export file:
        utl_file.fflush(aExport);
      end sp_writes_ddl;
    begin
      -- executes main procedure:
      sp_select_tables;
    end pck_restore_philips;<font color="red">The problem is that I still have ...
    When creating the primary key index is created and this is repeated in the file indexes.
    How to avoid?</font>

  • Handling unit status at table level

    Dear Experts,
    I want to know the logic to find only those HUs which exist in the inventory i.e. which are present physically. I do not want those which have been delivered/deleted/scrapped etc. How can I get this at table level and what filters should I use?
    Regards,
    Sachin

    Hello,
    the only way (as I know) is to use transaction HUMO and set filter for field HU-managed storage loc.='X' in ALV
    Andrzej

  • Number of records in Delta Queue in table level.

    Hi All,
    I want to know the number of records in Delta Queue for a particular database in Table level. Right now in Production, i dont have access to TCODE RSA7. I just trying to check the Table TRFCQOUT but i am unable to see the exact count of records specific to data source. Can you please provide any other table to see the data and the count of records in delta queue specific to each data source.
    Thanks.

    Hi Jalina,
    Check the follwing tables:
    -ARFCDATA
    -TRFCQOUT
    -ARFCSTATE
    In case you can't find what you need in the above tables. You can always ask a temporary access to RSA7 transcation to your basis team or ask them to give you the required information from RSA7 themseleves (of course provide to them a step by step procedure) .
    Hope it helps.
    Amine

  • Changing data in table level

    Hi friends,
    I want to change the address of ship to party in delivery document and billing document, table level. So anyone can tell me what is the table and fields name to change the address in delivery document and billing document. In LIKP and VBRK I am not able to find the fields. In VL03N main screen below to outbound delivery, ship to party will be there, right to that ship to party name will be there, right to that address button will be there. If you press that we will get the address of ship to party. I want to change the data in that? So I need the table and field of that
    Anyone can help me out?
    Ramesh

    Hi,
    This address actually comes from customer master for partner function WE .
    But in sales order and delivery u can change the address in VA02 and VL02N tcode by going thru the steps u have mentioned .
    Generally in Sales order we can do the chnages and then thru copy control this data from sales order flows to subsequent doc . So u can chnage it in sales order in chnage mode it will be available in Delivery and Invoice.
    In case u don't want to chnage it in sales order but u want to chnage in Delivery then VL02N and then chnage .
    Hope this help

  • How to get MR Document from Billing Document at the table level

    Hi All,
    I am looking to find the MR Document based on which the Billing Document was generated. I need to find it out at the table level.
    I looked into DBERCHZ2 table, but I can see a single billing document is linked to multiple Meter Reading Documents via different Line Items.
    Could you guyz please help me? Am I seeing the right table? Is there any FM or ABAP program for the same?
    Thanks a lot in advance.
    Regards.

    Hi ,
    The link is Installation to get MR Doc from Bill Doc .
    from ERCH-BELNR  , fetch Contract (VERTRAg )  and then from EVER-VERTRAG get Installation (ANLAGE).
    Get MR Doc(ABLBELNR) from EABLG based on EABLG-ANLAGE.
    Thanks ,
    Sachin

  • Finding table fragmentation in Oracle 8.1.6.3.0

    Hi All,
    I just want to find table fragmentation for one table named LOG. I used below query to find this....
    SQL> select table_name,round((blocks*8),2)||'kb' "size"
    from dba_tables
    where table_name = 'LOG' and owner='AMRWF1';  2    3
    TABLE_NAME                     size
    LOG                            6301408kb
    SQL> select table_name,round((num_rows*avg_row_len/1024),2)||'kb' "size"
    from dba_tables
    where table_name = 'LOG' and owner='AMRWF1';  2    3
    TABLE_NAME                     size
    LOG                            1468846.2kbAnd tablespace infromation is below.
    SQL> select bytes/1024/1024,TABLESPACE_NAME,EXTENTS,MAX_EXTENTS from dba_segments where owner='AMRWF1' and segment_name='LOG';
    BYTES/1024/1024 TABLESPACE_NAME                   EXTENTS MAX_EXTENTS
         6154.16406 WFMKTLEAST                          12214  2147483645
    SQL> sho parameter block
    NAME                                 TYPE    VALUE
    db_block_buffers                     integer 100000
    db_block_checking                    boolean FALSE
    db_block_checksum                    boolean FALSE
    db_block_lru_latches                 integer 3
    db_block_max_dirty_target            integer 100000
    db_block_size                        integer 8192
    db_file_multiblock_read_count        integer 8
    hash_multiblock_io_count             integer 0
    sort_multiblock_read_count           integer 2Please mention whether i am fallowing proper method to find table fragmentation and this table is severly fragmented or not???
    -Yasser
    Edited by: YasserRACDBA on May 12, 2009 7:17 PM

    Sir Please refer below statspack report
    STATSPACK report for
                                                                Snap Length
    Start Id    End Id       Start Time             End Time         (Minutes)
         201       213  13-May-09 01:32:02    13-May-09 01:51:30          19.47
    Cache Sizes
    ~~~~~~~~~~~
               db_block_buffers:      100000
                  db_block_size:        8192
                     log_buffer:     2097152
               shared_pool_size:   132003840
    Load Profile
    ~~~~~~~~~~~~
                                           Per Second      Per Transaction
                      Redo size:           186,962.61             2,244.02
                  Logical reads:            18,690.20               224.33
                  Block changes:               835.84                10.03
                 Physical reads:             1,422.98                17.08
                Physical writes:                59.20                 0.71
                     User calls:               693.17                 8.32
                         Parses:               219.19                 2.63
                    Hard parses:                95.50                 1.15
                          Sorts:               122.47                 1.47
                   Transactions:                83.32
                  Rows per Sort:       13.87
      Pct Blocks changed / Read:        4.47
             Recursive Call Pct:       57.35
    Rollback / transaction Pct:        0.01
    Instance Efficiency Percentages (Target 100%)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            Buffer Nowait Ratio:       99.82
            Buffer  Hit   Ratio:       92.39
            Library Hit   Ratio:       85.79
            Redo   NoWait Ratio:       99.99
           In-memory Sort Ratio:      100.00
               Soft Parse Ratio:       56.43
                Latch Hit Ratio:       99.55
    Top 5 Wait Events
    ~~~~~~~~~~~~~~~~~                                             Wait     % Total
    Event                                               Waits  Time (cs)   Wt Time
    log file sync                                      98,328      308,489   52.94
    db file sequential read                         1,462,138      135,491   23.25
    buffer busy waits                                  40,122       41,574    7.13
    log file parallel write                            67,541       29,561    5.07
    latch free                                         14,153       29,250    5.02
    ^LWait Events for DB: PRDTDB  Instance: prdtdb  Snaps:     201 -    213
    ->cs - centisecond -  100th of a second
    ->ms - millisecond - 1000th of a second (unit often used for disk IO timings)
                                                                       Avg
                                                         Total Wait   wait  Waits
    Event                               Waits   Timeouts  Time (cs)   (ms)   /txn
    log file sync                      98,328          4     308,489    31    1.0
    db file sequential read         1,462,138          0     135,491     1   15.0
    buffer busy waits                  40,122          1      41,574    10    0.4
    log file parallel write            67,541          8      29,561     4    0.7
    latch free                         14,153     10,702      29,250    21    0.1
    db file parallel write              5,099          0      18,117    36    0.1
    db file scattered read             18,561          0       9,258     5    0.2
    db file parallel read               3,227          0       5,658    18    0.0
    SQL*Net more data to client        44,457          0       1,188     0    0.5
    log file sequential read            8,020          0       1,070     1    0.1
    direct path write                     410          0         669    16    0.0
    direct path read                      688          0         556     8    0.0
    control file parallel write           444          0         533    12    0.0
    library cache pin                     517          0         461     9    0.0
    LGWR wait for redo copy               798        143         414     5    0.0
    log file switch completion             30          0         349   116    0.0
    single-task message                     4          0          27    68    0.0
    file open                             959          0          23     0    0.0
    log file single write                  20          0           7     4    0.0
    control file sequential read          458          0           4     0    0.0
    refresh controlfile command            36          0           3     1    0.0
    enqueue                                 9          0           2     2    0.0
    file identify                          40          0           1     0    0.0
    SQL*Net break/reset to clien            4          0           0     0    0.0
    buffer deadlock                         2          2           0     0    0.0
    SQL*Net message from client       809,303          0  19,936,895   246    8.3
    virtual circuit status                 38         38     116,785 #####    0.0
    SQL*Net message to client         809,327          0         310     0    8.3
    SQL*Net more data from clien          477          0          43     1    0.0
    ^LSQL ordered by Gets for DB: PRDTDB  Instance: prdtdb  Snaps:     201 -    213
                                    Gets       % of
       Buffer Gets     Executes   per Exec    Total   Hash Value
    SQL statement
           262,083      159,120          1.6    1.2    382965845
    SELECT GEOPAR,NAME   FROM GEO  WHERE GEOCOD = RTRIM(:b1)
           146,040            1    146,040.0     .7   1754824507
    SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09120A
           141,075            1    141,075.0     .6   1542925332
    SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09120A
           128,943       12,612         10.2     .6   4085293067
    UPDATE OBJECT SET OWNER = NULL, LOCKTIME = 0, QUEUE_TIMESTAMP = NULL WHERE "ID
            91,085            1     91,085.0     .4    323282248
    SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09126A
            90,887            1     90,887.0     .4   2613220927
    SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09126A
            66,045        9,174          7.2     .3   3352553713
    SELECT DOC_NUM,TITLE,AUTHOR,C.TYPE,DATE_RPT,S.COLLECTION,S.AUTOMATION,LANG,SOU
            61,337        9,498          6.5     .3   2345958421
    SELECT PAGENO PAGENO   FROM NONBILL  WHERE REPORTID = :b1
            59,669        9,500          6.3     .3   4181220996
    SELECT RTRIM(SUBCOLLECT) SUBCOLLECT_CODE   FROM MARK_SUBCOLLECT  WHERE SRCCOD
            54,543            1     54,543.0     .2   2236963897
    SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09128A
            54,517            1     54,517.0     .2   2215353317
    SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09128A
            54,493            1     54,493.0     .2   1430216754
    SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09128A
            54,450            1     54,450.0     .2   3671439846
    SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09128A
            54,443            1     54,443.0     .2   4024618165
    SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09128A
            54,404            1     54,404.0     .2   4144413353
    SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09128A
            54,185            1     54,185.0     .2   3853441439
    SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09128A
            54,122            1     54,122.0     .2   4066390851
    SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09128A
    ^LSQL ordered by Reads for DB: PRDTDB  Instance: prdtdb  Snaps:     201 -    213
          Physical                 Reads       % of
             Reads     Executes   per Exec    Total   Hash Value
    SQL statement
            52,578            1     52,578.0    3.2   1754824507
    SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09120A
            31,998            1     31,998.0    1.9   2613220927
    SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09126A
            16,013            1     16,013.0    1.0    323282248
    SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09126A
            10,819            1     10,819.0     .7   1542925332
    SELECT ERROR,TIME_STAMP,O_RESOURCE,QUEUE,NEW_QUEUE FROM LOG WHERE ID = '09120A
             5,940        9,500          0.6     .4   1788460650
    SELECT RTRIM(SUBJCT) TICKER,RTRIM(NAME) NAME,RTRIM(STATE) STATE,RTRIM(COUNTRY)
             5,011            5      1,002.2     .3   1283665788
    INSERT INTO STATS$SQL_SUMMARY ( SNAP_ID,DBID,INSTANCE_NUMBER,SQL_TEXT,SHARABLE
             3,532          104         34.0     .2   2416764375
    INSERT INTO DOC_SUBJCT ( DOC_NUM,TYPE,SUBJCT )  VALUES ( TO_NUMBER(:b1),:b2,:b
             3,178            3      1,059.3     .2   2869630514
    BEGIN statspack.snap(i_snap_level => 10, i_modify_parameter => 'true'); END;
             1,576        9,174          0.2     .1   3352553713
    SELECT DOC_NUM,TITLE,AUTHOR,C.TYPE,DATE_RPT,S.COLLECTION,S.AUTOMATION,LANG,SOU
               816        1,753          0.5     .0   2074917603
    INSERT INTO LOG (ID,TIME_STAMP,TYPE,ERROR,INSTANCE,RULE_NUM,RULE_TYPE,PRIORITY
               754          324          2.3     .0   4111801531
    begin packager.get_citation(:param1 , :out); end;
               567           83          6.8     .0    924335069
    INSERT INTO CORDOC ( DOC_NUM,PARENT_DOC,SOURCE,AUTHOR,TITLE,DATE_RPT,DATE_RCVD
               441        9,500          0.0     .0   2184883084
    SELECT TPCCOD,TPCNAM   FROM TOPICS T,DOC_SUBJCT D  WHERE D.DOC_NUM = :b1  AND
               430          104          4.1     .0   2993182807
    INSERT INTO DOC_SUBJCT_UPD_LOG ( DOC_NUM,TYPE,SUBJCT,TYPE_OF_CHANGE,CREATED_LO
               406        9,498          0.0     .0   2345958421
    SELECT PAGENO PAGENO   FROM NONBILL  WHERE REPORTID = :b1
               304          414          0.7     .0    199702406
    select i.obj#,i.ts#,i.file#,i.block#,i.intcols,i.type#,i.flags, i.property,i.p
               300        7,733          0.0     .0   3207681720
    SELECT NVL(IMAGES,0) IMAGES,NVL(NONBILLABLE,0) NONBILLABLE   FROM IMAGED_DOCUM
    ^LSQL ordered by Rows for DB: PRDTDB  Instance: prdtdb  Snaps:     201 -    213
             Rows                   Rows
         Processed     Executes   per Exec     Hash Value
    SQL statement
            87,357      159,120          0.5    382965845
    SELECT GEOPAR,NAME   FROM GEO  WHERE GEOCOD = RTRIM(:b1)
            32,818        9,498          3.5   2345958421
    SELECT PAGENO PAGENO   FROM NONBILL  WHERE REPORTID = :b1
            12,612       12,612          1.0   4085293067
    UPDATE OBJECT SET OWNER = NULL, LOCKTIME = 0, QUEUE_TIMESTAMP = NULL WHERE "ID
             9,544        9,544          1.0   1230017382
    SELECT LOG_SEQUENCE.NEXTVAL   FROM DUAL
             9,498        9,498          1.0   2684256693
    SELECT RTRIM(NAME) NAME   FROM LANG  WHERE LANG.CODE = :b1
             9,174        9,174          1.0   3352553713
    SELECT DOC_NUM,TITLE,AUTHOR,C.TYPE,DATE_RPT,S.COLLECTION,S.AUTOMATION,LANG,SOU
             7,575        7,733          1.0   3207681720
    SELECT NVL(IMAGES,0) IMAGES,NVL(NONBILLABLE,0) NONBILLABLE   FROM IMAGED_DOCUM
             7,526        9,500          0.8   1788460650
    SELECT RTRIM(SUBJCT) TICKER,RTRIM(NAME) NAME,RTRIM(STATE) STATE,RTRIM(COUNTRY)
             6,485          514         12.6    395844583
    select name,intcol#,segcol#,type#,length,nvl(precision#,0),decode(type#,2,nvl(
             3,308        9,499          0.3   3612837332
    SELECT RTRIM(D.SUBJCT) INDCOD,RTRIM(INDNAM) INDNAM,NIC_COD_BEST   FROM DOC_SUB
             2,642        9,500          0.3   4181220996
    SELECT RTRIM(SUBCOLLECT) SUBCOLLECT_CODE   FROM MARK_SUBCOLLECT  WHERE SRCCOD
             1,753        1,753          1.0   2074917603
    INSERT INTO LOG (ID,TIME_STAMP,TYPE,ERROR,INSTANCE,RULE_NUM,RULE_TYPE,PRIORITY
             1,380        1,855          0.7   1867085649
    INSERT INTO LOG (ID,TIME_STAMP,TYPE,ERROR,INSTANCE,RULE_NUM,RULE_TYPE,PRIORITY
             1,347          359          3.8   1536916657
    select con#,type#,condlength,intcols,robj#,rcon#,match#,refact,nvl(enabled,0),
               870          104          8.4   2416764375
    INSERT INTO DOC_SUBJCT ( DOC_NUM,TYPE,SUBJCT )  VALUES ( TO_NUMBER(:b1),:b2,:b
               828          433          1.9   1943674664
    SELECT CLASS, PRIVILEGE FROM PRIVILEGE WHERE GROUP_NAME = 'SYSADMIN'
               723          433          1.7   2958422142
    SELECT CLASS, PRIVILEGE FROM PRIVILEGE WHERE GROUP_NAME = 'DEFAULT'
    ^LLatch Activity for DB: PRDTDB  Instance: prdtdb  Snaps:     201 -    213
    ->"Pct Misses" should be very close to 0.0
                                                    Pct    Avg                Pct
                                        Get         Get Sleeps      Nowait Nowait
    Latch Name                        Requests     Miss  /Miss    Requests   Miss
    Active checkpoint queue latch         82,223    0.0                  0
    Checkpoint queue latch               828,701    0.0    0.0           0
    Token Manager                            739    0.0              5,586    0.0
    archive control                           10    0.0                  0
    archive process latch                     10    0.0                  0
    cache buffer handles                   8,728    0.0                  0
    cache buffers chains              45,374,520    0.0    0.1   1,915,719    0.2
    cache buffers lru chain              293,252    0.5    0.1   1,667,702    0.6
    channel handle pool latch                293    0.0                294    0.0
    channel operations parent latch          586    0.0                294    0.0
    dml lock allocation                  197,311    0.0    0.0           0
    enqueue hash chains                  438,592    0.1    0.1           0
    enqueues                             697,793    0.1    0.0           0
    event group latch                        293    0.0                  0
    job_queue_processes parameter l           65    0.0                  0
    ktm global data                            4    0.0                  0
    latch wait list                        6,541    2.5    0.0       6,559    0.2
    library cache                      6,095,682    0.9    0.2     186,918    0.8
    library cache load lock                4,494    0.0                  0
    list of block allocation             201,252    0.0    0.1           0
    loader state object freelist              46    0.0                  0
    longop free list                       1,508    0.0                  0
    messages                             925,509    0.2    0.0           0
    multiblock read objects               45,236    0.0    4.6           3    0.0
    ncodef allocation latch                   65    0.0                  0
    process allocation                       293    0.0                293    0.0
    process group creation                   587    0.0                  0
    redo allocation                      624,066    0.1    0.0           0
    redo writing                         511,337    0.8    0.0           0
    row cache objects                  9,553,633    1.0    0.0      13,023    3.7
    sequence cache                        31,263    0.0    0.0           0
    session allocation                   454,171    0.3    0.0           0
    session idle bit                   1,841,211    0.0    0.1           0
    session switching                         65    0.0                  0
    session timer                            416    0.0                  0
    shared pool                        4,602,509    3.3    0.0           0
    sort extent pool                          78    0.0                  0
    transaction allocation               295,180    0.0    0.0           0
    transaction branch allocation             65    0.0                  0
    undo global data                     346,591    0.1    0.2           0
    user lock                              2,114    0.0                  0
    virtual circuit queues                    56    0.0                  0
    ^LLatch Sleep breakdown for DB: PRDTDB  Instance: prdtdb  Snaps:     201 -    21
                                     Get                              Spin &
    Latch Name                     Requests        Misses      Sleeps Sleeps 1-4
    shared pool                     4,602,509     152,786       3,804 150445/1393/
                                                                      698/250/0
    row cache objects               9,553,633      98,968         364 98730/210/3/
                                                                      25/0
    library cache                   6,095,682      53,621       8,107 49775/1473/1
                                                                      726/647/0
    cache buffers chains           45,374,520      10,906       1,415 10308/336/71
                                                                      /191/0
    redo writing                      511,337       3,927          39 3892/31/4/0/
                                                                      0
    messages                          925,509       1,443          61 1382/61/0/0/
                                                                      0
    cache buffers lru chain           293,252       1,388         130 1260/127/0/1
                                                                      /0
    session allocation                454,171       1,334          15 1319/15/0/0/
                                                                      0
    enqueues                          697,793       1,000          11 989/11/0/0/0
    redo allocation                   624,066         623           5 618/5/0/0/0
    session idle bit                1,841,211         447          50 400/46/0/1/0
    Checkpoint queue latch            828,701         378           8 374/3/0/1/0
    undo global data                  346,591         330          62 315/4/1/10/0
    enqueue hash chains               438,592         273          32 259/7/2/5/0
    transaction allocation            295,180         138           5 133/5/0/0/0
    dml lock allocation               197,311          46           2 44/2/0/0/0
    list of block allocation          201,252          40           4 36/4/0/0/0
    multiblock read objects            45,236           7          32 2/1/1/3/0
    ^LLatch Miss Sources for DB: PRDTDB  Instance: prdtdb  Snaps:     201 -    213
                                                              No Wait
    Latch Name                     Where                       Misses      Sleeps
    Checkpoint queue latch         kcbswcu: Switch buffers          0           5
    Checkpoint queue latch         kcbk0rrd: update recovery        0           2
    Checkpoint queue latch         kcbbcthc: check thread que       0           1
    cache buffers chains           kcbrls: kslbegin                 0         724
    cache buffers chains           kcbgtcr: kslbegin                0         533
    cache buffers chains           kcbgcur: kslbegin                0          62
    cache buffers chains           kcbchg: kslbegin: call CR        0          29
    cache buffers chains           kcbzgb: scan from tail. no       0          25
    cache buffers chains           kcbzib: multi-block read:        0          14
    cache buffers chains           kcbzib: finish free bufs         0           9
    cache buffers chains           kcbzwb                           0           8
    cache buffers chains           kcbchg: kslbegin: bufs not       0           6
    cache buffers chains           kcbget: pin buffer               0           3
    cache buffers chains           kcbget: exchange rls             0           1
    cache buffers lru chain        kcbbiop: lru scan                0         105
    cache buffers lru chain        kcbzgb: multiple sets nowa       0          21
    cache buffers lru chain        kcbzgb: posted for free bu       0           3
    cache buffers lru chain        kcbbwlru                         0           1
    dml lock allocation            ktaiam                           0           2
    enqueue hash chains            ksqgtl3                          0          16
    enqueue hash chains            ksqrcl                           0          16
    enqueues                       ksqgtl2                          0           5
    enqueues                       ksqies                           0           4
    enqueues                       ksqrcl                           0           2
    library cache                  kgllkdl: child: cleanup          0         895
    library cache                  kglpnal: child: alloc spac       0         711
    library cache                  kglic                            0         344
    library cache                  kglupc: child                    0         261
    library cache                  kglhdgn: child:                  0         227
    library cache                  kglpnal: child: before pro       0         116
    library cache                  kglhdgc: child:                  0          82
    library cache                  kglobpn: child:                  0          74
    library cache                  kgldnp: child                    0          57
    library cache                  kglsca: parent                   0          57
    library cache                  kgllkdl: child: free pin         0          29
    library cache                  kglati                           0          27
    library cache                  kglpnc: child                    0          15
    library cache                  kgldte: child 0                  0           8
    library cache                  kglget: child: KGLDSBYD          0           3
    library cache                  kglobld: child:                  0           2
    library cache                  kglpin                           0           2
    library cache                  kgldti: not under latch          0           1
    library cache                  kglpnp: child                    0           1
    list of block allocation       ktlbbl                           0           4
    messages                       ksaamb: after wakeup             0          40
    messages                       ksarcv: after wait               0          13
    messages                       ksarcv                           0           8
    multiblock read objects        kcbzib: MBRGET                   0          32
    redo allocation                kcrfwr: redo allocation          0           4
    redo allocation                kcrfwi: before write             0           1
    redo writing                   kcrfss                           0          17
    redo writing                   kcrfsr                           0          16
    redo writing                   kcrfwi: after write              0           5
    redo writing                   kcrfwcr                          0           1
    row cache objects              kqrpre: find obj                 0         190
    ^LLatch Miss Sources for DB: PRDTDB  Instance: prdtdb  Snaps:     201 -    213
                                                              No Wait
    Latch Name                     Where                       Misses      Sleeps
    row cache objects              kqreqd: rel enqueue              0          93
    row cache objects              kqreqd                           0          64
    row cache objects              kqrso                            0           1
    session allocation             ksuxds: not user session         0          12
    session allocation             ksucri                           0           2
    session allocation             ksuxds: KSUSFCLC not set         0           1
    session idle bit               ksuxds                           0          22
    session idle bit               ksupuc: clear busy               0          17
    session idle bit               ksupuc: set busy                 0          11
    shared pool                    kghfrunp: parent clatch: w       0       5,059
    shared pool                    kghfrunp: alloc: wait            0       1,296
    shared pool                    kghfrunp: alloc: clatch no       0       1,152
    shared pool                    kghalo                           0         852
    shared pool                    kghfnd: min scan                 0         180
    shared pool                    kghfrunp: clatch: wait           0         112
    shared pool                    kghupr1                          0         104
    shared pool                    kghfnd: get next extent          0          72
    shared pool                    kghfnd: req scan                 0          55
    shared pool                    kghfre                           0          40
    shared pool                    kghalp                           0          31
    shared pool                    kghfrunp: clatch: nowait         0          30
    shared pool                    kghfen: not perm alloc cla       0          15
    shared pool                    kghfrunp: no latch               0           2
    shared pool                    kghfrunp: reget min scan         0           1
    transaction allocation         ktcdso                           0           3
    transaction allocation         ktcxba                           0           2
    undo global data               ktudba: KSLBEGIN                 0          61
    undo global data               ktudnx: KSLBEGIN                 0           1
    End of ReportPlease find partial output of v$sql;
    EXECUTIONS DISK_READS BUFFER_GETS ROWS_PROCESSED
         11170          0           0              0
         11726       6206       36460          11286
         11727       3079      193977          11727
         12007        278       69951          39346
         12700          0       31165          43631
         13371        564       26871           7113
         15568          0        1045              0
         16122         28       25925           8603
         16583        292       10230           2016
         16943         31        1092            209
         17933        896       35957          17933
    EXECUTIONS DISK_READS BUFFER_GETS ROWS_PROCESSED
         17958          0        3675              0
         22750       6968      132458          32748
         22840        518       31455          43631
         22840          1       37398              0
         22976        109       46286          22966
         23002         53       23280          22975
         23002         16       23216          23002
         23003         61       23362          23003
         23005        764       78363          23003
         25580       1303       81762         373057
         27092          0           0              0
    EXECUTIONS DISK_READS BUFFER_GETS ROWS_PROCESSED
         29218       1069       88739          29218
         32750          3        1020            355
         35790        453      279237          27807
         38630        488      116142           1331
         42128         13        2679            180
         45899          0      229499          45896
         45984         87      230393          45984
         50588          3        1931            145
         51215         81      256945          51215
         52212          9        2248            674
         62501          2        2087            506
    EXECUTIONS DISK_READS BUFFER_GETS ROWS_PROCESSED
         75230       1393      950678          71295
         95712      29410     1451214          87782
        102950       5250     1694896         102950
        165722        254      870666         165722
        527966        790     2773361         527965
        674310        190     5482921         674307
        709403       1198     3727110         709403
       1093841       2338    11416812        1093840Btree index type has been created.
    Please guide me in finding CPU problem.
    -Yasser

  • Table level supplemental logging

    How is table level supplemental logging different from Database level supplemental logging? Is Database level supplemental logging required for enabling table level supplemental logging?
    I have done 3 test cases, please suggest!
    Case 1
    Enabled only DB level supplemental logging(sl)
    observations--->
    DML on all tables can be tracked with logminer.
    I find this perfect.
    case 2
    Enabling only table level supplemental logging
    Setting---->
    2 tables ---AAA(with table level sl) & BBB (without table level sl)
    Only DDL is recorded with the help of logminer & few of the operations are listed as internal.
    case3
    Enabling database level sl first & then enabling table level sl only on one table --->AAA & no table level sl on BBB
    observation---> All the tables DDL & DML are getting tracked--point is if this is getting the same result
    as DB level SL, what is the significance of enabling Table level SL? or am I missing something?

    I have the same experience: when database level supplemental logging is enabled, adding supplemental logging at the table level does not affect functionality or performance.  Inserting 1 M rows into test table takes 25 sec ( measured on target database ) with table level supplemental logging, and 26 sec without it.  My GoldenGate version is 11.2, Oracle database version 11.2.0.3.0
    If someone can show the benefit of having table level supplemental logging in addition to database level logging, I would very much appreciate.

  • How to find High level water mark

    Hi all,
    How to find high level water mark of a table.
    Thanks,
    Bhanu Chander.

    Probably you mean High Water Mark.
    select blocks from user_segments where segment_name='YOUR TABLE';
    exec dbms_stats.gather_table_stats('YOU','YOUR TABLE')
    select blocks from user_tables where table_name='YOUR TABLE';
    subtract the last number from the first number. That is where your High Water Mark stands.
    Kind regards
    Uwe
    http://uhesse.wordpress.com
    Correction: The last number is where your HWM stands. The difference between the two numbers is the amount of blocks where no row has been yet :-)
    Edited by: Uwe Hesse on 26.06.2009 21:00

  • "Administrator or higher level privileges." But I am the Admin!

    I have a very frustrating problem. I noticed this for the first time when my printer stopped working. The scanner works, and I can run print tests from my computer but it won’t print. When I tried to reinstall the drivers I got an error message that says, “The software to be install needs Administrator or higher level privileges.” I typed in the correct password, which works for everything else. I am the only one using my computer and I am an administrator. This has never happened before.
    Now I can’t install anything without this error message, not even my regular updates. Which is freaking me out.
    I’ve tried everything I can think of. I’ve run disk utilities, repairs and permissions. I’ve created a new user (administrator) and tried that password/username.
    I couldn’t find any other threads on here with an answer to this problem.
    Thanks so much in advance if you can help me!! It is much appreciated! I have a lot of papers that are due next week and it would be awesome if I could figure this out.
    Ask me anything you need to know. I have a duel power G5 with extra ram, running OS X.
    Thanks again,
    Jessie
    [email protected]

    found similar discussion elsewhere:
    http://macosx.com/tech-support/update-osx-10-3-9/7699.html
    .plist is temporary preference file for any application
    try using file search for "installer", if "installer.plist" is not found anywhere you may need to reinstall the OS.
    first you could try creating new user in System Preferences, restart computer, login as new user and try installing something.
    if it works under different user, some other prefernce could have been corrupted in original setup.
    in that case more drastic thing would be to log in as original user, go to your user home folder, then "library" folder and moving whole "preferences" folder to desktop.
    after restart all settings will go to defaults though - network, printers, dock, desktop pics etc.
    if it still won't work, OS files got corrupted and you may need to try "archive and install" option from 10.3.x installation disks:
    http://docs.info.apple.com/article.html?artnum=107120
    keep in mind it's a good idea to have backup of important files just in case.
    try it step by step starting with creating new user and take your time.

  • Check package/procedure level privileges for a user

    hi gurus,
    how to check the package/procedure level privileges for a user? like dba_tab_privs for tables.
    for eg: grant execute on dbms_scheduler to user1.
    now, i need to verify that user1 has execute privilege on dbms_scheduler or not.
    what's the view for this?
    thanks in advance,
    charles

    SQL> select privilege, count(*) from dba_tab_privs group by privilege order by 1;
    PRIVILEGE                       COUNT(*)
    ALTER                               19
    DEBUG                              256
    DELETE                              131
    DEQUEUE                            3
    EXECUTE                           19315
    FLASHBACK                          52
    INDEX                               14
    INSERT                              137
    MERGE VIEW                          36
    ON COMMIT REFRESH                     52
    QUERY REWRITE                          52
    PRIVILEGE                       COUNT(*)
    READ                                7
    REFERENCES                          54
    SELECT                                3752
    UNDER                                3
    UPDATE                              111
    WRITE                                5
    17 rows selected.DBA_TAB_PRIVS is for more than just tables.

  • How to find first level WBS from Lower Level WBS

    My client is posting cost at wbs which will be at level 5 or 6 and i need to find 1st level wbs for that 5 or 6 level wbs..
    So Is there any Function module to find 1st level wbs from any lower levels...
    or any suitable code?

    Hi Sachin,
    in table PRHI you have the relationship between a WBS element and its superior level WBS element.
    For example:
    Level 1: XYZ (internal code PSPNR: 00000001)
    ..Level 2: ABC (internal code PSPNR: 00000002)
    ..Level 2: DEF (internal code PSPNR: 00000003)
    ....Level 3: PQR (internal code PSPNR: 00000004)
    ...then in table PRHI you'll have:
    PRHI-POSNR = 00000001 ... PRHI-UP = 00000000
    PRHI-POSNR = 00000002 ... PRHI-UP = 00000001
    PRHI-POSNR = 00000003 ... PRHI-UP = 00000001
    PRHI-POSNR = 00000004 ... PRHI-UP = 00000002
    ...meaning:
    WBS element XYZ is top level
    WBS element ABC depends of WBS element XYZ
    WBS element DEF depends of WBS element XYZ
    WBS element PQR depends of WBS element DEF
    Then you can iteratively (or recursively) "climb up" the structure of the project until the WBS element of level 1.
    I hope this helps. Best regards,
    Alvaro

  • How to find tables from transactions

    Hi All,
    Please tell me in which tables I can see customer heirarchy(i.e.VDH2N)? I would like to know all tables in which heirarchy 1 ,2 and 3  is stored?
    Also let me know how to find table names from transactions or after going to transaction screen?
    Thanks
    Yogesh

    Hi,
    Please check table KNVH.
    Also you can use BAPI BAPI_CUSTOMER_GET_CHILDREN to get child customers for a customer.
    FORM get_child_customers USING iv_cust_no TYPE kna1-kunnr.
    * BAPI to get the all Child Customers of the current Customer
    CALL FUNCTION 'BAPI_CUSTOMER_GET_CHILDREN'
    EXPORTING
    valid_on = sy-datum
    custhityp = 'A' ( Customer hierarchy type 'A', ... etc.. )
    node_level = '00' (node level)
    customerno = iv_cust_no ( customer number )
    TABLES
    node_list = gt_output. ( get the child customers in the list)
    ENDFORM. " get_child_customers
    Regards,
    Ferry Lianto

  • Difference between system level privilege and object level privilege

    hi
    i just want to know the difference between system level privileges and object level privilege.
    please correct me if i am wrong
    with system level privilege user can create objects such as creating tables,view,synonyms etc
    where as in object privilege we can only manipulate operations on object i.e perform dml not ddl
    please help

    Hi,
    810345 wrote:
    hi
    i just want to know the difference between system level privileges and object level privilege.
    please correct me if i am wrong
    with system level privilege user can create objects such as creating tables,view,synonyms etc
    where as in object privilege we can only manipulate operations on object i.e perform dml not ddl There are some system privileges that only concern manipulating objects: SELECT ANY TABLE, for example.
    The main difference is that the system-level privileges tend to cover all objects of a certain type, including objects that haven't been created yet.
    Object-level privileges usually apply only to one specifi object, such as one particular table, and are lost if the object is dropped. (For example, if I create a table called table_x, give you SELECT pivileges on it, then you can query my table. But if I then drop table_x and re-create it, you will not be able to see it unless I grant the privilege again.)

  • Unplanned goods issue table level

    Hi all
    Whan I make unplanned goods issue , i would like to know for which table level it is linked 
    Please revert back to me.
    regards
    Prabhu

    Both planned and unplanned consumption will Post in table MSEG and AUFM
    Planned consumption have both link with order no (AUFNR) and reservation no (RSNUM) In table MSEG and AUFM.
    But unplanned consumption have link only with order no, not  with reservation no. IN MSEG and AUFM, you can find blank in reservation field (RSNUM).

Maybe you are looking for

  • Document with inline links to files on my hard drive: How do I do that?

    I want to create metadocuments on my macbook: documents that link to other documents on my macbook. These metadocuments are only for use on my macbook, so these links would have no destination if the metadocument were opened on a different computer.

  • Display Conditions for Configurator OptionFeature Options - R12.1

    Here is a test scenario that I am using. This is for R12.1 1. I have a list of options under a Option feature 2. These options are to be displayed as drop down list in the configurator user interface as the min and max selections allowed is 1. i.e. o

  • SDCCN - Wrong day in cell "Task date"

    Hi experts, 1. when i create new EWA service in SOLMAN in (TCODE:DSWP>Operations>Solution monitoring>EarlyWatch Alert>Create), the service is created on the day for example. 07.oct.2010 (this is correct), but <a href="http://www.imgplace.com/viewimg2

  • Database in java desktop applications

    0 vote down star I am making a desktop application in java and using MS Access asdata base. I want that if i run the setup of the application the database should be created on client machine because there can be different client using the application

  • Where is the photo?

    This may come as a stupid question, but where must I look to find a photo I just converted from .jpg to PDF using the 'Save As' option under File of Elements 5.0? The photo in question was pulled from a file folder with a vertical zipper on the left