shell脚本中调用sqlplus连接数据库报错,报错如下
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Process ID: 0
Session ID: 0 Serial number: 0
仔细检查脚本的定义内容,发现ORACLE_HOME变量定义的有问题
# Define the HOME for ORACLE component
## ORACLE_HOME usual value [/opt/oracle/11.2.0]
## Note that symbolic link is not supported
#@Catetory=Standard
ORACLE_HOME=/opt/64bit/oracle/11.2.0
修改后恢复正常
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26506993/viewspace-2127362/
,如需转载,请注明出处,否则将追究法律责任。