问题:
安装好整个rac环境后,
(1) asmca界面上,发现crs磁盘组mounted(1 of 2)
(2) asmcmd命令报错如下:
[grid@bakrac1 ~]$ asmcmd
Can't locate strict.pm in @INC (@INC contains: /home/oracle/app/11.2.0/grid/perl/lib/5.10.0/x86_64-linux-thread-multi /home/oracle/app/11.2.0/grid/perl/lib/5.10.0 /home/oracle/app/11.2.0/grid/perl/lib/site_perl/5.10.0/x86_64-linux-thread-multi /home/oracle/app/11.2.0/grid/perl/lib/site_perl/5.10.0 /home/oracle/app/11.2.0/grid/lib /home/oracle/app/11.2.0/grid/lib/asmcmd /home/oracle/app/11.2.0/grid/rdbms/lib/asmcmd /home/oracle/app/11.2.0/grid/perl/lib/5.10.0/x86_64-linux-thread-multi /home/oracle/app/11.2.0/grid/perl/lib/5.10.0 /home/oracle/app/11.2.0/grid/perl/lib/site_perl/5.10.0/x86_64-linux-thread-multi /home/oracle/app/11.2.0/grid/perl/lib/site_perl/5.10.0 /home/oracle/app/11.2.0/grid/perl/lib/5.10.0/x86_64-linux-thread-multi /home/oracle/app/11.2.0/grid/perl/lib/5.10.0/x86_64-linux-thread-multi /home/oracle/app/11.2.0/grid/perl/lib/5.10.0 /home/oracle/app/11.2.0/grid/perl/lib/site_perl/5.10.0/x86_64-linux-thread-multi /home/oracle/app/11.2.0/grid/perl/lib/site_perl/5.10.0 /home/oracle/app/11.2.0/grid/perl/lib/site_perl .) at /home/oracle/app/11.2.0/grid/bin/asmcmdcore line 143.
BEGIN failed--compilation aborted at /home/oracle/app/11.2.0/grid/bin/asmcmdcore line 143.
原因:
发现grid的home和base目录权限被谁改成了oracle:oinstall,由于GI安装在/home/oracle/app目录下,容易被误操作chown -R ,对GI进行relink后解决。