oracle css 初始化,ORACLE 11G R2怎么启动CSS服务呢?在ASM中

From Oracle 11gR2, the ASM instance runs as part of Oracle Grid Infrastructure, and few other changes have been made.ASM was designed to work with single instance as well as with RAC clusters. ASM, even in single instance, requires the use of Cluster Synchronization Services (CSS) and it must be installed and started before ASM becomes available. The CSS service is required for synchronization between between an ASM instance and the database instances.

Till 11gR1 the CSS process was created using the $ORACLE_HOME/bin/localconfig script in Linux / UNIX or %ORACLE_HOME%\bin\localconfig.bat batch file in Windows.

From 11gR2, you won’t see localconfig file anymore in Oracle Home.Oracle 11gR2 introduced OHASD (Oracle High Availability Service Daemon) which gets created,at the end of the installation by running root.sh.This OHASD has ora.cssd service which is the CSS service used for synchronization between ASM instance and DB.

So, you need to download the Oracle Database 11g Release 2 Grid Infrastructure (11.2.0.1.0) for your environment.The Grid Infrastructure is not available for windows 32bit, and so i installed Oracle VM with Linux x86 and the installed Grid.

During the end of the Grid Infrastructure Installation for standalone server, 2 scripts needs to be run as root user -

a. orainstRoot.sh

b. Root.sh[root@localhost db_1]# sh root.sh Running Oracle 11g root.sh script...The following environment variables are set as:    ORACLE_OWNER= oracle    ORACLE_HOME=  /u01/app/grid/product/11.2.0.2/db_1Enter 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 ...Creating /etc/oratab file...Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root.sh script.Now product-specific root actions will be performed.2011-04-17 09:15:06: Checking for super user privileges2011-04-17 09:15:06: User has super user privileges2011-04-17 09:15:06: Parsing the host nameUsing configuration parameter file: /u01/app/grid/product/11.2.0.2/db_1/crs/install/crsconfig_paramsCreating trace directoryLOCAL ADD MODE Creating OCR keys for user 'oracle', privgrp 'oinstall'..Operation successful.CRS-4664: Node localhost successfully pinned.Adding daemon to inittabCRS-4123: Oracle High Availability Services has been started.ohasd is startingADVM/ACFS is not supported on oraclelinux-release-5-6.0.1localhost     2011/04/17 09:15:41     /u01/app/grid/product/11.2.0.2/db_1/cdata/localhost/backup_20110417_091541.olrSuccessfully configured Oracle Grid Infrastructure for a Standalone ServerUpdating inventory properties for clusterwareStarting Oracle Universal Installer...Checking swap space: must be greater than 500 MB.   Actual 2047 MB    PassedThe inventory pointer is located at /etc/oraInst.locThe inventory is located at /u01/app/oraInventory'UpdateNodeList' was successful.[root@localhost db_1]# [root@localhost db_1]# ps -ef | grep ohasdroot      5096     1  0 09:15 ?        00:00:00 /bin/sh /etc/init.d/init.ohasd runoracle    5123     1  0 09:15 ?        00:00:00 /u01/app/grid/product/11.2.0.2/db_1/bin/ohasd.bin rebootroot      5265  4876  0 09:16 pts/2    00:00:00 grep ohasd

Once, the services are up and running ASMCA is called and the log shows -INFO: Started Plugin named: Automatic Storage Management Configuration AssistantINFO: Found associated jobINFO: Starting 'Automatic Storage Management Configuration Assistant'INFO: Starting 'Automatic Storage Management Configuration Assistant'INFO: Executing ASMCAINFO: Command /u01/app/grid/product/11.2.0.2/db_1/bin/asmca -silent -oui_internal -configureASM -diskGroupName DATA -diskList /dev/raw/raw1,/dev/raw/raw2 -redundancy EXTERNAL INFO: ... GenericInternalPlugIn.handleProcess() entered.INFO: ... GenericInternalPlugIn: getting configAssistantParmas.INFO: ... GenericInternalPlugIn: checking secretArguments.INFO: ... GenericInternalPlugIn: starting read loop.INFO: Read: SYS_PASSWORD_PROMPTINFO: Processing: SYS_PASSWORD_PROMPT for argument tag -sysAsmPasswordINFO: Read: ASMSNMP_PASSWORD_PROMPTINFO: Processing: ASMSNMP_PASSWORD_PROMPT for argument tag -asmMonitorPasswordINFO: End of argument passing to stdinINFO: Read: INFO: Read: ASM created and started successfully.INFO: Read: INFO: Read: DiskGroup DATA created successfully.INFO: Read: INFO: Completed Plugin named: Automatic Storage Management Configuration Assistant

Once successfull installation has been done, you can check[oracle@anand-lab bin]$ ./crsctl stat res -t--------------------------------------------------------------------------------NAME           TARGET  STATE        SERVER                   STATE_DETAILS       --------------------------------------------------------------------------------Local Resources--------------------------------------------------------------------------------ora.DATA.dg               ONLINE  ONLINE       anand-lab                                    ora.LISTENER.lsnr               ONLINE  ONLINE       anand-lab                                    ora.asm               ONLINE  ONLINE       anand-lab                Started --------------------------------------------------------------------------------Cluster Resources--------------------------------------------------------------------------------ora.cssd      1        ONLINE  ONLINE       anand-labora.diskmon      1        ONLINE  ONLINE       anand-lab                                    [oracle@anand-lab bin]$

If the CSS is not up,[oracle@anand-lab bin]$ ./crsctl stat res -t--------------------------------------------------------------------------------NAME           TARGET  STATE        SERVER                   STATE_DETAILS       --------------------------------------------------------------------------------Local Resources--------------------------------------------------------------------------------ora.DATA.dg               OFFLINE OFFLINE      anand-lab                                    ora.LISTENER.lsnr               ONLINE  ONLINE       anand-lab                                    ora.asm               OFFLINE OFFLINE      anand-lab                Instance Shutdown   --------------------------------------------------------------------------------Cluster Resources--------------------------------------------------------------------------------ora.cssd      1        OFFLINE OFFLINE                                                ora.diskmon      1        OFFLINE OFFLINE                                                   [oracle@anand-lab bin]$ export ORACLE_SID=+ASM[oracle@anand-lab bin]$ [oracle@anand-lab bin]$ export ORACLE_HOME=/u01/app/grid/product/11.2.0.2/db_1[oracle@anand-lab bin]$ [oracle@anand-lab bin]$ sqlplus / as sysasmSQL*Plus: Release 11.2.0.2.0 Production on Thu Apr 21 13:36:43 2011Copyright (c) 1982, 2010, Oracle.  All rights reserved.Connected to an idle instance.SQL> startupORA-01078: failure in processing system parametersORA-29701: unable to connect to Cluster Synchronization ServiceSQL>

In this case, start the CSS services and then the ASM instance.[oracle@anand-lab bin]$ ./crsctl start res ora.cssdCRS-2672: Attempting to start 'ora.cssd' on 'anand-lab'CRS-2672: Attempting to start 'ora.diskmon' on 'anand-lab'CRS-2676: Start of 'ora.diskmon' on 'anand-lab' succeededCRS-2676: Start of 'ora.cssd' on 'anand-lab' succeeded[oracle@anand-lab bin]$ ./crsctl stat res -t--------------------------------------------------------------------------------NAME           TARGET  STATE        SERVER                   STATE_DETAILS       --------------------------------------------------------------------------------Local Resources--------------------------------------------------------------------------------ora.DATA.dg               OFFLINE OFFLINE      anand-lab                                    ora.LISTENER.lsnr               ONLINE  ONLINE       anand-lab                                    ora.asm               OFFLINE OFFLINE      anand-lab                Instance Shutdown   --------------------------------------------------------------------------------Cluster Resources--------------------------------------------------------------------------------ora.cssd      1        ONLINE  ONLINE       anand-lab                                    ora.diskmon      1        ONLINE  ONLINE       anand-lab                                    [oracle@anand-lab bin]$ [oracle@anand-lab bin]$ sqlplus / as sysasmSQL*Plus: Release 11.2.0.2.0 Production on Thu Apr 21 13:55:41 2011Copyright (c) 1982, 2010, Oracle.  All rights reserved.Connected to an idle instance.SQL> startupASM instance startedTotal System Global Area  284565504 bytesFixed Size                  1336036 bytesVariable Size             258063644 bytesASM Cache                  25165824 bytesASM diskgroups mountedSQL> exit

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值