Oracle data dictionary table partition information

Hi guys,.

Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
AMT for HP - UX: release 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production


DW contains a number of tables. Some of them have partitions. Is there a DD view that indicates what are the partitions in tables?

Thanks in advance!

Published by: abyss on May 24, 2011 10:19
   select * from all_tab_partitions where table_owner=  

Choose what you want in the select list.

for example

    select table_name,partition_name,tablespace_name from all_tab_partitions
              where table_owner='SCOTT'

Tags: Database

Similar Questions

  • Can I use the data dictionary tables based on RLS policy?

    Hello guys, I use the package level security line to limit certain lines to some users.

    I created several roles, I want to just enable certain roles to see all the columns, but the other roles, I'm not that they see all the lines. I mean to do this I use the session_roles table data dictionary however it did not work.

    What to do in order to not allow rows of user roles?
    Can I use the data dictionary tables in RLS?


    Thank you very much.

    Polat says:
    What to do in order to not allow rows of user roles?
    Can I use the data dictionary tables in RLS?

    Ensure that:

    SQL> CREATE OR REPLACE
      2    FUNCTION no_sal_access(
      3                           p_owner IN VARCHAR2,
      4                           p_name IN VARCHAR2
      5                          )
      6      RETURN VARCHAR2 AS
      7      BEGIN
      8          RETURN '''NO_SAL_ACCESS'' NOT IN (SELECT * FROM SESSION_ROLES)';
      9  END;
     10  /
    
    Function created.
    
    SQL> BEGIN
      2    DBMS_RLS.ADD_POLICY (
      3                         object_schema         => 'scott',
      4                         object_name           => 'emp',
      5                         policy_name           => 'no_sal_access',
      6                         function_schema       => 'scott',
      7                         policy_function       => 'no_sal_access',
      8                         policy_type           => DBMS_RLS.STATIC,
      9                         sec_relevant_cols     => 'sal',
     10                         sec_relevant_cols_opt => DBMS_RLS.ALL_ROWS);
     11  END;
     12  /
    
    PL/SQL procedure successfully completed.
    
    SQL> GRANT EXECUTE ON no_sal_access TO PUBLIC
      2  /
    
    Grant succeeded.
    
    SQL> CREATE ROLE NO_SAL_ACCESS
      2  /
    
    Role created.
    
    SQL> GRANT SELECT ON EMP TO U1
      2  /
    
    Grant succeeded.
    
    SQL> CONNECT u1@orcl/u1
    Connected.
    SQL> select ename,sal FROM scott.emp
      2  /
    
    ENAME             SAL
    ---------- ----------
    SMITH             800
    ALLEN            1600
    WARD             1250
    JONES            2975
    MARTIN           1250
    BLAKE            2850
    CLARK            2450
    SCOTT            3000
    KING             5000
    TURNER           1500
    ADAMS            1100
    
    ENAME             SAL
    ---------- ----------
    JAMES             950
    FORD             3000
    MILLER           1300
    
    14 rows selected.
    
    SQL> connect scott@orcl
    Enter password: *****
    Connected.
    SQL> GRANT NO_SAL_ACCESS TO U1
      2  /
    
    Grant succeeded.
    
    SQL> connect u1@orcl/u1
    Connected.
    SQL> select ename,sal FROM scott.emp
      2  /
    
    ENAME             SAL
    ---------- ----------
    SMITH
    ALLEN
    WARD
    JONES
    MARTIN
    BLAKE
    CLARK
    SCOTT
    KING
    TURNER
    ADAMS
    
    ENAME             SAL
    ---------- ----------
    JAMES
    FORD
    MILLER
    
    14 rows selected.
    
    SQL> 
    

    SY.

  • DataModeler: import of the data dictionary table comments

    Hi, I begin barely using SQL DataModeler and seems to have a problem with regard to the comments of reverse engineering table.

    When you use Import > data dictionary, I have no trouble importing column comments, but the comment table always seem to come up empty. I see no obvious option for y understood/off table/column comments so am puzzled as to why column comments import very well but the comments in the table are not (Yes, the tables, I'm importing have comments on the tables and columns).

    What Miss me? Any help is appreciated.

    -Andy.

    Hi Andy,.

    There is no option for this. They should be included, but unfortunately there is a bug and not included.

    Philippe

  • OmniPortlet and Oracle data dictionary

    Hello
    I have this problem. I have to develop a portlet in order to:

    -Send an email to all the users who belong to groups whose names begin to "shiftlist.

    For example, if we have groups:

    1 shiftlist_ XX
    2 shiftlist_YY
    3 AA

    I send email to all users who belong to the first and second groups.

    Someone told me to query the data dictionary (SELECT all_users username where username like ' shiftlist_ %) to get the desired users.

    Is it possible to create a portlet with Omniportlet to get the list of users in your opinion?

    Thank you very much

    You can create a portlet omni with standard sql and display users, but if you want to send an email to them, I think that the best approach is to develop a regular JSR 168 portlet.

  • Cannot select Tables or data dictionary views

    Hello

    I have a normal user from where I want to visualize the data dictionary tables and views as DBA_ and V$ _ because I do not want to log the SYS account each time.

    I have granted all the privileges of the user, but it does not work. Here are the commands I used.

    all the privileges of the user;

    Grant sysdba to user;

    Can you help me please

    Hello

    grant this user SELECT_CATALOG_ROLE. Revoke all privileges that the user didn't need, or he would be able to do all sorts of things destructive (up to drop the entire database) by accident.

    Best regards

    Nikolai

  • A full import by using datapump will overwrite the target database data dictionary?

    Hello

    I have a 11G with 127 GB database. I did a full export using expdp as a user of the system. I'll import the created dump file (which is 33 GB) on the basis of data from 12 c target.

    When I do the full import on the 12 c database data dictionary is updated with new data. But as is it already contained data dictionary? It will also change?

    Thanks in advance

    Hello

    In addition to the responses of the other comrades

    To start, you need to know some basic things:

    The dictionary database tables are owned by SYS and must of these tables is created when the database is created.

    Thus, in the different versions of database Oracle there could be less or more data dictionary tables of different structure database,.

    so if this SYSTEM base tables are exported and imported between different versions of oracle, could damage the features of database

    because the tables do not correspond with the version of database.

    See the Ref:

    SYS, owner of the data dictionary

    Database Oracle SYS user is owner of all the base tables and a view of the data available to the user dictionary. No Oracle database user should never change (UPDATE, DELETE, or INSERT) ranks or schema objects contained in the SYS schema, because this activity can compromise the integrity of the data. Security administrator must keep strict control of this central account.

    Source: http://docs.oracle.com/cd/B28359_01/server.111/b28318/datadict.htm

    Prosecutor, the utilities for export cannot export the dictionary SYS base tables and is marked

    as a note in the documentation:

    Data Pump export Modes

    Note:

    Several patterns of system cannot be exported because they are not user patterns; they contain metadata and data managed by Oracle. Examples of system schemas that are not exported MDSYS SYS and ORDSYS.

    Source: https://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_export.htm#SUTIL826

    That's why import cannot modify/alter/drop/create dictionary database tables. If you can not export, so you can not import.

    Import just to add new Non - SYS objects/data in the database, therefore new data are added to the dictionary base tables (as new users, new tables, code pl/sql etc).

    I hope that this might answer your question.

    Kind regards

    Juan M

  • Data dictionary... Help please

    I have create this query for my college courses. I need help. I have half of the request, according to me. Need an another join clause in the declaration for the views, do not know what to do. Any help will be appreciated! Thank you!



    Create and run a simple query on the Oracle data dictionary to show all the foreign key constraints in the HR schema. Note that the foreign key constraints are constraint type 'R '. For each constraint of the list the type of constraint, constraint name, the name of the table referencing, the position of column referencing, referencing column name, the name of the referenced constraint (i.e. the name of constraint primary key from another table), the referenced table and the columns that are referenced. Sort your results by name of constraint, table_name and position.

    TIPS: You'll need two views of different data dictionary for this query. One of the points of view should be mentioned twice in the FROM clause, and so you will need two alias names. With this agreement, you must also join two conditions.


    That's what I have so far...

    SELECT uc.constraint_type, uc.constraint_name, uc.table_name, r_constraint_name,
    UCC.table_name, ucc.position, ucc.column_name, ucc.constraint_name
    From user_constraints uc JOIN user_cons_columns ucc
    ON uc.table_name = ucc.table_name
    AND uc.constraint_name = ucc.constraint_name
    WHERE constraint_type = 'R '.
    AND IN r_constraint_name
    (SELECT constraint_name
    Of all_constraints
    WHERE constraint_type
    IN ('P', 'U')
    AND table_name = 'hr')
    ORDER BY uc.constraint_name, ucc.table_name, ucc.position;

    Try this.

    SELECT uc.constraint_type,
           uc.constraint_name,
           uc.table_name,
           uc.r_constraint_name,
           ucc1.table_name ref_table_name,
           ucc.position,
           ucc.column_name,
           ucc1.column_name ref_column_name
      FROM user_constraints uc
           JOIN user_cons_columns ucc
             ON uc.table_name = ucc.table_name
            AND uc.constraint_name = ucc.constraint_name
           JOIN user_cons_columns ucc1
             ON uc.r_constraint_name = ucc1.constraint_name
            AND ucc.position = ucc1.position
     WHERE uc.constraint_type = 'R'
    ORDER BY uc.constraint_name, ucc.table_name, ucc.position;
    

    G.

  • Technical details of the package in the data dictionary

    Hi can u tell someone in what data dictionary table func or procedure declared in the package specification is stored?

    For ex.

    CREATE OR REPLACE PACKAGE IN THE PKG_TEST

    F_1 FUNCTION RETURN NUMBER;

    F_2 FUNCTION RETURN NUMBER;

    F_3 FUNCTION RETURN NUMBER;

    -----------------------------

    -----------------------------

    -------------------------------

    FUNCTION F_10 RETURN NUMBER;

    END PKG_TEST;

    Now the data dictionary tables, I want to know what are the functions created in PKG_TEST.i.e. He me F_1 would list at F_10.

    I checked in User_Source, but finding not useful.

    user_procedures

  • Issue of data dictionary - objects "used by".

    Hello

    A TOAD, there is a function that returns all objects that are "used by" another particular object. I need a query that will search in my diagram for the referenced objects are not used (referenced) by other objects. I scrolled the data dictionary but could not find the table that contains the relationships between objects.

    An idea of the sql query / data dictionary table?

    Thanks for looking
    SELECT view_name
       FROM all_views
      WHERE view_name LIKE '%DEPEND%';
    

    I will give you some views to try.

    HTH, Urs

  • Data Dictionary view to see the object directory

    Hi all

    I boat UTL_FILE need to create the output file. To use this package, we need to have directory object.

    Can someone tell me what data dictionary table, we can use to see what directory is allowed to be use UTL_FILE boat to the Unix server.

    All_directories
    dba_directories

  • How to search the dictionary of data for the partitions of the interval?

    Oracle 11.2.0.3

    When I have a DBA_PART_TABLES request. PARTITIONING_TYPE he says "beach". I want to be able to differential an interval of other partitions of range based in the data dictionary?


    used this example. Watch "range".

    http://www.rittmanmead.com/2008/09/investigating-Oracle-11g-interval-partitioning/

    Oracle Docs list 'SYSTEM' as a partitioning_type that I thought would be intervals.

    ALL_PART_TABLES

    [code]

    1 CREATE TABLE interval_sales

    2 (prod_id NUMBER (6))

    3, cust_id NUMBER

    4, time_id DATE

    5, channel_id char (1)

    6, promo_id NUMBER (6)

    7, quantity_sold NUMBER (3)

    8, amount_sold NUMBER (10.2)

    9          )

    10 PARTITION BY RANGE (time_id)

    INTERVAL OF 11 (NUMTOYMINTERVAL (1, 'MONTH'))

    12 (PARTITION p0 VALUES LESS THAN (TO_DATE (' 01/01/2005 ',' DD-MM-YYYY "")),)

    13 PARTITION p1 VALUES LESS THAN (TO_DATE (' 01/01/2006 ',' DD-MM-YYYY ""));

    14 p2 PARTITION VALUES LESS THAN (TO_DATE (' 07/01/2006 ',' DD-MM-YYYY ""));

    15 * PARTITION p3 VALUES LESS THAN (TO_DATE (' 01/01/2007 ',' DD-MM-YYYY "")))

    SQL > /.

    Table created.

    Elapsed time: 00:00:00.01

    SQL > select partitioning_type from the user_part_tables where table_name = 'INTERVAL_SALES ';

    PARTITION

    ---------

    RANGE

    [/ code]

    CREATE TABLE junk1
       ( id         NUMBER )
       PARTITION BY RANGE (id)
       INTERVAL(5)
         ( PARTITION p0 VALUES LESS THAN (5),
           PARTITION p1 VALUES LESS THAN (10),
           PARTITION p2 VALUES LESS THAN (15),
           PARTITION p3 VALUES LESS THAN (20) )
    /
    
    CREATE TABLE junk2
       ( id         NUMBER )
       PARTITION BY RANGE (id)
         ( PARTITION p0 VALUES LESS THAN (5),
           PARTITION p1 VALUES LESS THAN (10),
           PARTITION p2 VALUES LESS THAN (15),
           PARTITION p3 VALUES LESS THAN (20) )
    /
    
    select owner, table_name, partitioning_type, interval
      from dba_part_tables
     where table_name in ('JUNK1', 'JUNK2')
    /
    

    TABLE_NAME OWNER PARTITIONING_TYPE INTERVAL

    ------------------------------ ------------------------------ ----------------- --------------------

    GREGS                          JUNK1                          RANGE             5

    GREGS JUNK2 RANGE

    2 selected lines.

  • Slow running queries on a table partitioned by date

    I have a table partitioned by COLDATE, when I write a query to get the data is slow, even if I try to only get 1 day data. How can I correct this query runs faster?

    Oracle Version: 10g

    Number of lines:

    See the below query

    select COL1, COL2 RANK() OVER (PARTITION BY   COL1, COLDATE ORDER BY OTHER_DATE DESC) SHOW_RANK
    from 
    SAMPLETABLE
    where COLDATE BETWEEN '01-JAN-2015' AND '01-JAN-2015'
    
    
    create table SAMPLETABLE
    (
      COL1   NUMBER(10) not null,
      COL2        NUMBER(10) not null,
      COLDATE       DATE not null,
      OTHER_DATE DATE
    )
    partition by range (COLDATE)
    (
      partition PARTITION_01_2015 values less than (TO_DATE(' 2015-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        tablespace MYTABLESPACE_2015
        pctfree 20
        initrans 1
        maxtrans 255
        storage
        (
          initial 64K
          minextents 1
          maxextents unlimited
        ),
      partition PARTITION_02_2015 values less than (TO_DATE(' 2015-03-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        tablespace MYTABLESPACE_2015
        pctfree 20
        initrans 1
        maxtrans 255
        storage
        (
          initial 64K
          minextents 1
          maxextents unlimited
        ),
      .
      .
      .
      .
      .
      .
      partition PARTITION_12_2016 values less than (TO_DATE(' 2017-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        tablespace MYTABLESPACE_2016
        pctfree 20
        initrans 1
        maxtrans 255
        storage
        (
          initial 64K
          minextents 1
          maxextents unlimited
        )
    

    Force the session in parallel mode and check with the parallel hint option.

    SQL > alter session force parallel dml.

    SQL > select / * + parallel (table_name, none of the servers) * / colA, colB from table_name;

  • Re-import table data dictionary

    Hello

    I recently created a relational model with more than 2000 paintings by importing the data from the data dictionary. Unfortunately, I left out a few tables when I originally created the template. How can I add the tables after the fact? I tried to go through the process of reimportation again, but it doesn't seem like it adds tables. Thank you!

    Hello

    Are there any error messages in the log file?  (This is normally datamodeler.log file in the datamodeler\datamodeler\log folder, unless you set a different location on the environment/log preferences page.)

    Note that if you want to update the properties of Java, the updated file is different for the version 4.0.0.833 Data Modeler.  AddVMOption reports should be updated in the product.conf file and not in the datamodeler64.conf file. Assuming you are on Windows 7, you should be able to find the product.conf file in the file C:\Users\\AppData\Roaming\Oracle SQL Developer Data Modeler\4.0.0.833.

    David

  • Failed to get the disk partition information when you add the new data store

    Hello

    Update my ESX to version 4 Update 1 (4.0.0, 256968). Now, I'm trying to add a new data store to a cluster in vCenter and receive the following error message when I will review the current structure of the disc "error when configuring the host: failed to get the disk partition information. When I click back, then next, there's no error message but in the formatting window, I get the error "Object reference" not set to an instance of an object.

    I see this question has been asked before, but I can't seem to find an appropriate response. Anyone? The interface using CLI instead of vCenter isn't an option (alignment VMFS, workload and so on)

    I use Dell R900 with an EMC Symmetrix VMax SAN

    The size of the LUN I want to add is 741 GB

    Concerning

    Marius Aulie

    If you have a virtual machine for Windows test, you could do the following, to ensure that the logic unit number has a clean partition table:

    -set the LUN as a GROSS physical to virtual machine device

    -Run diskpart, select the drive and run the CLEAN command

    -detach the LUN to the virtual machine

    -try to create the data on the LUN VMFS store

    The size of the block of the data store where the VM test can be a problem with the above. Due to the size of the LUN, the size of the block of the data store must be at least 4 MB. Attach the LUN to a physical test system could be an alternative.

    André

  • Using Oracle Partition Exchange with Oracle Data Integrator (ODI) 11g

    Hello

    I'm trying to follow http://www.ateam-oracle.com/configuring-oracle-data-integrator-odi-with-oracle-partition-exchange/

    But impossible to get the same options in 11g.

    Can I use the Exchange Partition Oracle 11g ODI.

    Thank you.

    Yes, exchange of partition is certainly possible in ODI 11 g

Maybe you are looking for

  • How to restore the original partition after reformatting accidentally installing windows 10

    See the problem below. I can not get a USB stick formatted with FAT to be recognized by bootcamp or to download the drivers to continue. The problem occurred after that my son wanted to re - install windows 7 after that that he has been upgraded to w

  • Suggestions for 23gig film project of remote transfer?

    Hi all - spent some time seeking the best solution (desktop folder / public remote etc.) but still uncertain about sharing.   I need d.load/share my mac mini 23gigs comrades through the web, but as he slow (2.5 mg) - upload ftp even will still need t

  • I can't remove individual cookies, they reappear just without seeing the site.

    I'm the procedure indicated on the site of Firefox. I can't select a set of cookies to delete by selecting the first cookie in a game, then by pressing SHIFT - END. I guess the END is just the last point in the list you want to select. This does not

  • printing contacts selected for Christmas cards

    I use OS X 10.9.5.  My contact list is great.  What is the most effective way to print envelopes to a selection list for Christmas cards? I have to go through all my contacts to make a group?  TIA

  • Yoga 13 Bluetooth mouse problem

    I use a Microsoft Bluetooth mouse sculpt with a 13 Yoga and every two minutes, the mouse pointer starts to wander and does not follow the movements of the mouse. This corrects itself after 30 to 50 seconds, but then it repeats every few minutes. I re