ADSM-L

Re: AIX - backup SAP DB2

2004-04-26 08:27:57
Subject: Re: AIX - backup SAP DB2
From: "Tomas Hrouda Ing." <throuda AT HTD DOT CZ>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Mon, 26 Apr 2004 14:22:21 +0200
Could you, please, show me sample of syntax of mentioned script with correct
redirectioon of all descriptors to some output files?

Thanks
Tomas

> -----Original Message-----
> From: Richard Sims [mailto:rbs AT BU DOT EDU]
> Sent: Friday, April 23, 2004 1:16 PM
> To: ADSM-L AT VM.MARIST DOT EDU
> Subject: Re: AIX - backup SAP DB2
>
>
>
>
> >I have problem with running backup of DB2 backup database of SAp
> system on
> >AIX. I am not AIX guru so, please, dont shoot me :-)). I have shell
> script,
> >backupon.sh for online backup of database with this contens:
> >
> >#!/bin/sh
> >su - devadm "-c db2 backup db DEV online use tsm"
> >
> >Backup works fine, when I run script on foreground. At least backup works
> >fine when I run "dsmc sched" on foreground (under root user) and make
> >schedule on TSM server to run this script. But backup don't work, when I
> run
> >scheduler on background with "nohup dsmc schedule 2> /dev/null &" as
> >described in TSM client user's guide. Script ends with return code 127.
> >Running script with cron aends with error return code too.
> >
> >Any advice for one poor, miserable, devasted and bleeding AIX
> non-specialist
> >and cookie-eater?
>
> When executing things as Unix background processes, get into the habit of
> diligently redirecting all three standard file descriptors: Stdin, Stdout,
> and Stderr.  This eliminates mystery start problems in almost all cases.
>
>    Richard Sims

<Prev in Thread] Current Thread [Next in Thread>