There is no data in the partitioned  tablespace?

I am creating a new partition table like this:
create table PART_TABLE
eid number(10),
ename varchar2(30),
hiredate date,
jdate date,
pdate date
nologging
parallel
partition by range(hiredate)
partition par_new1 values less than
(to_date('01-JAN-2009','DD-MON-YYYY'))
tablespace PART_MOHAN,
partition par_new2 values less than
(to_date('01-JAN-2010','DD-MON-YYYY'))
tablespace PART_MOHAN2
Now,there is no data in the Partitioned table.
Now, i am inserting rows into the table.
But, rows are inserting into the table not in the partition tablespaces.
I checked the used space and free space of tablespaces, there is no change in size after inserting the row also.
But, when i check the table, rows have inserted into the table.
But, i dont know , in which tablespace these data are stored. How to find out that?
SQL> INSERT INTO part_table values(1,'MohanaKr','01-JAN-2008','01-JAN-2009','01-JAN-2009');
1 row created.
SQL> /
1 row created.
SQL> /
1 row created.
SQL> /
1 row created.
SQL> commit;
Commit complete.
SQL> select count(*) from part_mohan;
COUNT(*)
4
SQL> select * from part_table;
EID ENAME HIREDATE JDATE PDATE
1 MohanaKr 01-JAN-08 01-JAN-09 01-JAN-09
1 MohanaKr 01-JAN-08 01-JAN-09 01-JAN-09
1 MohanaKr 01-JAN-08 01-JAN-09 01-JAN-09
1 MohanaKr 01-JAN-08 01-JAN-09 01-JAN-09
But,
SQL> select PARTITION_NAME,TABLESPACE_NAME,num_rows from dba_tab_partitions where table_name='PART_MOHAN';
PARTITION_NAME TABLESPACE_NAME NUM_ROWS
PAR_NEW1 PART_MOHAN
PAR_NEW2 PART_MOHAN2

Firstly, the NUM_ROWS column is populated by statistics gathering. It is not a true realtime accurate of the number of rows in the table but at a point in time. Secondly, try something like the following if you want to see the row count per partition:
1* select partition_name from dba_tab_partitions where table_name = 'SALES' an
d table_owner = 'SH'
PARTITION_NAME
SALES_1995
SALES_1996
SALES_H1_1997
SALES_H2_1997
SALES_Q1_1998
SALES_Q1_1999
SALES_Q1_2000
SALES_Q2_1998
SALES_Q2_1999
SALES_Q2_2000
SALES_Q3_1998
SALES_Q3_1999
SALES_Q3_2000
SALES_Q4_1998
SALES_Q4_1999
SALES_Q4_2000
16 rows selected.
SQL> select count(*) from sh.sales;
COUNT(*)
1016271
SQL> select count(*) from sh.sales partition(sales_q4_2000);
COUNT(*)
74736

Similar Messages

  • How to avoid printing a blank page when there is 'no data' in the report.

    how to avoid printing a blank page when there is 'no data' in the report.

    try like this
    if@section:IND=1
    this template
    end ifsectionbreak
    if@section:IND=2
    this template
    end if

  • HT201363 My iPhone, iPad and iPod are all associated with the same Apple ID.  How can I remove the iPod and associate it with a new Apple ID without affecting the data on the other devices (note: there is no data on the iPod I want to keep)?

    My iPhone, iPad and iPod are all associated with the same Apple ID.  How can I remove the iPod and associate it with a new Apple ID without affecting the data on the other devices (note: there is no data on the iPod I want to keep)?

    Very simple.  Turn off Find my iDevice, then  Tap Settings, General, Erase, Erase all content and settings.

  • Is there a retirement date for the CS6 certification exams?

    Is there a retirement date for the Adobe Photoshop CS6, Indesign CS6 & Illustrator CS6 exams? If so, when will Adobe retire these exams?(Not the recertification exams. I don't have any previous certification with Adobe.)

    Looking to write the exam sometime during the next two years. Yes, I know the subjects are about a month long but will be working and can't study everyday. Most likely will only do two to three chapters a month.(my work is that hectic).
    Hope they won't retire it any time soon! I know updates comes out every year. just have to take my chances.
    If anybody else knows of anything please rely.

  • Header Fields are not displayed when there is no data in the report

    Hi,
    I am having this strange situation in my webi report.
    When I refresh my report and when there is no data, column names are not being displayed in my report. All it is showing is two empty rows. When I have data, then report is displaying data along with column headings.
    Please suggest me where I am going wrong.
    Thanks,
    VenMen

    Thanks for the update.
    Can you try this.
    Run the report first time for some data.
    When the report is rendered select the table that is displayed.
    On the left pane side properties tab.
    Expand display and check all the options
    Show rows with empty measures
    show rows with empty dimensions
    Show when empty
    Hope this will help
    Regards
    Kultar

  • How Do I - Display a group when there is no data for the group?

    I have a report where I'm grouping on a numeric county number. Currently, if there are no records for that county, that report group doesn't display. My users want each county printed even if it has no data.
    The numeric values for county range from 1 - 85. I'm using CR 11.5 and pulling data from a Teradata database.

    Hi. I had already thought of doing an outer join on the county column of the county look up table. The problem is that this transfers the selecting and counting of the targeted data from the SQL statement to the report, specifically most of the formula fields itself. And given that the report is parameter driven, it would make maintenance of the report not so much fun. The solution ( I think, still have to code it) is to take my original inner join query and UNION it to a query selecting only the county column from the county look up table. I just add null valued columns to match the number of columns in the original query. This way I get at least one county record to satisfy the display of each group and only minimally increase the actual number of records the report has to process.

  • Insert data to MySQL when there is new data in the text file

    I have one log file, the log file will update its data (alarm type & datetime) when there is alarm. If I would like to write program to monitor the log file every minute, and insert the data to mysql when there is a new data in log file. Any Idea how to use java to write it ?
    Thanks !

    imagination21 wrote:
    Any Idea how to use java to write it ?Yes. But do you have a specific question? What's the problem?

  • Is there a release date for the 27" imac?

    Does anyone have an idea when it is being released or even a pre-order date.
    My local apple store had no idea but the chap there didn't seem to interested. Just shrugged his shoulders and walked off.

    Apple has stated that it will be available in December. That is all that anyone here knows.

  • This is for Verizon Customer Service: Is there an estimated date for the 8.1 Denim update for Windows Phones?

    Will Cyan be rolled out for the Icon, or should we expect to wait until Denim is supposed to be rolled out around October
    << Moderation discussion removed to comply with Verizon Wireless Terms of Service >>  This is a very specific question and Verizon Customer Service can't answer it if they don't have a chance to read the question.
    I spoke with Microsoft Customer service, and the agent specifically said MS already pushed Cyan to Verizon, and he, as a WP owner on Verizon, was also frustrated that the updates haven't been rolled out by VZW.
    So bottom line question: Skipping Cyan? If so, what is the Denim date?
    Message was edited by: Verizon Moderator

    Unfortunately the answer is unknown.  The majority of the Windows phone threads here are about this exact subject, and that says a lot about Verizon and their ability to communicate on a basic level.  You might get your update, you may not.  Verizon is in control and doesn't really care.

  • Imac 13,2 with 3 RAM chips instead of 4 RAM Chips. Is there any hard data supporting the fact that the iMac will not run optimally with only 3 chips versus 4?

    I have a imac 13,2 with 3 of the 4 memory(RAM) slots filled. Two with 4gb chips and one with an 8gb chip. Is there any reports or statistics to support using matching pairs(4 chips) of ram versus running 3 chips? Is the machine running optimally w/3 chips? Or does it not matter with these newer imacs as each RAM slot is fully iundependent of each other therefore getting the most out of each chip no matter if 3 slots are filled or 4 slots are filled?
    Thanks for any reponses.

    There were some models which would not boot at all if a certain slot was not occuplied:
    http://support.apple.com/kb/HT1423?viewlocale=en_US#4

  • Is there a release date for the GPIB analyzer driver for win2k yet?

    We have upgraded all our PCs to win2k and NEED this!!

    Our tentative estimate is that the beta program will start in a month. If you are interested in participating in the beta program, please send your contact information (name, company, e-mail address, phone number, mailing address) and a brief description of your hardware and application through the e-mail option at the http://www.ni.com/ask page.
    Regards,
    Geneva L.
    GPIB/Serial Product Support Engineer
    National Instruments
    http://www.ni.com/ask

  • Is there a restock date on the Zen Vision M Black MP3 player from Creat

    I just ordered a Zen Vision M Black through the Creative site directly (4/23/06), and I was wondering if anyone knows about how long it's going to take to get back into stock (it's listed as backordered). I emailed Creative long before I bought the item, and I haven't received a response yet. If anyone has heard anything, I'd love to hear it.
    Also, let me know if I made the right decision. I'm upgrading from a 20GB Zen touch that I love, because the Vision M has more storage, and video.
    -BinkkyMessage Edited by binkky on 04-24-2006 09:09 AM

    it's not connected on a hub.
    update audible still can't activate the zen, and it still keeps crashing the wireless adaptor, which inturns causes a stop error and crashes the system. i can't win =/

  • How to find the partition/overflow tablespace for hash partition?

    CREATE TABLE sales(acct_no NUMBER(5),
    acct_name CHAR(30),
    amount_of_sale NUMBER(6),
    week_no INTEGER,
    sale_details VARCHAR2(1000),
    PRIMARY KEY (acct_no, acct_name, week_no))
    ORGANIZATION INDEX
    INCLUDING week_no
    OVERFLOW
    PARTITION BY HASH (week_no)
    PARTITIONS 16
    STORE IN (tsp101, tbs_scott01)
    OVERFLOW STORE IN (tsp101, tbs_scott01);
    Query the partition tablespace like below, get null instead of 'tsp101' and 'tbs_scott01':
    SELECT tp.PARTITION_NAME, tp.TABLESPACE_NAME
    FROM ALL_TAB_PARTITIONS tp, ALL_PART_TABLES pt
    WHERE tp.TABLE_NAME='SALES'
    AND tp.TABLE_OWNER = pt.OWNER(+) AND tp.TABLE_NAME = pt.TABLE_NAME(+)
    ORDER BY PARTITION_POSITION

    CREATE TABLE sales(acct_no NUMBER(5),
    acct_name CHAR(30),
    amount_of_sale NUMBER(6),
    week_no INTEGER,
    sale_details VARCHAR2(1000),
    PRIMARY KEY (acct_no, acct_name, week_no))
    ORGANIZATION INDEX
    INCLUDING week_no
    OVERFLOW
    PARTITION BY HASH (week_no)
    PARTITIONS 16
    STORE IN (tsp101, tbs_scott01)
    OVERFLOW STORE IN (tsp101, tbs_scott01);
    Query the partition tablespace like below, get null instead of 'tsp101' and 'tbs_scott01':
    SELECT tp.PARTITION_NAME, tp.TABLESPACE_NAME
    FROM ALL_TAB_PARTITIONS tp, ALL_PART_TABLES pt
    WHERE tp.TABLE_NAME='SALES'
    AND tp.TABLE_OWNER = pt.OWNER(+) AND tp.TABLE_NAME = pt.TABLE_NAME(+)
    ORDER BY PARTITION_POSITION

  • Create index partition in the table partition tablespace

    Hello,
    I am running a custom job that
    * Creates a tablespace daily
    * Creates the daily table partition in the tablespace created
    * Drops the tablepartition X days old
    * Drops the tablespace for that partition on X+1 day.
    The above job runs perfectly, but 'm having issues with managing the indexes for these partitioned tables. In the old database (10g - Single Node), all the partitions/indexes existed in one BIG tablespace and when I imported the table creation script into the new database, I modified all the table partitions & indexes to go into their respective tablespace.
    Eg:
    Table_name........Partition_name.....................Index_Part_name..........................Tablespace_name
    ============...================............====================...........=================
    TABL1...................TABL1_2012_07_16............TABL1_IDX_2012_07_16............TBS_2012_07_16
    TABL1...................TABL1_2012_07_15............TABL1_IDX_2012_07_15............TBS_2012_07_15
    But now when the job runs, it creates the index into the default tablespace TBS_DATA.
    Table_name........Partition_name.....................Index_Part_name..........................Tablespace_name
    ============...================.............====================...........=================
    TABL1...................TABL1_2012_08_16............TABL1_IDX_2012_08_16............TBS_DATA
    TABL1...................TABL1_2012_08_15............TABL1_IDX_2012_08_15............TBS_DATA
    I can issue alter index rebuild to move the indexes to its default tablespace, but how can I ensure that the index gets created in its designated tablespace?
    NOTE - the partition/tablespace management job that I run only creates the table partition and not the index.
    The new env is a 2-Node 11gR2 RAC cluster on Linux x86_64.
    Thanks in advance,
    aBBy.

    Excerpt from the job -
    This creates the partition into the new tablespace.
    v_sql_new_part := 'alter table '||tab_owner||'.'||tab_name||' add partition '||v_new_part_nm||'
    values less than (to_date('''||v_new_part_dt_formatted||''',''DD-MON-YYYY'')) tablespace '||part_tbs;
    execute immediate v_sql_new_part;New tablespace for new partition - because this is a 10T database and having multiple tablespaces helps with backup/recovery.
    Thanks,
    aBBy.

  • Skip the first page if there is no data

    Hi i am having a requirement in which i m calling a new page for differnt line items and the problem is that if i having data in both pages my form is working perfectly but if there is no data in the first page then the first page should not be printed and only the second page(new page) with  the data  should be printed .
    if any one has any idea regarding that please help me out.
    Thanks
    Ank

    Hi,
    I did not understand the requirement completely but would suggest you to use STARTPAGE field of the CONTROL_PARAMETERS structure.
    We use CONTROL_PARAMETERS while calling the SMART Form from Application program as an import parameter. By default SmartForms is printed from First page. If you want it to start printing from some other page set the field 'CONTROL_PARAMETERS-STARTPAGE'.
    Hope it helps.

Maybe you are looking for

  • Can't scan from Pixma to Mac

    Hi, I have an ongoing problem with scanning from my Canon Pixma to my Mac Airbook. The printer scans, but the image is not made available on the computer - Image Capture says that 'no device is connected'. Having done some internet research, I see th

  • Default transaction isolation level in CR

    i am a newbie to CR.what is default transaction isolation for Crystal Reports XI. Where can i see it?

  • Iphone for US and Europe

    Hi, I live half the year in the US and half the year in France, and I want to have an iphone. What would be the best way to go about buying it and the best US phone service to have so I could have my iphone unlocked after a while and then use it in F

  • Hostname in xi

    Hi, In SLD, For creating technical system ,we have to give host name and system name. so what does this hostname significe?? and from where we will be getting this value??? Thanks & Regards, Kiruthi

  • IPhoto messed up some pics

    I am running iPhoto 09 and Mac OS X. I recently had to go to the Genius Bar  abd they helped me partition my drive so that I could still run an older OS on part of since some of my company access software isn't compatible with OS X. All went well unt