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 > Problem with offline backup

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-01-04, 06:01
chansteve1234 chansteve1234 is offline
Registered User
 
Join Date: Sep 2003
Posts: 27
Problem with offline backup

Hi all
I am using db2 V8 on red hat 7.3. I can do the online backup. But when i perform the offline backup. It will prompt following error,
SQL1224N A database agent could not be started to service a request, or was terminated as a result of a database system shutdown or a force command. SQLSTATE=55032


My offline backup process is as follow,
1.db2 force applications all
2.db2 terminate
3.db2 backup database <dbname> to /db2bkup

Pls help me
Thx very much.
Reply With Quote
  #2 (permalink)  
Old 04-01-04, 07:41
trinmoy trinmoy is offline
Registered User
 
Join Date: Nov 2003
Location: kualaumpur
Posts: 33
Re: Problem with offline backup

Quote:
Originally posted by chansteve1234
Hi all
I am using db2 V8 on red hat 7.3. I can do the online backup. But when i perform the offline backup. It will prompt following error,
SQL1224N A database agent could not be started to service a request, or was terminated as a result of a database system shutdown or a force command. SQLSTATE=55032


My offline backup process is as follow,
1.db2 force applications all
2.db2 terminate
3.db2 backup database <dbname> to /db2bkup

Pls help me
Thx very much.
its looks like db2 instance is stopped.

try db2start then

db2 backup database <dbname> to path
Reply With Quote
  #3 (permalink)  
Old 04-01-04, 10:01
chansteve1234 chansteve1234 is offline
Registered User
 
Join Date: Sep 2003
Posts: 27
The instance have been started, as the process have been follow,
My offline backup process is as follow,
0.db2start
1.db2 force applications all
2.db2 terminate
3.db2 backup database <dbname> to /db2bkup

The error have been the same.
Reply With Quote
  #4 (permalink)  
Old 04-01-04, 10:29
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
I sometimes get that error when I do a db2 force applications all and then immediately try to connect to the database. But when I connect again, it works. So you might try adding a db2 connect to database in the script (and ignore any error that might occur). This will not be a problem since the application agent that does the offline database backup can be connected to the database.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #5 (permalink)  
Old 04-01-04, 10:43
Tank Tank is offline
Registered User
 
Join Date: Feb 2004
Location: Copenhagen
Posts: 220
Quiesce

please try runnning the following commands in sequence:

1. db2start
2. connect to 'yourdb'
3. quiesce database immediate force connections
4. connect reset
5. backup database 'yourdb' (to /x/x or use tsm)

- wait till it displays backup successful then:

6. connect to 'yourdb'
7. unquiesce db
8. connect reset

Good Luck
__________________
Kristian K. Hansen
Project Supervisor
National Board of Health
Reply With Quote
  #6 (permalink)  
Old 04-01-04, 22:18
chansteve1234 chansteve1234 is offline
Registered User
 
Join Date: Sep 2003
Posts: 27
thx very much, I have tried runnning the following commands in sequence:

1. db2start
2. connect to 'yourdb'
3. quiesce database immediate force connections
4. connect reset
5. backup database 'yourdb' (to /x/x or use tsm)
Following error displayed,
SQL1035N The database is currently in use. SQLSTATE=57019
Reply With Quote
  #7 (permalink)  
Old 04-01-04, 22:40
chansteve1234 chansteve1234 is offline
Registered User
 
Join Date: Sep 2003
Posts: 27
Marcus_A


Do u means after force appications all command,

i wait for a while, and then type backup database <mydb> command???
Reply With Quote
  #8 (permalink)  
Old 04-01-04, 22:43
chansteve1234 chansteve1234 is offline
Registered User
 
Join Date: Sep 2003
Posts: 27
thx very much, I have tried runnning the following commands in sequence:

1. db2start
2. connect to 'yourdb'
3. quiesce database immediate force connections
4. connect reset
5. backup database 'yourdb' (to /x/x or use tsm)
Following error displayed,
SQL1035N The database is currently in use. SQLSTATE=57019
Reply With Quote
  #9 (permalink)  
Old 04-02-04, 23:06
chansteve1234 chansteve1234 is offline
Registered User
 
Join Date: Sep 2003
Posts: 27
When i remove all the event monitor, the offline backup can be done.

Then i try to stop the event monitor, and then perform backup, following error will be prompted,
SQL1035N The database is currently in use. SQLSTATE=57019

Can I not remove the event monitor, and perform offline backup?
Reply With Quote
  #10 (permalink)  
Old 04-03-04, 02:28
chansteve1234 chansteve1234 is offline
Registered User
 
Join Date: Sep 2003
Posts: 27
Thx all u very much.

The problem seems have been solved.
I config the event monitor as not start automatically, then the offline backup can be performed.
Reply With Quote
  #11 (permalink)  
Old 04-04-04, 10:28
ddlldd2000 ddlldd2000 is offline
Registered User
 
Join Date: May 2003
Location: Toronto
Posts: 29
thanks for sharing your solution.
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