Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot determine ORACLE_HOME #39

Open
Beniben opened this issue Oct 17, 2022 · 5 comments
Open

Cannot determine ORACLE_HOME #39

Beniben opened this issue Oct 17, 2022 · 5 comments

Comments

@Beniben
Copy link

Beniben commented Oct 17, 2022

./check_oracle --connect //x.x.x.x/XE --mode connection-time --password test --report long --username nagios
Cannot determine ORACLE_HOME for sid //x.x.x.x/XE

I am currently trying to run the script in shell only, however I am getting this error message. I have also tried with the environment variable, but this leads to the same result

./check_oracle --connect //x.x.x.x/XE --mode connection-time --password test --report long --username nagios -environment ORACLE_HOME=/opt/oracle/product/21c/dbhomeXE
Cannot determine ORACLE_HOME for sid //x.x.x.x/XE

Does -environment work at all or have I forgotten something?
It works if I already set the Oracle_Home itself before running it (export oracle_home=....), but I need it with -environment

@lausser
Copy link
Owner

lausser commented Oct 17, 2022 via email

@Beniben
Copy link
Author

Beniben commented Oct 20, 2022

Hello,

i tried it both ways and its still not working. The path to the Oracle-Home is correct because if I export it manually it works again (export ORACLE_HOME=...), but unfortunately I need --environment for my current use-case.
image
image

@lausser
Copy link
Owner

lausser commented Oct 20, 2022 via email

@Beniben
Copy link
Author

Beniben commented Oct 21, 2022

image
was there some output i should have expected?

@lausser
Copy link
Owner

lausser commented Oct 21, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants