在使用opatch打PSU时,如果不注意,经常会出现如下错误
2012-02-13 10:42:25: Command output:
> 数据库唯一名称: xxx
> 数据库名: xxx
> Oracle 主目录: /u01/app/oracle/product/11.2.0/dbhome_1
> Oracle 用户: oracle
> Spfile: +DATA/xxx/spfilegpp.ora
> 域:
> 启动选项: open
> 停止选项: immediate
> 数据库角色: PRIMARY
> 管理策略: AUTOMATIC
> 服务器池: xxx
> 数据库实例: xxx1,xxx2
> 磁盘组: DATA
> 装载点路径:
> 服务:
> 类型: RAC
> 数据库是管理员管理的
>End Command output
2012-02-13 10:42:25: output is
2012-02-13 10:42:25: Oracle home for database gpp is
2012-02-13 10:42:25: Oracle Home is configured with Database(s)-> gpp
2012-02-13 10:42:25: unable to get oracle owner for
这个错误的主要原因是LANG环境变量为中文导致opatch不能准确的获取ORACLE_HOME导致,这应该算是opatch的一个BUG了,但Oracle认为这只是个PROBLEM。
OPATCH AUTO Fails with "unable to get oracle owner for" in Multi-Byte Language Environment [ID 1325256.1]
export LANG=C
重新打补丁,就不会出现这个错误了,怕以后又忘记,在这里记录一下。
[@more@]来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/19423/viewspace-1057337/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/19423/viewspace-1057337/