Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Dynamic views

Re: Dynamic views

From: Ron Rogers <RROGERS_at_galottery.org>
Date: Thu, 21 Nov 2002 04:23:32 -0800
Message-ID: <F001.00508B9A.20021121042332@fatcity.com>


David,
 For ease of tablespace management and backups we created tables based on the year. ex: tab_curr, hist99,hist01,etc and then created a view that selected from each table with a union. Then the developers could select from the view and not be concerned with the actual table name. As each year was added to the view the past year was made READ ONLY and archived. This made backups simpler and faster. The major drawback that I found was the index on the underlying tables was not used when you select through the view. Partitioning of the tables made it easier and was well worth the expense.
When you create the partitioned tablespaces make it easier on your self by creating a few future partitions but smaller in size. Then as time rolls forward and you need to start using the next partition you can increate the size to accomidate the projected information. The MAX partition has to be created but can be minimal if you plan on checking for entries ocassionally(future data can get entered at times). Creating future partitions is a lot easier that splitting a partition. Ron

>>> jhostetter_at_decommunications.com 11/20/02 03:38PM >>>
David,

  You're talking about Partitioned Views, which was the predecessor of partitioned tables. This was the drawback of partitioned views - you had to insert into the individual tables. You can make a sql*loader script figure out which table to insert into (if you're using sql*loader). Otherwise you might what to try writing a procedure.   If you have any problems with partitioned views, expect Oracle Support to tell that you should be using partitioned tables.

Jay Hostetter
Oracle DBA
D. & E. Communications
Ephrata, PA USA

>>> david.hill_at_lechateau.ca 11/20/02 01:48PM >>>
Hi Guys
I'm trying to see if I can get around paying oracle $50,000 for partitioning
I have a huge table and I want to partition it on date so I created 12 tables
AAAA_JAN
AAAA_FEB
And so on

But I want to create a view that will be used for inserting so it always
Points to the current month without having to recreate the view every month.
Is there anyway anybody can think of doing this?

Thanks
David Hill
DBA
Le Chateau

**DISCLAIMER
This e-mail message and any files transmitted with it are intended for the use of the individual or entity to which they are addressed and may contain information that is privileged, proprietary and confidential. If you are not the intended recipient, you may not use, copy or disclose to anyone the message or any information contained in the message. If you have received this communication in error, please notify the sender and delete this e-mail message. The contents do not represent the opinion of D&E except to the extent that it relates to their official business.

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
--
Author: Jay Hostetter
  INET: jhostetter_at_decommunications.com 

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com 
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Ron Rogers
  INET: RROGERS_at_galottery.org

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Thu Nov 21 2002 - 06:23:32 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US