今天维护oda一体机时,发现无法在grid用户下面关闭数据库实例,如下
+ASM1:/home/grid@oda0>srvctl stop database -d orcl -o immeidate
PRCD-1229 : An attempt to access configuration of database orcl was rejected because its version 11.2.0.4.0 differs from the program version 12.1.0.2.0. Instead run the program from /u01/app/oracle/product/11.2.0.4/dbhome_1.
+ASM1:/home/grid@oda0>
问题原因分析:
该oda一体机部署的GI版本是12.1.0.2.0,因客户业务不支持12c,数据库实例的版本是11.2.0.4.0
+ASM1:/home/grid@oda0> sqlplus -v
SQL*Plus: Release 12.1.0.2.0 Production
+ASM1:/home/grid@oda0>
orcl1:/home/oracle@oda0> sqlplus -v
SQL*Plus: Release 11.2.0.4.0 Production
orcl1:/home/oracle@oda0>
处理操作
切换到oracle用户下,使用srvctl关闭实例