love wife love life —Roger的Oracle/MySQL/PostgreSQL数据恢复博客

Phone:18180207355 提供专业Oracle/MySQL/PostgreSQL数据恢复、性能优化、迁移升级、紧急救援等服务

oracle restart 体验

本站文章除注明转载外,均为本站原创: 转载自love wife love life —Roger的Oracle/MySQL/PostgreSQL数据恢复博客

本文链接地址: oracle restart 体验

One Response to “oracle restart 体验”

  1. roger Says:

    当主机名改变以后,必须reconfig restart,如下是一个简单的步骤:
    [root@11gr2test install]# ./roothas.pl -deconfig -force
    Using configuration parameter file: ./crsconfig_params
    CRS-4639: Could not contact Oracle High Availability Services
    CRS-4000: Command Stop failed, or completed with errors.
    CRS-4639: Could not contact Oracle High Availability Services
    CRS-4000: Command Delete failed, or completed with errors.
    CLSU-00100: Operating System function: opendir failed with error data: 2
    CLSU-00101: Operating System error message: No such file or directory
    CLSU-00103: error location: scrsearch1
    CLSU-00104: additional error information: cant open scr home dir scls_scr_getval
    CRS-4544: Unable to connect to OHAS
    CRS-4000: Command Stop failed, or completed with errors.
    ACFS-9200: Supported
    Successfully deconfigured Oracle Restart stack
    [root@11gr2test install]# owd
    -bash: owd: command not found
    [root@11gr2test install]# pwd
    /home/ora11g/11.2/grid/crs/install
    [root@11gr2test install]# ./roothas.pl
    Using configuration parameter file: ./crsconfig_params
    LOCAL ADD MODE
    Creating OCR keys for user ‘ora11g’, privgrp ‘oinstall’..
    Operation successful.
    LOCAL ONLY MODE
    Successfully accumulated necessary OCR keys.
    Creating OCR keys for user ‘root’, privgrp ‘root’..
    Operation successful.
    CRS-4664: Node 11gr2test successfully pinned.
    Adding daemon to inittab
    ACFS-9300: ADVM/ACFS distribution files found.
    ACFS-9307: Installing requested ADVM/ACFS software.
    ACFS-9308: Loading installed ADVM/ACFS drivers.
    ACFS-9321: Creating udev for ADVM/ACFS.
    ACFS-9323: Creating module dependencies – this may take some time.
    ACFS-9327: Verifying ADVM/ACFS devices.
    ACFS-9309: ADVM/ACFS installation correctness verified.

    11gr2test 2011/10/09 06:27:20 /home/ora11g/11.2/grid/cdata/11gr2test/backup_20111009_062720.olr
    Successfully configured Oracle Grid Infrastructure for a Standalone Server
    [root@11gr2test install]# su – ora11g
    [ora11g@11gr2test ~]$ srvctl add asm
    [ora11g@11gr2test ~]$ srvctl start asm
    [ora11g@11gr2test ~]$ srvctl add database -d roger -o /home/ora11g/product/11.2/db
    [ora11g@11gr2test ~]$ srvctl add listener

    [ora11g@11gr2test ~]$
    [ora11g@11gr2test ~]$ cd /home/ora11g/11.2/grid/bin
    [ora11g@11gr2test bin]$ ./crs_stat -t
    Name Type Target State Host
    ————————————————————
    ora….ER.lsnr ora….er.type OFFLINE OFFLINE
    ora.asm ora.asm.type ONLINE ONLINE 11gr2test
    ora.cssd ora.cssd.type ONLINE ONLINE 11gr2test
    ora.diskmon ora….on.type ONLINE ONLINE 11gr2test
    ora.evmd ora.evm.type ONLINE ONLINE 11gr2test
    ora.ons ora.ons.type OFFLINE OFFLINE
    ora.roger.db ora….se.type OFFLINE OFFLINE
    [ora11g@11gr2test bin]$ ./crs_stat -p|grep lnsr
    [ora11g@11gr2test bin]$ ./crs_stat -t
    Name Type Target State Host
    ————————————————————
    ora.DATA1.dg ora….up.type ONLINE ONLINE 11gr2test
    ora….ER.lsnr ora….er.type ONLINE ONLINE 11gr2test
    ora.asm ora.asm.type ONLINE ONLINE 11gr2test
    ora.cssd ora.cssd.type ONLINE ONLINE 11gr2test
    ora.diskmon ora….on.type ONLINE ONLINE 11gr2test
    ora.evmd ora.evm.type ONLINE ONLINE 11gr2test
    ora.ons ora.ons.type OFFLINE OFFLINE
    ora.roger.db ora….se.type ONLINE ONLINE 11gr2test
    [ora11g@11gr2test bin]$
    [ora11g@11gr2test bin]$ ./crsctl stop has
    CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on ’11gr2test’
    CRS-2673: Attempting to stop ‘ora.LISTENER.lsnr’ on ’11gr2test’
    CRS-2673: Attempting to stop ‘ora.evmd’ on ’11gr2test’
    CRS-2673: Attempting to stop ‘ora.asm’ on ’11gr2test’
    CRS-2677: Stop of ‘ora.asm’ on ’11gr2test’ succeeded
    CRS-2673: Attempting to stop ‘ora.cssd’ on ’11gr2test’
    CRS-2677: Stop of ‘ora.cssd’ on ’11gr2test’ succeeded
    CRS-2673: Attempting to stop ‘ora.diskmon’ on ’11gr2test’
    CRS-2677: Stop of ‘ora.LISTENER.lsnr’ on ’11gr2test’ succeeded
    CRS-2677: Stop of ‘ora.diskmon’ on ’11gr2test’ succeeded
    CRS-2677: Stop of ‘ora.evmd’ on ’11gr2test’ succeeded
    CRS-2793: Shutdown of Oracle High Availability Services-managed resources on ’11gr2test’ has completed
    CRS-4133: Oracle High Availability Services has been stopped.
    [ora11g@11gr2test bin]$

    具体大家可以参考如下Mos文档:
    HOW TO RECONFIGURE ORACLE RESTART AFTER SERVER RENAME [ID 986740.1]

Leave a Reply

You must be logged in to post a comment.