Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: Database Administration >> updation of a table

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: updation of a table
 Bishal  Posted: Apr 24, 2008 12:57:32 AM

 Total Post: 160
 Joined: Apr, 2008






 hello friends.When i am trying to update my table using following command


update emp
set ename='Bishal'
where empid=2

It shows following error:
Error at line 1:
ora-01502: Index 'SYS.PK' or partition of index is in unusable state.

WHAT EXACTLY IS THE PROBLEM?
AND WHAT CAN BE THE SOLUTION?

 arun
Posted: Apr 24, 2008 01:07:37 AM  

 Total Post: 28
 Joined: Sep, 2007






 
Pls check the status of that index , and rebuild it.
it will solve the problem


 GOPU
Posted: Apr 24, 2008 01:09:21 AM  

 Total Post: 239
 Joined: Apr, 2008






 
ORA-01502: index 'string.string' or partition of such index is in unusable state
Cause: An attempt has been made to access an index or index partition that has been marked unusable by a direct load or by a DDL operation
Action: DROP the specified index, or REBUILD the specified index, or REBUILD the unusable index partition





 Mohammed Taj
Posted: Apr 24, 2008 01:09:29 AM  

 Total Post: 694
 Joined: Jul, 2007






 
ORA-01502: index 'string.string' or partition of such index is in unusable state
Cause: An attempt has been made to access an index or index partition that has been marked unusable by a direct load or by a DDL operation
Action: DROP the specified index, or REBUILD the specified index, or REBUILD the unusable index partition

And don't use SYS schema it is magic/special user.



 http://shaharear.blogspot.com
Posted: Apr 24, 2008 01:10:55 AM  

 Total Post: 79
 Joined: Apr, 2008






 
DROP the index and make it again OR REBUILD THE INDEX.

(or you may drop the primary key constraint and make it again)

To rearn details please read :

http://sharear.blogspot.com/2007/04/ora-01502.html


Regards
HASAN
http://sharear.blogspot.com

 Bishal
Posted: Apr 24, 2008 01:13:38 AM  

 Total Post: 160
 Joined: Apr, 2008






 
thanx guys... it worked after rebuilding the index...


 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar814
  Mohammed Taj694
  Jayanta Sur479
  Vigyan Kaushik386
  positive fanatic361
  Gitesh Trivedi322
  Gopu Gopi239
  neeraj sharma228
  Ramesh Jois226
  snehalatha p169






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software