Localconfig delete

HI
if you have RAC environment on two nodes with raw device in OCR.
and you did (accidently) localconfig add i supposed this command add local configuration of the ocr. (also adding new entry in inittab about ocssd)
can i just do localconfig delete in order to delete the local configuration which created with the earlier command?
and actually get back to the old configuration with raw ocr.
Please help
this is very urgent.

Do you mind to tell me how did you solve it?
Thanks,
JOse

Similar Messages

  • 10g fails to run on Mac OS X 10.3.8: OracleCRS is a directory

    Hi,
    I have had no luck installing Oracle 10g on a Mac OS X Server (running 10.3.8). I followed the instructions in the Quick installation guide religiously and everything works, until the very last moment when the services are supposed to be launched. This is the output of the root.sh script (in my case, /Volumes/xserve.system/app/oracle/product/10.1.0/db_1/root.sh):
    ===== terminal output =======
    Running Oracle10 root.sh script...
    \nThe following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME= /Volumes/xserve.system/app/oracle/product/10.1.0/db_1
    Enter the full pathname of the local bin directory:
    [usr/local/bin]:
    The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
    [n]:
    y
    Copying dbhome to /usr/local/bin ...
    The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
    [n]:
    y
    Copying oraenv to /usr/local/bin ...
    The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
    [n]:
    y
    Copying coraenv to /usr/local/bin ...
    Adding entry to /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.sh script.
    Now product-specific root actions will be performed.
    Successfully accumulated necessary OCR keys.
    Creating OCR keys for user 'root', privgrp 'wheel'..
    Operation successful.
    Oracle Cluster Registry for cluster has been initialized
    Adding to inittab
    Checking the status of Oracle init process...
    Expecting the CRS daemons to be up within 600 seconds.
    Giving up: Oracle CSS stack appears NOT to be running.
    /Volumes/xserve.system/app/oracle/product/10.1.0/db_1/root.sh: line 788: /System/Library/StartupItems/OracleCRS: is a directory
    Oracle CSS service would not start as installed
    Automatic Storage Management(ASM) cannot be used until Oracle CSS service is started
    ===== end of terminal output =======
    Any idea why this "OracleCRS: is a directory" would come up, and what I could do to remedy it? This was a clean install on a more or less clean system (definitely had no other Oracle installed before) so there must be something wrong in the Installation script or the installer...
    Any feedback would be greatly appreciated!
    Thanks
    Roland

    Hello Ronald,
    Here is my Oracle script. The permission on the script is 700. Owner of the script is root:wheel.
    #!/bin/sh
    # source the common startup script
    . /etc/rc.common
    # Change the value of ORACLE_HOME to specify the correct Oracle home
    # directory for you installation
    ORACLE_HOME=/app/oracle/product/10.1.0/db_1
    # change the value of ORACLE to the login name of the
    # oracle owner at your site
    ORACLE=oracle
    PATH=${PATH}:$ORACLE_HOME/bin
    export ORACLE_HOME PATH
    export ORACLE
    export ORACLE_SID=btm
    # Set shell limits for Oracle Database
    ulimit -c unlimited
    ulimit -d unlimited
    ulimit -s 65536
    StartService()
    if [ -f $ORACLE_HOME/bin/tnslsnr ] ; then
    ConsoleMessage "Starting Oracle Net"
    su - $ORACLE -c "$ORACLE_HOME/bin/lsnrctl start"
    fi
    ConsoleMessage "Starting Oracle Databases"
    su - $ORACLE -c "$ORACLE_HOME/bin/dbstart"
    StopService()
    ConsoleMessage "Stopping Oracle Databases"
    su - $ORACLE -c "$ORACLE_HOME/bin/dbshut"
    if [ -f $ORACLE_HOME/bin/tnslsnr ] ; then
    ConsoleMessage "Stopping Oracle Net"
    su - $ORACLE -c "$ORACLE_HOME/bin/lsnrctl stop"
    fi
    RestartService()
    StopService
    StartService
    RunService "$1"
    One thing I am wondering is when I reinstall oracle, I did not do $ORACLE_HOME/bin/localconfig delete. So, I did not stop the css and delete the configuration. Will it matter?
    Thanks,
    /Jennifer

  • Asm 11.1.0.6 root.sh  fails to start css

    We have Oracle ASM and installing 11.1.0.6 on a new machine (eventually will apply 11.1.0.7 patchset). So we are on 11g R1 in production environments.
    When installing Oracle ASM 11.1.0.6, the root.sh fails
    I checked various metalink notes, all settings are OK. We have ASMLib and i have configured ASMLib with the new disks prior to the ASM installation
    Just to rule out the rootcause is with ASMLib , I have also disabled it. Still same problem. I ran the usual localconfig delete and localconfig add too.
    Startup will be queued to init within 30 seconds.
    Checking the status of new Oracle init process...
    Expecting the CRS daemons to be up within 600 seconds.
    Giving up: Oracle CSS stack appears NOT to be running.+
    Oracle CSS service would not start as installed+
    Automatic Storage Management(ASM) cannot be used until Oracle CSS service is started+
    Finished product-specific root actions.+

    I applied the 11.1.0.7 patchset. Still same problem.
    Strangely, there are no logfiles in $ASM_HOME/log/<hostname>/cssd/ - This directory is empty
    The below are the final messages in root.sh
    Startup will be queued to init within 30 seconds.
    Checking the status of new Oracle init process...
    Expecting the CRS daemons to be up within 600 seconds.
    Giving up: Oracle CSS stack appears NOT to be running.
    Oracle CSS service would not start as installed
    Automatic Storage Management(ASM) cannot be used until Oracle CSS service is started

  • Cssd does not start in non-RAC environment Thus we can not bring up ASM

    Non-RAC environment
    ASM version = 11.1.0.7
    HP-UX Itanium 11.23
    After power outage, CSSD does not start on non-RAC environment
    Running as root "/sbin/init.d/init.cssd start" does not start cssd
    Oracle support tried "$ASM_HOME/bin/localconfig delete" and "$ASM_HOME/bin/localconfig add"
    but it did not start CSS
    Oracle support tried "$ASM_HOME/bin/localconfig reset $ASM_HOME"
    It started the CSSD and the "crsctl check css" came back with CSS is healthy
    But around 1 minute later it rebooted the server and when it came up again CSS does not start.
    They checked /etc/inittab and it looked fine.
    Before the reboot we saw this message in the /var/adm/syslog/OLDsyslog.log:
    Cluster Ready Services completed waiting on dependencies
    Again it is a NON-RAC environment. We only need CSSD for ASM. We do not have CRS installed on this server.
    Our test system has been down for a week and we did not get the resolution from Oracle support yet !
    Any pointers are greately appriciated.
    Thanks,
    Dzung

    Here is the message in $ASM_HOME/log/<hostname>/alert<hostname>.log :
    2010-07-16 09:42:02.956
    [client(11930)]CRS-1006:The OCR location /db/app/oracle/product/11.1/cdata/localhost/local.ocr is inacce
    ssible. Details in /db/app/oracle/product/11.1/log/rmodbd01/client/clscfg10.log.
    2010-07-16 09:42:02.971
    [client(11930)]CRS-1006:The OCR location /db/app/oracle/product/11.1/cdata/localhost/local.ocr is inacce
    ssible. Details in /db/app/oracle/product/11.1/log/rmodbd01/client/clscfg10.log.
    2010-07-16 09:42:03.054
    [client(11930)]CRS-1013:The OCR at /db/app/oracle/product/11.1/cdata/localhost/local.ocr was successfull
    y formatted using version 2. Ignore earlier CRS-1006 messages if any.
    2010-07-16 09:42:46.379
    [cssd(12297)]CRS-1601:CSSD Reconfiguration complete. Active nodes are rmodbd01 .
    Here is the message in $ASM_HOME/log/<hostname>/cssd/cssdOUT.log:
    setsid: failed with -1/1
    s0clssscGetEnvOracleUser: calling getpwnam_r for user oracle
    s0clssscGetEnvOracleUser: info for user oracle complete
    07/16/10 09:42:36: CSSD starting
    Here is the message in $ASM_HOME/log/<hostname>/cssd/ocssd.log:
    [    CSSD]2010-07-16 09:42:46.378 [18] >TRACE: clssgmCompareSwapEventValue: changed CmInfo State val 7, from 6, changes 6
    [    CSSD]2010-07-16 09:42:46.378 [18] >TRACE: clssgmSetVersions: properties common to all peers: 1,2,3,4,5,6,7
    [    CSSD]2010-07-16 09:42:46.378 [18] >TRACE: clssgmEstablishMasterNode: MASTER for 174732166 is node(0) birth(174732166)
    [    CSSD]2010-07-16 09:42:46.378 [18] >TRACE: clssgmChangeMasterNode: requeued 0 RPCs
    [    CSSD]2010-07-16 09:42:46.378 [18] >TRACE: clssgmCompareSwapEventValue: changed CmInfo State val 8, from 7, changes 7
    [    CSSD]2010-07-16 09:42:46.378 [18] >TRACE: clssgmMasterCMSync: Synchronizing group/lock status
    [    CSSD]2010-07-16 09:42:46.378 [18] >TRACE: clssgmMasterSendDBDone: group/lock status synchronization complete
    [    CSSD]2010-07-16 09:42:46.378 [18] >TRACE: clssgmCompareSwapEventValue: changed CmInfo State val 9, from 8, changes 8
    [    CSSD]2010-07-16 09:42:46.378 [18] >TRACE: clssgmCompareSwapEventValue: changed CmInfo State val 10, from 9, changes 9
    [    CSSD]CLSS-3000: reconfiguration successful, incarnation 174732166 with 1 nodes
    [    CSSD]CLSS-3001: local node number 0, master node number 0
    [    CSSD]2010-07-16 09:42:46.378 [18] >TRACE: clssscSAGEInitFenceCompl: Completing kgzf fence initialization
    [    CSSD]2010-07-16 09:42:46.394 [12] >TRACE: clssgmUpdateEventValue: Client listener incarn val 174732166, changes 1
    [    CSSD]2010-07-16 09:42:46.395 [12] >TRACE: clssgmAllocProc: (60000000003c7120) allocated
    [    CSSD]2010-07-16 09:42:46.395 [12] >TRACE: clssgmAllocProc: (60000000003c73a0) allocated
    [    CSSD]2010-07-16 09:42:46.396 [14] >TRACE: Connect request from user oracle
    [    CSSD]2010-07-16 09:42:46.396 [14] >TRACE: Connect request from user root
    [    CSSD]2010-07-16 09:42:46.397 [12] >TRACE: clssgmClientConnectMsg: properties of cmProc 60000000003c7120 - 1,2,3
    [    CSSD]2010-07-16 09:42:46.397 [12] >TRACE: clssgmClientConnectMsg: Connect from con(60000000003b2810) proc(60000000003c7120) pid(12350) version 11:1:1:4
    [    CSSD]2010-07-16 09:42:46.397 [12] >TRACE: clssgmClientConnectMsg: properties of cmProc 60000000003c73a0 - 1,2,3
    [    CSSD]2010-07-16 09:42:46.397 [12] >TRACE: clssgmClientConnectMsg: Connect from con(60000000003b2990) proc(60000000003c73a0) pid(12131) version 11:1:1:4
    [    CSSD]2010-07-16 09:42:46.402 [12] >TRACE: clssgmRegisterClient: proc(1/60000000003c7120), client(1/600000000096e7c0)
    [    CSSD]2010-07-16 09:42:46.402 [12] >TRACE: clssgmExecuteClientRequest: GRKJOIN recvd from client 1 (600000000096e7c0)
    [    CSSD]2010-07-16 09:42:46.402 [12] >TRACE: clssgmJoinGrock: local grock CSS_INTERNAL_NODE_GROUP new client 600000000096e7c0 with con 60000000003b2b10, requested num 0
    [    CSSD]2010-07-16 09:42:46.402 [12] >TRACE: clssgmAddNodeGrpMember: member (60000000009e0030) added
    [    CSSD]2010-07-16 09:42:46.403 [12] >TRACE: clssgmGroupState: requested group state of group localhost_NG, member count 0
    [    CSSD]2010-07-16 09:42:46.403 [12] >TRACE: clssgmGroupState: requested group state of group localhost_NG, member count 0
    [    CSSD]2010-07-16 09:42:46.404 [12] >TRACE: clssgmDeadProc: proc 60000000003c73a0
    [    CSSD]2010-07-16 09:42:46.404 [12] >TRACE: clssgmDestroyProc: cleaning up proc(60000000003c73a0) con(60000000003b2990) skgpid ospid 12131 with 0 clients, refcount 0
    [    CSSD]2010-07-16 09:42:46.425 [12] >TRACE: clssgmGroupState: requested group state of unknown group MASTER#DISKMON#GROUP
    [    CSSD]2010-07-16 09:42:46.425 [12] >TRACE: clssgmGroupState: requested group state of group MASTER#DISKMON#GROUP, member count 0
    [    CSSD]2010-07-16 09:42:46.425 [18] >TRACE: KGZF: context successfully initialized, API version 1.4, using pipe default
    [    CSSD]2010-07-16 09:42:46.425 [18] >TRACE: clssscSAGEInitFenceCompl: kgzf fence initialization successfully completed
    [    CSSD]2010-07-16 09:42:46.425 [18] >TRACE: clssgmReconfigThread: CSS/GM open for global group registrations
    [    CSSD]2010-07-16 09:42:46.425 [18] >TRACE: clssgmReconfigThread: completed for reconfig(174732166), with status(1)
    [    CSSD]2010-07-16 09:42:46.425 [18] >TRACE: clssgmUpdateEventValue: Reconfig Event val 2, changes 2
    [    CSSD]2010-07-16 09:42:46.425 [1] >TRACE: clssgmWaitOnEventValue: after Reconfig Event val 2, eval 2 waited 47
    [    CSSD]2010-07-16 09:42:46.425 [12] >TRACE: clssgmRegisterClient: proc(1/60000000003c7120), client(2/600000000096e870)
    [    CSSD]2010-07-16 09:42:46.425 [1] >TRACE: clssgmUpdateEventValue: Reconfig Event val 0, changes 3
    [    CSSD]2010-07-16 09:42:46.425 [1] >TRACE: clssgmStartNMMon: previous reconfig complete, incarnation(174732166)
    [    CSSD]2010-07-16 09:42:46.425 [12] >TRACE: clssgmExecuteClientRequest: GRKJOIN recvd from client 2 (600000000096e870)
    [    CSSD]2010-07-16 09:42:46.425 [12] >TRACE: clssgmJoinGrock: global grock MASTER#DISKMON#GROUP#MX new client 600000000096e870 with con 60000000003b2990, requested num -1
    [    CSSD]2010-07-16 09:42:46.425 [12] >TRACE: clssgmAddGrockMember: adding member to grock MASTER#DISKMON#GROUP#MX
    [    CSSD]2010-07-16 09:42:46.425 [12] >TRACE: clssgmAddMember: granted member(0) flags(0x2) node(0) grock (6000000000989e50/MASTER#DISKMON#GROUP#MX)
    [    CSSD]2010-07-16 09:42:46.425 [12] >TRACE: clssgmQueueGrockEvent: lockName(MASTER#DISKMON#GROUP#MX) type(3) count (1/1) xwaiters(1) event(1) to memberNo(0)
    [    CSSD]2010-07-16 09:42:46.425 [12] >TRACE: clssgmCommonAddMember: global lock grock MASTER#DISKMON#GROUP#MX member(0/Local) node(0) flags 0x2 0x2
    [    CSSD]2010-07-16 09:42:46.425 [12] >TRACE: clssgmRegisterClient: proc(1/60000000003c7120), client(3/600000000096e920)
    [    CSSD]2010-07-16 09:42:46.425 [12] >TRACE: clssgmExecuteClientRequest: GRKJOIN recvd from client 3 (600000000096e920)
    [    CSSD]2010-07-16 09:42:46.425 [12] >TRACE: clssgmJoinGrock: global grock MASTER#DISKMON#GROUP new client 600000000096e920 with con 60000000003b2bd0, requested num 0
    [    CSSD]2010-07-16 09:42:46.425 [12] >TRACE: clssgmAddGrockMember: adding member to grock MASTER#DISKMON#GROUP
    [    CSSD]2010-07-16 09:42:46.425 [12] >TRACE: clssgmAddMember: new master 0 for group(MASTER#DISKMON#GROUP)
    [    CSSD]2010-07-16 09:42:46.426 [12] >TRACE: clssgmAddMember: Adding fencing for member 0, group MASTER#DISKMON#GROUP, death 1, SAGE 0
    [    CSSD]2010-07-16 09:42:46.426 [12] >TRACE: clssgmAddMember: member (0/60000000009e0230) added. pbsz(72) prsz(0) flags 0x0 to grock (600000000098a170/MASTER#DISKMON#GROUP)
    [    CSSD]2010-07-16 09:42:46.426 [12] >TRACE: clssgmQueueGrockEvent: groupName(MASTER#DISKMON#GROUP) count(1) master(0) event(1), incarn 1, mbrc 1, to member 0, events 0x78, state 0x0
    [    CSSD]2010-07-16 09:42:46.426 [12] >TRACE: clssgmCommonAddMember: global group grock MASTER#DISKMON#GROUP member(0/Local) node(0) flags 0x0 0x1e00
    [    CSSD]2010-07-16 09:42:46.426 [12] >TRACE: clssgmExecuteClientRequest: GRKEXIT recvd from client 2 (600000000096e870)
    [    CSSD]2010-07-16 09:42:46.426 [12] >TRACE: clssgmExitGrock: client 2 (600000000096e870), grock MASTER#DISKMON#GROUP#MX, member 0
    [    CSSD]2010-07-16 09:42:46.426 [12] >TRACE: clssgmUnregisterPrimary: Unregistering member 0 (60000000009e0130) in global grock MASTER#DISKMON#GROUP#MX
    [    CSSD]2010-07-16 09:42:46.426 [12] >TRACE: clssgmRemoveMember: grock MASTER#DISKMON#GROUP#MX, member number 0 (60000000009e0130) node number 0 state 0x14 member refcnt 0 grock type 3
    [    CSSD]2010-07-16 09:42:48.405 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:42:48.405 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    [    CSSD]2010-07-16 09:42:52.444 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:42:52.444 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    [    CSSD]2010-07-16 09:42:56.484 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:42:56.484 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    [    CSSD]2010-07-16 09:43:00.516 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:43:00.516 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    [    CSSD]2010-07-16 09:43:04.563 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:43:04.563 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    [    CSSD]2010-07-16 09:43:08.603 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:43:08.603 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    [    CSSD]2010-07-16 09:43:12.643 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:43:12.643 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    [    CSSD]2010-07-16 09:43:16.676 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:43:16.676 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    [    CSSD]2010-07-16 09:43:20.723 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:43:20.723 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    [    CSSD]2010-07-16 09:43:24.762 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:43:24.762 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    [    CSSD]2010-07-16 09:43:28.802 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:43:28.802 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    [    CSSD]2010-07-16 09:43:32.842 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:43:32.842 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    [    CSSD]2010-07-16 09:43:36.882 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:43:36.882 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    [    CSSD]2010-07-16 09:43:40.922 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:43:40.922 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    [    CSSD]2010-07-16 09:43:44.964 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:43:44.964 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    [    CSSD]2010-07-16 09:43:49.002 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:43:49.002 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    [    CSSD]2010-07-16 09:43:53.043 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:43:53.043 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    [    CSSD]2010-07-16 09:43:57.085 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:43:57.085 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    [    CSSD]2010-07-16 09:43:58.354 [12] >TRACE: clssgmAllocProc: (60000000003c7ee0) allocated
    [    CSSD]2010-07-16 09:43:58.355 [14] >TRACE: Connect request from user oracle
    [    CSSD]2010-07-16 09:43:58.356 [12] >TRACE: clssgmClientConnectMsg: properties of cmProc 60000000003c7ee0 - 1,2,3
    [    CSSD]2010-07-16 09:43:58.356 [12] >TRACE: clssgmClientConnectMsg: Connect from con(60000000003b2990) proc(60000000003c7ee0) pid(13157) version 11:1:1:4
    [    CSSD]2010-07-16 09:43:58.360 [12] >TRACE: clssgmRegisterClient: proc(2/60000000003c7ee0), client(1/600000000096e870)
    [    CSSD]2010-07-16 09:43:58.360 [12] >TRACE: clssgmExecuteClientRequest: GRKJOIN recvd from client 1 (600000000096e870)
    [    CSSD]2010-07-16 09:43:58.360 [12] >TRACE: clssgmJoinGrock: global grock CLSSSCHECK_GROUP new client 600000000096e870 with con 60000000003b2c90, requested num -1
    [    CSSD]2010-07-16 09:43:58.360 [12] >TRACE: clssgmAddGrockMember: adding member to grock CLSSSCHECK_GROUP
    [    CSSD]2010-07-16 09:43:58.360 [12] >TRACE: clssgmAddMember: new master 0 for group(CLSSSCHECK_GROUP)
    [    CSSD]2010-07-16 09:43:58.360 [12] >TRACE: clssgmAddMember: Adding fencing for member 0, group CLSSSCHECK_GROUP, death 1, SAGE 0
    [    CSSD]2010-07-16 09:43:58.360 [12] >TRACE: clssgmAddMember: member (0/60000000009e0130) added. pbsz(8) prsz(8) flags 0x0 to grock (6000000000989e50/CLSSSCHECK_GROUP)
    [    CSSD]2010-07-16 09:43:58.360 [12] >TRACE: clssgmQueueGrockEvent: groupName(CLSSSCHECK_GROUP) count(1) master(0) event(1), incarn 1, mbrc 1, to member 0, events 0x0, state 0x0
    [    CSSD]2010-07-16 09:43:58.360 [12] >TRACE: clssgmCommonAddMember: global group grock CLSSSCHECK_GROUP member(0/Local) node(0) flags 0x0 0x0
    [    CSSD]2010-07-16 09:43:58.361 [12] >TRACE: clssgmExecuteClientRequest: GRKEXIT recvd from client 1 (600000000096e870)
    [    CSSD]2010-07-16 09:43:58.361 [12] >TRACE: clssgmExitGrock: client 1 (600000000096e870), grock CLSSSCHECK_GROUP, member 0
    [    CSSD]2010-07-16 09:43:58.361 [12] >TRACE: clssgmUnregisterPrimary: Unregistering member 0 (60000000009e0130) in global grock CLSSSCHECK_GROUP
    [    CSSD]2010-07-16 09:43:58.361 [12] >TRACE: clssgmRemoveMember: grock CLSSSCHECK_GROUP, member number 0 (60000000009e0130) node number 0 state 0x14 member refcnt 0 grock type 2
    [    CSSD]2010-07-16 09:43:58.361 [12] >TRACE: clssgmRegisterClient: proc(2/60000000003c7ee0), client(2/600000000096e870)
    [    CSSD]2010-07-16 09:43:58.361 [12] >TRACE: clssgmExecuteClientRequest: GRKJOIN recvd from client 2 (600000000096e870)
    [    CSSD]2010-07-16 09:43:58.361 [12] >TRACE: clssgmJoinGrock: global grock CLSSSCHECK_LOCK new client 600000000096e870 with con 60000000003b2c90, requested num -1
    [    CSSD]2010-07-16 09:43:58.361 [12] >TRACE: clssgmAddGrockMember: adding member to grock CLSSSCHECK_LOCK
    [    CSSD]2010-07-16 09:43:58.361 [12] >TRACE: clssgmAddMember: granted member(0) flags(0x2) node(0) grock (6000000000989e50/CLSSSCHECK_LOCK)
    [    CSSD]2010-07-16 09:43:58.361 [12] >TRACE: clssgmQueueGrockEvent: lockName(CLSSSCHECK_LOCK) type(3) count (1/1) xwaiters(1) event(1) to memberNo(0)
    [    CSSD]2010-07-16 09:43:58.361 [12] >TRACE: clssgmCommonAddMember: global lock grock CLSSSCHECK_LOCK member(0/Local) node(0) flags 0x2 0x2
    [    CSSD]2010-07-16 09:43:58.361 [12] >TRACE: clssgmExecuteClientRequest: GRKEXIT recvd from client 2 (600000000096e870)
    [    CSSD]2010-07-16 09:43:58.361 [12] >TRACE: clssgmExitGrock: client 2 (600000000096e870), grock CLSSSCHECK_LOCK, member 0
    [    CSSD]2010-07-16 09:43:58.361 [12] >TRACE: clssgmUnregisterPrimary: Unregistering member 0 (60000000009e0130) in global grock CLSSSCHECK_LOCK
    [    CSSD]2010-07-16 09:43:58.361 [12] >TRACE: clssgmRemoveMember: grock CLSSSCHECK_LOCK, member number 0 (60000000009e0130) node number 0 state 0x14 member refcnt 0 grock type 3
    [    CSSD]2010-07-16 09:43:58.362 [12] >TRACE: clssgmDeadProc: proc 60000000003c7ee0
    [    CSSD]2010-07-16 09:43:58.362 [12] >TRACE: clssgmDestroyProc: cleaning up proc(60000000003c7ee0) con(60000000003b2990) skgpid ospid 13157 with 0 clients, refcount 0
    [    CSSD]2010-07-16 09:44:01.125 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:44:01.125 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    [    CSSD]2010-07-16 09:44:05.164 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:44:05.164 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    [    CSSD]2010-07-16 09:44:09.196 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:44:09.196 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    [    CSSD]2010-07-16 09:44:13.236 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:44:13.236 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    [    CSSD]2010-07-16 09:44:17.284 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:44:17.284 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    [    CSSD]2010-07-16 09:44:21.322 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:44:21.322 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    [    CSSD]2010-07-16 09:44:25.316 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:44:25.316 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    [    CSSD]2010-07-16 09:44:30.333 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:44:30.333 [8] >TRACE: clssnmSendingThread: sent 5 status msgs to all nodes
    [    CSSD]2010-07-16 09:44:34.324 [8] >TRACE: clssnmSendingThread: sending status msg to all nodes
    [    CSSD]2010-07-16 09:44:34.324 [8] >TRACE: clssnmSendingThread: sent 4 status msgs to all nodes
    Here is the message in $ASM_HOME/log/<hostname>/diskmon/client.log:
    [ DISKMON] 07/16/2010 18:33:32.050 dskm_send_command: process 23246 sending command 8 to master diskmon listening on default pipe
    [ DISKMON] 07/16/2010 18:33:32.080 dskm_send_command3: skgznp_connect failed with error 56815
    [ DISKMON] 07/16/2010 18:33:32.080 dskm_send_command3: error 56815 at location skgznpcon6 - connect() - Connection refused
    Here is the message in $ASM_HOME/log/<hostname>/diskmon/diskmonOUT.log:
    setsid: failed with -1/1
    dskm_getenv_oracle_user: calling getpwnam_r for user oracle
    dskm_getenv_oracle_user: info for user oracle complete
    07/16/10 18:33:31: Master Diskmon starting
    Here is the message in $ASM_HOME/log/<hostname>/diskmon/diskmon.log:
    [ DISKMON] 07/16/2010 09:42:35.573 dskm main: starting up
    [ DISKMON] 07/16/2010 09:42:35.588 [12350:3] dskm_rac_thrd_main: running
    [ DISKMON] 07/16/2010 09:42:35.588 [12350:1] dskm_rac_thrd_creat2: got the post from the css event handling thread
    [ DISKMON] 07/16/2010 09:42:35.589 [12350:1] dskm main: startup complete
    [ DISKMON] 07/16/2010 09:42:35.589 [12350:1] listening on -> default pipe
    [ DISKMON] 07/16/2010 09:42:35.792 clsc_connect: (6000000000700420) no listener at (ADDRESS=(PROTOCOL=ipc)(KEY=OCSSD_LL_rmodbd01_))
    [ DISKMON] 07/16/2010 09:42:36.385 clsc_connect: (6000000000700420) no listener at (ADDRESS=(PROTOCOL=ipc)(KEY=OCSSD_LL_rmodbd01_))
    [ DISKMON] 07/16/2010 09:42:36.906 clsc_connect: (6000000000700420) no listener at (ADDRESS=(PROTOCOL=ipc)(KEY=OCSSD_LL_rmodbd01_))
    [ DISKMON] 07/16/2010 09:42:37.426 clsc_connect: (6000000000700420) no listener at (ADDRESS=(PROTOCOL=ipc)(KEY=OCSSD_LL_rmodbd01_))
    [ DISKMON] 07/16/2010 09:42:37.945 clsc_connect: (6000000000700420) no listener at (ADDRESS=(PROTOCOL=ipc)(KEY=OCSSD_LL_rmodbd01_))
    [ DISKMON] 07/16/2010 09:42:38.465 clsc_connect: (6000000000700420) no listener at (ADDRESS=(PROTOCOL=ipc)(KEY=OCSSD_LL_rmodbd01_))
    [ DISKMON] 07/16/2010 09:42:46.376 [12350:1] dskm_slave_thrd_creat: thread created
    [ DISKMON] 07/16/2010 09:42:46.376 [12350:11] dskm_slave_thrd_main1: slave 0 running
    [ DISKMON] 07/16/2010 09:42:46.376 [12350:11] dskm_process_msg5: received msg type KGZM_IDENTIFY (0x0001)
    [ DISKMON] 07/16/2010 09:42:46.389 [12350:11] dskm_proc_identify8: client kgzf/12297, version 0x01020000, slave 0, reid cid=3e0391f05e06cfafbf7419d7cf085a44,icin=174732166,nmn=0,lnid=174732166,gid=0,gin=0,gmn=0,umemid=0,opid=0,opsn=0,lvl=node
    [ DISKMON] 07/16/2010 09:42:46.389 [12350:11] dskm_send_version1:
    [ DISKMON] 07/16/2010 09:42:46.389 [12350:11] dskm_send_version4: done
    [ DISKMON] 07/16/2010 09:42:46.389 [12350:11] dskm_process_msg7: processed msg 0 type KGZM_IDENTIFY (0x0001), retcode 0
    [ DISKMON] 07/16/2010 09:42:46.389 [12350:11] dskm_process_msg5: received msg type KGZM_KGZF_HANDSHAKE (0x0010)
    [ DISKMON] 07/16/2010 09:42:46.389 [12350:11] dskm_proc_kgzf_handshake3: client kgzf/12297, kgzf version 0x00010004, slave 0
    [ DISKMON] 07/16/2010 09:42:46.401 [12350:3] dskm_clss_ini2: successful clsssinit(), clssvers 2.1
    [ DISKMON] 07/16/2010 09:42:46.402 [12350:3] dskm_clss_ini12: node rmodbd01 (0) registered in cluster
    [ DISKMON] 07/16/2010 09:42:46.403 [12350:3] dskm_reid_ini12: diskmon reid cid=3e0391f05e06cfafbf7419d7cf085a44,icin=174732166,nmn=0,lnid=174732166,gid=-1,gin=-1,gmn=-1,umemid=-1,opid=12350,opsn=1279291355,lvl=process
    [ DISKMON] 07/16/2010 09:42:46.424 [12350:3] dskm_sage_config: CELL storage configuration file cellinit.ora not found
    [ DISKMON] 07/16/2010 09:42:46.425 [12350:3] dskm_nfy_kgzf1: notified thread kgzf enabled
    [ DISKMON] 07/16/2010 09:42:46.425 [12350:11] dskm_proc_kgzf_handshake5: got the post from the hb thread
    [ DISKMON] 07/16/2010 09:42:46.425 [12350:11] dskm_proc_kgzf_handshake9: done, kgzf enabled
    [ DISKMON] 07/16/2010 09:42:46.425 [12350:11] dskm_process_msg7: processed msg 0 type KGZM_KGZF_HANDSHAKE (0x0010), retcode 0
    [ DISKMON] 07/16/2010 09:42:46.426 [12350:3] dskm_rac_ini22: CELL storage not configured in the cluster; registered in group MASTER#DISKMON#GROUP as memno 0 (GSDGRPSZ 512)

  • Hp服务器rac数据库添加节点问题

    请给位帮忙看一下,如果有需要的资料,请留言,我上传给大家,谢谢了!
    环境:
    hp-ux 11.31
    oracle 10.2.0.5
    新增rac节点dt03,dt04
    执行addNode脚本复制crs到新增节点成功后,执行root脚本报错如下:
    root@dt04[] /u01/app/oracle/product/10.2.0/crs_1/root.sh
    WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
    WARNING: directory '/u01/app/oracle/product' is not owned by root
    WARNING: directory '/u01/app/oracle' is not owned by root
    WARNING: directory '/u01/app' is not owned by root
    WARNING: directory '/u01' is not owned by root
    No value set for the CRS parameter CRS_OCR_LOCATIONS. Using Values in paramfile.crs
    Checking to see if Oracle CRS stack is already configured
    Checking to see if any 9i GSD is up
    /usr/lib/hpux64/dld.so: Unable to find library 'libnmapi2.so'.
    9i GSD is running on node ''. Stop the GSD and rerun root.sh
    检测脚本:
    root@dt04[]sh -x /u01/app/oracle/product/10.2.0/crs_1/root.sh
    + /u01/app/oracle/product/10.2.0/crs_1/install/rootinstall
    WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
    WARNING: directory '/u01/app/oracle/product' is not owned by root
    WARNING: directory '/u01/app/oracle' is not owned by root
    WARNING: directory '/u01/app' is not owned by root
    WARNING: directory '/u01' is not owned by root
    + /u01/app/oracle/product/10.2.0/crs_1/install/rootconfig
    No value set for the CRS parameter CRS_OCR_LOCATIONS. Using Values in paramfile.crs
    Checking to see if Oracle CRS stack is already configured
    Checking to see if any 9i GSD is up
    /usr/lib/hpux64/dld.so: Unable to find library 'libnmapi2.so'.
    9i GSD is running on node ''. Stop the GSD and rerun root.sh
    + /u01/app/oracle/product/10.2.0/crs_1/install/rootconfig脚本如下:
    #!/bin/sh
    # rootconfig.sh for Oracle CRS homes
    # This is run once per node during the Oracle CRS install.
    # This script does the following:
    # 1) Stop if any GSDs are running from 9.x oracle homes
    # 2) Initialize new OCR device or upgrade the existing OCR device
    # 3) Setup OCR for running CRS stack
    # 4) Copy the CRS init script to init.d for init process to start
    # 5) Start the CRS stack
    # 6) Configure NodeApps if CRS is up and running on all nodes
    # NOTE: Use sample paramfile in $ORA_CRS_HOME/srvm/admin/paramfile.sample for
    # setting CRS parameters
    # The following commands need to be run before Oracle Cluster Registry is
    # populated.
    # This is run during CRS installation and not during RAC
    SILENT=false
    ORA_CRS_HOME=/u01/app/oracle/product/10.2.0/crs_1
    CRS_ORACLE_OWNER=oracle
    CRS_DBA_GROUP=oinstall
    CRS_VNDR_CLUSTER=false
    CRS_OCR_LOCATIONS=
    CRS_CLUSTER_NAME=
    CRS_HOST_NAME_LIST=
    CRS_NODE_NAME_LIST=dt01,dt02
    CRS_PRIVATE_NAME_LIST=
    CRS_LANGUAGE_ID=
    CRS_VOTING_DISKS=
    CRS_NODELIST=
    CRS_NODEVIPS=
    CRS_PARAMS="ORA_CRS_HOME CRS_ORACLE_OWNER CRS_DBA_GROUP CRS_VNDR_CLUSTER CRS_OCR_LOCATIONS CRS_CLUSTER_NAME CRS_HOST_NAME_LIST CRS_NODE_NAME_LIST CRS_PRIVATE_NAME_LIST CRS_LANGUAGE_ID CRS_VOTING_DISKS CRS_NODELIST CRS_NODEVIPS"
    if [ -z "$CP" ]; then CP=/bin/cp; fi
    if [ -z "$MV" ]; then MV=/bin/mv; fi
    if [ -z "$CHOWN" ]; then CHOWN=/bin/chown; fi
    if [ -z "$CHOWNH" ]; then CHOWNH="/bin/chown -h"; fi
    if [ -z "$CHGRP" ]; then CHGRP=/bin/chgrp; fi
    if [ -z "$CHMOD" ]; then CHMOD=/bin/chmod; fi
    if [ -z "$ECHO" ]; then ECHO=/bin/echo; fi
    if [ -z "$LS" ]; then LS=/bin/ls; fi
    if [ -z "$KILL" ]; then KILL=/bin/kill; fi
    if [ -z "$SLEEP" ]; then SLEEP=/bin/sleep; fi
    if [ -z "$LN" ]; then LN=/bin/ln; fi
    if [ -z "$LNS" ]; then LNS="/bin/ln -s"; fi
    if [ -z "$RM" ]; then RM=/bin/rm; fi
    if [ -z "$RMF" ]; then RMF="$RM -f"; fi
    if [ -z "$CAT" ]; then CAT=/bin/cat; fi
    if [ -z "$MKDIR" ]; then MKDIR="/bin/mkdir "; fi
    if [ -z "$MKDIRP" ]; then MKDIRP="/bin/mkdir -p"; fi
    if [ -z "$GREP" ]; then GREP=/bin/grep; fi
    if [ -z "$CAT" ]; then CAT=/bin/cat; fi
    if [ -z "$TOUCH" ]; then TOUCH=/bin/touch; fi
    if [ -z "$AWK" ]; then AWK=/bin/awk; fi
    if [ -z "$SYNC" ]; then SYNC=/bin/sync; fi
    if [ -z "$ID" ]; then ID=/usr/bin/id; fi
    if [ -z "$HOSTN" ]; then HOSTN=/bin/hostname; fi
    if [ -z "$EXPRN" ]; then EXPRN=/usr/bin/expr; fi
    if [ -z "$CUT" ]; then CUT=/usr/bin/cut; fi
    if [ -z "$ISAINFOB" ]; then ISAINFOB="/usr/bin/isainfo -b"; fi
    if [ -z "$TR" ]; then TR=/bin/tr;fi
    #solaris on amd and SPARC has issue with /bin/tr
    [ 'SunOS' = `/bin/uname` ] && TR=/usr/xpg4/bin/tr
    #on linux tr is at /usr/bin/tr
    [ 'Linux' = `/bin/uname` ] && TR=/usr/bin/tr
    ###Function for displaying usage of this script
    usage()
    printf "Usage:"
    printf "$0 [-silent]\n"
    printf " [-crshome <Oracle CRS home path>]\n"
    printf " [-paramfile <Path of file specifying CRS parameter values>]\n"
    ##Function for parsing the command line arguments
    parseArgs()
    USER_ARGS=$*
    while [ $# -gt 0 ];
    do
    if [ $1 = "-silent" ]; then
    SILENT=1;
    elif [ $1 = "-paramfile" ]; then
    USE_FILE=true
    if [ $# -ge 2 ]; then
    CRS_ENV_FILE=$2;
    shift;
    else
    usage;
    exit 2
    fi
    elif [ $1 = "-crshome" ]; then
    if [ $# -ge 2 ]; then
    ORA_CRS_HOME=$2;
    shift;
    else
    usage;
    exit 2;
    fi
    else
    usage;
    exit 2
    fi
    shift;
    done
    ##Function for reading CRS parameters from the given param file
    readparamfile()
    $ECHO "Reading $CRS_ENV_FILE.."
    ## Make sure that this input file has only "LHS=RHS" and empty lines
    ## Any other lines will be considered improper input for root script
    awkOutput=`$AWK 'BEGIN { Ni=0 } \
    /^#/ { next } \
    /[A-Z]\=\`*\`/ { printf("\"%s\"\n", $0); next } \
    /[A-Z_]\=/ { next } \
    /^$/ { next } \
    { printf("\"%s\"\n", $0); next }' $CRS_ENV_FILE`
    if [ "x$awkOutput" != "x" ]; then
    $ECHO "The following unexpected input found in CRS parameter file: $awkOutput"
    exit 1
    fi
    . $CRS_ENV_FILE
    $ECHO "File ($CRS_ENV_FILE) is used for setting CRS variables."
    $ECHO "CRS_ORACLE_OWNER=$CRS_ORACLE_OWNER"
    $ECHO "CRS_DBA_GROUP=$CRS_DBA_GROUP"
    $ECHO "CRS_VNDR_CLUSTER=$CRS_VNDR_CLUSTER"
    $ECHO "CRS_OCR_LOCATIONS=$CRS_OCR_LOCATIONS"
    $ECHO "CRS_CLUSTER_NAME=$CRS_CLUSTER_NAME"
    $ECHO "CRS_HOST_NAME_LIST=$CRS_HOST_NAME_LIST"
    $ECHO "CRS_NODE_NAME_LIST=$CRS_NODE_NAME_LIST"
    $ECHO "CRS_PRIVATE_NAME_LIST=$CRS_PRIVATE_NAME_LIST"
    $ECHO "CRS_LANGUAGE_ID=$CRS_LANGUAGE_ID"
    $ECHO "CRS_VOTING_DISKS=$CRS_VOTING_DISKS"
    $ECHO "CRS_NODELIST=$CRS_NODELIST"
    $ECHO "CRS_NODEVIPS=$CRS_NODEVIPS"
    validateInput()
    ##validates if any value is assigned to the script variables
    for i in `echo $CRS_PARAMS`;
    do
    PARAM_NAME=$i
    PARAM_VALUE=`eval echo \\$$i`
    valid=`$ECHO $PARAM_VALUE | $AWK '/^%/ { print "false"; }'`
    if [ "$valid" = "false" ];
    then
    $ECHO "No value set for the CRS parameter $PARAM_NAME. Use parameter file to set values";
    usage;
    return 1;
    elif [ -z "$PARAM_VALUE" ]; then
    echo "No value set for the CRS parameter $PARAM_NAME. Using Values in paramfile.crs";
    . $CH/install/paramfile.crs
    return 0;
    fi
    done
    return 0;
    validateVDisks()
    #Checks for validity of voting disks
    vDisks=`$ECHO $1 | $AWK -F',' '{ for(n=1;n<=NF;n++) print $n; }'`;
    set `$ECHO $vDisks`;
    ret=0;
    while [ $# -gt 0 ];
    do
    vdisk=$1;
    if [ ! -r $vdisk ]; then
    $ECHO "\"$vdisk\" does not exist. Create it before proceeding."
    $ECHO "Make sure that this file is shared across cluster nodes."
    ret=1
    else
    $CHOWN $CRS_ORACLE_OWNER $vdisk || { $ECHO $?; exit 1; }
    $CHGRP $CRS_DBA_GROUP $vdisk || { $ECHO $?; exit 1; }
    $CHMOD 640 $vdisk || { $ECHO $?; exit 1; }
    fi;
    shift;
    done;
    return $ret;
    validateOCRDisks()
    if [ -f $OCR_SYNC_FILE ]; then
    ##Checking the OCR locations used by existing nodes in the cluster
    NEW_OCR_FILE=`$AWK -F= '/ocrconfig_loc/ {print $2}' < $OCR_SYNC_FILE`
    NEW_OCRMIRROR_FILE=`$AWK -F= '/ocrmirrorconfig_loc/ {print $2}' < $OCR_SYNC_FILE`
    CRS_OCR_LOCATIONS=$NEW_OCR_FILE
    if [ ! -z "$NEW_OCRMIRROR_FILE" ];
    then
    CRS_OCR_LOCATIONS=$CRS_OCR_LOCATIONS,$NEW_OCRMIRROR_FILE
    fi
    $ECHO "OCR LOCATIONS = " $CRS_OCR_LOCATIONS
    else
    ##Syncing of OCR disks is not required
    $ECHO ""
    fi
    return 0;
    validateSICSS()
    SICSS=false;
    if [ -f "$OCRCONFIG" ]; then
    # ocr.loc file exists and ocr location set here is
    OCRCONFIG_LOC=`$AWK -F= '/ocrconfig_loc/ {print $2}' < $OCRCONFIG`
    # ocr.loc already has a location specified. Check if it is used for
    # single instance CSS/ASM
    LOCAL_FLAG=`$AWK -F= '/local_only/ {print $2}' < $OCRCONFIG`
    LOCAL_ONLY=`$ECHO $LOCAL_FLAG | $AWK '/[fF][aA][lL][sS][eE]/ { print "FALSE" }
    /[tT][rR][uU][eE]/ { print "TRUE" }'`
    # Previous installation of 10g single instance
    if [ "$LOCAL_ONLY" = "TRUE" ];then
    SICSS=true;
    fi
    fi
    ret=0;
    if $SICSS;
    then
    $ECHO "CSS is configured for single instance Oracle databases. Delete this configuration using the command 'localconfig delete' before proceeding with RAC configuration."
    ret=1;
    fi
    return $ret;
    NSSetup()
    $ECHO "Setting up NS directories"
    if [ ! -d /var/tmp/.oracle ];
    then
    $MKDIRP /var/tmp/.oracle || { return 1; };
    fi
    $CHMOD 01777 /var/tmp/.oracle || { return 1; }
    $CHOWN root /var/tmp/.oracle || { return 1; }
    if [ ! -d /tmp/.oracle ];
    then
    $MKDIRP /tmp/.oracle || { return 1; }
    fi
    $CHMOD 01777 /tmp/.oracle || { return 1; }
    $CHOWN root /tmp/.oracle || { return 1; }
    return 0;
    还有一部分请见一楼信息

    接原文继续描述
    # This script is intended to be run by root.
    RUID=`$ID|$AWK -F\( '{print $2}'|$AWK -F\) '{print $1}'`
    if [ ${RUID} != "root" ];then
    $ECHO "You must be logged in as root to run $0."
    $ECHO "Log in as root and restart $0 execution."
    exit 1
    fi
    #If the hostname is an IP address, let hostname
    #remain as IP address
    HOST=`$HOSTN`
    len1=`$EXPRN "$HOST" : '.*'`
    len2=`$EXPRN match $HOST '[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*'`
    # Strip off domain name in case /bin/hostname returns
    # FQDN hostname
    if [ $len1 != $len2 ]; then
    HOST=`$ECHO $HOST | cut -d'.' -f1`
    fi
    HOST=`$ECHO $HOST | $TR '[:upper:]' '[:lower:]'`
    # File that $LOGMSG in init.cssd (and other places) will write
    MSGFILE=/var/adm/messages
    DISABLE_OPROCD=false;
    USE_FILE=false
    ##Parse command line arguments passed to this script
    parseArgs $*
    if $USE_FILE;
    then
    if [ ! -f "$CRS_ENV_FILE" ]; then
    $ECHO "The input file($CRS_ENV_FILE) specifying the parameter values for CRS variables is not found"
    exit 1
    fi
    ###Read CRS parameter values from param file
    readparamfile
    fi
    ORACLE_HOME=$ORA_CRS_HOME
    export ORA_CRS_HOME
    export ORACLE_HOME
    CH=$ORA_CRS_HOME
    OCR_SYNC_FILE=$CH/srvm/admin/ocr.loc
    ##validating the parameter values
    validateInput || { $ECHO $?; exit 1; }
    CRSCTL=$CH/bin/crsctl
    #make sure Voting disks exists
    validateVDisks $CRS_VOTING_DISKS || { $ECHO $?; exit 1; }
    # Definitions to Add/Remove inittab entries
    ADDITAB="$CAT \$IT | $GREP -v init.evmd | $GREP -v init.cssd | $GREP -v init.crsd > \$IT.no_crs || { $ECHO $?; exit 1; } ; \
         $CAT \$IT.no_crs $CH/crs/admin/inittab > \$IT.tmp || { $ECHO $?; exit 1; }; \
    $CP \$IT.tmp \$IT.crs || { $ECHO $?; exit 1; }; \
    \$SYNC ; \$SYNC ; \$SYNC ; \
    $MV \$IT.tmp \$IT || { $ECHO $?; exit 1; };\
    \$SYNC ; \$SYNC ; \$SYNC "
    RMITAB="$CAT \$IT | $GREP -v init.evmd | $GREP -v init.cssd | $GREP -v init.crsd > \$IT.tmp || { $ECHO $?; exit 1; } ; \
    $CP \$IT.tmp \$IT.no_crs || { $ECHO $?; exit 1; }; \
    \$SYNC ; \$SYNC ; \$SYNC ; \
    $MV \$IT.tmp \$IT || { $ECHO $?; exit 1; }; \
    \$SYNC ; \$SYNC ; \$SYNC "
    CLSCFG_MISCNT=""
    UNAME=/bin/uname
    PLATFORM=`$UNAME`
    case $PLATFORM in
    Linux) LD_LIBRARY_PATH=$ORA_CRS_HOME/lib
    export LD_LIBRARY_PATH
    SO_EXT=so
    DIRNAME=/usr/bin/dirname
    ID=/etc/init.d
    RCSDIR="/etc/rc.d/rc3.d /etc/rc.d/rc5.d"
    RCKDIR="/etc/rc.d/rc0.d /etc/rc.d/rc1.d /etc/rc.d/rc2.d /etc/rc.d/rc4.d /etc/rc.d/rc6.d"
    RC_START=S96
    RC_KILL=K96
    IT=/etc/inittab
    INIT=/sbin/init
    OCRCONFIGDIR=/etc/oracle
    SRVCONFIG=/var/opt/oracle/srvConfig.loc
    OCRCONFIG=/etc/oracle/ocr.loc
    OPROCDDIR=/etc/oracle/oprocd
    SCRBASE=/etc/oracle/scls_scr
    CLSCFG_MISCNT="-misscount 60"
    HP-UX) MACH_HARDWARE=`/bin/uname -m`
    if [ "$MACH_HARDWARE" = "ia64" ]; then
    SO_EXT=so
    NMAPIDIR_64=/opt/nmapi/nmapi2/lib/hpux64
    NMAPIDIR_32=/opt/nmapi/nmapi2/lib/hpux32
    else
    SO_EXT=sl
    NMAPIDIR_64=/opt/nmapi/nmapi2/lib/pa20_64
    NMAPIDIR_32=/opt/nmapi/nmapi2/lib
    fi
    LD_LIBRARY_PATH=$ORA_CRS_HOME/lib:$NMAPIDIR_64:/usr/lib:$LD_LIBRARY_PATH
    SHLIB_PATH=$ORA_CRS_HOME/lib32:$NMAPIDIR_32:$SHLIB_PATH
    export LD_LIBRARY_PATH
    export SHLIB_PATH
    DIRNAME=/bin/dirname
    ID=/sbin/init.d
    RCSDIR="/sbin/rc3.d"
    RCKDIR="/sbin/rc2.d"
    RC_START=S960
    RC_KILL=K001
    IT=/etc/inittab
    INIT=/sbin/init
    if [ ! -f $ORA_CRS_HOME/lib/libskgxns.${SO_EXT} ]; then
    $MV $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT} $ORA_CRS_HOME/lib/libskgxns.${SO_EXT}
    fi
    if [ ! -f $ORA_CRS_HOME/lib32/libskgxns.${SO_EXT} ]; then
    $MV $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT} $ORA_CRS_HOME/lib32/libskgxns.${SO_EXT}
    fi
    if [ -f ${NMAPIDIR_64}/libnmapi2.${SO_EXT} ]; then
    $LN -sf ${NMAPIDIR_64}/libnmapi2.${SO_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
    $LN -sf ${NMAPIDIR_32}/libnmapi2.${SO_EXT} $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT}
    else
    $LN -sf $ORA_CRS_HOME/lib/libskgxns.${SO_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
    $LN -sf $ORA_CRS_HOME/lib32/libskgxns.${SO_EXT} $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT}
    fi
    $CHOWNH $CRS_ORACLE_OWNER $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
    $CHOWNH $CRS_ORACLE_OWNER $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT}
    OCRCONFIGDIR=/var/opt/oracle
    SRVCONFIG=/var/opt/oracle/srvConfig.loc
    OCRCONFIG=/var/opt/oracle/ocr.loc
    OPROCDDIR=/var/opt/oracle/oprocd
    SCRBASE=/var/opt/oracle/scls_scr
    SunOS) MACH_HARDWARE=`/bin/uname -i`
    ARCH=""
    case $MACH_HARDWARE in
    i86pc)
    CLUSTERDIR=/opt/ORCLcluster
    LD_LIBRARY_PATH=$ORA_CRS_HOME/lib:$CLUSTERDIR/lib:/usr/lib:/usr/ucblib:$LD_LIBRARY_PATH
    export LD_LIBRARY_PATH
    ARCH=`$ISAINFOB`
    if [ ! -d $ORA_CRS_HOME/lib32 ]; then
    if [ "$ARCH" = "32" ];then
    NO_SUNCLUSTER=true
    fi
    ARCH=32
    fi
    CLUSTERDIR=/opt/ORCLcluster
    LD_LIBRARY_PATH=$ORA_CRS_HOME/lib32:$CLUSTERDIR/lib:/usr/lib:/usr/ucblib:$LD_LIBRARY_PATH
    LD_LIBRARY_PATH_64=$ORA_CRS_HOME/lib:$CLUSTERDIR/lib:/usr/lib:/usr/ucblib:$LD_LIBRARY_PATH_64
    export LD_LIBRARY_PATH
    export LD_LIBRARY_PATH_64
    esac
    SO_EXT=so
    DIRNAME=/bin/dirname
    ID=/etc/init.d
    RCSDIR="/etc/rc3.d"
    RCKDIR="/etc/rc0.d /etc/rc1.d /etc/rc2.d /etc/rcS.d"
    RC_START=S96
    RC_KILL=K96
    IT=/etc/inittab
    INIT=/sbin/init
    if [ "${MACH_HARDWARE}${ARCH}" != "i86pc32" ]; then
    if [ ! -f $ORA_CRS_HOME/lib/libskgxns.${SO_EXT} ]; then
    $MV $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT} $ORA_CRS_HOME/lib/libskgxns.${SO_EXT}
    fi
    if [ ! -f $ORA_CRS_HOME/lib32/libskgxns.${SO_EXT} ]; then
    $MV $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT} $ORA_CRS_HOME/lib32/libskgxns.${SO_EXT}
    fi
    # Bug 4624810 : libskgxn2 will be linked anyway. Remove them, to avoid stale link issue
    # This issue happens only in solaris. ln -sf works in HP and AIX properly.
    $RM -f $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT} 2>/dev/null
    $RM -f $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT} 2>/dev/null
    if [ -f $CLUSTERDIR/lib/libskgxn2.${SO_EXT} ]; then
    $LN -sf $CLUSTERDIR/lib/libskgxn2.${SO_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
    $LN -sf $ORA_CRS_HOME/lib32/libskgxns.${SO_EXT} $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT}
    else
    $LN -sf $ORA_CRS_HOME/lib/libskgxns.${SO_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
    $LN -sf $ORA_CRS_HOME/lib32/libskgxns.${SO_EXT} $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT}
    fi
    $CHOWNH $CRS_ORACLE_OWNER $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
    $CHOWNH $CRS_ORACLE_OWNER $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT}
    else
    if [ ! -f $ORA_CRS_HOME/lib/libskgxns.${SO_EXT} ]; then
    $MV $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT} $ORA_CRS_HOME/lib/libskgxns.${SO_EXT}
    fi
    $RM -f $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT} 2>/dev/null
    if [ "$NO_SUNCLUSTER" != "true" ] ; then
    if [ -f $CLUSTERDIR/lib32/libskgxn2.${SO_EXT} ]; then
    $LN -sf $CLUSTERDIR/lib32/libskgxn2.${SO_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
    else
    $LN -sf $ORA_CRS_HOME/lib/libskgxns.${SO_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
    fi
    else
    $LN -sf $ORA_CRS_HOME/lib/libskgxns.${SO_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
    fi
    $CHOWNH $CRS_ORACLE_OWNER $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
    fi
    OCRCONFIGDIR=/var/opt/oracle
    SRVCONFIG=/var/opt/oracle/srvConfig.loc
    OCRCONFIG=/var/opt/oracle/ocr.loc
    OPROCDDIR=/var/opt/oracle/oprocd
    SCRBASE=/var/opt/oracle/scls_scr
    AIX) CLUSTERDIR=/opt/ORCLcluster
    LIBPATH=$ORA_CRS_HOME/lib:$CLUSTERDIR/lib:$ORA_CRS_HOME/lib32:$CLUSTERDIR/lib32:/usr/lib:$LIBPATH
    LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH
    export LIBPATH
    export LD_LIBRARY_PATH
    SO_EXT=so
    SO_AR_EXT=a
    DIRNAME=/bin/dirname
    ID=/etc
    RCSDIR="/etc/rc.d/rc2.d"
    RCKDIR="/etc/rc.d/rc2.d"
    RC_START=S96
    RC_KILL=K96
    IT=/etc/inittab
    INIT=/usr/sbin/init
    ADDITAB="$ECHO \"Adding daemons to inittab\";
    while read line; \
    do \
    rflds=\`echo \$line | $CUT -d ':' -f 1-3\`; \
    lfld=\`echo \$line | $CUT -d ':' -f 4-\`; \
    mkitab \$rflds:\"\$lfld\"; \
    done < $CH/crs/admin/inittab"
    RMITAB="while read line; \
    do \
    identifier=\`echo \$line | $CUT -d ':' -f 1\`; \
    rmitab \$identifier 2>/dev/null; \
    done < $CH/crs/admin/inittab"
    if [ ! -f $ORA_CRS_HOME/lib/libskgxns.${SO_AR_EXT} ]; then
    $MV $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT} $ORA_CRS_HOME/lib/libskgxns.${SO_EXT}
    $MV $ORA_CRS_HOME/lib/libskgxn2.${SO_AR_EXT} $ORA_CRS_HOME/lib/libskgxns.${SO_AR_EXT}
    fi
    if [ ! -f $ORA_CRS_HOME/lib32/libskgxns.${SO_AR_EXT} ]; then
    $MV $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT} $ORA_CRS_HOME/lib32/libskgxns.${SO_EXT}
    $MV $ORA_CRS_HOME/lib32/libskgxn2.${SO_AR_EXT} $ORA_CRS_HOME/lib32/libskgxns.${SO_AR_EXT}
    fi
    if [ -f ${CLUSTERDIR}/lib/libskgxn2.${SO_AR_EXT} ]; then
    $LN -sf ${CLUSTERDIR}/lib/libskgxn2.${SO_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
    $LN -sf ${CLUSTERDIR}/lib/libskgxn2.${SO_AR_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_AR_EXT}
    $LN -sf ${CLUSTERDIR}/lib32/libskgxn2.${SO_EXT} $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT}
    $LN -sf ${CLUSTERDIR}/lib32/libskgxn2.${SO_AR_EXT} $ORA_CRS_HOME/lib32/libskgxn2.${SO_AR_EXT}
    else
    $LN -sf $ORA_CRS_HOME/lib/libskgxns.${SO_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
    $LN -sf $ORA_CRS_HOME/lib/libskgxns.${SO_AR_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_AR_EXT}
    $LN -sf $ORA_CRS_HOME/lib32/libskgxns.${SO_EXT} $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT}
    $LN -sf $ORA_CRS_HOME/lib32/libskgxns.${SO_AR_EXT} $ORA_CRS_HOME/lib32/libskgxn2.${SO_AR_EXT}
    fi
    $CHOWNH $CRS_ORACLE_OWNER $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
    $CHOWNH $CRS_ORACLE_OWNER $ORA_CRS_HOME/lib/libskgxn2.${SO_AR_EXT}
    $CHOWNH $CRS_ORACLE_OWNER $ORA_CRS_HOME/lib32/libskgxn2.${SO_EXT}
    $CHOWNH $CRS_ORACLE_OWNER $ORA_CRS_HOME/lib32/libskgxn2.${SO_AR_EXT}
    OCRCONFIGDIR=/etc/oracle
    SRVCONFIG=/var/opt/oracle/srvConfig.loc
    OCRCONFIG=/etc/oracle/ocr.loc
    OPROCDDIR=/etc/oracle/oprocd
    SCRBASE=/etc/oracle/scls_scr
    OSF1) LD_LIBRARY_PATH=$ORA_CRS_HOME/lib:/shlib:/usr/lib
    export LD_LIBRARY_PATH
    SO_EXT=so
    DIRNAME=/usr/bin/dirname
    ID="/sbin/init.d"
    RCSDIR="/sbin/rc3.d"
    RCKDIR="/sbin/rc3.d"
    RC_START=S96
    RC_KILL=K96
    IT=/etc/inittab
    INIT=/sbin/init
    if [ ! -f $ORA_CRS_HOME/lib/libskgxns.${SO_EXT} ]; then
    $MV $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT} $ORA_CRS_HOME/lib/libskgxns.${SO_EXT}
    fi
    if [ -f /shlib/libdlm.${SO_EXT} ]; then
    $LN -sf /$ORA_CRS_HOME/lib/libskgxnr.${SO_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
    else
    $LN -sf $ORA_CRS_HOME/lib/libskgxns.${SO_EXT} $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
    fi
    $CHOWNH $CRS_ORACLE_OWNER $ORA_CRS_HOME/lib/libskgxn2.${SO_EXT}
    OCRCONFIGDIR=/var/opt/oracle
    SRVCONFIG=/var/opt/oracle/srvConfig.loc
    OCRCONFIG=/var/opt/oracle/ocr.loc
    OPROCDDIR=/var/opt/oracle/oprocd
    SCRBASE=/var/opt/oracle/scls_scr
    DISABLE_OPROCD=true;
    *) /bin/echo "ERROR: Unknown Operating System"
    exit -1
    esac
    # Create CDSL for $IT files in Tru64
    if [ ${PLATFORM} = "OSF1" ]; then
    for file in $IT $IT.crs $IT.no_crs $IT.cssd $IT.no_cssd $IT.tmp $IT.orig \
    $IT.prepatch $IT.nocrspatch
    do
    if [ ! -L $file ]; then
    if [ -e $file ]; then
    /usr/sbin/mkcdsl -fa $file
    else
    /usr/sbin/mkcdsl -f $file
    fi
    fi
    done
    fi
    SCRDIR=$SCRBASE/$HOST
    FATALFILE=$SCRDIR/$CRS_ORACLE_OWNER/cssfatal
    OCR_CDATA_DIR=$ORA_CRS_HOME/cdata
    OCR_BACKUP_DIR=$ORA_CRS_HOME/cdata/$CRS_CLUSTER_NAME
    LOGDIR=$ORA_CRS_HOME/log/$HOST
    CRS_LOGDIR=$ORA_CRS_HOME/log/$HOST/crsd
    EVM_LOGDIR=$ORA_CRS_HOME/log/$HOST/evmd
    CSS_LOGDIR=$ORA_CRS_HOME/log/$HOST/cssd
    CLSMON_LOGDIR=$ORA_CRS_HOME/log/$HOST/cssd/oclsmon
    OCR_LOGDIR=$ORA_CRS_HOME/log/$HOST/client
    RES_LOGDIR=$ORA_CRS_HOME/log/$HOST/racg
    RES_COREDIR1=$RES_LOGDIR/racgmain
    RES_COREDIR2=$RES_LOGDIR/racgeut
    RES_COREDIR3=$RES_LOGDIR/racgevtf
    ADMIN_LOGDIR=$ORA_CRS_HOME/log/$HOST/admin
    # some directories for OPROCD to store the domain
    # sockets we use for client communication
    OPROCDCHECKDIR=$OPROCDDIR/check
    OPROCDSTOPDIR=$OPROCDDIR/stop
    OPROCDFATALDIR=$OPROCDDIR/fatal
    ###Validate if single instance CSS is configured
    validateSICSS || { $ECHO $?; exit 1; }
    ##Checking if CRS has already been configured
    $ECHO "Checking to see if Oracle CRS stack is already configured"
    if [ -f $FATALFILE ] && [ -f $OCRCONFIG ];
    then
    $ECHO "Oracle CRS stack is already configured and will be running under init(1M)"
    exit 0
    fi
    LSDB=$ORA_CRS_HOME/bin/lsdb
    # bug 4873212 : oracm is considered as non-vendor. Check it's existence in IA64
    if [ "$CRS_VNDR_CLUSTER" != "true" ] ;
    then
    if [ "$PLATFORM" = "Linux" ];
    then
    $ORA_CRS_HOME/bin/lsnodes > /dev/null 2>&1
    if [ "$?" = "0" ]; then
    CRS_VNDR_CLUSTER=true;
    fi
    fi
    fi
    if $CRS_VNDR_CLUSTER;
    then
    $ECHO "Checking to see if any 9i GSD is up"
    GSDNODE=`$LSDB -g`
    GSDCHK_STATUS=$?
    if [ $GSDCHK_STATUS != 0 ];then
    $ECHO "9i GSD is running on node '$GSDNODE'. Stop the GSD and rerun root.sh"
    exit 1
    fi
    fi
    if [ ! -d "$OCRCONFIGDIR" ];then
    $ECHO "$OCRCONFIGDIR does not exist. Creating it now."
    $MKDIRP $OCRCONFIGDIR || { $ECHO $?; exit 1; }
    fi
    $CHOWN root $OCRCONFIGDIR || { $ECHO $?; exit 1; }
    $CHGRP $CRS_DBA_GROUP $OCRCONFIGDIR || { $ECHO $?; exit 1; }
    $CHMOD 755 $OCRCONFIGDIR || { $ECHO $?; exit 1; }
    # create a number of subdirectories for use by OPROCD
    # These should be owned by root and only allow for
    # root and group access hence the 770 permissions
    if [ "$DISABLE_OPROCD" = "false" ]
    then
    if [ ! -d "$OPROCDDIR" ]; then
    $MKDIRP $OPROCDDIR || { $ECHO $?; exit 1; }
    $MKDIRP $OPROCDCHECKDIR || { $ECHO $?; exit 1; }
    $MKDIRP $OPROCDSTOPDIR || { $ECHO $?; exit 1; }
    $MKDIRP $OPROCDFATALDIR || { $ECHO $?; exit 1; }
    $CHOWN root $OPROCDDIR || { $ECHO $?; exit 1; }
    $CHOWN root $OPROCDCHECKDIR || { $ECHO $?; exit 1; }
    $CHOWN root $OPROCDSTOPDIR || { $ECHO $?; exit 1; }
    $CHOWN root $OPROCDFATALDIR || { $ECHO $?; exit 1; }
    $CHMOD 775 $OPROCDDIR || { $ECHO $?; exit 1; }
    $CHMOD 770 $OPROCDCHECKDIR || { $ECHO $?; exit 1; }
    $CHMOD 770 $OPROCDSTOPDIR || { $ECHO $?; exit 1; }
    $CHMOD 770 $OPROCDFATALDIR || { $ECHO $?; exit 1; }
    fi
    fi # End "DISABLE_OPROCD=false"
    ## Copy reboot_toc to /var/opt/oracle/bin for HPUX
    ## Copy opriproc to /etc/oracle/bin for AIX
    case $PLATFORM in
    HP-UX)
    $ECHO "Copying reboot_toc to /var/opt/oracle/bin for HPUX"
    REBOOT_TOC_DIR=/var/opt/oracle/bin
    REBOOT_TOC_FILE=reboot_toc
    if [ ! -d  $REBOOT_TOC_DIR ]; then
    $MKDIRP $REBOOT_TOC_DIR
    fi
    if [ -f  $REBOOT_TOC_DIR/$REBOOT_TOC_FILE ]; then
    $CHMOD 644 $REBOOT_TOC_DIR/$REBOOT_TOC_FILE
    fi
    $CP $CH/bin/$REBOOT_TOC_FILE $REBOOT_TOC_DIR/$REBOOT_TOC_FILE
    $CHOWN root $REBOOT_TOC_DIR
    $CHMOD 555 $REBOOT_TOC_DIR/$REBOOT_TOC_FILE
    AIX)
    $ECHO "Copying opriproc to /etc/oracle/bin for AIX"
    OPRIPROC_DIR=/etc/oracle/bin
    OPRIPROC_FILE=opriproc
    if [ ! -d $OPRIPROC_DIR ]; then
    $MKDIRP $OPRIPROC_DIR
    fi
    # Reset permission to overwrite
    if [ -f  $OPRIPROC_DIR/$OPRIPROC_FILE ]; then
    $CHMOD 644 $OPRIPROC_DIR/$OPRIPROC_FILE
    fi
    # Copy from CRSHOME and set the permission
    $CP $CH/bin/$OPRIPROC_FILE $OPRIPROC_DIR/$OPRIPROC_FILE
    $CHOWN root $OPRIPROC_DIR
    $CHMOD 555 $OPRIPROC_DIR/$OPRIPROC_FILE
    $CHMOD 500 $OPRIPROC_DIR
    esac
    # Create SCR Home dir, owned by root 755
    $MKDIRP $SCRDIR || { $ECHO $?; exit 1; }
    $CHOWN root $SCRBASE || { $ECHO $?; exit 1; }
    $CHOWN root $SCRDIR || { $ECHO $?; exit 1; }
    $CHMOD 755 $SCRBASE || { $ECHO $?; exit 1; }
    $CHMOD 755 $SCRDIR || { $ECHO $?; exit 1; }
    $CHMOD 644 $IT $IT.orig $IT.no_cssd $IT.cssd $IT.crs $IT.no_crs 2>/dev/null
    # Create CRS log directories
    for d in $LOGDIR $CRS_LOGDIR $EVM_LOGDIR $CSS_LOGDIR $OCR_LOGDIR $RES_LOGDIR $ADMIN_LOGDIR $RES_COREDIR1 $RES_COREDIR2 $RES_COREDIR3 $CLSMON_LOGDIR
    do
    $MKDIRP $d || { $ECHO $?; exit 1; }
    done
    for d in $LOGDIR $CRS_LOGDIR
    do
    $CHOWN root $d || { $ECHO $?; exit 1; }
    $CHGRP $CRS_DBA_GROUP $d || { $ECHO $?; exit 1; }
    done
    for d in $EVM_LOGDIR $CSS_LOGDIR $OCR_LOGDIR $RES_LOGDIR $ADMIN_LOGDIR $RES_COREDIR1 $RES_COREDIR2 $RES_COREDIR3 $CLSMON_LOGDIR
    do
    $CHOWN $CRS_ORACLE_OWNER $d || { $ECHO $?; exit 1; }
    $CHGRP $CRS_DBA_GROUP $d || { $ECHO $?; exit 1; }
    done
    $CHMOD 1755 $LOGDIR || { $ECHO $?; exit 1; }
    $CHMOD 1775 $RES_LOGDIR || { $ECHO $?; exit 1; }
    $CHMOD 1777 $RES_COREDIR1 || { $ECHO $?; exit 1; }
    $CHMOD 1777 $RES_COREDIR2 || { $ECHO $?; exit 1; }
    $CHMOD 1777 $RES_COREDIR3 || { $ECHO $?; exit 1; }
    for d in $CRS_LOGDIR $EVM_LOGDIR $CSS_LOGDIR $OCR_LOGDIR $ADMIN_LOGDIR
    do
    $CHMOD 750 $d || { $ECHO $?; exit 1; }
    done
    #create EVM auth dir
    $MKDIRP $CH/evm/auth
    $CHOWN $CRS_ORACLE_OWNER $CH/evm/auth
    $CHMOD 1755 $CH/evm/auth
    # Create an empty alert log file
    ALERTFILE=$LOGDIR/alert$HOST.log
    $TOUCH $ALERTFILE
    $CHMOD 664 $ALERTFILE
    $CHGRP $CRS_DBA_GROUP $ALERTFILE
    $CHOWN root $ALERTFILE
    ##Checking the repository location used by 9.x installations
    SRVCONFIG_LOC=""
    if [ -f "$SRVCONFIG" ]; then
    # srvConfig.loc file exists and repository location is
    SRVCONFIG_LOC=`$AWK -F= '/srvconfig_loc/ {print $2}' < $SRVCONFIG`
    if [ "$SRVCONFIG_LOC" = "/dev/null" ]; then
    # 9.x srvconfig_loc is already invalidated. So ignore it
    # take the location entered by user to polulate ocr.loc
    SRVCONFIG_LOC=""
    fi
    fi
    ##Checking the OCR locations used by 10gR1 or previous 10gR2 installations
    OCRCONFIG_LOC=""
    OCRMIRRORCONFIG_LOC=""
    if [ -f "$OCRCONFIG" ]; then
    # ocr.loc file exists and ocr location set here is
    OCRCONFIG_LOC=`$AWK -F= '/ocrconfig_loc/ {print $2}' < $OCRCONFIG`
    OCRMIRRORCONFIG_LOC=`$AWK -F= '/ocrmirrorconfig_loc/ {print $2}' < $OCRCONFIG`
    fi
    ##If the ocrconfig_loc property is not set in ocr.loc then
    ##we will check if srvconfig_loc property is set in srvConfig.loc file.
    ##if set the we set ocrconfig_loc = srvconfig_loc
    OCRFILE=$OCRCONFIG
    if [ -z "$OCRCONFIG_LOC" ];
    then
    ##ocrconfig_loc is empty
    ##Lets set this value to srvconfig_loc from 9.x if exists
    if [ ! -z "$SRVCONFIG_LOC" ];
    then
    #set ocrconfig_loc = srvconfig_loc
    OCRCONFIG_LOC=$SRVCONFIG_LOC
    OCRFILE=$SRVCONFIG
    fi
    fi
    validateOCRDisks || { $ECHO $?; exit 1; }
    CRS_OCR_LOCATION=`$ECHO $CRS_OCR_LOCATIONS | awk -F',' '{print $1}'`
    CRS_OCR_MIRROR_LOCATION=`$ECHO $CRS_OCR_LOCATIONS | awk -F',' '{print $2}'`
    ####Verify current OCR settings with user entered values
    if [ ! -z "$OCRCONFIG_LOC" ];
    then
    if [ "$CRS_OCR_LOCATION" != "$OCRCONFIG_LOC" ];
    then
    $ECHO "Current Oracle Cluster Registry location '$OCRCONFIG_LOC' in '$OCRFILE' and '$CRS_OCR_LOCATION' does not match"
    $ECHO "Update either '$OCRFILE' to use '$CRS_OCR_LOCATION' or variable CRS_OCR_LOCATIONS in rootconfig.sh with '$OCRCONFIG_LOC' then rerun rootconfig.sh"
    exit 1
    fi
    else
    #set ocrconfig_loc = CRS_OCR_LOCATION
    OCRCONFIG_LOC=$CRS_OCR_LOCATION
    fi
    if [ ! -z "$OCRMIRRORCONFIG_LOC" ];
    then
    if [ "$CRS_OCR_MIRROR_LOCATION" != "$OCRMIRRORCONFIG_LOC" ];
    then
    $ECHO "Current Oracle Cluster Registry mirror location '$OCRMIRRORCONFIG_LOC' in '$OCRCONFIG' and '$CRS_OCR_MIRROR_LOCATION' does not match"
    $ECHO "Update either '$OCRCONFIG' to use '$CRS_OCR_MIRROR_LOCATION' or variable CRS_OCR_LOCATIONS in rootconfig.sh with '$OCRMIRRORCONFIG_LOC' then rerun rootconfig.sh"
    exit 1
    fi
    else
    #set the mirror location = user entered value for CRS_OCR_MIRRROR_LOCATION
    OCRMIRRORCONFIG_LOC=$CRS_OCR_MIRROR_LOCATION
    fi
    $ECHO ocrconfig_loc=$OCRCONFIG_LOC > $OCRCONFIG || { $ECHO $?; exit 1; }
    if [ ! -z "$OCRMIRRORCONFIG_LOC" ];
    then
    $ECHO ocrmirrorconfig_loc=$OCRMIRRORCONFIG_LOC >> $OCRCONFIG || { $ECHO $?; exit 1; }
    fi
    $ECHO local_only=FALSE >> $OCRCONFIG || { $ECHO $?; exit 1; }
    $CHOWN root $OCRCONFIG || { $ECHO $?; exit 1; }
    $CHGRP $CRS_DBA_GROUP $OCRCONFIG || { $ECHO $?; exit 1; }
    $CHMOD 644 $OCRCONFIG || { $ECHO $?; exit 1; }
    if [ -f $OCR_SYNC_FILE ]; then
    $RMF $OCR_SYNC_FILE
    fi
    # First Activate the Volume Groups containing Oracle Cluster Registry
    # and the Voting disk.
    $CH/css/admin/init.cssd activatevg
    ##if ocr file does not exist
    if [ ! -f "$OCRCONFIG_LOC" ];then
    $CP /dev/null $OCRCONFIG_LOC || { $ECHO $?; exit 1; }
    fi
    $CHOWN root $OCRCONFIG_LOC || { $ECHO $?; exit 1; }
    $CHGRP $CRS_DBA_GROUP $OCRCONFIG_LOC || { $ECHO $?; exit 1; }
    $CHMOD 640 $OCRCONFIG_LOC || { $ECHO $?; exit 1; }
    if [ ! -z "$OCRMIRRORCONFIG_LOC" ];
    then
    ##if ocr mirror file does not exist
    if [ ! -f "$OCRMIRRORCONFIG_LOC" ];then
    $CP /dev/null $OCRMIRRORCONFIG_LOC || { $ECHO $?; exit 1; }
    fi
    $CHOWN root $OCRMIRRORCONFIG_LOC || { $ECHO $?; exit 1; }
    $CHGRP $CRS_DBA_GROUP $OCRMIRRORCONFIG_LOC || { $ECHO $?; exit 1; }
    $CHMOD 640 $OCRMIRRORCONFIG_LOC || { $ECHO $?; exit 1; }
    fi
    if [ ! -d "$OCR_BACKUP_DIR" ];
    then
    $ECHO "OCR backup directory '$OCR_BACKUP_DIR' does not exist. Creating now"
    $MKDIRP $OCR_BACKUP_DIR
    fi
    $ECHO "Setting the permissions on OCR backup directory"
    $CHMOD 775 $OCR_CDATA_DIR || { $ECHO $?; exit 1; }
    $CHMOD 775 $OCR_BACKUP_DIR || { $ECHO $?; exit 1; }
    $CHOWN root $OCR_BACKUP_DIR || { $ECHO $?; exit 1; }
    $CHGRP $CRS_DBA_GROUP $OCR_BACKUP_DIR || { $ECHO $?; exit 1; }
    NSSetup || { $ECHO $?; exit 1; }
    # GSD should be down when this script is called.
    # 1. Calls ocrconfig -upgrade to upgrade Oracle Cluster Registry contents from 9.2 to 10i format.
    if $CH/bin/ocrconfig -upgrade $CRS_ORACLE_OWNER $CRS_DBA_GROUP;
    then
    $ECHO "Oracle Cluster Registry configuration upgraded successfully"
    else
    $ECHO "Failed to upgrade Oracle Cluster Registry configuration"
    exit 1
    fi
    ##Invalidate the existing srvConfig.loc file if it was existing
    if [ -f "$SRVCONFIG" ];then
    $ECHO srvconfig_loc=/dev/null > $SRVCONFIG || { $ECHO $?; exit 1; }
    $CHOWN root $SRVCONFIG || { $ECHO $?; exit 1; }
    $CHGRP $CRS_DBA_GROUP $SRVCONFIG || { $ECHO $?; exit 1; }
    $CHMOD 644 $SRVCONFIG || { $ECHO $?; exit 1; }
    fi
    # For all the files under bin, others should have only execute permission
    $CHMOD o=x $CH/bin/*
    # set ownership to root, but give execute permissions to all
    $CHOWN root $CH/bin/crs*
    $CHMOD 551 $CH/bin/crs*
    # only owner(root) should ever invoke crsd
    $CHMOD 741 $CH/bin/crsd
    if [ ! -d $CH/crs/init ]; then
    $MKDIRP $CH/crs/init
    fi
    for d in log racg/dump srvm/log
    do
    if [ ! -d $CH/$d ]; then
    $MKDIRP $CH/$d
    $CHOWN $CRS_ORACLE_OWNER $CH/$d
    $CHGRP $CRS_DBA_GROUP $CH/$d
    $CHMOD 775 $CH/$d
    fi
    done
    for d in . lib bin crs crs/init crs/profile crs/script crs/template crs/auth
    do
    $CHOWN root $CH/$d
    $CHMOD 755 $CH/$d
    done
    # These are writeable by all
    for d in crs/public
    do
    $CHOWN $CRS_ORACLE_OWNER $CH/$d
    $CHMOD 1777 $CH/$d
    done
    for d in evm evm/init
    do
    $CHMOD 750 $CH/$d
    done
    # Writable by the oinstall group but can only be deleted by the crshome owner
    $CHMOD 1770 $CH/evm/log
    $CHMOD 1750 $CH/crs/log
    $CHMOD 1750 $CH/crs/trace
    for d in css css/init css/log css/auth
    do
    $CHMOD 711 $CH/$d
    done
    # check directories above $CH are owned by root
    # If any are not owned by root, then it allows root escalation
    # by the owner of the directory.
    d=$CH
    while [ "$d" != "/" ]
    do
    d=`$DIRNAME $d`
    set -$- `$LS -ld $d`
    case $3 in
    root) ;;     # ok
    *)     $ECHO "WARNING: directory '$d' is not owned by root";;
    esac
    done
    # Initialize the SCR settings.
    $CRSCTL create scr $CRS_ORACLE_OWNER
    if [ "$?" != "0" ]; then
    $ECHO Failure initializing entries in $SCRDIR.
    exit 1
    fi
    # Initialize the Oracle Cluster Registry the first time we come through the script.
    # The invoker is required to run this script on the install node before the
    # other cluster nodes.
    CLSCFG_INIT=false
    # clscfg - Initialize the Oracle Cluster Registry for the cluster. Should be
    # done once per cluster install. Overwriting a configuration
    # while any CRS daemon is running can cause serious issues.
    HOSTNAMES_LIST=$CRS_HOST_NAME_LIST
    if [ -z "$HOSTNAMES_LIST" ]; then
    HOSTNAMES_ARGS=""
    else
    HOSTNAMES_ARGS="-hn $HOSTNAMES_LIST"
    fi
    $CH/bin/clscfg -install -nn $CRS_NODE_NAME_LIST -pn $CRS_PRIVATE_NAME_LIST \
    $HOSTNAMES_ARGS -o $CH -c $CRS_CLUSTER_NAME -l "$CRS_LANGUAGE_ID" -q $CRS_VOTING_DISKS \
    $CLSCFG_MISCNT
    case $? in
    0) CLSCFG_INIT=true;;
    105) $ECHO "Oracle Cluster Registry for cluster has already been initialized";;
    *) $ECHO "Failed to initialize Oracle Cluster Registry for cluster"; $ECHO $?; exit 1;;
    esac
    # basic copies first...
    $CP $CH/evm/admin/init.evmd $ID/init.evmd || { $ECHO $?; exit 1; }
    $CP $CH/css/admin/init.cssd $ID/init.cssd || { $ECHO $?; exit 1; }
    $CP $CH/crs/admin/init.crsd $ID/init.crsd || { $ECHO $?; exit 1; }
    $CP $CH/crs/admin/init.crs $ID/init.crs || { $ECHO $?; exit 1; }
    # Create .proxyserv directory
    case $PLATFORM in "Linux")
    ARCH=`uname -m`
    if [ $ARCH == "x86_64" ]; then
    if [ -d $ORACLE_HOME/.proxysrv ]; then
    $CHOWN -R $CRS_ORACLE_OWNER $ORACLE_HOME/.proxysrv
    $CHMOD 755 $ORACLE_HOME/.proxysrv
    else
    $MKDIR $ORACLE_HOME/.proxysrv
    $CHOWN -R $CRS_ORACLE_OWNER $ORACLE_HOME/.proxysrv
    $CHMOD 755 $ORACLE_HOME/.proxysrv
    fi
    fi
    esac
    for rc in $RCSDIR
    do
    $RMF $rc/"$RC_START"init.crs
    $LNS $ID/init.crs $rc/"$RC_START"init.crs || { $ECHO $?; exit 1; }
    done
    for rc in $RCKDIR
    do
    $RMF $rc/"$RC_KILL"init.crs
    $LNS $ID/init.crs $rc/"$RC_KILL"init.crs || { $ECHO $?; exit 1; }
    done
    $CP $IT $IT.orig || { $ECHO $?; exit 1; }
    # Prepare to start the daemons.
    $ID/init.crs start
    # Check to see if they are going to start.
    $ID/init.cssd startcheck CSS
    if [ "$?" != "0" ]; then
    $ECHO CRS daemons not set to start. See $MSGFILE for details.
    exit 1
    fi
    $ECHO "Adding daemons to inittab"
    eval $RMITAB
    $INIT q
    $SLEEP 10
    eval $ADDITAB
    $INIT q
    ALLDONE=false
    # Wait until the daemons actually start up
    $CRSCTL check install -wait 600
    STATUS=$?
    case $STATUS in
    0)
    # Complete success. This is the last node of the install.
    works=false
    # Wait for CRSD and EVMD to start up
    for i in 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100 105 110 115 120
    do
    if $CH/bin/crs_stat > /dev/null 2>&1
    then
    works=true
    break
    fi
    $ECHO "Waiting for the Oracle CRSD and EVMD to start"
    $SLEEP 5
    done
    if $works
    then
    $ECHO "Oracle CRS stack installed and running under init(1M)"
    ALLDONE=true
    else
    $ECHO "Timed out waiting for the CRS stack to start."
    exit 1
    fi
    2)
    # Current node is successful so far. Some nodes are not yet installed.
    # CRSCTL will have printed out the names of the remaining nodes.
    $ECHO "Failure at final check of Oracle CRS stack."
    $ECHO $STATUS
    exit 1
    esac
    # Startup was successful. Continue with the remainder.
    ##VIPCA is run by the last node that joins the CSS groups
    if $ALLDONE
    then
    CRS_PARAMS="CRS_NODEVIPS"
    if validateInput > /dev/null 2>&1
    then
    LOCAL_NODE=`$ORA_CRS_HOME/bin/olsnodes -l`
    $CH/bin/crs_stat ora.$LOCAL_NODE.vip > /dev/null
    STATUS=$?
    if [ "$STATUS" = "0" ];
    then
    # do nothing
    $ECHO ""
    else
    $ECHO "Running vipca(silent) for configuring nodeapps"
    $CH/bin/vipca -silent -nodelist $CRS_NODELIST -nodevips $CRS_NODEVIPS
    if [ "$?" != "0" ]; then
    $ECHO ""
    exit 1
    fi
    fi
    else
    $ECHO "Run VIPCA for configuring nodeapps"
    $ECHO "The command to use 'vipca -nodelist <list of cluster nodes>'"
    fi
    fi
    exit 0
    请大家帮忙看一下。
    Edited by: 951276 on 2012-11-4 上午5:19

  • ORA-01114, ORA-29701, ORA-06512

    I have got this errors. Can any experts help me to resolve this issue?
    Due to this application users getting errors. Thanks.
    Ora errors:
    ORA-01114: IO error writing block to file 65 (block # 1956)
    ORA-29701: unable to connect to Cluster Manager
    ORA-06512: at "ERROR_PKG", line 151
    ORA-06512: at "SET_SP", line 108
    ORA-06512: at line 1

    Thanks for the suggestion. I did not think this errors related to db versions/os versions.
    It is Oracle 10.2.0.4 running in Sun OS 5.10 and its running in ASM/RAC environment.
    Since I have limited access(APP DBA) I have raised the ticket to SYSDBA to look in to this issue with my inputs.
    My Inputs:
    It seems like ORA-29701 error is related to ASM(css daemon)/RAC and all the remaining error is due to that.
    Case 1:
    Run the following batch files in the $ORACLE_HOME/bin directory as root
    localconfig delete
    localconfig add
    Case 2:
    The CSSD daemon uses /tmp/.oracle directory to establish a local socket for communication with local clients such as RDBMS instances. So you might want to ensure this was not removed by accident.
    Solution:
    Reboot the node.
    Unfortually, the location of /tmp/.oracle cannot be changed (at least for 10g RAC)

  • Oracle 11.2 standalone grid infrastructure - change hostname

    Hi
    I have changed hostname of my server running RHEL 5.3 with Oracle 11.2 Grid Infrastructure (standalone). After I changed the hostname of the server, the crs daemon stopped working and I cannot connect to my +ASM instance any longer.
    In Oracle 10g2it was enough to run localconfig delete, localconfig add
    What should I do in 11.2 ?
    Thanks for help
    Groxy

    Hi Groxy,
    I recently found myself asking the same question and after a fair amount of digging around I found a way to do it. Your question is now a few months old, so maybe you have found the solution already, but if not the key is using roothas.pl rather than localconfig. I have written a brief blog post covering the approach I used, so please check that out if you want more information.
    [http://oraganism.wordpress.com/2009/12/20/11-2-changing-hostname/|http://oraganism.wordpress.com/2009/12/20/11-2-changing-hostname/]
    I hope this helps.
    Martin

  • Can't start CRS -- giving error about OCR device but ....?? Please help.

    I am running CentOS 4.5 64-bit with kernel 2.6.9-55.EL on 2 AMD64 single CPU machines. Installed Oracle Clusterware 10.2.0.1 on both of these (pushing from node1). Then created RAC database using ASM. Everything worked fine & CRS/RAC were up (on both) for sometime. Then I stopped the resources & CRS/RAC. But, after sometime I can't start CRS on any of these! Getting error message (in /tmp/crsctl.pid):
    OCR initialization failed accessing OCR device: PROC-26: Error while accessing the physical storage.
    But I can see the FireWire drive/RAW partitions using "fdisk -l" and the permission/ownership are correct on the OCR/Voting Disk RAW partitions.
    I also don't see any socket opened under /var/tmp/.oracle!
    The is no other message in any other error/log file.
    What is this & how to solve?
    Thanks.

    Hi,
    Pls refer to the following solution:
    1. Please check the rights and owners of the ocr devices
    2. Check if the ocrconfig_loc is pointing to the correct ocr in /var/opt/oracle/ocr.loc.
    The ocrconfig_loc parameter specifies the location of the Oracle Cluster
    Registry (OCR) used by the CSS daemon. The path up to the cdata directory is the Oracle home directory where the CSS daemon is running.
    3. Reconfiguring Oracle Cluster Synchronization Services
    a. $/u01/app/oracle/product/10G/bin/localconfig delete
    Unexpected parameter: css
    $
    b - I killed init.cssd process
    $ps -ef |grep css
    root 1559 1 0.1 09:34:53 ?? 0:07.52 /sbin/init.d/init.cssd startcheck
    root 16390 16070 0.0 12:33:53 pts/1 0:00.01 grep css
    $kill -9 1559
    $ps -ef |grep css
    root 16407 16070 0.0 12:34:15 pts/1 0:00.01 grep css
    c - Set up ORACLE_HOME
    $export ORACLE_HOME=/u01/app/oracle/product/10G
    $/u01/app/oracle/product/10G/bin/localconfig delete
    Enter the following command to reconfigure the CSS daemon to run from this Oracle home:
    # $ORACLE_HOME/bin/localconfig reset $ORACLE_HOME
    The script stops the Oracle CSS daemon, reconfigures it in the new Oracle home, and then restarts it. When the system boots, the CSS daemon starts automatically from the new Oracle home.
    Terry liu

  • INVALID OCR

    Hi,
    I have 10g R2 single instance with ASM installed and running on AIX 5L. Today after rebooting the box oracle didn't come up. I checked and found that the CSS service is not starting up. I try to start it manually also but it kept failing on me. I deleted the service using localconfig delete and try to add it but it failed again. Here are the contents of css alert file (alertpdxeps2.log):
    2008-10-13 10:23:46.455
    [client(327846)]CRS-1006:The OCR location /u01/app/epsora/product/10.2.0/cdata/localhost/local.ocr is inaccessible. Details in /u01/app/epsora/product/10.2.0/log/pdxeps2/client/clscfg_327846.log.
    2008-10-13 10:23:46.456
    [client(327846)]CRS-1006:The OCR location /u01/app/epsora/product/10.2.0/cdata/
    localhost/local.ocr is inaccessible. Details in /u01/app/epsora/product/10.2.0/
    log/pdxeps2/client/clscfg_327846.log.
    2008-10-13 10:23:46.884
    [client(327846)]CRS-1001:The OCR was formatted using version 2.
    And here are the contents of /u01/app/epsora/product/10.2.0/log/pdxeps2/client/clscfg_327846.log
    Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Orac
    le. All rights reserved.
    2008-10-13 10:23:46.454: [  OCROSD][1]utread:3: problem reading buffer 11f25e90
    buflen 512 retval 0 phy_offset 102400 retry 0
    2008-10-13 10:23:46.454: [  OCROSD][1]utread:4: problem reading the buffer errn
    o 2 errstring No such file or directory
    2008-10-13 10:23:46.454: [  OCROSD][1]utread:3: problem reading buffer ffff9f90
    buflen 4096 retval 0 phy_offset 102400 retry 0
    2008-10-13 10:23:46.454: [  OCROSD][1]utread:4: problem reading the buffer errn
    o 2 errstring No such file or directory
    2008-10-13 10:23:46.454: [  OCRRAW][1]propriogid:1: INVALID FORMAT
    2008-10-13 10:23:46.454: [  OCROSD][1]utread:3: problem reading buffer 11f02d30
    buflen 4096 retval 0 phy_offset 102400 retry 0
    2008-10-13 10:23:46.454: [  OCROSD][1]utread:4: problem reading the buffer errn
    o 2 errstring No such file or directory
    2008-10-13 10:23:46.455: [  OCRRAW][1]ibctx:1:ERROR: INVALID FORMAT
    2008-10-13 10:23:46.455: [  OCRRAW][1]proprinit:problem reading the bootblock o
    r superbloc 22
    2008-10-13 10:23:46.455: [ default][1]a_init:7!: Backend init unsuccessful : [2
    2]
    2008-10-13 10:23:46.456: [  OCROSD][1]utread:3: problem reading buffer 11f28770
    buflen 512 retval 0 phy_offset 102400 retry 0
    2008-10-13 10:23:46.456: [  OCROSD][1]utread:4: problem reading the buffer errn
    o 2 errstring No such file or directory
    2008-10-13 10:23:46.456: [  OCROSD][1]utread:3: problem reading buffer ffff9e50
    buflen 4096 retval 0 phy_offset 102400 retry 0
    2008-10-13 10:23:46.456: [  OCROSD][1]utread:4: problem reading the buffer errn
    o 2 errstring No such file or directory
    2008-10-13 10:23:46.456: [  OCRRAW][1]propriogid:1: INVALID FORMAT
    2008-10-13 10:23:46.456: [  OCROSD][1]utread:3: problem reading buffer 11f04cb8
    buflen 4096 retval 0 phy_offset 102400 retry 0
    2008-10-13 10:23:46.456: [  OCROSD][1]utread:4: problem reading the buffer errn
    o 2 errstring No such file or directory
    2008-10-13 10:23:46.456: [  OCRRAW][1]ibctx:1:ERROR: INVALID FORMAT
    2008-10-13 10:23:46.456: [  OCRRAW][1]proprinit:problem reading the bootblock o
    r superbloc 22
    2008-10-13 10:23:46.456: [  OCROSD][1]utread:3: problem reading buffer 11f28770
    buflen 512 retval 0 phy_offset 102400 retry 0
    2008-10-13 10:23:46.456: [  OCROSD][1]utread:4: problem reading the buffer errn
    o 2 errstring No such file or directory
    2008-10-13 10:23:46.456: [  OCROSD][1]utread:3: problem reading buffer ffff8e10
    buflen 4096 retval 0 phy_offset 102400 retry 0
    2008-10-13 10:23:46.456: [  OCROSD][1]utread:4: problem reading the buffer errn
    o 2 errstring No such file or directory
    2008-10-13 10:23:46.456: [  OCRRAW][1]propriogid:1: INVALID FORMAT
    2008-10-13 10:23:46.501: [  OCRRAW][1]propriowv: Vote information on disk 0 [/u
    01/app/epsora/product/10.2.0/cdata/localhost/local.ocr] is adjusted from [0/0]
    to [2/2]
    2008-10-13 10:23:46.884: [  OCRRAW][1]propriniconfig:No 92 configuration
    2008-10-13 10:23:46.884: [  OCRAPI][1]a_init:6a: Backend init successful
    562)pdxeps2 root /u01/app/epsora/product/10.2.0/log/pdxeps2>
    562)pdxeps2 root /u01/app/epsora/product/10.2.0/log/pdxeps2>
    Nothing got changed, permissions are ok on /u01/app/epsora/product/10.2.0/cdata/localhost/local.ocr, hostname is same, no capital letter in hostname, Dont know why it's saying invalid format.
    Again it's single instance database with ASM no RAC.
    I would appreciate any of the inputs.
    Thanks
    Daljit Singh

    Would this be of help?
    [3 Administering Oracle Clusterware Components|http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/votocr.htm] and
    [Using the Cluster Verification Utility|http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/appsupport.htm#BEHIJAJC]
    regards,
    Ganadeva

  • Latch wait

    Hi ,
    I have Oracle (10.1.0.5) on hp-ux i have upgrade to 10.2.0.5 after the upgrade i have face a performance issue.
    The CPU utilization is full and the database is very slow . After generate the AWR report i have notice that the top wait is (latch free) .
    The latch name causing the issue is (KFMD SGA) .
    Any clue guys ?
    See below is part of the AWR
    WORKLOAD REPOSITORY report for
    =====================================================================================
    DB Name DB Id Instance Inst Num Release RAC Host
    ECC 829673667 ecc 1 10.2.0.5.0 NO ECCDB
    Snap Id Snap Time Sessions Curs/Sess
    Begin Snap: 47916 02-May-11 09:00:52 163 17.6
    End Snap: 47917 02-May-11 10:00:37 186 21.5
    Elapsed: 59.74 (mins)
    DB Time: 839.42 (mins)
    Cache Sizes
    ~~~~~~~~~~~ Begin End
    Buffer Cache: 2,176M 2,176M Std Block Size: 8K
    Shared Pool Size: 1,472M 1,472M Log Buffer: 14,344K
    Load Profile
    ~~~~~~~~~~~~ Per Second Per Transaction
    Redo size: 84,463.98 5,920.97
    Logical reads: 4,921.93 345.03
    Block changes: 280.19 19.64
    Physical reads: 71.02 4.98
    Physical writes: 15.42 1.08
    User calls: 184.49 12.93
    Parses: 95.99 6.73
    Hard parses: 0.45 0.03
    Sorts: 19.96 1.40
    Logons: 1.04 0.07
    Executes: 1,711.52 119.98
    Transactions: 14.27
    % Blocks changed per Read: 5.69 Recursive Call %: 96.49
    Rollback per transaction %: 6.55 Rows per Sort: 32.88
    Instance Efficiency Percentages (Target 100%)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Buffer Nowait %: 99.91 Redo NoWait %: 99.89
    Buffer Hit %: 98.64 In-memory Sort %: 100.00
    Library Hit %: 99.89 Soft Parse %: 99.53
    Execute to Parse %: 94.39 Latch Hit %: 100.00
    Parse CPU to Parse Elapsd %: 15.75 % Non-Parse CPU: 98.66
    Shared Pool Statistics Begin End
    Memory Usage %: 85.99 93.65
    % SQL with executions>1: 93.92 92.64
    % Memory for SQL w/exec>1: 92.06 89.99 25675
    Top 5 Timed Events Avg %Total
    ~~~~~~~~~~~~~~~~~~ wait Call
    Event Waits Time (s) (ms) Time Wait Class
    latch free 2,540 25,679 10110 51.0 Other
    db file sequential read 19,834 12,956 653 25.7 User I/O
    log file sync 76,489 9,199 120 18.3 Commit
    CPU time 3,267 6.5
    CSS operation: query 2,778 2,900 1044 5.8 Other

    Hi ,
    I read the note and i will implement it its very close to the case i have.
    But i have one question regarding this note.
    I have to run this command as root (ASM_ORACLE_HOME/bin/localconfig delete ) as mentioned in the note .
    The other command ($ASM_ORACLE_HOME/bin/localconfig add) but the note didnot specify if this command should be run as root or oracle user?
    Regards
    Fadi Lafi

  • Single node asm

    I am using asm on a single node 10gr3. When I try to create the second database, I get a message saying, oracle unable to start the asm, do you want start. I looked at it and I have the asm and the existing db up and running. Why am I getting the error message when I have the ASM up and how to proceed?
    Thanks.

    How did you create your original ASM instance? using DBCA? - Yes. I used dbca to create asm and db
    Can you check if the ASM entry is present in ORATAB? - Yes.+ASM:/app/oracle/product/10.2.0/asm:N
    +ASM:/app/oracle/product/10.2.0/db_1:N
    fdev01:/app/oracle/product/10.2.0/db_1:N
    You on Linux? - Yes RH4
    Do you have enough resources for two instances and ASM on the one box? - 16gb memory and 2 core
    Did you restart CSS? See Note:429214.1 I guess I am hitting this!
    css.log output -
    2008-04-23 12:36:47.258: [ CSSCLNT][2540983424]clsssInitNative: connect failed, rc 9
    2008-04-23 12:36:49.925: [ CSSCLNT][2540983424]clsssInitNative: connect failed, rc 9
    2008-04-23 12:36:52.592: [ CSSCLNT][2540983424]clsssInitNative: connect failed, rc 9
    Should I just follow the below?
    Please find below steps for resolving the issue. (Non -RAC cases only)
    I don't see any files as mentioned below. Should the current asm and db be down? what does localconfig do?
    1)Remove the following IPC socket files
    # rm -f /usr/tmp/.oracle/*
    # rm -f /tmp/.oracle/*
    # rm -f /var/tmp/.oracle/*
    (The location will vary across platforms. Files would be present in one of the above location)
    2)Run the root.sh script again
    3)Run the localconfig script
    # $ORACLE_HOME/bin/localconfig delete
    # $ORACLE_HOME/bin/localconfig add

  • Localconfig reset in ASM home

    In our NON-RAC environment, we have 3 different database instance and one common ASM instance.
    let assume if database homes on the same server below
    1. /u01/app/prod/product/10.2.0/db_1
    2. /u01/app/devel/product/10.2.0/db_1
    3. /u01/app/test/product/11.1.0/db_1
    Common ASM instance to all three databases
    /u01/app/asm/product/10.2.0/asm_1
    1. $ more /var/opt/oracle/ocr.loc
    ocrconfig_loc=/u01/app/test/product/11.1.0/db_1/cdata/localhost/local.ocr local_only=TRUE
    2. ps -ef |grep css
    /u01/app/test/product/11.1.0/db_1/bin/ocssd.bin
    From all the above i understand the ocssd.bin is pointing to one of the database instance but not to ASM instance
    Do ocssd.bin should point to ASM instance? is ocssd.bin has been run under wrong ORACLE HOME instead of ASM home?
    Does always localconfig reset needs to be run under $ORACLE_HOME/bin or $ASM_HOME/bin?
    Thanks all in advance

    Rakhi -
    It seems when you executed localconfig add from root, you choose below home
    /u01/app/test/product/11.1.0/db_1/bin/localconfig
    I checked for localconfig file on my 11g installation, it seems ORACLE_HOME is hardcoded in this file.
    <code>
    [root@js bin]# more localconfig
    #!/bin/sh
    # localconfig.sbs for local CSS
    # This script file should be run for following three cases:
    # 1) add: When you are configuring the CSS for the first time
    # 2) delete: When there is only one single instance Oracle home on a node and
    # you are deleting/deinstalling that Oracle home
    # 3) reset: When there are more than two single instance Oracle homes on a
    # node and you are deleting/deconfiguring the Oracle home that
    # currently runs CSS daemon but you want CSS to run from a
    # different Oracle home
    # NOTE: When using 'reset' option. This script can be run from
    # source Oracle home or destination (Where CSS is to be reset to) Oracle
    # home.
    SILENT=%s_silent%
    CSS_ORACLE_HOME=/u01/app/oracle/product/11g
    CSS_ORACLE_OWNER=oracle
    CSS_DBA_GROUP=dba
    CSS_LANGUAGE_ID=AMERICAN_AMERICA.WE8ISO8859P1
    CSS_PARAMS="CSS_ORACLE_HOME CSS_ORACLE_OWNER CSS_DBA_GROUP CSS_LANGUAGE_ID"
    </code>
    Regards

  • Wrongly issued #localconfig reset  on RAC node1

    Hello,
    I wrongly issued on node1 the command:
    #localconfig reset
    After that the OCR was moved on a local file, instead on shared raw storage: /u01/oracle/product/10gr2/db/cdata/localhost/local.ocr
    How can I revert back to the configuration with two nodes?
    Configuration is RAC 10g with 2 nodes, having ASM, OCR, VotDisk of shared raw devices.
    ORACLE_BASE=/u01/oracle
    ORACLE_HOME=/u01/oracle/product/10gr2/db
    ORA_CRS_HOME=/u01/oracle/product/10gr2/crs
    Thanks alot.

    Cannot execute #localconfig all
    Is Oracle 10g and the only options available are:
    node1:root$ /u01/oracle/product/10gr2/crs/bin//localconfig all
    Usage:/u01/oracle/product/10gr2/crs/bin//localconfig [add] [delete] [ reset <destination Oracle home> ] [-silent] [-paramfile <Complete path of file specifying parameter values>]

  • Delete File From Mounted Volume

    Hey,
    I am trying to delete the "Calendar Cache" files on both my laptop PowerBook G4 and the Mac Pro Quad that I sync my calendars with. I am using ChronoSync and the individual calendars sync fine, but there is a little house keeping needed with the cache file. They need to be deleted on both systems in order to "refresh" the views of the calendars.
    So after the sync of calendars, I have the software initiating an AppleScript that deletes both. Here's the script:
    +(* PowerBook Files / delete cache file *)+
    +(* Please note that both systems have the same username. This may be arise a conflict *)+
    +tell application "Finder"+
    + activate+
    + tell application "Finder" to delete file "Calendar Cache" of folder "Calendars" of folder "Library" of disk "useranthony"+
    +end tell+
    +(* Mac Pro Quad/ delete cache file *)+
    +tell application "Finder"+
    + mount volume "afp://10.10.10.1/anthonyabraira"+
    + tell application "Finder" to delete file "Calendar Cache" of folder "Calendars" of folder "Library" of disk "/volumes/useranthony"+
    +end tell+
    I am having trouble addressing a deletion on the networked Mac Pro Quad.

    why send it to the trash — just delete it...
    (* PowerBook Files / delete cache file )
    try
            do shell script "rm -rf /Library/Calendars/Calendar\\ Cache"
    end try
    you may need a delay for the Mac Pro Quad to mount
    ( Mac Pro Quad/ delete cache file *)
    --the mount and then the delay
    delay 4
    try
            do shell script "rm -rf /THE-CORRECT/PATH-HERE/Library/Calendars/Calendar\\ Cache"
    end try
    Tom

  • How to delete the members in one dimension use the maxl script

    i have question that i want to delete the members in one dimension useing the maxl script, but i do not know how to do it. can the maxl delete the members in one dimension? if can, please provide an sample script, thank you so mcuh.

    MaxL does not have commands to alter an outline directly, except the reset command which can delete all dimensions but not members selectively. The best you could do would be to run a rules file (import dimensions) using a file that contains the members you want to keepload rule for the dimension. As typical the warning is to test this first before you do it on a production database

Maybe you are looking for