1:安装grid(asm和no cluter操作差不多)
2:运行此脚本把配置写入OCR
$GRID_HOME/crs/install/roothas.pl
3:查看状态
./crsctl check has
查看Oracle Restart 中由OHASD管理的resource 状态
./crsctl stat res -t
4:添加database
su - oracle
./srvctl add database -d orcl -o /u01/app/oracle/product/11.2.0/dbhome_1
5:添加LISTENER:
[oracle@prod1 bin]$ ./srvctl add listener -p TCP:1521 -o /u01/app/oracle/product/11.2.0/dbhome_1
[oracle@prod1 bin]$ ./srvctl status listener
Listener LISTENER is enabled
Listener LISTENER is not running
[oracle@prod1 bin]$ ./srvctl start listener
[oracle@prod1 bin]$ ./crs_stat -t -v
Name Type R/RA F/FT Target State Host
----------------------------------------------------------------------
ora....ER.lsnr ora....er.type 0/5 0/ ONLINE ONLINE prod1
ora.cssd ora.cssd.type 0/5 0/5 OFFLINE OFFLINE
ora.diskmon ora....on.type 0/10 0/5 OFFLINE OFFLINE
ora.evmd ora.evm.type 0/10 0/5 ONLINE ONLINE prod1
ora.ons ora.ons.type 0/3 0/ OFFLINE OFFLINE
ora.orcl.db ora....se.type 0/2 0/1 ONLINE ONLINE prod1
阅读(1828) | 评论(0) | 转发(0) |