473,394 Members | 1,787 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

partitioning advice?

Hi there

Am just about to deploy a new application - one of those 'generic' database
types with very little Oracle specific functionality built in.

There is no referential integrity, and one sequence generator. All referential
integrity is maintained by the (java / JDBC) application.

I'm looking at using partitioning as the expected data volume is large (3TB).
A few good partitioning candidates have come to light, and we can range
partition by date on those. I've partitioned table, indexes (where available -
primary key is GLOBAL) and LOBS in separate date-named tablespaces. I know this
could cause issues around SMON and un-reusable datafile names, but we'll have to
live with that; the added flexibility and obviousness of the naming scheme makes
it worth it.

One of the tables has a child table, which contains a date. However, this could
be different from the date within the parent (which it's partitioned on). It's
relationship is a unique ID. We wish to keep 12 months of data before removal
with partition drops.

The problem is that two separate date range's transaction IDs could appear in
the child table. Dropping the parent leaves orphaned data. Blindly dropping the
child table's partition could mean data pertaining to (still active)
transactions could be lost.

e.g.,

Row inserted into parent, date is 23:59:59 on the 30th September. It sits in
September's tablespace.
Child row is inserted 00:00:02 on the 1st October. It sits in October's
tablespace.
When the year is up, September's partition is dropped, losing the parent data
for the child row.

Any ideas? Can't really think of anything apart from :

Obtaining low and high transaction IDs for the date range we wish to drop in the
parent table.
Checking child table partition to be dropped for existence of anything above the
high transaction ID. If there is anything, don't drop the partition. If there
isn't drop it.

Anyone got any comments, advice, etc??

Many thanks in advance...

Jun 27 '08 #1
1 1780


simoncole <si**************@newsguy.comwrote:

>Am just about to deploy a new application - one of those 'generic' database
types with very little Oracle specific functionality built in.
>There is no referential integrity, and one sequence generator. All referential
integrity is maintained by the (java / JDBC) application.

Then why not store the data in Notepad - much cheaper than Oracle and
no DBA required?
BTW, this group is dead, your question belongs on .server.

Paul...
--

plinehan __at__ yahoo __dot__ __com__

XP Pro, SP 2,

Oracle, 9.2.0.1.0 (Enterprise Ed.)
Interbase 6.0.1.0=6;

When asking database related questions, please give other posters
some clues, like operating system, version of db being used and DDL.
The exact text and/or number of error messages is useful (!= "it didn't work!").
Thanks.

Furthermore, As a courtesy to those who spend
time analysing and attempting to help, please
do not top post.
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: CK | last post by:
Need a piece of advice on allocation of tablespaces for partitioning We are using a day level range-based approach as our parititiong scheme given that we have data inflows running into 15...
18
by: Jeff Boes | last post by:
I'm sure this is a concept that's been explored here. I have a table (fairly simple, just two columns, one of which is a 32-digit checksum) with several million rows (currently, about 7 million)....
7
by: Jane | last post by:
In Oracle we can partition a table as follows. What is the equivalent in DB2? CREATE TABLE sales_list (salesman_id NUMBER(5), salesman_name VARCHAR2(30), sales_state VARCHAR2(20),...
10
by: shsandeep | last post by:
DB2 V8.2 (not Viper yet and no range partitioning!!) I have created a table T1 (col1, col2) with col1 as the primary key. When I try to create a partitioning key on col2, it gives me error that it...
8
by: mitek | last post by:
Hi, All I have strange situation with table design for DB2 9.1 on Windows I have 3 tables with same structure : 1 table - is MDC 2 table - is partitioned MDC table 3 table - is compressed...
0
by: harrylarenson | last post by:
Hi, Happy New Year. I am trying to insert a query to a partitioned view but the error is : Server: Msg 4436, Level 16, State 12, Line 1 UNION ALL view 'T' is not updatable because a...
0
by: Nate Eaton | last post by:
According to the original whitepaper on UDB range partitioning (http:// www-106.ibm.com/developerworks/db2/library/techarticle/0202zuzarte/ 0202zuzarte.pdf), you can use a range as a criteria,...
15
by: Piero 'Giops' Giorgi | last post by:
Hi! I have a question: I already have a DB that uses partitions to divide data in US Counties, partitioned by state. Can I use TWO levels of partitioning? I mean... 3077 filegroups and...
2
by: mandor | last post by:
Hello, I need some advise in table design, and more specifically about table partitioning. I read some papers and there was mentioned that if a table is expected to hold millions of rows, it's a...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.