If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > Oracle tablespace requirement analysis

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-21-11, 05:14
varun_751980 varun_751980 is offline
Registered User
 
Join Date: Nov 2003
Location: India
Posts: 114
Oracle tablespace requirement analysis

I have a set of partitioned tables in database. The partitions of a single table are spread across tablespaces. Also 1 tablespace is holding partitions of multiple tables. The structure is somehow like this-

TABLESPACE_NAME SEGMENT_NAME PARTITION_NAME
PDB_TB_DS1 TB_PR_DAILY_ROUND_AMOUNT_AML TB_353822332_142
PDB_TB_DS1 TB_PR_DAILY_SUMMARY_AML TB_1227160661_142
PDB_TB_DS1 TB_PR_DAILY_ACTION_SUMMARY_AML TB_1572829648_142 
PDB_TB_DS2 TB_PR_DAILY_ACTION_SUMMARY_AML TB_1572829648_143 
PDB_TB_DS2 TB_PR_DAILY_SUMMARY_AML TB_1227160661_143
PDB_TB_DS2 TB_PR_DAILY_ROUND_AMOUNT_AML TB_353822332_143
PDB_TB_DS3 TB_PR_DAILY_ACTION_SUMMARY_AML TB_1572829648_136 
PDB_TB_DS3 TB_PR_DAILY_SUMMARY_AML TB_1227160661_136
PDB_TB_DS3 TB_PR_DAILY_ROUND_AMOUNT_AML TB_353822332_136

My Program design
As per the program delivered to us, the EXCHANG PARTITION concept is used.

The principle of scripts is as following-
1) Create the temporary table structure as of main table in the tablespace where partition is existing.
2) Insert into temporary table the entire data of 1 partition.
3) Then Exchange the partition with temporary table.

Problem
As per the program design all the tables scripts run in parallel. This means the copies of partitions of different tables are created at the same time. This means there should ne enough space in tablespace to hold all the partitions of tablespace. The space requirement is ‘Combined size of all partitions of particular tablespace’.

This means if sum of partitions (TB_353822332_142 , TB_1227160661_142 and TB_1572829648_142) of tablespace PDB_TB_DS1 is 30 GB I need 30 GB more space in the same tablespace added.


Help required
Is my analysis of space requirement correct? Am I right in saying that DBS need to increase the space in each tablespace as ‘sum of all partitions of that tablespace’.


This leads to space requirement of around 900 GB in our application. Can’t the DBAs add the required datafiles for duration of our program and then remove the added datafiles. Are there any chances of data loss by having this approach? Please keep in mind that our program execution is one off task.

Last edited by varun_751980; 11-21-11 at 08:02.
Reply With Quote
  #2 (permalink)  
Old 11-21-11, 21:39
varun_751980 varun_751980 is offline
Registered User
 
Join Date: Nov 2003
Location: India
Posts: 114
55 views , 0 replies

I would appreciate if somebody can have a look and put some light please
Reply With Quote
  #3 (permalink)  
Old 11-21-11, 21:45
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,415
nobody here owes you any response.

>Can’t the DBAs add the required datafiles for duration of our program and then remove the added datafiles.
Nothing is impossible for the person who does not have to actually do it.
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On