Data Protector Support and News Forum
Showing results for 
Search instead for 
Do you mean 

Pre and post exec on Redhat 4.9

Advisor

Pre and post exec on Redhat 4.9

Hello,

 

I have Data Protector 6.20 on server windows 2k3. I have a RedHat Client too. The client has oracle installed and I like to make a offline backup.

 

I make two scripts with stop and start oracle. I move it on /opt/omni/lbin.

 

When I execute the backup specification I obtain the mistake:

 

sh: /opt/omni/lbin/dbshut.sh: /bin/sh
: bad interpreter: No such file or directory

 

Which is the problem ?? please help me !!!

 

Thanks,

 

4 REPLIES
Advisor

Re: Pre and post exec on Redhat 4.9

The scripts with the user "oracle" is works. DP launch it with the user "root". How I can force the execution of the script with "oracle" user?

 

Thanks

Trusted Contributor

Re: Pre and post exec on Redhat 4.9

Try using the command runuser.

 

HTH

 

Jeremy

Advisor

Re: Pre and post exec on Redhat 4.9

Thanks but ... How I can to use "runuser" ?? Is in DP ??

Jessuss

Highlighted
Honored Contributor

Re: Pre and post exec on Redhat 4.9

runuser(1) is shipped with coreutils. He is asking you to use runuser when calling the script. You could try someting like /sbin/runuser -c /path/to/script oracle. Just put it into the pre-exec or post-exec section of the backup job.

 

Regards,

Sebastian

---
Assign a kudo to this post, if you find it useful.