473,714 Members | 2,625 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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 3267

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

Similar topics

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 prohibit a user to log in twice. A was thinking about setting some flag in the db, but in that case i need some timeout in case a pc can crash for instance so the user does
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.
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 db2diag.log like: ================= 2004-06-06- Instance:DB2 Node:000
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 brings the whole instance down and it has to be restarted. In addition the job seems to be stuck in the TOOLSDB as if I try to delete the backup job I get "The task is currently running". So I went to the command line and tried "db2 backup database...
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
by: Michael | last post by:
In VB.NET, how do you check to see if an instance of your application is already running?
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 new one each time. Is there a way to prevent this, or test for the form being open already?
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 error ? Here is the diag: 2006-05-05- E80748351G871 LEVEL: Severe
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 the life of me, figure out how to do this in vb.net. Let's say notepad.exe (as an example) is already running. My program tries to launch it again, but I need to check if notepad.exe is already running before I launch it. Does anyone have a...
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.