How to find the partition column in a partitioned table

Hi,
I have a partition table and I need to find out what column was used to partition the table. Range partition.
Thanks,
Maria Sanchez

select *
from dba_part_key_columns

Similar Messages

  • How to find the structure fields data in database tables?

    how to find the structure fields data in database tables?

    Your question doesn't appear to be Web Dynpro ABAP related. Please only post questions in this forum if they are directly Web Dynpro ABAP related.  There are several other more general ABAP related forums.

  • How to find the DB schema of XI DB tables to operate on the XI DB table

    Hi all,
    I have to execute some queries on internal XI DB. For this I need the schema name of the DB table where the data about the message is available. Can anyone tell, how to find the DB schema-name of the DB table? I have PI 7.1 system with internalDB.
    How to access the DB of the PI 7.1 system using NWA?
    Regards,
    Soorya

    Hi,
    The PI 7.1 Server shall definitely posses a Database. This Database shall have the ABAP and Java Dictionary tables in 2 different database schemas.You sholud be getting the names of the schema from the basis team supporting your server.
    I hope your are referring to the Java DB Schema for access. In order to get the schema name for the Java Dictionary, you should have access to the NetWeaver Adminstrator (NWA) of the PI Server.
    Logon to NWA, navigate to Configuration Management --> Infrastructure --> Application Resources. Select the Resurce Type to show as JDBC Drivers. Select the system driver and click on Dependent JDBC Datasources. This table should give you the schema name of the Java Table Storage of the PI 7.1 server.
    Regards,
    Alka.

  • How to find the size of a Oracle 11g table

    I want to find the size of a table in Oracle 11g.
    I hope, my question is clear.
    Please revert with the reply to my query.
    Regards

    --- List all tables sorted by size
    set lines 100 pages 999
    col     segment_name     format a40
    col      mb           format 999,999,999
    select     segment_name
    ,     ceil(sum(bytes) / 1024 / 1024) "MB"
    from     dba_segments
    where     segment_type = 'TABLE'
    group     by segment_name
    order      by ceil(sum(bytes) / 1024 / 1024) desc
    --- List all tables owned by a user sorted by size
    set lines 100 pages 999
    col     segment_name     format a40
    col      mb           format 999,999,999
    select     segment_name
    ,     ceil(sum(bytes) / 1024 / 1024) "MB"
    from     dba_segments
    where     owner like '&user'
    and     segment_type = 'TABLE'
    group     by segment_name
    order      by ceil(sum(bytes) / 1024 / 1024) desc
    /

  • How to find the space used by a single table, a index on that table etc

    Can someone tell where to locate for the Extents used by a single table , index and other objects

    A large question implies a large answer, read the reference guide
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14237/toc.htm
    and search dba_extents...
    Nicolas.

  • How to find the transport that changed a field/table

    Hi Experts,
    My issue is we have three transports.  All three were successfully transported in PRD and there were no errors.  BUT when we compare table T012 in PRD to T012 DEV and T012 QAS, T012 PRD is wrong.  One of the changes did not make it.  How can I find out which transport affected T012? Will I be able to search down to the field affected?

    Hi Marianne,
    It might be possible that transports deployment sequence to Production is not same as other system deployment sequence.
    Please check the same in table-E071.
    Regards,
    Sudeesh Soni

  • How to find the Conditions and Condition values in table entries

    Dear Experts -
    the issue is about getting the table entries of Pricing procedure Condition type and condition values - Application Component - MS external service management.
    In case of service order Condition document number (EKKO - KNUMV) is not updated.
    KNUMV we can use for Pricing procedure - Application componant - M Purchasing.
    How to get table entries of pricing procedure - Application Componant - MS External services management.
    Thanks in Advance

    Hi
    SES releated table:
    ESKL - Account assignment specification for service line
    ESKN - Account assignment in service package
    ESLH - Service package header data
    ESLL - Lines in service package
    ESSR - Service entry sheet header data
    ESUC - External services management: Unplanned limits for contract item
    ESUH - External services management: unplanned service limits header data
    ESUP - External services management: unplanned limits for service packages
    ESUS - External services management: Unplanned limits for service types
    Regards
    Prasanna R

  • How to find the current document No in VBAK table?

    Hi
    I want to fill the set up tables from 2LIS_11_VAITM using Number ranges . Iknow initial Sales Order number but I want to know the current number so that I can set up a range..
    Thanks,
    Suresh

    Look in VBAK on the day you want to load on.  Grab the the highest number right before you load the setup tables.

  • How to identify the source column and source table for a measure

    Does anyone have a query that I can use to positively identify the source column and source table for a cube measure in an SSAS cube?  Visual Studio shows ID, Name, and Source, but it is nearly worthless in a large cube and database.
    Also - the same for a dimension would be great.
    If no query exists for this, can someone please explain how to find the source column/table for a measure and for a dimension?
    Thanks.

    DMVs don’t expose the DataSourceView content. AMO is much better suited for object model operations like
    this than the DMVs. PowerShell is also sometimes an option, but in this case C# code would be much easier because analyzing the contents of the DataSourceView is much easier using the .Net DataSet class.
    Hope this helps.
    Reeves
    Denver, CO

  • How to find the relation between PAY_ELEMENT_TYPES_F and GL_CODE_COMBINATIO

    Hi, could someone tell me how to find the relation between PAY_ELEMENT_TYPES_F and GL_CODE_COMBINATION tables
    that is because as you could know PAY_ELEMENT_TYPES_F holds the definitions of elements in Oracle HRMS and i need to find the accounting code of each element.
    Thanks

    Hi;
    Please check e-trm site for table relation,integration,explanation etc..
    etrm.oracle.com/
    Regard
    Helios

  • How to find the number of columns in an internal table DYNAMICALLY ?

    Hi,
    How to find the number of columns in an internal table DYNAMICALLY ?
    Thanks and Regards,
    saleem.

    Hi,
    you can find the number of columns and their order using
    the <b>'REUSE_ALV_FIELDCATALOG_MERGE'</b>
    call function 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
       I_PROGRAM_NAME               = sy-repid
       I_INTERNAL_TABNAME           = 'ITAB'
       I_INCLNAME                   = sy-repid
      changing
        ct_fieldcat                  = IT_FIELDCAT
    EXCEPTIONS
       INCONSISTENT_INTERFACE       = 1
       PROGRAM_ERROR                = 2
       OTHERS                       = 3
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif
    now describe your fieldcat . and find no of columns.
    and their order also..
    regards
    vijay

  • How to find the Data Type of a column

    Dear All,
    How to find the Data Type of a Column dynamically in oracle Form.
    Thanks and Regards,
    Fazil
    Edited by: user11334489 on Aug 25, 2012 9:06 PM

    hi,
    you can use get_item_property built-in
    eg:
    declare
       l_item VARCHAR2(10);
    begin
       l_item := Get_Item_Property('item_name',DATATYPE);
    end;

  • How to find the Date and Time of Modification of Column in aTable?

    Hi all,
    Do  you know how to find the Date and Time of Addition of Column to a Particular Table?.
    I know however, How to find the modification time of the Table. Using the below Query :
    Select Object_Name, to_Char(Last_DDL_TIME, 'DD-Mon-YYYY HH24:MI:SS') Last_DDL from User_Objects where Object_Type = 'TABLE';
    Object_Name
    Last_DDL
    Employee
    20-Aug-2013 09:23:03
    I wanted to know the Creation or Modification Date and Timestamp of all columns of Employee Table?. Is it possible at all. If possible, How to get it?.
    Regards,
    Bhaskar M

    I agree with you on that. Since its a development enviornment I can remove the column but that not my point here.
    My whole purpose it to know whether we get the Column's Creation or Modification DateTime.

  • How to find the column name and table name with a value

    Hi All
    How to find the column name and table name with "Value".
    For Example i have value named "Srikkanth" This value will be stored in one table and in one column i we dont know the table how to find the table name and column name
    Any help is highly appricatable
    Thanks & Regards
    Srikkanth.M

    2 solutions by Michaels (the latter is 11g upwards only)...
    michaels>  var val varchar2(5)
    michaels>  exec :val := 'as'
    PL/SQL procedure successfully completed.
    michaels>  select distinct substr (:val, 1, 11) "Searchword",
                    substr (table_name, 1, 14) "Table",
                    substr (t.column_value.getstringval (), 1, 50) "Column/Value"
               from cols,
                    table
                       (xmlsequence
                           (dbms_xmlgen.getxmltype ('select ' || column_name
                                                    || ' from ' || table_name
                                                    || ' where upper('
                                                    || column_name
                                                    || ') like upper(''%' || :val
                                                    || '%'')'
                                                   ).extract ('ROWSET/ROW/*')
                       ) t
    --        where table_name in ('EMPLOYEES', 'JOB_HISTORY', 'DEPARTMENTS')
           order by "Table"or
    SQL> select table_name,
           column_name,
           :search_string search_string,
           result
      from cols,
           xmltable(('ora:view("'||table_name||'")/ROW/'||column_name||'[ora:contains(text(),"%'|| :search_string || '%") > 0]')
           columns result varchar2(10) path '.'
    where table_name in ('EMP', 'DEPT')
    TABLE_NAME           COLUMN_NAME          SEARCH_STRING        RESULT   
    DEPT                 DNAME                ES                   RESEARCH 
    DEPT                 DNAME                ES                   SALES    
    EMP                  ENAME                ES                   JONES    
    EMP                  ENAME                ES                   JAMES    
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   PRESIDENT
    EMP                  JOB                  ES                   SALESMAN 
    9 rows selected.

  • How to find the columns and tables used in a stored procedure?

    Hi,
    Can someone suggest how to find the columns and tables used within a stored procedure?
    Thanks
    VBK

    For example:
    SQL> create or replace
      2    procedure p1
      3      is
      4          cnt number;
      5      begin
      6          select count(*) into cnt from emp;
      7  end;
      8  /
    Procedure created.
    SQL> select  referenced_owner,
      2          referenced_name
      3    from  dba_dependencies
      4    where owner = 'SCOTT'
      5      and name = 'P1'
      6      and referenced_type = 'TABLE'
      7  /
    REFERENCED_OWNER               REFERENCED_NAME
    SCOTT                          EMP
    SQL> SY.

  • How to find the partition

    Guys,
    Please can you tell me how to find the partition name from the table for say today ("SYSDATE") assuming that the table is partitioned by Date ( monthly )
    ie,
    I need to find the partition belonging to the current month, on which i am working
    Thanks
    G

    Based on martina's suggestion (can be of course improved, maxvalue should be handled as well):
    SQL> create table p(id number,time_stamp date)
      2  partition by range(time_stamp)
      3  (
      4   partition p1 values less than(date '2007-10-01'),
      5   partition p2 values less than(date '2007-11-01'),
      6   partition p3 values less than(date '2007-12-01'),
      7   partition p4 values less than(date '2008-01-01'),
      8   partition p5 values less than(date '2008-02-01'),
      9   partition p6 values less than(date '2008-03-01')
    10  )
    11  /
    Table created.
    SQL> create or replace function date_from_long(p_tabname  varchar2,
      2                                            p_partname varchar2)
      3    return date is
      4    l_long long;
      5    l_date date;
      6  begin
      7    select high_value
      8      into l_long
      9      from user_tab_partitions
    10     where table_name = p_tabname
    11       and partition_name = p_partname;
    12    if substr(l_long, 1, 7) = 'TO_DATE' then
    13      execute immediate 'select ' || l_long || ' from dual'
    14        into l_date;
    15      return l_date;
    16    else
    17      return null;
    18    end if;
    19  end;
    20  /
    Function created.
    SQL> select table_name,partition_name,
      2  date_from_long(table_name,partition_name) high_value
      3  from user_tab_partitions
      4  where table_name='P'
      5  order by 3
      6  /
    TABLE_NAME                     PARTITION_NAME                 HIGH_VALUE
    P                              P1                             01.10.2007 00:00:00
    P                              P2                             01.11.2007 00:00:00
    P                              P3                             01.12.2007 00:00:00
    P                              P4                             01.01.2008 00:00:00
    P                              P5                             01.02.2008 00:00:00
    P                              P6                             01.03.2008 00:00:00
    6 rows selected.
    SQL> select
      2  max(partition_name)
      3  keep
      4  (dense_rank first order by date_from_long(table_name,partition_name)) part_name
      5  from user_tab_partitions
      6  where table_name='P' and date_from_long(table_name,partition_name)>=sysdate
      7  /
    PART_NAME
    P2Best regards
    Maxim

Maybe you are looking for

  • Sending DMS Document as Attachment thru e-mail

    Hi, I am attaching the DMS document in purchase order & I am sending the PO thru email to vendor.But while doing so the attached document shuld be sent as attachment But in my present config setting it is not doing so. Pl suggest Rgds

  • Imac reads blanks cd-r but not dvd-r

    I have a problem with my cd/dvd writer.  It reads all types of media and burns CD-r's but when I try to burn a DVD-r, it won't recognize a disc in the drive.  It used to come up with a window stating a blank disc has been inserted, what would you lik

  • My Canon MX300 will not print.

    Hi coreopsis! Welcome to the Canon Community Forums and thank you for your post! So that the Community can help you better, we will need to know about any error messages you're seeing, and the Computer Operating System you're using (Windows XP/Vista/

  • Where we can use standard ODS Object and Trasactional ODS Object ?

    Where we can use standard ODS Object and Trasactional ODS Object ?

  • Question about updating to Logic 9 and 64-bit

    Hey guys, thanks for reading. About 5 years ago I purchased the student discounted version of Logic Studio 8 (does not support upgrades of any kind).  I have used this until now in conjunction with many Eastwest and Spectrasonics audio units. I am no