[sudo-users] WG: oracle & environment variables

philipp.achmueller at arz.co.at philipp.achmueller at arz.co.at
Mon Sep 10 02:10:57 EDT 2007


hi,

environment:
sudo v1.6.7p5-3 on aix5.3
oracle 10g

following problem:

oracle at testhost:
# /oracle/product/crs/bin/srvctl
Usage  srvctl <command> <object> [<options>]
    command: 
enable|disable|start|stop|relocate|status|add|remove|modify|getenv|setenv|unsetenv|config
    objects: database|instance|service|nodeapps|asm|listener
For detailed help on each command and object and its options use:
    srvctl <command> <object> -h
# echo $?
0
------------------
performing this command as another user:
testuser at testhost:
# /oracle/product/crs/bin/srvctl
Usage  srvctl <command> <object> [<options>]
    command: 
enable|disable|start|stop|relocate|status|add|remove|modify|getenv|setenv|unsetenv|config
    objects: database|instance|service|nodeapps|asm|listener
For detailed help on each command and object and its options use:
    srvctl <command> <object> -h
# echo $?
0

--------
now i set up a sudo-authority:
testuser   testhost = (oracle) NOPASSWD: /oracle/product/crs/bin/srvctl

--------
above command with sudo authority:
testuser at testhost:
# sudo -u oracle /oracle/product/crs/bin/srvctl
JVMXM008: Error occured while initialising System ClassException in thread 
"main" Could not create the Java virtual machine.
# echo $?
1

--------
i double-checked the passed variables with "env and set" via putting the 
script /oracle/product/crs/bin/srvctl in another script. i tried to source 
the .dbenv from the oracle user before executing the command. nothing 
helps

any ideas?

regards
Philipp
----------------
Disclaimer:
Diese Nachricht dient ausschließlich zu Informationszwecken und ist nur 
für den Gebrauch des angesprochenen Adressaten bestimmt.

This message is only for informational purposes and is intended solely for 
the use of the addressee.
----------------


More information about the sudo-users mailing list