oracle 單機ASM 安裝GRID 報錯


---第一次執行/u01/11.2.0/grid/root.sh 腳本
[root@test ~]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.css

Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@test ~]#
[root@test ~]#
[root@test ~]# /u01/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g node

The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/11.2.0/grid數據庫

Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...oracle


Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'grid', privgrp 'oinstall'..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node test successfully pinned.
Adding Clusterware entries to inittab
ohasd failed to start
Failed to start the Clusterware. Last 20 lines of the alert log follow:
2019-09-12 10:06:30.499:
[client(43175)]CRS-2101:The OLR was formatted using version 3.
2019-09-12 10:06:30.743:
[client(43281)]CRS-1001:The OCR was formatted using version 3.
2019-09-12 10:08:35.643:
[ohasd(43452)]CRS-2112:The OLR service started on node test.
2019-09-12 10:08:35.646:
[ohasd(43452)]CRS-1301:Oracle High Availability Service started on node test.app

ohasd failed to start at /u01/11.2.0/grid/crs/install/roothas.pl line 377, <ALERTLOG> line 8.
/u01/11.2.0/grid/perl/bin/perl -I/u01/11.2.0/grid/perl/lib -I/u01/11.2.0/grid/crs/install /u01/11.2.0/grid/crs/install/roothas.pl execution failed
[root@test ~]# this

---報錯ohasd failed to start at /u01/11.2.0/grid/crs/install/roothas.pl line 377, <ALERTLOG> line 8.spa

系統環境:Linux Server release 7.3orm

數據庫環境:11.2.0.4.0ip


解決方案:
第一步,回退root.sh腳本操做ci

/u01/11.2.0/grid/crs/install/rootcrs.pl -verbose -deconfig -force

[root@test ~]# /u01/11.2.0/grid/crs/install/rootcrs.pl -verbose -deconfig -force
Using configuration parameter file: /u01/11.2.0/grid/crs/install/crsconfig_params
Usage: srvctl <command> <object> [<options>]
commands: enable|disable|start|stop|status|add|remove|modify|getenv|setenv|unsetenv|config|upgrade
objects: database|service|asm|diskgroup|listener|home|ons
For detailed help on each command and object and its options use:
srvctl <command> -h or
srvctl <command> <object> -h
PRKO-2012 : nodeapps object is not supported in Oracle Restart
CRS-4013: This command is not supported in a single-node configuration.
CRS-4000: Command Stop failed, or completed with errors.
################################################################
# You must kill processes or reboot the system to properly #
# cleanup the processes started by Oracle clusterware #
################################################################
Successfully deconfigured Oracle clusterware stack on this node

 

第二步:
在執行root.sh腳本時出現Adding daemon to inittab的時候,在另外一個窗口使用root當即執行如下命令:
dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1(等待root.sh成功執行完畢後能夠ctrl+c取消這裏的命令)

OK,此時Grid 安裝經過。


---第二次執行成功
[root@test ~]# /u01/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g

The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/11.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/11.2.0/grid/crs/install/crsconfig_params
LOCAL ADD MODE
Creating OCR keys for user 'grid', privgrp 'oinstall'..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node test successfully pinned.
Adding Clusterware entries to inittab

test 2019/09/12 10:12:46 /u01/11.2.0/grid/cdata/test/backup_20190912_101246.olr
Successfully configured Oracle Grid Infrastructure for a Standalone Server


--取消另外一個窗口

[root@test ~]# /bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1
^C0+0 records in
0+0 records out
0 bytes (0 B) copied, 398.8 s, 0.0 kB/s

[root@test ~]#

 

[grid@test ~]$ crs_stat -t Name Type Target State Host ------------------------------------------------------------ora.DATA.dg ora....up.type ONLINE ONLINE test ora....ER.lsnr ora....er.type ONLINE ONLINE test ora.asm ora.asm.type ONLINE ONLINE test ora.cssd ora.cssd.type ONLINE ONLINE test ora.diskmon ora....on.type OFFLINE OFFLINE ora.evmd ora.evm.type ONLINE ONLINE test ora.ons ora.ons.type OFFLINE OFFLINE [grid@test ~]$

相關文章
相關標籤/搜索