Results 1 to 9 of 9
-
11-20-2012, 04:52 AM #1Newcomer
- Join Date
- Mar 2011
- Posts
- 12
- Thanks
- 0
- Thanked 0 Times in 0 Posts
TSM for SQL 5.5.2.0 Exclude offline Database
Hi guys,
I'm having a problem with backing up my SQL databases. I turned 1 database offline and now it keeps giving errors ( return code 402 ). It's a Windows 2000 machine ( I know it's old ) with the 5.5.2.0 Client installed on it.
Does anyone know how to exclude a offline database through the OPT-file ?
Thanks in advance.
-
11-20-2012, 05:26 AM #2
Hi,
I think, you use the command like this: tdpsqlc backup * full ....
In the syntax of the tdpsqlc command there is e new parameter: /excludedb. Using this paramater you can exclude the offile database from the backup.
Zoli
-
11-20-2012, 05:33 AM #3Newcomer
- Join Date
- Mar 2011
- Posts
- 12
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Hi Zoli,
I found that command, but in that case I need to set every database in the tdpsqlc command. I prefer to set it in the OPT file like : tdpsqlc backup * full /tsmoptfile=%sql_dir%\dsm.opt
-
11-20-2012, 05:56 AM #4
In the .opt file you can use the exclude/include statements. For exapmle, exlude \...\database_name\...\*
Zoli
-
11-20-2012, 06:00 AM #5Newcomer
- Join Date
- Mar 2011
- Posts
- 12
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Forgot to mention....
I tried this :
EXCLUDE \...\CREFO\...\*
and this :
EXCLUDE \...\meta\...\CREFO\...\*
Both no success.
-
11-20-2012, 09:56 AM #6Senior Member
- Join Date
- Apr 2007
- Location
- Oslo, Norway
- Posts
- 240
- Thanks
- 2
- Thanked 17 Times in 17 Posts
You need to use tdpsqlc backup * full /excludedb=DBName
-= Trident =-
-
11-20-2012, 10:12 AM #7Newcomer
- Join Date
- Mar 2011
- Posts
- 12
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Thnx for the reply Trident.
Now I get another failure : "ANR2579E - Return Code 1204" so that is not working....
-
11-20-2012, 12:51 PM #8Senior Member
- Join Date
- Apr 2007
- Location
- Oslo, Norway
- Posts
- 240
- Thanks
- 2
- Thanked 17 Times in 17 Posts
I think your are stuck between a rock and a mountain. excludedb came on a later release.
If your number of db's are low, then
tdpsqlc backup db1,db2...dbX full
is probably the only choice, unless you can upgrade your client.-= Trident =-
-
11-21-2012, 04:31 AM #9Newcomer
- Join Date
- Mar 2011
- Posts
- 12
- Thanks
- 0
- Thanked 0 Times in 0 Posts
It's our old SQL server and there are just a few databases on it, so I used your suggestion and that worked. Thanks !
Similar Threads
-
Exclude offline MSSQL databases automatically?
By EvertM in forum TDP/Application Layer BackupReplies: 1Last Post: 11-25-2008, 10:50 AM -
How to exclude suspect and offline SQL databases
By spiffy in forum TDP/Application Layer BackupReplies: 5Last Post: 08-26-2008, 12:42 PM -
TDP for SQL offline Database Exclusion - How to?!
By Swanny in forum TDP/Application Layer BackupReplies: 3Last Post: 03-28-2007, 01:19 AM -
My TSM database mirrored copy went offline!! Please advice
By khurram in forum TSM ServerReplies: 5Last Post: 05-21-2006, 04:13 PM -
Exclude an offline SQL database
By JCzub in forum Backup / Archive DiscussionReplies: 0Last Post: 02-12-2004, 09:41 AM


