Highlighted
Trusted Contributor.. Trusted Contributor..
Trusted Contributor..
170 views

Pre-exec scripts fail in DP10.60

Jump to solution

Hello all,

We use pre & post exec scripts a lot in our DP9 environment.  These scripts fail in DP10.  For example, we have a script that su's to oracle and calls a different script to shutdown a database. 

This works in DP9, and works at the command line as well.  In DP10 it exits with an error code of 1. 

To clarify a bit, a single pre-exec script seems to work but a script that executes a secondary script does not.

Any ideas would be appreciated.

Thanks.

0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

Re: Pre-exec scripts fail in DP10.60

Jump to solution

Hi @Steve Berry,

You can try the following omnirc option on the client where the script is executed.

OB2RUNSCRIPT=1

Regards,
Sebastian Koehler

---
Please use the Like button below, if you find this post useful.

View solution in original post

6 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Pre-exec scripts fail in DP10.60

Jump to solution

The answer of the script is what DP receives. What do you receive if you run it directly on the OS? 

Maybe you can use the detach option in the configuration: 

Victor_F_DP_0-1582213690507.png

 

Andres Fallas Salazar
Customer Support Engineer

If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a LIKE by clicking on the bottom at the left of the post and show your appreciation.
0 Likes
Highlighted
Trusted Contributor.. Trusted Contributor..
Trusted Contributor..

Re: Pre-exec scripts fail in DP10.60

Jump to solution

Hello Andres,

Running directly on the OS works.  The entry configured in our backup options looks something like this:

oracle_user /opt/omni/lbin/oracle_dbshut.sh

The oracle_user script contains one line:

su - oracle -c $1

The script it's calling is a bit more complicated but it is the one that actually shuts down the database. 

I'll try using the detach option.

Thanks.

0 Likes
Highlighted
Trusted Contributor.. Trusted Contributor..
Trusted Contributor..

Re: Pre-exec scripts fail in DP10.60

Jump to solution

Some additional information after further testing:

It appears the script itself completes but because it returns a value of 1 the backup will fail/abort.

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Pre-exec scripts fail in DP10.60

Jump to solution

I think it will be a good idea if you open a support ticket and provide debugs. 

Regards, 

Andres Fallas Salazar
Customer Support Engineer

If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a LIKE by clicking on the bottom at the left of the post and show your appreciation.
0 Likes
Micro Focus Expert
Micro Focus Expert

Re: Pre-exec scripts fail in DP10.60

Jump to solution

Hi @Steve Berry,

You can try the following omnirc option on the client where the script is executed.

OB2RUNSCRIPT=1

Regards,
Sebastian Koehler

---
Please use the Like button below, if you find this post useful.

View solution in original post

Highlighted
Trusted Contributor.. Trusted Contributor..
Trusted Contributor..

Re: Pre-exec scripts fail in DP10.60

Jump to solution

Thank you Sebastian.  That appears to have solved the issue.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.