| |
|
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.
|
 |

04-01-04, 06:01
|
|
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.
|
|

04-01-04, 07:41
|
|
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
|
|

04-01-04, 10:01
|
|
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.
|
|

04-01-04, 10:29
|
|
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
|
|

04-01-04, 10:43
|
|
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
|
|

04-01-04, 22:18
|
|
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
|
|

04-01-04, 22:40
|
|
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???
|
|

04-01-04, 22:43
|
|
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
|
|

04-02-04, 23:06
|
|
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?
|
|

04-03-04, 02:28
|
|
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.
|
|

04-04-04, 10:28
|
|
Registered User
|
|
Join Date: May 2003
Location: Toronto
Posts: 29
|
|
thanks for sharing your solution.
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|