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

DB is already in use by another instance, after system crash

DB2 ESE 8.2.3 (FP10) for Linux
Redhat AS 3.0 2.4 kernel

During testing of an HADR pair, we crash the primary server and perform
takeover by force on the standby server. This works fine.

When we bring the original primary server backup, and try to start it as
standby and activate it, we get:
---------------------------------------------------------------
SQL1391N The database is already in use by another instance.

Explanation: The request failed because the database is in use by another
instance of the database manager (a database may only be used by one
instance.) This may be caused by attempting to access a database located on
a mounted file system accessible to another instance located on another
machine. This can also occur if you have an open connection (via SNA) to a
database and the database manager was brought down abnormally.

User Response:

-Validate that you are using the correct database and ensure no other
instance uses this database.

- If the database manager was brought down abnormally, and you have a
command line processor connection to it, perform a db2 terminate to close
the offending open connection before attempting to connect again.
---------------------------------------------------------------

The original connections are java applications from a remote blade tier, so
we cannot terminate them. The solution is to delete file SQLINSLK in the
database directory, which is used to make sure that two instances are not
using the same database. The contents of file SQLINSLK are the instance name
and 5 hex bytes that translate to digits in decimal which I cannot figure
out.

Of course, we are not using a shared disk cluster that allow 2 different
instances to access the same database since HADR databases each have their
own disk mount points (although the mount point "names" known to the DB2 are
the same to ensure proper replication of DDL via HADR).

Our databases and instance directories are mounted on NAS (from NetApps).
Has anyone had this problem before, and is it somehow more likely to occur
on a NAS mounted file system than other mounted file systems?
Feb 7 '06 #1
0 3214

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: fr? | last post by:
Hi, i have a website , on wich users have to log in credentials are checked against mysql db some session vars are set during login for use somewhere else in the code. Is there a way to...
8
by: Jean-Marc Blaise | last post by:
Hi, I'm on Linux Intel, V8.1 / FP4. I have an instance crash. The test case: db2set DB2_FMP_COMM_HEAPSZ = 0 db2stop db2start db2mtrk -i -d -p -v ==> Instance is crashed.
8
by: Lana Zapornikova | last post by:
We are using DB2 Workgroup Server, v. 8.1, fixpack 5 under Windows 2003 Standart Edition. There were series of similar instance crashes. At the begining, some errors appeared in the...
2
by: Mike | last post by:
Greetings, Having a major problem here. running version 8.2 on win2003 server. The problem I am having is backing up a database seems to get to the last part of the backup and then fails. This...
0
by: Zahni | last post by:
Win 2003 Enterprise, 14 GB RAM, /3GB and /PAE DB2_AWE=1,330000,40000 Simple test: wrote two batches: :10 db2 activate database ga db2 deactivate database ga goto 10
17
by: Michael | last post by:
In VB.NET, how do you check to see if an instance of your application is already running?
9
by: RichG | last post by:
In VB 5 I could have a form named frmTest and open it with frmTest.Show Now in VB.net I have to Dim frm as New frmTest frm.show The problem is I only want one instance of frmTest open, not a...
2
by: Michel Esber | last post by:
Hello, Linux RedHat 4.0 Update 2 + UDB 8 Fixpack 10. Our instance crashed recently. I know IŽd better open a PMR (I will do it on Monday), but any suggestion as to what may be causing the...
20
by: Bradley | last post by:
Hey all, Another convert to vb.net here. My vb6 program was an application launcher that checked for previous instances of said programs and would alert the user with a message box. I can't, for...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.