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 > partitions stopped getting created

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-18-09, 10:44
shajju shajju is offline
Registered User
 
Join Date: Aug 2008
Posts: 340
partitions stopped getting created

Hi

I have a 9i db. For one tablespace, the data of which I moved to a new tablespace in another volume, the partitions have stopped getting created.

This new tablespace had 2 datafiles with max size of 2000M each and 'Increment' set to 500M.

The size of the second datafile is showing as 1600M and the used size is showing 1502M...

Q: At what stage is a datafile extended?

Q: Could the case be that this second datafile cannot be extended and hence partitions stopped getting created.

The log shows: Inserted partition key does not map to any partition.
Reply With Quote
  #2 (permalink)  
Old 07-18-09, 11:49
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,408
I might be wrong but I don't think Oracle 9i never had "automatic" partitions. You always had to create a trigger or some other maintenance procedure to create new partitions.

My first guess is that your procedure to create new partitions is no longer working.
Reply With Quote
  #3 (permalink)  
Old 07-18-09, 12:28
shajju shajju is offline
Registered User
 
Join Date: Aug 2008
Posts: 340
Thanks Shammat.

Can I check any log for details on partition creation like what happened when the create partition proc ran?

Maybe the alert log but not sure what to grep from it?
Reply With Quote
  #4 (permalink)  
Old 07-18-09, 12:34
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,408
Well as this is most probably a procedure/trigger/shell script you created you should know.

I don't know your system
Reply With Quote
  #5 (permalink)  
Old 07-18-09, 12:51
shajju shajju is offline
Registered User
 
Join Date: Aug 2008
Posts: 340
Just wanted to add:

I've checked the alert log for 'unable to extend table......' but could not find anything.

The proc that creates partitions is running because there are 1000s of other tables which are fine.

That's why I wanted to understand whether creating partitions stop getting created if the tablespace (i.e., datafile) cannot be extended due to the increment size being too large (there is not enough free space in that datafile)?

Just looking for any place I can check what happened when the proc tried to extend the table.
Reply With Quote
  #6 (permalink)  
Old 07-18-09, 14:19
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,415
>I have a 9i db. For one tablespace, the data of which I moved to a new tablespace in another volume, the partitions have stopped getting created.
>The proc that creates partitions is running because there are 1000s of other tables which are fine.

Does the proc that creates partitions know about new tablespace?

From my perspective unless or until you can post actual error code & message,
no problem really exists.

It is difficult to fix something when no clues about it being broken exist.
__________________
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
  #7 (permalink)  
Old 07-19-09, 09:23
shajju shajju is offline
Registered User
 
Join Date: Aug 2008
Posts: 340
Yes the proc knows about the new tablespace because there is a table called 'Maintain_tablespaces' to which the new tablespace name is added.

Actually I didn't create the db. I was called in to support it. That's why some of my questions may seem naive.

There is a proc in a package called 'MAINTAIN_TABLE' which I believe creates the partitions every day.

Kindly guide me in the right direction? If you need any more info, please don't hesitate to ask.
Reply With Quote
  #8 (permalink)  
Old 07-20-09, 08:45
beilstwh beilstwh is offline
Lead Application Develope
 
Join Date: Jun 2004
Location: Liverpool, NY USA
Posts: 2,222
post the code for MAINTAIN_TABLE
__________________
Bill
You do not need a parachute to skydive. You only need a parachute to skydive twice.
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