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 > Can I use "db2stop" to stop a remote server?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-22-04, 23:54
levin001 levin001 is offline
Registered User
 
Join Date: Nov 2004
Posts: 6
Can I use "db2stop" to stop a remote server?

Hi all,

I am using V8.1 on WIN2000 (for production it is AIX) and there is an WebSphere Application connect to it (running on another machine).

What I want to do is to schedule an offline backup. Since I want to stop both DB2 and WebSphere using single script, I need to stop DB2 remotely.

I have already catalog the database but I found there is no way for me to stop the remote DB2. Do anyone has suggestion?

Thanks very much!
Reply With Quote
  #2 (permalink)  
Old 11-23-04, 01:40
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
db2stop

as the doc indicates :
This command is not valid on a client.
to have an offline backup you can connect to the db - execute the quiesce command - take an offline backup and reset the quiesce
Hope this will help
Best Regards, Guy Przytula
Reply With Quote
  #3 (permalink)  
Old 11-23-04, 01:58
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi levin001,

Like przytula suggested, you can do something like this:
Code:
db2 CONNECT TO <db> user <userid> using <password>
db2 QUIESCE DATABASE IMMEDIATE FORCE CONNECTIONS
db2 CONNECT RESET
db2 BACKUP DATABASE <db> TO D:\backup\ WITH 1 BUFFERS BUFFER 1024 PARALLELISM 1
db2 CONNECT TO <database> user <userid> using <password>
db2 UNQUIESCE DATABASE
db2 CONNECT RESET
Hope this helps,
Grofaty
Reply With Quote
  #4 (permalink)  
Old 11-23-04, 03:36
levin001 levin001 is offline
Registered User
 
Join Date: Nov 2004
Posts: 6
Thanks very much!

Hi grofaty & przytula,

Your advise is very useful. Now I could do the remote backup.
Thanks very much!

Best regards,
Levin
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