473,387 Members | 1,517 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,387 software developers and data experts.

Urgent:Problem with Partitioned Tables

Hi All,

We have a table partitioned on the basis of create_date column such that each day's data residing in a different partition. This table has no index other than the index associated with the primary key column. Every day through a script ( which runs at midnight) we are dropping the previous day's partition and creating a partition for the next day.

Do we need to drop and recreate or rebuild the primary key index every time we drop or create a new partition?

Recently we got the following error while trying to insert into the table :-

ORA-01502: index 'ORADBA_DEV.OLSS_SESSION_WORK_PK' or partition of such index is in unusable state

Is this due to the fact that we are droppping and creating new partions every day ? If so what needs to be done to resolve this ?

Thanks and Regards,
Suman
Nov 17 '06 #1
1 3079
pragatiswain
96 Expert
Please create partitions for may be around 1 year in advance.
Is the creationdate field updated? If so, row movement should be enabled across partion. This should be done at table creation time. Primary key may not be re-built but table must be analyzed.
Regarding "ORA-01502: index 'ORADBA_DEV.OLSS_SESSION_WORK_PK' or partition of such index is in unusable state", probably index is corrupted. Try to drop and recreate index/Primary key.
If the problem persists, take the data backup from the table and recreate the table with all the partitions, enable row movement across partition(if required), and Primary key.

Hope this helps
Nov 17 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: adsheehan | last post by:
Hi, I am embedding Python into a multi-threaded C++ application runnig on Solaris and need urgent clarification on the embedding architecture and its correct usage (as I am experience weird...
0
by: Anurag Saxena | last post by:
If someone can solve this problem,I am using ASP3.0 and IIS on windows 2000 server The complete Error is '''''''''''''''''''''''''''''''''' Server object error 'ASP 0177 : 800401f3' ...
3
by: Rob | last post by:
I have a form - when you click the submit button, it appends a variable to the URL (e.g. xyz.cgi?inputID=some_dynamic_variable) It also opens a new page. Now, that some_dynamic_variable is...
2
by: Dimitri | last post by:
PLEASE HELP,I HAVE A DATABSE WITH MULTIPLE RECORDS AS OUTLINED BELOW EMP NO LEVEL NEXTINCREASE WAGETYPE UNIT 1000 1 0 1000 1000 1 0 1002 ...
5
by: VB Programmer | last post by:
When I go to create a new ASP.NET web application VS 2003 freezes on this message: Contacting server to create Web project 'WebApplication1'... I checked my file system and the...
2
by: Mike Hutton | last post by:
I have a rather odd problem. I have a SP which uses temp. tables along the way, and then returns a table of results: CREATE PROCEDURE dbo.usp_myproc( @pNameList VARCHAR(6000) ) AS
0
by: Tulasi | last post by:
Hello, any one help me the problem due to Shopping cart. I am developping a project in that project,I want to connect shopping Carts in Vb.net.The shopping carts...
0
ekekakos
by: ekekakos | last post by:
Hello, I am having a serious and urgent problem with the character settings of an oracle database. The database is sitting in a solaris unix server and when we run the env command we have the...
7
by: prakashsurya | last post by:
helllo, d problem is wen d curser jumps frm a combo box 2 a text field in a form d validations r nt working fr d text field....tel me wat shud i consider 2 get out of dis problem....wat r d...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.