Query to find out whether a table is sub-partitoned , composite type one

Could you please let me know the query to find out whether a paritioned table
is
1). composite paritioned one.
2). sub-paritioned one.
I find that there are 2 cols in all_tab_partitions view, which lets me know
1). COMPOSITE VARCHAR2(3)
To find composite paritioned one or not.
2). SUBPARTITION_COUNT NUMBER
To find whether a table is sub-paritioned one or not.
Any light on the above topic is highly appreciated.

So it seems you've found the answer yourself?
with »user_tab_partitions« and »user_tab_subpartitons« you'll get all the neccessary information you are looking for.

Similar Messages

  • Query to find out whether bios password is enabled or disbaled.

    Hi All,
    Can any 1 help me identify the table to find out whether BIOS Password is enabled or disabled. Please provide the SCCM Table name. Thanks.

    To my knowledge, there is no existing standardised way to do this, because it is a hardware-specific feature, which can only be offered by the hardware manufacturer, and then only if the manufacturer develops/provides a suitable WMI Provider to do so.
    Then if so, you would need to enable custom WMI class inventory via ConfigMgr HINV.
    So, you would need to check with the manufacturer of your hardware, to confirm if they offer these features.
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Need query to find out whether exactly 2 columns are used in any index ?

    Suppose i have two columns ID and Status (or any number of columns ) belongs to table customer...
    Now I want to create below index
    Ex. create index test1 on customer (ID , Status )
    But before creating this index i want to check that whether there is already index on these 2 columns ? May be by other name ?
    Need query for this.
    Plz help.

    Hi Shubhangi,
    Your requirement is very difficult to fulfill , i have made an attempt to replicate your reqrmnt & write a query wherein you need to compromise on few things , let us see if it works for you
    Supply table_name/owner & Number of column on which you want to find indexes
    e.g.
    select distinct INDEX_NAME,column_name
    from dba_ind_columns
    where index_name in (select distinct index_name
    from dba_ind_columns
    where table_name='&table_name'
    and table_owner='&owner'
    having count(column_name)=&column_count group by index_name);
    Enter value for table_name: ADDRESS
    Enter value for owner: ASAP
    Enter value for column_count: 2
    INDEX_NAME COLUMN_NAME
    FKIDX_AD__SF_ST_FO SF_STRUC_FORMAT_NM
    FKIDX_AD__SF_ST_FO SF_TYPE_NM
    SQL> /
    Enter value for table_name: ADDRESS
    Enter value for owner: ASAP
    Enter value for column_count: 3
    INDEX_NAME COLUMN_NAME
    FKIDX_AD__SF_ST_FO_1 POSTAL_CD
    FKIDX_AD__SF_ST_FO_1 SF_STRUC_FORMAT_NM
    FKIDX_AD__SF_ST_FO_1 SF_TYPE_NM
    Thanks,
    Ajay More
    http://moreajays.blogspot.com

  • How to find out whether the tables in SGA?

    it's 11.2.0.3.0
    Thanks.

    IDM99 wrote:
    it's 11.2.0.3.0
    Thanks.Well, by default entire tables aren't stored in the buffer, just the blocks that were required. They are then aged out. You can view information on segment buffer pool usage here:
    http://docs.oracle.com/cd/E11882_01/server.112/e16638/memory.htm#i40226
    If you want to keep objects in memory, you can use the KEEP pool. It's generally not needed.

  • Query to find out the Activities done against a table

    Hi,
    One table has been truncated and data reloaded into the table by the user. But at latter stage user deny that activity. I believe all these activities stored in any oracle 10g database table.
    Need a query to find out the activities done on a specific date say 6th Sep.
    This is too urgent. Thanks in advance

    Hi,
    Welcome to the forum!
    If you don't have enable table auditing maybe you can see last_ddl_time column of user_objects view:
    Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
    Connected as hr
    SQL> select * from test2;
          COL1       COL2       COL3
             1          1          3
             1          2          3
             1          3          3
    SQL> select to_char(uo.created, 'DD/MM/YYYY HH24:MI:SS'), to_char(uo.last_ddl_time, 'DD/MM/YYYY HH24:MI:SS') from user_objects uo where uo.object_name = 'TEST2';
    TO_CHAR(UO.CREATED,'DD/MM/YYYY TO_CHAR(UO.LAST_DDL_TIME,'DD/M
    12/09/2009 12:20:26            12/09/2009 12:20:27
    SQL> truncate table test2;
    Table truncated
    SQL> select to_char(uo.created, 'DD/MM/YYYY HH24:MI:SS'), to_char(uo.last_ddl_time, 'DD/MM/YYYY HH24:MI:SS') from user_objects uo where uo.object_name = 'TEST2';
    TO_CHAR(UO.CREATED,'DD/MM/YYYY TO_CHAR(UO.LAST_DDL_TIME,'DD/M
    12/09/2009 12:20:26            12/09/2009 14:01:21
    SQL> Regards,

  • How do I query to find out if the MONITORING clause was enabled on a table?

    Our customers are currently running Oracle 8.1.7 in the field. I am writing a database schema updater tool that is supposed to examine the schemas and make necessary changes to them.
    Recently, the MONITORING clause was added to many of the tables in our schemas. I need to find out if the tables currently have MONITORING enabled.
    But, even though the Oracle documentation is very large, again, I cannot find any information about how to determine if MONITORING on a table is on or off.
    Any ideas? An SQL query? JDBC metadata?
    Tom Harris
    Cisco Systems, Inc.

    What is the output of the following statements on your system?
    Remember, table names are stored in caps in the dictionary if not enclosed within double-quotes.
    SQL> create table t (x number) ;
    Table created.
    SQL> select monitoring from user_tables where table_name = 'T' ;
    MON
    NO
    1 row selected.
    SQL> alter table t monitoring ;
    Table altered.
    SQL> select monitoring from user_tables where table_name = 'T' ;
    MON
    YES
    1 row selected.
    SQL> disconnect
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.5.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.5.0 - Production
    SQL>

  • Query to find out tables using view

    Hi
    I have a views using three tables.Now i wanted a query to find out number of views using three tables
    I have written a query
    select * from dba_views where text like '%SELECT%;
    It is giving me error as ora error EXPECTED NUMBER GOT LONG.
    Appreciate your help?

    SELECT DECODE(referenced_type, 'NON-EXISTENT', '.....',
    referenced_type) || ' ' || referenced_owner ||
    '.' || referenced_name r_name, ' is referenced by: ' ||
    type || ' ' || owner || '.' || name name,
    ' Referenced Link: ' || DECODE(referenced_link_name,
    NULL, 'none', referenced_link_name) r_link
    FROM dba_dependencies
    -- WHERE owner NOT IN ('SYS', 'SYSTEM')
    -- and rownum < 50
    ORDER BY 1,2;
    add your own where clause to it

  • Please give the query to find out primary key in table in Sql plus

    Dear friends,
    Please give me the query to find out the primary key in Sql plus.

    hi
    SQL> DESC user_constraints
    Name                                                                                                  
    OWNER                                                                                                 
    CONSTRAINT_NAME                                                                                       
    CONSTRAINT_TYPE                                                                                       
    TABLE_NAME                                                                                            
    SEARCH_CONDITION                                                                                      
    R_OWNER                                                                                               
    R_CONSTRAINT_NAME                                                                                     
    DELETE_RULE                                                                                           
    STATUS                                                                                                
    DEFERRABLE                                                                                            
    DEFERRED                                                                                              
    VALIDATED                                                                                             
    GENERATED                                                                                             
    BAD                                                                                                   
    RELY                                                                                                  
    LAST_CHANGE                                                                                           
    INDEX_OWNER                                                                                           
    INDEX_NAME                                                                                            
    INVALID                                                                                               
    VIEW_RELATED                                                                                          
    SQL> SELECT constraint_name,table_name,r_constraint_name,status
      2  FROM user_constraints WHERE constraint_type='P';
    CONSTRAINT_NAME                TABLE_NAME                     R_CONSTRAINT_NAME              STATUS
    SYS_C003141                    CUSTOMERS                                                     ENABLED
    PK_DEPT                        DEPT                                                          ENABLED
    SYS_C003139                    SALESREPS                                                     ENABLEDKhurram

  • SQL Query to Find out User has what all resources provisioned !

    Hi Guys ,
    Does any one have a SQL query to find out what resources are provisioned to a particular user ?
    Thanks
    Suren

    Hi,
    Hope this will help you.
    SELECT distinct usr_login as "IdM User ID",
    usr_employeeID as "Employee ID",
    usr.USR_FIRST_NAME as "First Name",
    usr.USR_LAST_NAME as "Last Name",
    usr_status
    as "User Status",
    USR_EMP_TYPE as "Employee Type",
    obj.obj_name as "Application Resource",
    ost_status as "Application Resource Status",
    FROM ost,oiu,obj,usr,obi
    WHERE oiu.ost_key = ost.ost_key AND obj.obj_key = obi.obj_key AND oiu.usr_key = usr.usr_key
    AND ost_status in ('Provisioned','Revoked','Disabled', 'Provisioning')
    AND oiu.obi_key=obi.obi_key
    AND usr_EmployeeID like '11111'
    This query will provide all the resources to which the user is linked with and the resource status is in 'Provisioned','Revoked','Disabled', 'Provisioning' status for a particular employeed ID, I am not completely sure whether I have given the Employee ID column from USR table as correct or not. Verify once and query the DB

  • How to find out whether Oracle database was upgraded ??

    Hi,
    I need to find out whether my Oracle database was upgraded, If yes how to find out by SQL query .I know their is database_properties table, but when I try to query that it didnt gave me the output which I required.
    Like in SAP we have uvers table which keep info about the upgrade history, whether such history is avaliable in oracle ?? . Iam looking out for output which is like old database Release 9.2.0.7 and new database release 10.2.0.2.
    Whether similar such history is maintained in Oracle database.
    Awaiting for your feedback.
    Kind Regards
    Neenad

    Hi all,
    After checking all the material,I dont think prior to 10g, oracle register its earlier version.
    The views of v$version show the current version for various components and also dba_registry displays info about catlog/catproc versions.
    In 10g, you can use the following query to know the version when the database was broughtup.
    select startup_time,version,db_name from dba_hist_database_instance.
    Anways thanks to all of you.
    Kind Regards
    Neenad

  • How to use ONE query to find out tree structure?

    ID------------upperID----------Name------------------------isFolder
    1------------ 0---------- Folder
    1------------------------------------1
    2------------ 1------------ Folder 1- Sub
    Folder--------------------1
    3------------ 2------------
    Folder1-Item1-A--------------------------0
    4------------ 1------------ Folder 1- Sub
    Item-----------------------0
    Hi all, if I have a table like above to demonstrate the
    folders and item relationship. This structure allows the user to
    create unlimited folders and items.
    Now I would like to use one query to find out the tree
    structure of this table, how could I do the query.
    Any help on this will be highly appreciated!
    Thanks,
    ez

    Also, see this thread:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=1&catid=7&threadid=12 55788&enterthread=y

  • How to find out whether a particular changed by some user

    Hi gurus,
                I am just trying to figure it out how to find out whether a particular user has changed a particular table or not. In other words table changes history. If any of you know about it please let me know.
    Thankyou
    Jason

    Jason,
      Ajay mentioned changes to Table not for Data. If you are looking for Changes to Table Data... you need to check System Log SM21. check for that perticular period.
    Nagesh Ganisetti.
    Assign points if it helps.

  • Query to find out the list of user who have delete access

    Hi,
    I need a query to find out the list of users who have delete access on perticular folder/universe/ reports  in infoview.
    Please advice.
    Regards,
    Neo.

    orton607 wrote:
    thanks for replying guys. But the thing is i am using dynamic sql execute immediate in my package, so i want those tables also and the schema name.
    thanks,
    ortonThis is not possible. The best you could do is to have a good guess.
    Or how would you parse some dynamic statement as this:
       v_suffix := 'loyees';
       v_sql := 'Select count(*) from (select ''nonsense'' col1 from emp'||v_suffix||') where col1 = ''Y'''';
       execute_immediate(v_sql);
    ...What is the table name? How do you want to parse that?
    Better rewrite all dynamic SQL statements into non dynamic ones. Or do the source control logic for those dynamic parts in an extra module. For example implement your own dependency table and force every developer to add there all dynamic parts.

  • How to find out whether a material code in SAP has any transaction history

    Hi Guys,
    I want to find out whether a material code in SAP has any transaction history or not. In other words, I want a list of all those materials, division-wise, which have not been subjected to any sort of transaction in SAP till date , i.e., lying unused.
    Can any of you in help me out regarding this matter ?
    Regards,
    Anirban

    hhi
    go to se16
    table         MBEW  and field LBKUM for total stock
    from here u can conclude for the zero stock material
    or try this
    S_ALR_87012963 - Material Where-Used List
    regards
    kunal

  • How to find out where a table is used in the code ?

    I have a huge database, and I am adding a column to a table...
    is there a query to find out if this would impact the code ? I mean I want to find all the places in the code with
    insert into mytable, or update mytable.....
    how to include both insert into mytable, and update mytable in dba_source ?

    Use DBA_DEPENDENCIES:
    select owner,name,type from dba_dependencies where referenced_name = 'TABLE_NAME'
    and referenced_owner = 'TABLE_OWNER';For example:
    SQL> select owner,name,type from dba_dependencies where referenced_name = 'EMP'
      2  and referenced_owner = 'SCOTT';
    OWNER                          NAME                           TYPE
    PUBLIC                         TABLE1                         SYNONYM
    SCOTT                          SELECT_EMP                     PROCEDURE
    SCOTT                          EMP_DEPT_VW                    VIEW
    SCOTT                          PP                             SYNONYM
    SCOTT                          EMP_MV                         MATERIALIZED VIEW
    SCOTT                          EMP_VIEW                       VIEW
    6 rows selected.
    SQL> However, keep in mind DBA_DEPENDENCIES stores statis references only. If your code references table in question in dynamic SQL you will have to parse DBA_SOURCE and in some cases, even that will not give you all answers.
    SY.

Maybe you are looking for

  • Help with Joins in ABAP

    Hello Experts, I am struggling with a problem. In my development I have two db tables for eg. Table A and Table B. Now table A has about 200,000 entries and table B has about 800,000 entries. I want to delete all the extra entries (junk entries-not 

  • My mac reboots to recovery mode...help

    I have a mid 2007 imac....upgraded RAM and installed Mavericks... Everything fine here. The other day I was working on some graphics and it completely froze...nothing responded so had to perform a hard reboot. After this, started having boot problems

  • Bonjour - Mac A can see Mac B but not vice versa

    Hi Very odd behaviour with Bonjour. Up until yesterday, my macbook pro (call it A) would see my mac pro (B) - it would appear automatically in A's sidebar, I could listen to B's iTunes library on A and so on. No problem and there hasn't been for a co

  • What kind of error is this

    C:\source>java Average1 Assertion failed: offset < fFileSize, file ..\..\..\..\src\share\native\sun\awt\ font\fontmanager\fontobjects\fontObject.cpp, line 240 abnormal program termination the above source code can be compiled but when i run java it o

  • Could not save as "untitled-218a.jpg" because write access was not granted.

    Can anyone guide me on what might be going on?  I am unable to save images in PS.  I keep getting this error:  Could not save as "untitled-218a.jpg" because write access was not granted. Thank you!