Poblem creating index - increase number of open indexes?

Posted on 2004-12-01
Medium Priority
Last Modified: 2008-02-01
I am creating a large number of tables and need to create indexes on them. If I execute just one table create sql statement and one index create statement it works fine (so no problem with syntax!) But when I create many tables it comes up with the error:

Cannot find an available index descriptor for an index. Increase the value of 'number of open indexes'. If sp_configure fails due to lack of index descriptors, edit the configuration file and restart the server.
Server Message:  Number  8424, Severity  17

I need to change the 'number of open indexes' - but how?

Thanks, Alex
Question by:alex_the_kidd
  • 2
LVL 14

Expert Comment

by:Jan Franek
ID: 12718681
You can check current setting with: exec sp_configure "number of open indexes"
You can set new value with: exec sp_configure "number of open indexes"

Check the output after setting new value - it should tell you, wheter you need to restart your server.

Other possible way is to edit this value in the configuration file of your server (usually it's $SYBASE/your_server_name.CFG) and restart your server.

If you are not DBA of your server, you will probably need his/her assistance.
LVL 14

Accepted Solution

Jan Franek earned 400 total points
ID: 12718702
There's one more way - via SQL Central - right click on name of your server, choose Configure, find "number of open indexes" and set new value.
LVL 24

Expert Comment

by:Joe Woodhouse
ID: 12721137
You've already been given the correct answer, but there was a small typo. You set the new value with:

exec sp_configure "number of open indexes", [new number]

But what to set it to? Try:

exec sp_countmetadata "number of open indexes"

It will report on how many indexes permanenntly exist in all databases in this server. It won't count temporary indexes that the optimiser sometimes creates, so you should oversize its results by 10%>

While you're at it, you should also run sp_countmetadata against "number of open objects" (oversize by 25%) and "number of open databases" (good to have some space, oversize by 10 - not 10%, but 10). You change both of these using sp_configure as well.

Good luck!

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Moore’s Law has proven itself time and time again since it was first introduced. So what’s next? Will Moore’s law continue to remain relevant, or will new technology take over and bring us the next big advancement in computing?
With more and more companies allowing their employees to work remotely, it begs the question: What are some of the security risks involved with remote employees and what actions should we take to secure them?
Screencast - Getting to Know the Pipeline
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month15 days, 13 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question