Relocate CRS HOME

Hi all,
I have a scenarion at client where in the crs mount point is almost 90% full.
The OS (HP-UX) team said that it cannot be extended. The strategy they said that they will create a new lun on storage and mount on server remove existing mount point and rename. After copying the binaries of crs home. Reboot and check.
Here the doubt is will it work. Tried some googling and metalink search but couldnt find related info. According to me there might be issues with linking and inventory. Even OCR backup goes in CRS HOME what abt that. Or should i completely remove crs installation and add a mount point and again install crs.
The environment is oracle 10gR2 RAC 2 nodes on HP-UX 11i.
Any suggestion or info would be of great help.
Thanks

Hi,
you need to reinstall CRS to be able to relocate home. But you can save time by cloning the CRS home this does not mean the OCR and other cluster configuration will remain as it is this only mean a installation without OUI OCR and vote and all other resources will be reconfigured.
you said your new mount will be on storage server. So, are you moving from local installation to shared home installation as well?
Thanks
Rajesh

Similar Messages

  • Can we have separate 10gR2 RAC CRS and 11gR2 RAC CRS homes on  same Unix s

    We'd like to test the upgrade of our 10gR2 RAC databases to 11gR2 RAC.
    We have six databases on the same server and want to install a separate 11g RAC stack (11g CRS, 11g ASM, 11g RDBMS) and upgrade each 10g database from 10g RAC stack on same server (10g CRS, 10g ASM, 10g RDBMS) . Is it ok to have 10g CRS home and 11g CRS home same server? If not, how best to upgrade without buying more hardware?
    Thanks in advance,
    Lou

    In more detail, the main issue/question is whether there can be 2 Oracle CRS homes on the same server i.e. separate 10gR2 and 11gR2 CRS homes residing on the same server for the purposes of (gradually) upgrading all Oracle RDBMS homes from 10g RAC to 11g RAC.
    Can there be? What would be the implications for the OCR and voting disk? In our case 10g CRS has OCR and Voting Disk on raw devices. In 11gR2, these would need to be migrated/upgraded/stored in ASM, right?
    We have 6 10g rdbms homes in addition to the one 10g CRS home and one 10g ASM home. To upgrade can we
    - Install 11gR2 CRS in a separate home (this would now include ASM as well)
    - Install 11gR2 RDBMS home
    - Upgrade one of the 6 10g databases while leaving the others untouched as 10g databases in the separate 10g CRS, 10g ASM stack?
    Any ideas, pointers greatly appreciated.
    Thanks,
    Lou

  • Apply quaterly CPU to CRS home?

    Hello experts,
    I am in the process of upgrading 4 node RAC cluster from 10.2.0.2 to 10.2.0.3. However I have a doubt to which I am unable to find a good solution or document yet.
    I have two ORACLE_HOME, a CRS and db_1 home on my Linux server and they both are on 10.2.0.2. My db_1 home has upto date CPU applied.
    Now my question is, before upgrading to 10.2.0.3, do I need to apply the CPU patches to CRS home? I am bit confused.
    Also is there any metalink document (other than the document that comes with the upgrade patch) on how to safely upgrade to 10.2.0.3?
    Thank you in advance.
    --M M                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Thanks troach, I agree with you that latest patch set has all the fixes upto point. However, since I have two oracle_homes and the fact that I have applied the patches to db home only (not CRS home), I am not quite sure if I need to apply security patches to CRS home too so that both homes can be on the same patcheset (CPUs) before I start upgrading.
    The reason I am asking is, according to Upgrade Document, CRS version should be higher or equal to the current db home version and I am not quite sure if I need to apply CPUs on CRS home first to make it consistent the db home before upgrading CRS to 10.2.0.3
    Also, thanks for the advice to go to 10.2.0.4. However, my company's policy is against upgrading to newer patch set right away.
    Thanks for your time again...
    --Moid                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Multiple Oracle CRS Homes Installation

    My Production environment is planned to use oracle Database RAC configuration, SAPCTL, and Oracle CRS as the High availability Solution I need for a sample TEST environment for this configuration to test Oracle Homes Patching and different configuration before apply to Production is it supported to have the same Hardware Server to Host Both TEST and Production RAC Database including the tow oracle Homes and tow Oracle CRS Home.

    I have a publication of the implementation of sapctl on my homepage.
    However, this written in Portuguese language, any questions, please contact me.

  • CRS HOME vs ORACLE BASE

    Hi,
    Please i need clarification on this issue:
    When you have your CRS HOME as a subdirectory of your ORACLE_BASE, whats the implication. I saw an ORACLE DOCs, that says that your CRS_HOME should not be a subdirectory of your ORACLE_BASE;
    say:
    CRS_HOME=/oraprod/test/crs
    ORACLE_BASE=/oraprod/test
    ORACLE_HOME=/oraprod/test/ora10g
    We have this settings in place, its working fine with a 2-node RAC DB but we are finding it extremely difficult to set-up another RAC Database on the same CRS_HOME to use same crs resources.
    Any help on this would be appreciated.
    Thanks
    Innocent

    Do you think this will also affect installation of
    another RAC DATABASE in the same BASE directory?Here is permission of CRS_HOME
    $cd $CRS_HOME
    $ ls -lisa
    total 200
    20405304 4 drwxr-xr-x 37 root dba 4096 Feb 23 22:14 .
    20405303 4 drwxr-xr-x 11 oracle dba 4096 Feb 23 22:24 ..
    As listing shown above , parent directory is owned by
    oracle, so it will allow to install Oracle.

  • CRS HOME & 9iR2 RAC ORACLE_HOME Different Owners

    Facts:
    2 Node Cluster, Sun T2000
    O/S: Sun Sparc Solaris 64 bit 5.10
    3rd Party Clusterware - Veritas Storage Foundation for RAC (SFRAC) 5.0 MP3
    CRS: 10.2.0.4
    CRS is owned by oracle:dba (with the exception of anything owned by root)
    9iR2 (9.2.0.8) RAC RDBMS ORACLE_HOME is owned by oraofsg:dba
    9iR2 (9.2.0.8) RAC Database Name: ofsg
    10gR2 (10.2.0.4) RAC RDBMS ORACLE_HOME is owned by oracle:dba
    Metalink note 220970.1
    Misc. Info:
    Action: /var/opt/oracle/srvConfig.loc was renamed after 9i database and GSD stopped prior to installing CRS.
    Why?: 10g CRS chose to use 9i's srvm.dbf rather than the file system I had created for the 10g CRS cluster registry.
    Task at Hand:
    Need to register 9.2.0.8 RAC database ofsg under 10gR2 CRS.
    Issue:
    As 9i RAC database owner oraofsg with the 9i RAC environment set, and 9i GSD down:
    srvctl add database -d oraofsg -o /sv01/sw/oraofsg/ofsgdb/9.2.0
    PRKR-1005 : adding of cluster database ofsg configuration failed, PROC-5: User does not have permission to perform a cluster registry operation on this key. Authentication error [User [oraofsg] does not match with initialized user] [0]
    Question: Has anyone successfully registered a 9i RAC database under 10g CRS?
    Thanks for your consideration.
    Regards,
    Jerry

    Hi
    CRS_HOME must be owned by a different user:group (preferably root) than $ORACLE_HOME (owned by oracle), for several reasons like patching.
    Please note also that you will need an ASM dedicated home and also a AGENT_HOME that can be owned by oracle.
    Hope this helps.

  • I just want to relocate the "Home" button on my toolbar.

    I just want to move the "Home" button to a different position on my toolbar. I have tried "Customize" but the box seems to be missing the "Feedback" buttons that appear in the example - which depicts "Home" along with a bunch of other buttons. I've also tried resetting and all the other suggestions but nothing is working. Please help

    The Home button is located by default at the right hand side of the Navigation Toolbar.
    If missing items are in the toolbar palette then drag them back from the Customize window on the toolbar.
    If you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar set up.
    *http://kb.mozillazine.org/Toolbar_customization
    *https://support.mozilla.org/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • Need methodology for upgrading/migrating CRS Home from 11g to 12c RAC.

    Hi
    Is there a detailed step-by-step guide on how to migrate from Windows 64bit RAC dual node cluster from 11g to 12C?
    So far I've found lots of documentation related to Linux, not Windows.
    Cheers
    Kevin

    Always use Oracle Documentation.
    Oracle Database12c Release 1 (12.1)
    One of links in main page  is:  Upgrading Oracle Grid Infrastructure

  • Can we have multi-Home CRS/ASM on same server?

    Hi All,
    I'm studying the feasibility for below situation (sorry i'm new in RAC)
    I'm not sure whether it can setup in HP-UX-11.23 Itanium box or not (Not OpenVMS)
    We have two node e.g. node1 and node2 in RAC environment.
    In node1, we plan to create one instance for each customer (Let say 10 customer, we will create 10 instances on same server).
    For each instances (ORACLE_HOME), can we have their own ASM software (ASM instance) and CRS software (CRS HOME) instead of create one and share with all instances.
    We're looking for multi-home concept, so that if one of our customer want to upgrade/patches oracle, it will NOT affect other customer.
    Any idea, or any website can share with me?
    Thanks in advance.
    Best Regards,
    klnghau
    Edited by: klnghau on Oct 15, 2010 8:51 AM

    Let say, we have 10 instances in one box, each database will have their RDBMS homes, if we can not have multiple ASM instances or CRS home.
    Whenever we want to apply patches on one of the instances, definitely other instances will be affected.
    Just want to know what is the best deploy/best practice to apply patches in such environment?I think the first 'best' practice is to not have multiple instances on a single server. But if you have to do it, I'd say virtualisation might help you so that each instance lives in it's own virtual machine with it's own operating system. That way, you can also patch the OS and reboot it and only affect a single database instance. The only problem with RAC might be that not all virtualization platforms are supported with RAC
    Bjoern

  • Patching Strategy for CRS and ASM homes

    I'm fairly new to RAC/ASM and haven't performed any patch set upgrades yet. Back in the simple days when I wanted to apply a patch set to a database, say from 10.2.0.4 to 10.2.0.5, I would create a brand new Oracle home ahead of time and apply the patch set to it. I'd name my homes like this:
    /opt/oracle/product/10.2.0.4/db1
    /opt/oracle/product/10.2.0.5/db1
    During the maintenance window I would change /etc/oratab to point the database to the new 10.2.0.5 and complete the database upgrade scripts. The advantages of this strategy:
    1 - Less risk installing software as nothing uses the new home yet. If something goes wrong in the install, no big deal. Research the problem and try again without being under the stress of a defined maintenance window.
    2 - No need to backup old home for back-out purposes.
    3 - Less time required for database to be down during actual patch window since Oracle Installer does not need to run.
    Now with CRS and ASM, is there a way to pre-stage a new home for those, but not have them "active" to the node until later during the maintenance window?
    For ASM, it seems like it would be possible to treat the same way as database and simply update ASM SID in /etc/oratab
    +ASM1:/opt/oracle/product/10.2.0.5/asm1
    but I'm not totally confident in that as I'm afraid the CRS home may already have references to the ASM home in the cluster registry.
    For CRS, it seems like the home is pretty well hard-wired into the node startup scripts and installing a brand new CRS home will probably disrupt the running CRS home.
    Any thoughts about this?

    Hi,
    user5448593 wrote:
    I'm fairly new to RAC/ASM and haven't performed any patch set upgrades yet. Back in the simple days when I wanted to apply a patch set to a database, say from 10.2.0.4 to 10.2.0.5, I would create a brand new Oracle home ahead of time and apply the patch set to it.
    Now with CRS and ASM, is there a way to pre-stage a new home for those, but not have them "active" to the node until later during the maintenance window?Although you have not mentioned the version you are actually on, it is a quite up-to-date question and dilemma.
    Starting with 11.2 for Grid Infrastructure only "out-of-place" patchset upgrades are supported.
    >
    For ASM, it seems like it would be possible to treat the same way as database and simply update ASM SID in /etc/oratab
    +ASM1:/opt/oracle/product/10.2.0.5/asm1
    but I'm not totally confident in that as I'm afraid the CRS home may already have references to the ASM home in the cluster registry.
    For CRS, it seems like the home is pretty well hard-wired into the node startup scripts and installing a brand new CRS home will probably disrupt the running CRS home.
    Any thoughts about this?As of 11gR2 the ASM is part of the Grid Infrastructure, therefore it is running from the same home and not recommended to separate them. (although you can do that)
    By the way, what is your upgrade path? It could be easier to answer your questions if we knew that as there has been a quite a few enhancements and changes in the upgrade/patching process from 10g to 11g. (even between 11gR1 and 11gR2)
    Regards,
    Jozsef

  • Pros and Cons of installing CRS, ASM and DB in separate homes

    Planning to install 11gR1 RAC a 2 nodes on HPUX IA64 and there are several architecture options:
    Option 1:  same owner and one single home (home1 = crs asm db)
    pros - easier to patch on single home
    cons - patch level may be required at crs level but not allowed at db level because of E-Business Suite certification constraints
    Option 2:  same owner and 2 homes (home1 = crs /  home2 = asm db)
    pros - one less home to upgrade
    cons - ?
    Option 3: same owner and 2 homes (home 1 = crs asm /  home2 = db)
    Is there any reason why Option 3 would be preferable or worse than Option 2?
    Option 4:  same owner and 3 homes (crs home /  asm home / db home)
    pros - each home can be on different patch levels
    cons - more storage, more maintenance when patching
    Any comments?

    I've made my decision to use Option 2 and here's why...
    Excerpt from Known issues documented in
    810663.1 11.1.0.X CRS Bundle Patch Information
    CRS Bundle Patch has been renamed as CRS PSU. CRS PSU and Database PSU are two separate patches, i.e. Database PSU does NOT include the CRS PSU.
    There should be no conflict or overlap between a CRS PSU and an RDBMS PSU -- both should be applied to the ASM and DATABASE Homes.
    Also note that CRS PSU's can be applied to all homes (CRS, ASM and RDBMS). The general recommendation is to apply the bundle patch to all homes unless the homes are on a different patch level. This is because there are clusterware binaries in the database home (e.g.: srvctl).
    PSUs for the RDBMS should be applied to the ASM and RDBMS homes.

  • CRS 와 10G REAL APPLICATION CLUSTERS

    제품 : ORACLE SERVER
    작성날짜 : 2004-11-30
    CRS 와 10G REAL APPLICATION CLUSTERS
    ===================================
    PURPOSE
    이 문서는, 10g Real Application Cluster의 CRS (Cluster Ready Services)에 대한 추가적인
    정보를 제공하는 것을 목적으로 한다.
    Explanation
    1. CRS 와 10g REAL APPLICATION CLUSTERS
    CRS (Cluster Ready Services)는 10g Real Application Cluster의 새로운 기능으로,
    모든 플랫폼에 대해 표준화된 클러스터 인터페이스를 제공 해 주고, 이전 버전에서는 없었던
    새로운 고가용 서비스를 제공해 준다.
    2. CRS 핵심 기능
    CRS와 10g RAC를 설치하기 전에, CRS및 10g RAC에 대해 사전에 알아 두어야 할 사항이 있다 :
    - 10g RAC를 설치를 위해서는 CRS는 사전에 설치 되고 실행되어야 한다.
    - CRS는 하드웨어 공급 업체에서 제공하는 클러스터 제품 (예 : Sun Cluster,
    HP Serviceguard, IBM HACMP, TruCluster, Veritas Cluster, Fujitsu Primecluster,
    기타 ...) 위에서 실행 될 수도 있고, 하드웨어 공급 업체에서 제공하는 클러스터 제품
    없이도 실행될 수 있다. 하드웨어 업체에서 공급하는 클러스터 제품은 9i RAC까지는 반드시
    필요했지만, 10g RAC에서는 선택 사항이다.
    - CRS HOME 과 ORACLE_HOME 은 반드시 다른 디렉토리에 설치 되어야 한다.
    - CRS를 설치하기 전에, voting 파일 또는 OCR (Oracle Configuration Repository) 파일을
    설치 할 수 있는 공유된 디렉토리 또는 디바이스가 셋업되어야 한다. voting file은 최소 20MB 정도
    크기이며, OCR 파일은, 최소 100MB 크기가 되어야 한다.
    - CRS 및 RAC를 설치하기 위해서는 다음과 같은 네트워크 인터페이스가 구성되어야 한다 :
    - Public Interface
    - Private Interface
    - Virtual (Public) Interface
    관련된 추가적인 정보는 <Bulletin No: 22345> 참조.
    - CRS 설치 후 root.sh를 실행시키면 CRS 서비스를 구동시킨다. 만약 CRS가 정상적으로
    구동되지 않는다면, Note 240001.1 참조.
    - RAC 노드당 1개의 CRS 데모만 실행 가능.
    - 유닉스 시스템의 경우, CRS 서비스는 /etc/inittab 상의 ‘respawn’ entry로 등록되어 있다.
    - 네트워크 split이 있을 경우 (노드간 통신 두절) data corruption을 방지 하기 위해 하나
    또는 그 이상의 노드에서 리부팅이 발생할 수 있다.
    - CRS 서비스를 구동시키는 올바른 방법은 장비를 부팅시키는 것이다.
    - 서비스를 중단시키는 올바른 방법은, 장비를 shutdown 시키거나, "init.crs stop" 명령을
    실행시키는 것이다.
    - CRS 데몬을 kill 시키는 것은 올바른 방법이 아니며, 오직 설치된 CRS를 제거한 경우에만
    적용해도 되는 방법이다. (Bulletin No: 22343 참조) 이것은 , 플래그 파일에 불일치가 발생 할
    수 있기 때문이다.
    - 시스템 유지 보수를 위해서는, OS를 단일 사용자 모드 (single user mode)로 전환한다.
    서비스 스택이 구동되면, ps -ef 명령으로 관련된 데몬 프로세스를 확인 할 수 있다 :
    [rac1]/u01/home/beta> ps -ef | grep crs
    oracle 1363 999 0 11:23:21 ? 0:00 /u01/crs_home/bin/evmlogger.bin -o /u01
    oracle 999 1 0 11:21:39 ? 0:01 /u01/crs_home/bin/evmd.bin
    root 1003 1 0 11:21:39 ? 0:01 /u01/crs_home/bin/crsd.bin
    oracle 1002 1 0 11:21:39 ? 0:01 /u01/crs_home/bin/ocssd.bin
    3. CRS DAEMON 기능
    다음은 각각의 CRS 데몬 프로세스에 대한 간략한 설명이다 :
    CRSD:
    - HA 작업을 위한 엔진
    - '애플리케이션 자원'관리
    - '애플리케이션 자원'을 구동, 정지, fail over 처리
    - 애플리케이션 자원 구동/정지/점검 하기 위한 별도의 'actions'을 spawn
    - OCR(Oracle Configuration Repository)의 구성 프로파일 관리
    - OCR의 현재 알려진 상태를 저장
    - root 권한으로 실행
    - 장애 발생시 자동으로 재 구동됨
    OCSSD:
    - OCSSD는 RAC의 일부로, ASM과 함께 단일 인스턴스를 구성함
    - 노드 멤버쉽에 대한 액세스를 제공
    - 그룹 서비스 제공
    - 기본적인 클러스터 lock 기능 제공
    - 하드웨어 공급 업체에서 제공하는 클러스터 소프트웨어가 설치되어 있을 경우, 통합을 실시
    - 하드웨어 공급 업체에서 제공하는 클러스터 소프트웨어 없이도 실행 가능
    - 오라클 계정으로 실행
    - 장애로 인한 종료시 시스템 리부팅됨
    --- 리부팅은 split brain 현상 발생시, 데이터 corruption 방지를 목적으로 함.
    EVMD:
    - 특정한 사건 발생 시 이벤트 생성
    - 자식 프로세스로 evmlogger를 spawn 시킴
    - Evmlogger는 필요시 자식 프로세스를 spawn 시킴
    - callout directory를 스캔하고 callout을 호출
    - 오라클 계정으로 실행.
    - 장애로 인한 종료시 자동으로 재 구동됨
    4. CRS 로그 디렉토리
    CRS 문제의 원인을 추적할 때는, CRS 홈 디렉토리 아래 디렉토리를 살펴보는 것이
    중요하다.
    $ORA_CRS_HOME/crs/log - 이 디렉토리는, CRS 자원들에 대한 트레이스를 포함하며,
    CRS에 의해 식별된 가입(joining), 탈퇴(leaving), 재구동(restarting), 재배치(relocating)와
    관련된 정보들이 기록된다.
    $ORA_CRS_HOME/crs/init - crsd.bin 데몬과 관련된 모든 core dump가 기록된다.
    $ORA_CRS_HOME/css/log - css 로그는, 재구성(reconfiguration)이나, 성공하지
    못한 체크인 (missed checkin), 클라이언트의 css listener로 부터 발생한 연결(connect) 및
    연결해제(disconnect)와 관련된 모든 액션을 기록한다. 때에 따라서는 로거에서는 (auth.crit)
    유형의 메시지를 남기는데 이것은 오라클에 의해 리부팅이 발생할 때 남는다. 이 정보는
    리부팅이 정확히 언제 발생했는지를 확인하는데 사용될 수 있다.
    $ORA_CRS_HOME/css/init - 기본적으로는 ocssd로 부터의 core dump 파일을 저장하며, 프로세스의
    종료가 심각한 문제로 간주되는 css 데몬의 pid 정보 또한 기록된다. css의 비정상 재 구동이 발생할
    경우, core 파일은, core.<pid> 형태로 기록된다.
    $ORA_CRS_HOME/evm/log - evn과 evmlogger 데몬의 로그 파일이 기록된다. CRS 또는 CSS 관련 디렉토리
    처럼 디버깅 용도로 자주 사용되지는 않는다.
    $ORA_CRS_HOME/evm/init - EVM의 pid와 lock 파일이 저장된다. EVM으로 부터 발생한 core 파일 또한
    이 디렉토리에 저장된다. 디버깅을 위해서는 Note 1812.1 참조.
    $ORA_CRS_HOME/srvm/log - OCR을 위한 로그 파일.
    5. CRS 자원의 상태
    RAC를 설치하고, RAC root.sh을 실행시키면 VIPCA (Virtual IP Configuration Assistant)가
    구동된다. crs_stat 명령을 이용하여 모든 CRS 자원을 확인할 수 있다. 예 :
    cd $ORA_CRS_HOME/bin
    ./crs_stat
    NAME=ora.rac1.gsd
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE
    NAME=ora.rac1.oem
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE
    NAME=ora.rac1.ons
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE
    NAME=ora.rac1.vip
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE
    NAME=ora.rac2.gsd
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE
    NAME=ora.rac2.oem
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE
    NAME=ora.rac2.ons
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE
    NAME=ora.rac2.vip
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE
    CRS 자원을 읽기 쉬운 형태로 확인하기 위한 스크립트 또한 사용할 수 있다.
    다음은 shell script의 예이다 :
    --------------------------- Begin Shell Script -------------------------------
    #!/usr/bin/ksh
    # Sample 10g CRS resource status query script
    # Description:
    # - Returns formatted version of crs_stat -t, in tabular
    # format, with the complete rsc names and filtering keywords
    # - The argument, $RSC_KEY, is optional and if passed to the script, will
    # limit the output to HA resources whose names match $RSC_KEY.
    # Requirements:
    # - $ORA_CRS_HOME should be set in your environment
    RSC_KEY=$1
    QSTAT=-u
    AWK=/usr/xpg4/bin/awk # if not available use /usr/bin/awk
    # Table header:echo ""
    $AWK \
    'BEGIN {printf "%-45s %-10s %-18s\n", "HA Resource", "Target", "State";
              printf "%-45s %-10s %-18s\n", "-----------", "------", "-----";}'
    # Table body:
    $ORA_CRS_HOME/bin/crs_stat $QSTAT | $AWK \
    'BEGIN { FS="="; state = 0; }
    $1~/NAME/ && $2~/'$RSC_KEY'/ {appname = $2; state=1};
    state == 0 {next;}
    $1~/TARGET/ && state == 1 {apptarget = $2; state=2;}
    $1~/STATE/ && state == 2 {appstate = $2; state=3;}
    state == 3 {printf "%-45s %-10s %-18s\n", appname, apptarget, appstate; state=0;}'
    --------------------------- End Shell Script -------------------------------
    실행 결과 예시 :
    [opcbsol1]/u01/home/usupport> ./crsstat
    HA Resource Target State
    ora.V10SN.V10SN1.inst ONLINE ONLINE on opcbsol1
    ora.V10SN.V10SN2.inst ONLINE ONLINE on opcbsol2
    ora.V10SN.db ONLINE ONLINE on opcbsol2
    ora.opcbsol1.ASM1.asm ONLINE ONLINE on opcbsol1
    ora.opcbsol1.LISTENER_OPCBSOL1.lsnr ONLINE ONLINE on opcbsol1
    ora.opcbsol1.gsd ONLINE ONLINE on opcbsol1
    ora.opcbsol1.ons ONLINE ONLINE on opcbsol1
    ora.opcbsol1.vip ONLINE ONLINE on opcbsol1
    ora.opcbsol2.ASM2.asm ONLINE ONLINE on opcbsol2
    ora.opcbsol2.LISTENER_OPCBSOL2.lsnr ONLINE ONLINE on opcbsol2
    ora.opcbsol2.gsd ONLINE ONLINE on opcbsol2
    ora.opcbsol2.ons ONLINE ONLINE on opcbsol2
    ora.opcbsol2.vip ONLINE ONLINE on opcbsol2
    6. CRS 자원 관리
    자원을 관리하기 위해서는, srvctl 명령을 사용한다. 다음은 명령어 문법 예제이다.
    1) CRS 자원 상태
    srvctl status database -d <database-name> [-f] [-v] [-S <level>]
    srvctl status instance -d <database-name> -i <instance-name> >[,<instance-name-list>]
    [-f] [-v] [-S <level>]
    srvctl status service -d <database-name> -s <service-name>[,<service-name-list>]
    [-f] [-v] [-S <level>]
    srvctl status nodeapps [-n <node-name>]
    srvctl status asm -n <node_name>
    예제:
    데이터베이스의 상태, 모든 인스턴스와 모든 서비스
    srvctl status database -d ORACLE -v
    이름이 부여된 인스턴스의 상태와 현재 서비스
    srvctl status instance -d ORACLE -i RAC01, RAC02 -v
    이름이 부여된 서비스의 상태.
    srvctl status service -d ORACLE -s ERP -v
    데이터베이스 애플리케이션을 지원하는 모든 노드의 상태.
    srvctl status node
    2) CRS 자원의 구동
    srvctl start database -d <database-name> [-o < start-options>]
    [-c <connect-string> | -q]
    srvctl start instance -d <database-name> -i <instance-name>
    [,<instance-name-list>] [-o <start-options>] [-c <connect-string> | -q]
    srvctl start service -d <database-name> [-s <service-name>[,<service-name-list>]]
    [-i <instance-name>] [-o <start-options>] [-c <connect-string> | -q]
    srvctl start nodeapps -n <node-name>
    srvctl start asm -n <node_name> [-i <asm_inst_name>] [-o <start_options>]
    예제:
    데이터베이스를 모든 활성화된 인스턴스와 함께 구동.
    srvctl start database -d ORACLE
    이름이 부여된 인스턴스의 구동.
    srvctl start instance -d ORACLE -i RAC03, RAC04
    이름이 부여된 서비스의 구동. 연관된 인스턴스는 필요시 구동됨.
    srvctl start service -d ORACLE -s CRM
    이름이 부여된 인스턴스의 서비스의 구동.
    srvctl start service -d ORACLE -s CRM -i RAC04
    노드 애플리케이션의 구동.
    srvctl start nodeapps -n myclust-4
    3) CRS 자원의 정지
    srvctl stop database -d <database-name> [-o <stop-options>]
    [-c <connect-string> | -q]
    srvctl stop instance -d <database-name> -i <instance-name> [,<instance-name-list>]
    [-o <stop-options>][-c <connect-string> | -q]
    srvctl stop service -d <database-name> [-s <service-name>[,<service-name-list>]]
    [-i <instance-name>][-c <connect-string> | -q] [-f]
    srvctl stop nodeapps -n <node-name>
    srvctl stop asm -n <node_name> [-i <asm_inst_name>] [-o <start_options>]
    예제:
    데이터베이스, 모든 인스턴스, 모든 서비스를 정지 시킴.
    srvctl stop database -d ORACLE
    이름이 부여된 인스턴스를 정지 시킴. 그 전에 우선 존재하는 모든 서비스를 재배치 함.
    srvctl stop instance -d ORACLE -i RAC03,RAC04
    서비스를 정지시킴.
    srvctl stop service -d ORACLE -s CRM
    이름이 부여된 인스턴스의 서비스를 정지 시킴.
    srvctl stop service -d ORACLE -s CRM -i RAC04
    노드 애플리케이션을 정지 시킴. 인스턴스와 서비스 역시 정지됨.
    srvctl stop nodeapps -n myclust-4
    4) CRS 자원의 추가
    srvctl add database -d <name> -o <oracle_home> [-m <domain_name>] [-p <spfile>]
    [-A <name|ip>/netmask] [-r {PRIMARY | PHYSICAL_STANDBY | LOGICAL_STANDBY}]
    [-s <start_options>] [-n <db_name>]
    srvctl add instance -d <name> -i <inst_name> -n <node_name>
    srvctl add service -d <name> -s <service_name> -r <preferred_list>
    [-a <available_list>] [-P <TAF_policy>] [-u]
    srvctl add nodeapps -n <node_name> -o <oracle_home>
    [-A <name|ip>/netmask[/if1[|if2|...]]]
    srvctl add asm -n <node_name> -i <asm_inst_name> -o <oracle_home>
    OPTIONS:
    -A vip range, node, and database, address specification. The format of
    address string is:
    [<logical host name>]/<VIP address>/<net mask>[/<host interface1[ |
    host interface2 |..]>] [,] [<logical host name>]/<VIP address>/<net mask>
    [<host interface1[ | host interface2 |..]>]
    -a for services, list of available instances, this list cannot include
    preferred instances
    -m domain name with the format “us.mydomain.com”
    -n node name that will support one or more instances
    -o $ORACLE_HOME to locate Oracle binaries
    -P for services, TAF preconnect policy - NONE, PRECONNECT
    -r for services, list of preferred instances, this list cannot include
    available instances.
    -s spfile name
    -u updates the preferred or available list for the service to support the
    specified instance. Only one instance may be specified with the -u
    switch. Instances that already support the service should not be
    included.
    예제:
    새로운 노드의 추가.
    srvctl add nodeapps -n myclust-1 -o $ORACLE_HOME ?A
    139.184.201.1/255.255.255.0/hme0
    새로운 데이터 베이스의 추가.
    srvctl add database -d ORACLE -o $ORACLE_HOME
    이미 존제하는 데이터베이스에 이름이 부여된 인스턴스 추가.
    srvctl add instance -d ORACLE -i RAC01 -n myclust-1
    srvctl add instance -d ORACLE -i RAC02 -n myclust-2
    srvctl add instance -d ORACLE -i RAC03 -n myclust-3
    서비스를 이미 존재하는 데이터베이스에 추가하며, 선호되는 인스턴스를 지정 (-r)하고,
    가용한 인스턴스를 지정함(-a). 가용 인스턴스에 대해서는 기본 failover를 사용함.
    srvctl add service -d ORACLE -s STD_BATCH -r RAC01,RAC02 -a RAC03,RAC04
    이미 존재하는 데이터베이스에 선호되는 인스턴스를 list 1, 가용한 인스턴스를 list 2에
    추가함. 가용 인스턴스에 대해서는 사전연결 (preconnect) 방식을 사용함.
    srvctl add service -d ORACLE -s STD_BATCH -r RAC01,RAC02 -a RAC03,RAC04 -P PRECONNECT
    5) CRS RE자원의 제거
    srvctl remove database -d <database-name>
    srvctl remove instance -d <database-name> [-i <instance-name>]
    srvctl remove service -d <database-name> -s <service-name> [-i <instance-name>]
    srvctl remove nodeapps -n <node-name>
    예제:
    데이터베이스에 대한 애플리케이션의 제거.
    srvctl remove database -d ORACLE
    이미 존재하는 데이터베이스의 이름이 부여된 인스턴스에 대한 애플리케이션 제거.
    srvctl remove instance -d ORACLE -i RAC03
    srvctl remove instance -d ORACLE -i RAC04
    서비스 제거.
    srvctl remove service -d ORACLE -s STD_BATCH
    인스턴스로부터 서비스 제거.
    srvctl remove service -d ORACLE -s STD_BATCH -i RAC03,RAC04
    노드로 부터 모든 노드 애플리케이션 제거.
    srvctl remove nodeapps -n myclust-4
    6) CRS 자원의 변경
    srvctl modify database -d <name> [-n <db_name] [-o <ohome>] [-m <domain>]
    [-p <spfile>] [-r {PRIMARY | PHYSICAL_STANDBY | LOGICAL_STANDBY}]
    [-s <start_options>]
    srvctl modify instance -d <database-name> -i <instance-name> -n <node-name>
    srvctl modify instance -d <name> -i <inst_name> {-s <asm_inst_name> | -r}
    srvctl modify service -d <database-name> -s <service_name> -i <instance-name>
    -t <instance-name> [-f]
    srvctl modify service -d <database-name> -s <service_name> -i <instance-name>
    -r [-f]
    srvctl modify nodeapps -n <node-name> [-A <address-description> ] [-x]
    OPTIONS:
    -i <instance-name> -t <instance-name> the instance name (-i) is replaced by the
    instance name (-t)
    -i <instance-name> -r the named instance is modified to be a preferred instance
    -A address-list for VIP application, at node level
    -s <asm_inst_name> add or remove ASM dependency
    예제:
    인스턴스가 다른 노드에서 실행되도록 변경.
    srvctl moinstance -d ORACLE -n myclust-4
    서비스가 다른 노드에서 실행되도록 변경.
    srvctl modify service -d ORACLE -s HOT_BATCH -i RAC01 -t RAC02
    인스턴스가 서비스의 선호되는 인스턴스가 되도록 변경.
    srvctl modify service -d ORACLE -s HOT_BATCH -i RAC02 ?r
    7) SERVICE의 재 배치
    srvctl relocate service -d <database-name> -s <service-name> [-i <instance-name >]-t<instance-name > [-f]
    예제:
    서비스를 한 인스턴스에서 다른 인스턴스로 재 배치
    srvctl relocate service -d ORACLE -s CRM -i RAC04 -t RAC01
    8) CRS 자원을 활성화 (자원은 이 기능을 사용할 당시 실행중이거나, 정지된 상태일 수 있음)
    srvctl enable database -d <database-name>
    srvctl enable instance -d <database-name> -i <instance-name> [,<instance-name-list>]
    srvctl enable service -d <database-name> -s <service-name>] [, <service-name-list>] [-i <instance-name>]
    예제:
    데이터베이스를 활성화.
    srvctl enable database -d ORACLE
    이름이 부여된 인스턴스의 활성화.
    srvctl enable instance -d ORACLE -i RAC01, RAC02
    서비스의 활성화.
    srvctl enable service -d ORACLE -s ERP,CRM
    이름이 부여된 인스턴스에서 서비스의 활성화.
    srvctl enable service -d ORACLE -s CRM -i RAC03
    9) CRS 자원의 비활성화 (자원은 이 기능을 사용할 당시 정지된 상태 이어야만 함)
    srvctl disable database -d <database-name>
    srvctl disable instance -d <database-name> -i <instance-name> [,<instance-name-list>]
    srvctl disable service -d <database-name> -s <service-name>] [,<service-name-list>] [-i <instance-name>]
    예제:
    데이터베이스를 전역(global) 비활성화 시킴.
    srvctl disable database -d ORACLE
    이름이 부여된 인스턴스의 비활성화.
    srvctl disable instance -d ORACLE -i RAC01, RAC02
    서비스를 전역(global) 비활성화.
    srvctl disable service -d ORACLE -s ERP,CRM
    이름이 부여된 인스턴스상의 서비스를 비 활성화.
    srvctl disable service -d ORACLE -s CRM -i RAC03,RAC04
    추가 정보는 Oracle10g Real Application Clusters Administrator's Guide - Appendix B 참조
    Example
    Reference Documents
    <Note:259301.1> CRS and 10g Real Application Clusters

    To download the registered logos by Oracle for OCP, OCA, OCE, & OCM Certifications.
    You have to request to Oracle Exam Support Team to provide the link and the credentials (User Name/Password) to download the same.
    Mail to the following E-Mail: [email protected]
    Note 1: To get the response on time, you may need to provide your prometric information details i.e. Exam Passed Date, Prometric ID, Full Name, and Corresponding Address.
    Note 2: You will never have to disclose your credentials (User Name/Password) to anybody, as Oracle is going to give this for you especially.
    Regards,
    Sabdar Syed,
    http://sabdarsyed.blogspot.com

  • MULTIPLE USERS 10G RAC ORACLE_HOME INSTALL WITH ASM/CRS

    Hi,
    We need to install multiple 10g RAC databases on a two node Sun servers. Below is our configuration:
    1) Sun Solaris (ver 10) with Sun Cluster 3.2
    2) One ASM/CRS install (by 1 OS account)
    3) Four ORACLE_HOME 10g database install (by 4 different OS user accounts)
    We would like to use one ASM instance for all four databases with appropriate privileges.
    OS User:           OS Group
    ========      =========
    oraasm           dbaasm - (ASM and CRS install owner)
    ora1           dbaora1 - first db owner
    ora2           dbaora2 - second db owner
    ora3           dbaora3 - third db owner
    ora4           dbaora4 - fourth db owner
    I understand that certain privileges need to be shared between ASM/CRS and DB owners. Please let me know the steps to be followed to complete this install.
    Thanks in advance.

    Hi
    Please read that: Documentation http://download.oracle.com/docs/html/B10766_08/intro.htm
    - You can install and operate multiple Oracle homes and different versions of Oracle cluster database software on the same computer as described in the following points:
    -You can install multiple Oracle Database 10g RAC homes on the same node. The multiple homes feature enables you to install one or more releases on the same machine in multiple Oracle home directories. However, each node can have only one CRS home.
    -In addition, you cannot install Oracle Database 10g RAC into an existing single-instance Oracle home. If you have an Oracle home for Oracle Database 10g, then use a different Oracle home, and one that is available across the entire cluster for your new installation. Similarly, if you have an Oracle home for an earlier Oracle cluster database software release, then you must also use a different home for the new installation.
    If the OUI detects an earlier version of a database, then the OUI asks you about your upgrade preferences. You have the option to upgrade one of the previous-version databases with DBUA or to create a new database using DBCA. The information collected during this dialog is passed to DBUA or DBCA after the software is installed.
    - You can use the OUI to complete some of the de-install and re-install steps for Oracle Database 10g Real Application Clusters if needed.
    Note:
    Do not move Oracle binaries from one Oracle home to another because this causes dynamic link failures.
    . If you are using ASM with Oracle database instances from multiple database homes on the same node, then Oracle recommends that you run the ASM instance from an Oracle home that is distinct from the database homes. In addition, the ASM home should be installed on every cluster node. This prevents the accidental removal of ASM instances that are in use by databases from other homes during the de-installation of a database's Oracle home.

  • 10G RAC: CRS 설치 실패 후 정리 방법

    제품 : ORACLE SERVER
    작성날짜 : 2004-11-30
    10G RAC: CRS 설치 실패 후 정리 방법
    =====================================
    PURPOSE
    이 문서는, DBA와 기술 지원 엔지니어가 10g RAC의 CRS (Cluster Ready Services)
    실패시, 일부 설치된 CRS를 제거하는데 필요한 정보를 제공하는 것을 목적으로 한다.
    Explanation
    설치에 실패한 CRS는 노드 리부팅과 같은 문제를 야기 시킬 수 있다.
    실패한 CRS 설치본을 정리하기 위해서는 다음과 같은 절차를 따른다:
    1. $ORA_CRS_HOME/install 디렉토리에서 rootdelete.sh 스크립트를 실행한 후 rootdeinstall.sh 스크립트를
    실행시킨다. 만약 이 스크립트를 실행시키는데 문제가 있거나, 모든 콤포넌트가 성공적으로 제거되었는지
    여부를 확인하려면 step 2로 간다:
    2. 모든 노드로 부터 노드 애플리케이션을 중단시킨다:
    srvctl stop nodeapps -n <node name>
    3. 노드 부팅시 CRS가 구동되는 것을 예방한다. 이를 위해 root 계정에서 다음과 같은 작업을
    수행한다 :
    Sun:
    rm /etc/init.d/init.cssd
    rm /etc/init.d/init.crs
    rm /etc/init.d/init.crsd
    rm /etc/init.d/init.evmd
    rm /etc/rc3.d/K96init.crs
    rm /etc/rc3.d/S96init.crs
    rm -Rf /var/opt/oracle/scls_scr
    rm -Rf /var/opt/oracle/oprocd
    rm /etc/inittab.crs
    cp /etc/inittab.orig /etc/inittab
    Linux:
    rm -f /etc/init.d/init.cssd
    rm -f /etc/init.d/init.crs
    rm -f /etc/init.d/init.crsd
    rm -f /etc/init.d/init.evmd
    rm -f /etc/rc2.d/K96init.crs
    rm -f /etc/rc2.d/S96init.crs
    rm -f /etc/rc3.d/K96init.crs
    rm -f /etc/rc3.d/S96init.crs
    rm -f /etc/rc5.d/K96init.crs
    rm -f /etc/rc5.d/S96init.crs
    rm -Rf /etc/oracle/scls_scr
    rm -f /etc/inittab.crs
    cp /etc/inittab.orig /etc/inittab
    HP-UX:
    rm /sbin/init.d/init.cssd
    rm /sbin/init.d/init.crs
    rm /sbin/init.d/init.crsd
    rm /sbin/init.d/init.evmd
    rm /sbin/rc3.d/K960init.crs
    rm /sbin/rc3.d/S960init.crs
    rm -Rf /var/opt/oracle/scls_scr
    rm -Rf /var/opt/oracle/oprocd
    rm /etc/inittab.crs
    cp /etc/inittab.orig /etc/inittab
    HP Tru64:
    rm /sbin/init.d/init.cssd
    rm /sbin/init.d/init.crs
    rm /sbin/init.d/init.crsd
    rm /sbin/init.d/init.evmd
    rm /sbin/rc3.d/K96init.crs
    rm /sbin/rc3.d/S96init.crs
    rm -Rf /var/opt/oracle/scls_scr
    rm -Rf /var/opt/oracle/oprocd
    rm /etc/inittab.crs
    cp /etc/inittab.orig /etc/inittab
    IBM AIX:
    rm /etc/init.cssd
    rm /etc/init.crs
    rm /etc/init.crsd
    rm /etc/init.evmd
    rm /etc/rc.d/rc2.d/K96init.crs
    rm /etc/rc.d/rc2.d/S96init.crs
    rm -Rf /etc/oracle/scls_scr
    rm -Rf /etc/oracle/oprocd
    rm /etc/inittab.crs
    cp /etc/inittab.orig /etc/inittab
    4. 만약 프로세스가 살아 있다면 EVM, CRS 및 CRS 프로세스를 kill 시키거나
    노드를 리부팅 한다:
    ps -ef | grep crs
    kill <crs pid>
    ps -ef | grep evm
    kill <evm pid>
    ps -ef | grep css
    kill <css pid>
    5. CRS 설치 디렉토리를 제거한다:
    rm -Rf <CRS Install Location>/*
    6. Oracle Universal Installer에서 CRS home을 De-install 한다.
    7. dd 명령으로 OCR 및 Voting File을 제거한다. 예 :
    dd if=/dev/zero of=/dev/rdsk/V1064_vote_01_20m.dbf bs=8192 count=2560
    dd if=/dev/zero of=/dev/rdsk/ocrV1064_100m.ora bs=8192 count=12800
    만약 RDBMS 설치를 제거한다면, 사용중이던 ASM 디스크도 정리한다.
    8. 만약 CRS를 재 설치하고자 하면, RAC 설치 매뉴얼에 기술된 순서대로 설치를 다시 진행한다.
    Example
    Reference Documents
    <Note:239998.1> 10g RAC: How to Clean Up After a Failed CRS Install

  • Error When creating a database on a newly upgraded home to 11.1.0.7

    Here are the variables:
    OS: LInux RHEL 5.2 64bit
    Storage: ASM
    Clustered database
    This is a fresh install. We first installed 11.1.0.6. Only the software, no databases.
    We then applied the 11.1.0.7 patchset to the following homes in the following order
    1-CRS Home
    2-ASM Home
    3-ORACLE_HOME
    *Note at this time we only have the software and no actual databases installed.
    Once everything is upgraded to 11.1.0.7 (Confirmed by Opatch) we proceeded with installing a database using dbca.
    Specified the oracle home and path to the right ones.
    Once the install starts we get the following error message:
    ORA-01092: ORACLE instance terminated. Disconnection forced. (which really doesn't tell much!!)
    the alert log for it shows:
    ORA-00704: bootstrap process failure
    ORA-39700: database must be opened with UPGRADE option
    and points to another file that shows:
    Version: #1 SMP Tue Apr 29 13:16:15 EDT 2008
    Machine: x86_64
    Instance name: ORACLE_SID1
    Redo thread mounted by this instance: 0 <none>
    Oracle process number: 23
    Unix process pid: 10345, image: oracle@+hostname+ (TNS V1-V3)
    *** 2009-01-23 09:50:46.562
    *** SESSION ID:(170.3) 2009-01-23 09:50:46.562
    *** CLIENT ID:() 2009-01-23 09:50:46.562
    *** SERVICE NAME:() 2009-01-23 09:50:46.562
    *** MODULE NAME:(sqlplus@+hostname+ (TNS V1-V3)) 2009-01-23 09:50:46.562
    *** ACTION NAME:(0000002 FINISHED51) 2009-01-23 09:50:46.562
    Control file created with size 1128 blocks
    *** 2009-01-23 09:50:47.830
    Prior to RESETLOGS processing...
    ALTER SYSTEM ARCHIVE LOG ALL USING BACKUP CONTROLFILE start
    Database is not in archivelog mode
    ALTER SYSTEM ARCHIVE LOG ALL USING BACKUP CONTROLFILE complete
    *** 2009-01-23 09:50:47.847
    DDE rules only execution for: ORA 313
    ----- START Event Driven Actions Dump ----
    ---- END Event Driven Actions Dump ----
    ----- START DDE Actions Dump -----
    Executing SYNC actions
    ----- START DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (Async) -----
    Successfully dispatched
    ----- END DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (SUCCESS, 0 csec) -----
    Executing ASYNC actions
    ----- END DDE Actions Dump (total 0 csec) -----
    ORA-00313: open failed for members of log group 1 of thread 1
    *** 2009-01-23 09:50:48.528
    DDE: Problem Key 'ORA 313' was flood controlled (0x1) (no incident)
    ORA-00313: open failed for members of log group 2 of thread 1
    ORA-00313: open failed for members of log group 2 of thread 1
    *** 2009-01-23 09:50:49.916
    ORA-00704: bootstrap process failure
    ORA-39700: database must be opened with UPGRADE option
    *** 2009-01-23 09:50:49.917
    USER (ospid: 10345): terminating the instance due to error 704
    Any thoughts on what the issue might be here??
    Thanks in advance.
    Edited by: user9538681 on Jan 23, 2009 7:35 AM

    Did you choose in DBCA a predefined (with seeded databases) or a customized (new database) installation? If it is a predefined installation there is something wrong with the delivered datafiles,although the patchset should include an already patched set of datafiles. The error messages say, you have patched software,but un-patched datafiles.
    Werner

Maybe you are looking for