Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8977373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:21:21+00:00 2026-06-15T19:21:21+00:00

I do have a big migration process where there is a scenario in which

  • 0

I do have a big migration process where there is a scenario in which its trying to insert a row into a table which has a primary key constraint and unique index for it. Before inserting the constraint is disabled (checked it with SQL developer) and the index is marked unusable (checked it again with SQL developr). But still when inserting its giving an error

01502. 00000 -  "index '%s.%s' or partition of such index is in unusable state"

So I wanted to try out executing the query manually from SQL developer and still the same result. I even explicitly tried to set the session (and system) skip unusable index like this

BEGIN
EXECUTE IMMEDIATE 'ALTER SESSION SET SKIP_UNUSABLE_INDEXES = TRUE';
single row insert line
END;

But still the same error. My understanding is that if constraints are disabled; indexes are unusable and we skip the unsusable index we should be able to insert. Is it correct? Am i missing something very trivial here? Any suggestions/help appreciated.

PS: Oracle 11.2.0.1.0

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T19:21:22+00:00Added an answer on June 15, 2026 at 7:21 pm

    If the index is not UNIQUE, you can set SKIP_UNUSABLE_INDEXES = true and it should work.
    However, in your case, as the index is unique, I dont think you can do this.

    http://docs.oracle.com/cd/B28359_01/server.111/b28320/initparams229.htm

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have BIG table with multiple indexes in postgres. It has indexes on db_timestamp,
I have big URL list, which I have to download in parallel and check
I have big problem when I am trying to deploy my app over clickonce.
I have big records to copy values from table B to table A. Currently
I´m trying to upgrade a big D6 site to D7. I have the content
Premises: I´m trying to upgrade a big D6 site to D7. I have the
I have big process running. It spawns two threads. I want to debug those
The scenario: I have a really large DB model migration going on for a
I have big .csv file. I would like to filter that file into a
I have big problem. Every time when I'm trying to connect to any jabber

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.