If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > db2iupdt

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-13-11, 17:12
Gideon22 Gideon22 is offline
Registered User
 
Join Date: Jun 2011
Posts: 39
db2iupdt

I am trying to run the db2icupdtcommand, but am getting an error:

Code:
[root@power730 instance]# whoami
root
[root@power730 instance]# pwd
/opt/ibm/db2/V9.7/instance
[root@power730 instance]# ./db2iupdt db2inst1
DBI1250E  Applications are still using instance db2inst1.

Explanation:

There are applications that are still running that are using the
specified instance. All applications using this instance must be
terminated before the command can be completed successfully. You can get
a list of the applications that are currently using the instance by
issuing the command:

     db2 list applications
So I perform the following:

Code:
[root@power730 instance]# su - db2inst1
[db2inst1@power730 ~]$ db2 list applications
SQL1611W  No data was returned by Database System Monitor.
[db2inst1@power730 ~]$
What should I do at this point

Thanks
Reply With Quote
  #2 (permalink)  
Old 07-13-11, 17:15
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Is your instance stopped?

Check if your database is active

db2 list active databases

If a db is listed, then
db2 deactivate db <dbname>

Stop the instance using db2stop and issue ipclean to remove ipcs.

Now su to root and try db2iupdt


HTH

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 07-13-11, 17:16
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
"db2 list applications" shows applications connected to databases, but not those that are attached to the instance. Make sure you stop the instance and all instance processes are gone before updating, as described in the manual.
Reply With Quote
  #4 (permalink)  
Old 07-13-11, 18:04
Gideon22 Gideon22 is offline
Registered User
 
Join Date: Jun 2011
Posts: 39
I reread the manual and did as follows:

Quote:
[root@power730 instance]# su - db2user
[db2user@power730 ~]$ . das/dasprofile
[db2user@power730 ~]$ db2admin stop
SQL4407W The DB2 Administration Server was stopped successfully.
[db2user@power730 ~]$ db2admin start
SQL4406W The DB2 Administration Server was started successfully.
But I still get the same response

Quote:
[root@power730 instance]# su - db2user
[db2user@power730 ~]$ . das/dasprofile
[db2user@power730 ~]$ db2admin stop
SQL4407W The DB2 Administration Server was stopped successfully.
[db2user@power730 ~]$ db2admin start
SQL4406W The DB2 Administration Server was started successfully.
[db2user@power730 ~]$
[db2user@power730 ~]$
[db2user@power730 ~]$ exit
logout
[root@power730 instance]# whoami
root
[root@power730 instance]# .db2iupdt db2inst1
-bash: .db2iupdt: command not found
[root@power730 instance]# ./db2iupdt db2inst1
DBI1250E Applications are still using instance db2inst1.

Explanation:
Reply With Quote
  #5 (permalink)  
Old 07-13-11, 18:05
Gideon22 Gideon22 is offline
Registered User
 
Join Date: Jun 2011
Posts: 39
I do not understand from where to run the following command:

db2 list active databases


Which user name should I be running this under ? db2inst1 ?

Thanks
Reply With Quote
  #6 (permalink)  
Old 07-13-11, 18:15
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
yes, db2inst1

BTW, I don't see you stopping db2inst1 from the commands you have provided.
You are stopping only db2admin server
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #7 (permalink)  
Old 07-13-11, 18:37
Gideon22 Gideon22 is offline
Registered User
 
Join Date: Jun 2011
Posts: 39
How do I kill or stop the db2inst1

I tried the ipclean command, but I get a command not found
Reply With Quote
  #8 (permalink)  
Old 07-13-11, 19:11
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
from root
su - db2inst1

db2stop force
ipclean

exit
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #9 (permalink)  
Old 07-13-11, 19:56
Gideon22 Gideon22 is offline
Registered User
 
Join Date: Jun 2011
Posts: 39
The db2stop force worked great

Thanks. I appreciate it
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On