Tables (part or no part) and their tablespaces in oracle 11g

I need to list all the tables and their table spaces for non part tables along with partition tables, partition name and its table space , I am using the following query to find it however query result is not something what i am looking for as i see null in table space columns.
tablespace column has null for even non partition table.
in query result there are cases that null in all the tablespace_name columns.. ..
tablespace columns have nulls for even part tables in ALL_TAB_PARTITIONS ,ALL_PART_TABLES tables for few part tables ..
Should we generat object stats to correct name filled in tablespace column.. or am i using wrong tables in my query..? how come null in all the tablespace columns or should i include any other dictionary table?
select AT.OWNER, AT.TABLE_NAME, AT.TABLESPACE_NAME,AT.PARTITIONED,APT.PARTITIONING_TYPE,ATP.PARTITION_NAME, ATP.TABLESPACE_NAME,APT.DEF_TABLESPACE_NAME
From ALL_tABLES AT,
ALL_TAB_PARTITIONS ATP ,
ALL_PART_TABLES APT
WHERE AT.OWNER IN ('CISADM')
AND ATP.TABLE_OWNER(+)=AT.OWNER
AND APT.OWNER(+)=AT.OWNER
AND ATP.TABLE_NAME(+)=AT.TABLE_NAME
AND APT.TABLE_NAME(+)=AT.TABLE_NAME
ORDER BY ATP.TABLE_NAME,ATP.PARTITION_POSITION;
could you please suggest what wrong with this query or query to find table space used for both non part and each table partition table space. Thanks in advance..

For a partitioned table you should get tablespace_name from user_tab_partitions because it's possible to have different partitions stored in different tablespaces. This can't be shown in the single row of user_tables.
SQL> CREATE TABLE part_test
  2  (part_key    NUMBER
  3  )
  4  PARTITION BY RANGE(part_key)
  5  (PARTITION  part_test1 VALUES LESS THAN (100) tablespace users
  6  ,PARTITION  part_test2 VALUES LESS THAN (200) tablespace example
  7  );
Table created.
SQL> select table_name, tablespace_name from user_tables where table_name = 'PART_TEST';
TABLE_NAME                     TABLESPACE_NAME
PART_TEST
SQL> select table_name, partition_name, tablespace_name from user_tab_partitions where table_name = 'PART_TEST';
TABLE_NAME                     PARTITION_NAME                 TABLESPACE_NAME
PART_TEST                      PART_TEST1                     USERS
PART_TEST                      PART_TEST2                     EXAMPLEEdited by: SomeoneElse on Dec 9, 2012 10:07 AM
(OK, I see you tried that)

Similar Messages

  • Siebel Upgrade and Performance Tuning On Oracle 11g Training At Oracle Open

    Hi All,
    If you are interested in attending a Siebel Upgrade and Performance Tuning for Oracle 11g please let me know. We are planning to offer this course during the same week as OOW in San Francisco. For anyone who can’t attend in person we are planning to offer a net meeting with a dial in.
    This education is offered to actual Siebel customers.
    R
    Robert Ponder
    Lead Architect and Director
    Ponder Pro Serve
    cell: 770.490.2767
    fax: 770.412.8259
    email: [email protected]
    web: www.ponderproserve.com

    Hi All,
    If you are interested in attending a Siebel Upgrade and Performance Tuning for Oracle 11g please let me know. We are planning to offer this course during the same week as OOW in San Francisco. For anyone who can’t attend in person we are planning to offer a net meeting with a dial in.
    This education is offered to actual Siebel customers.
    R
    Robert Ponder
    Lead Architect and Director
    Ponder Pro Serve
    cell: 770.490.2767
    fax: 770.412.8259
    email: [email protected]
    web: www.ponderproserve.com

  • Export and Import issue in Oracle 11g

    Hi All,
    I have exported data using exp command in oracle 11g by keeping deferred_segment_creation FALSE.
    Even then my zero records tables are not coming in export.
    What could be the reason or what other thing i have to do to make it work.
    Thanks in advance
    Mohsin J

    Tables that were created before you changed deferred_segment_creation to FALSE and do not have any rows would still be segment-less tables --- i.e. not exported.
    You need to issue an "ALTER TABLE tablename MOVE" for each of such tables (after having set deferred_segment_creation to FALSE) to force a rebuild of these tables with segments before the export.
    Thus, the sequence is
    1. set deferred_segment_creation to FALSE
    2. identify all tables with 0 rows
    3. issue an ALTER TABLE tablename MOVE for each of such tables from step 2
    4. Re-run your export
    alternatively use conventional export (exp) instead of datapump export.
    Hemant K Chitale

  • Create tablespace in Oracle 11g

    Windows 2008 R2 (64-bit OS)
    Oracle 11g R2 Standard Edition ONE(64-bit database)
    I use the following Oracle command to create tablespace in 11g.
    CREATE TABLESPACE TEST_TBS
    DATAFILE
    'C:\ORACLE\ORADATA\TEST_TBS01.DBF' SIZE 5M
    AUTOEXTEND ON NEXT 5M
    MAXSIZE 50000M;
    - The above command works fine.
    Is there any better commands i need to be using in creating a tablespace w.r.t. performance and management.

    TSharma wrote:
    it is recommended to have small sized blocks for OLTP, and big sized for DSS. The reasons:
    You can try different block sizes in tablespaces...
    On OLTP, a smaller block size reduces contention:
    1. Reduces the possibility of concurrent transaction and locks on the same block.
    2. Provides a better locking mechanism
    3. Less transacction locks possibilities at the block header.
    DSS benefit from big blocks mainly because of IO:
    1. Retrieves in less IO operations more data, which is critical for FTS and index scans.
    2. A higher row density means less IO
    3. Indexes retrieve information on a block per block basis, with big blocks indexes are retrieved with less IO
    4. Reduces the chances of chained rows.
    Check the following link for examples and details information.If johnpau needs a 50G file he has no choice: 16K blocks is the only option.
    But that advice about different blocksizes is very twentieth century. Nowadays, it doesn't matter.

  • Allow Windows AD domain user to access and manage objects in Oracle 11g

    Hi,
    I'm using Oracle 11g on Windows environments, XP, server 2003 etc.
    If I use a domain user (user1) maintained on domain server (adsvr.company.com) to manage Oracle objects in DB server (dbsvr), do I have to assign user1 as member of administrator on DB server (dbsvr)?
    I'm asking this because my software vendor requires for it but our security policy doesn't allow us to assign normal domain user (user1) to administrator group on local machine (dbsvr).
    If I have to assign user1 to administrator group on dbsvr, please point me which document says so.
    Thank you in advance.
    Jeffrey

    Looks like some left-over processes keeping a hold on configuration files.
    Manually kill the left-over processes and start the DB Console.
    Refer:
    How To Identify and Remove an Agent or DBConsole Processes From a Windows Server (Note 785772.1)
    Refer this as well:
    EMCA Troubleshooting Tips
    http://docs.oracle.com/cd/E11882_01/server.112/e25494/dbcontrol.htm#ADMIN13444
    HTH
    Mani

  • Table that list sapscripts/smartforms and their driver program

    hi gurus
    can ne one help me with the table name which holds the sapsciprt/smartform with their driver programs

    Hi,
    You can find all entries related to scripts and smartforms in the table TNAPR.
    Transaction code is NACE-choose the application for example EFOutput types button -- output type choose from the list and click procedures.
    Here also you will get same lsit as you can see by TNAPR table.
    you provide output type like BA00 for sales order ..etc
    while displaying entries.
    Regds
    Sivaparvathi
    Please reward points if helpful..

  • Moving partioned tables to different tablespaces in oracle 11g.

    Dear All,
    I need to move the partitioned table to different tablespace. I moved all the partitions individually and also the index.
    however i have a issue now, when i check the view user_tables or dba_tables, i see null tablespaces correspomding to the table in the tablespace_name column.
    how can i see the tablespace name in these views.

    Even thouh Sb has given you the correct answer, I am just showing you below cut and paste sqlplus screen of 11.2.0.1 :
    test1@ORCL> create table t (x number)
      2    partition by list (x)
      3    (partition p1 values (10),
      4    partition p2 values (20));
    Table created.
    test1@ORCL> select table_name,tablespace_name from user_tables;
    TABLE_NAME                     TABLESPACE_NAME
    T
    1 row selected.
    ---Means tablespace_name.user_tables is always null for partition table(s).
    ---Ok, then how do I see the tablespace name?
    test1@ORCL> select table_name, partition_name,tablespace_name
      2  from user_tab_partitions
      3  where table_name = 'T';
    TABLE_NAME                     PARTITION_NAME                 TABLESPACE_NAME
    T                              P1                             USERS
    T                              P2                             USERS
    2 rows selected.
    test1@ORCL> ALTER TABLE T MOVE PARTITION P1 TABLESPACE EXAMPLE;
    Table altered.
    test1@ORCL> select table_name, partition_name,tablespace_name
      2  from user_tab_partitions
      3  where table_name = 'T';
    TABLE_NAME                     PARTITION_NAME                 TABLESPACE_NAME
    T                              P1                             EXAMPLE
    T                              P2                             USERS
    2 rows selected.
    test1@ORCL> select table_name,tablespace_name from user_tables;
    TABLE_NAME                     TABLESPACE_NAME
    T
    1 row selected.Just for your information please.
    Regards
    Girish Sharma

  • Can i install forms and reports 6i on oracle 11g

    please give the ans?

    You're in the wrong forum.
    You've already asked questions in the right forum - {forum:id=82} - and there asked to provide a better problem description.
    I.e. for anyone to help you, you should spend some time to describe, clearly, what it is you need help with.

  • Human Task Requirement and form design in Oracle 11g

    Dear Forum Users,
    A). Suppose there are 2 independent user tasks in a workflow and in between there is a automated task that does something with a back end call (to check or to retrieve so information or a decision). At a certain moment the first user task is started and finished. Normally speaking, when this task is finished, then the automated task is processed and the second task will be added to the worklist of that user (if he is authorised to process both user tasks). The user then can go back to the worklist, find the task and click on it to process. What is really required is that the user SHOULD NOT go back to the worklist and click and open the second task from the worklist.
    If the second user task can be handled by the same user as the first user task then is there a way to open it for him automatically ? (or via a popup) (so it looks as if it's a following screen)
    B). The form design issue is that there are more inputs on 1 line to give it a more natural appearance, like address inputs. It's a lot of work to get those things done with split screens etc. An example (in courier to get the alignment proper) ...... Is there an easy way out or standard way of doing this?
    Street/number: ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄
    Zipcode/City: ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    Thank you for your answers and suggestions
    Best Regards
    Dwai Banerjee

    Thanks Mr.Frank for your replay
    but i don't mean the right alignment for input text .
    I'm working for Arabic interface project , and i changed the language from the control panel and it works fine in the run time for messages and directions from right to left
    but in design it not good it from left to right and want the design form to be from right to left
    Notes : i used trinidad-config and i changed the property <right-to-left>true</right-to-left>
    but i did't work

  • Query to Find all the Tables and their corresponding columns,dataType in DB

    Hi all,
    I need a query which can give me all the Tables existing in my DB and their corresponding Columns existed for those tables and Datatype for each column .
    Thanks in Advance,
    viajy

    Hi,
    For your user tables you can use USER_TAB_COLUMNS.
    Just give DESC USER_TAB_COLUMNS at your SQL> prompt.
    You will know on that object.
    Regards,
    Sailaja

  • Oracle 11g compatibility with oracle 10g and 9i?

    Hi All
    I have some queries on 11g compatibility.
    Is oracle 11g client compatible with oracle 10g client which is already installed on desktop?
    If yes any changes to be done and where?
    Is oracle 11g compatible with oracle 10g/9i on the same server where 10g/9i are installed?
    Regards

    Thanks Justin Thats right ...
    Problem elaboration is as follows
    We currently have an application which requires oracle 10g(10.2.0.3) client to connect to database from user desktops. As
    part of new application development the oracle 11g clients need to be installed on all the user deskotps.
    The complete application software along with oracle client 11g has to be roled out on these desktop as part of
    implementaion of new application besides the existing application(The application software is packaged along with oracle
    10g client).
    We would like to understand if there is any software provided by oracle using which we can switch between different oracle
    versions while accessing the respective applications simultaneously. Also are there any known bugs/issues in running
    oracle 10g client and oracle 11g client together on the same user desktops with different oracle homes?

  • An Apple genius pressed a few buttons before booting my computer then the screen changed to a database of parts of my computer and their status. How do i do this?

    An Apple genius pressed a few buttons before booting my computer then the screen changed to a database of parts of my computer and their status. How do i do this?

    Julianwerules wrote:
    then the screen changed to a database of parts of my computer and their status.
    can you elaborate more?   I'm not familiar with a database of parts..or I'm having a major brain ****.

  • Control of serial numbers in productions (parts and final product serials)

    Hi,
    We are starting using our production module in SBO 9.0 PL11 and it is all quite messy.
    We need to manufacture an item that has a serial number made of parts, some of which have serial numbers. Just imagine a car. The car will have its own serial number, but the engine, the radio and so on will have their own serial numbers. But the cables, tyres, etc do not have  a serial of their own.
    We set a BOM model, made of every part (with or without serial) and set every line to manual.
    Then we place a PO for our parts, and then do a Goods Receipt and enter the individual items' serials.
    Then, we issue a Production order for our final product made of all of our parts in the BOM. Then we release it for production.
    Next, it all gets messi. If we create a receipt from production, we can issue the serial number of each of our final products.
    If we create an Issue for Production, we can choose what serials to pick for production.
    Big problem is that we loose all traceability. There is no way (or we can't find it) to know what are the serials of the parts that created the final product.
    Not only this, issue for production looks (serial number transaction report-wise) looks like a goods issue, so just a way to decrease your parts stock. And receipt of production looks like a goods receipt. So you just now you received something for production or that you issued it to production, but there doesn't seem to be a link between them. No traceability at all.
    Can anyone throw some light into this? I am sure we are doing something really wrong, but can't see what.

    Hi,
    1. But how do we control what serial numbers for each part we used to create the final product specific serial? (I use engine #003 and radio #376) to create product with serial #076. And we always produce in quantities greater than 1.
    Please provide an sample process production with FG item and components with required serial format to check
    2. This query is not returning any rows. I am inputing a final product code, with production orders, and nothing shows up.
    As mentioned, the above query works for batch managed items. Once we conclude process, I can try modify above query to meet your purpose.
    3. It sounds really complicated to have to open both receipt and issue to track a single manufacturing operation.
    You can use relationship map option to view both issue and receipt for single production.
    4. Besides that, what is the exact workflow? I don't quite understand issue and receipt, should I run both independently?
    Standard work flow for production order:
    1. Create bill of material
    2. Create planned production order based on above BOM
    3. Make sure required components are arrived.
    4. Change planned to released status.
    5. Issue components to production by issue production
    6. Receive finished item from production through receipt from production.
    Thanks & Regards,
    Nagarajan

  • Dynamic internal table ( make one internal table parts of the record )

    hello i am doing a program that look for document billing put it in a internal table then loop the internal table and use the FM SD_DOCUMENT_FLOW_GET for get the document flow that fm return a table and i need make every record of that table part of the currect register , i already do this in a ugly static way but i am looking a dynamic way of do this , i know that the ABAP OO is the way but i am no able to get this approarch ( i am noob in abap and any experience with OO programing )
    i will show the code for better understanding of it
    pd: is a crappy code i know sorry
    [CLick Here for the see the Code ( pastebin )|http://linuxlatino.pastebin.com/m39120e69]

    thanks all for the answer , but i will try explain better my problem :
    i have a it_data interntal table with document bill record i do a loop to that table and used the vbeln field in the FM for get the docment flow of that document billing number now the output of the FM is a table and i need take each record of that table am make it part of the current record of it_Data.
    Example:
    it_Data without the it_docflow data
    *Sales ORg*   *Distri.Channel*      *Billing Type*    *Payer*         *Sold-to-party*        vbeln*
    TP01         C1                     ZT17           1000524     1000524                 85003435 ..........
    it_docflow table ( FM Output ):
    *DOCNUM     ITEMNU    DOCNUV    ITEMNU            Description*
    53107842   000000                          000000         Standard Order
    65004606   000000       53107842   000000        Outbound Delivery
    75179356   000000      65004606   000000         Invoice
    57000118   000000      75179356   000000        Returns
    85003435   000000      57000118   000000        Credit for Returns
    5200003681 000000     85003435   000000       Accounting Doc.
    now the it_docflow data add in the it_data record:
    53107842  Standard Order  65004606 Outbound Delivery 75179356  Invoice  57000118 Returns  85003435 Credit for Returns 5200003681 Accounting Doc   TP01         C1                     ZT17           1000524     1000524                 85003435 .........
    i hope this explain better my problem here , thanks again

  • FS that updates several lines in the table-part

    Hi!
    I use 2005A B1..
    Can i make FS that updates several lines in the table-part of the marketing doc? For example, i press Shift+F2 in the "Tax Code" cell of the 1st row of the doc, the rest of the lines in the table will have "Tax Code" also updated?
    Regards,
    David

    Hi,
    You can do this using formatted searches.  Please try the following:
    1.  Create a UDF on the 'Marketing Document - Title' called 'VATCODE'
    2.  Add a FS to the UDF with the following query
    SELECT T0.\[Code\] FROM OVTG T0
    3.  Add the formatted search to the Tax Code field in the lines with the following query
    SELECT $\[ORDR.U_VATCODE\]
    The key thing is when setting up the FS at line level you need to set it so that it Auto Refreshes 'When Field Changes' and not 'When Exiting Altered Column'.  The column will be the VATCODE UDF you set up earlier.
    Now if you add a few lines to your order and then select the VAT Code in your UDF by pressing Shift F2 then it will copy down to all the lines.  The only issue is that it will not automatically copy down to any lines added after you have selected the VATCODE UDF.
    I hope this helps.
    Regards,
    Adrian

Maybe you are looking for

  • Why my tracks are not shown in Album view and Artist view, only Album Artworks are shown???

    Dear, I have not have this problem in the previous version of iTune. As soon as i upgraded it to iTunes 11, it happens. The problem in here is all my songs, tracks are still here, i can see all of them in "songs view". However, when i change the view

  • Error while invoking onHeartBeat() method, exception is "Username supplied

    hi ... I am trying to invoke bpel process when we get email.. but i am getting the following error.. Error while invoking onHeartBeat() method, exception is "Username supplied in error". <mailAccount xmlns="http://services.oracle.com/bpel/mail/accoun

  • Full index scans

    I am running an SQL query and it seems to be taking a long time to complete. I noticed that all of my table access is by index (full scan). Is there a hint that can be used to access the data by an index range scan instead to help speed up the query.

  • Setting a global workbook

    Hello ,   I have created one workbook template, and did the setting for global template so that it can be used for all the workbooks. But the problem is-- its opening in 2003 but giving problem with 2007. I am not able to open it in 2007.

  • Bridge CS5 SLOW!!

    I can't believe how SLOW this new version of Bridge is. If I batch rename, say 70 .dng files from the 1DSMKIII (around 21-26mb each), I can go eat lunch & come back 45 minutes later, & it's still working. No exaggeration. If I label, say 10 of these