Solved

SQLLIB directory was deleted

Posted on 2011-02-10
6
1,248 Views
Last Modified: 2012-05-11
Hi Experts.

Wahat happend if the sqllib directory was deleted by error?
How can I fix this problem.
AIX Administrators don't have any backup of the instance owner.
In this case the instance is corrupted?

thanks.
0
Comment
Question by:saulpilot439
6 Comments
 
LVL 50

Expert Comment

by:Lowfatspread
ID: 34869934
what error messages are you receiving?

0
 

Author Comment

by:saulpilot439
ID: 34871623
I don't receive any error mesage, just I don't see the sqllib directory and any db2 command dont work.
0
 
LVL 2

Accepted Solution

by:
gsprince earned 250 total points
ID: 34881523
As root,

Try "db2iupdt <instance>" from the installation directiory (usually /opt/IBM/db2/Vxx/instance

If the above doesn't work (mostly it wouldn't ), try the following

# cd <DB2DIR>/instance
1, Drop the instance
./db2idrop <instance> -f

2,Create the instance
./db2icrt <instance>

3) Update the DBM CFG with required parameters (such as SVCENAME)

4) re-catalog the database using the db path
Catalog database <dbname> on <path>

As long as the database is not dropped or removed, you can get back your instance easliy. You will have to update the DBM CFGs for any non-default settings and re-catalog the database entries though
0
 

Author Comment

by:saulpilot439
ID: 34888473
gsprince Thanks very much the second option works fine.

Thanks Experts.
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 35174509
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Change the sort Order 5 263
DB2 Integer to Decimal 1 131
Importing Android SQlite database data to db2 4 79
Another SQL with parm Part 2 44 91
Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

832 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