Host-based backup of Microsoft Hyper-V VMs.
Post Reply
jereis
Lurker
Posts: 1
Liked: never
Joined: Jan 07, 2016 9:06 am
Full Name: Jereis Haddad
Contact:

Oracle under linux VM Backup

Post by jereis »

Greetings,

I have an issue running a pre-backup script in Veeam Backup & Replication, I need to run a small script to put an oracle database in backup mode to have a consistent backup. I installed the oracle client on the same server hosting the Veeam software. The script is running perfectly from the command line but not through Veeam. The script also resides in the veeam server side.
Error message
Pre-job script terminated with exit code 1

The bat file is very simple:

Code: Select all

(
echo alter database begin backup;
echo ALTER SYSTEM ARCHIVE LOG CURRENT;
) | sqlplus user/backup@SID as sysdba 
Always giving me an error on pre-script, if that script did not run properly the restore is corrupted and I tested that.

I Appreciate your assistance in this regard

Thank you
PTide
Product Manager
Posts: 6431
Liked: 729 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Oracle under linux VM Backup

Post by PTide » 1 person likes this post

Hi,
The script is running perfectly from the command line but not through Veeam
Did you mean Linux machine command line or Windows? If the latter, I'd suggest you to try specifying a full path to your sqlplus utility, for example:

Code: Select all

(
echo alter database begin backup;
echo ALTER SYSTEM ARCHIVE LOG CURRENT;
) | C:/Program Files/whatever/sqlplus user/backup@SID as sysdba
If the former, then I'd test your script from Windows command line.

Thank you.
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests