ORACLE_HOME direcory of instance

Hello!
How to now ORACLE_HOME direcory of started instance on Linux ?
I'm usung 11.2.
Thanks and regards,
Pavel

Pavel wrote:
Hello!
How to now ORACLE_HOME direcory of started instance on Linux ?
I'm usung 11.2.
Thanks and regards,
PavelCheck this link:
http://tardate.blogspot.com/2007/05/getting-environment-variables-on-oracle.html

Similar Messages

  • 1 server, multiple oracle_homes for each instance (dev, test, uat, etc)...

    Hello,
    We have one beefy server to hold our dev and test and maybe more non-production databases. My plan was to install separate oracle_homes for each so that I can patch and only affect one instance at a time. Is anybody else doing this? Does this sound right? Any gotchas that you have run into with this type of environment?
    I read something about you should only have one active listener...
    Same concept, but with the ASM instance. Can I also install multiple oracle_homes for each asm instance on the same box? Is anybody else doing this? Again any gotchas people have run into to? For ASM, should I also have only one active listener?
    Am I right that the only thing that affects all instances is at the OS, hardware level such as Linux patches, anything to do with users, groups, shared folders, nics, etc?
    Thank you for your input!

    For ASM, should I also have only one active listener?ASM does NOT require any listener & none should exist for ASM.

  • How to Patch Multiple Instances on same oracle home

    Hi All
    I Have 4 Instances running on server like below
    DEVSTAG /opt/oracle/product/10.2.0
    DEVUAT /opt/oracle/product/10.2.0
    DEVREVT /opt/oracle/product/10.2.0
    DEVREG /opt/oracle/product/11.2.0
    i want to Apply the patch set 11.1.0.7.1 to DEVUAT & DEVREVT Instances , Can someone please help .. i dont want this patch set applied to DEVSTAG Instance .. how to exclude that Instance from getting patched ?
    Thanks in advance .. hope my requirement is clear.

    Which patch are you referring to ? The database patching tool (opatch) generally applies any database patch to an ORACLE_HOME. You will need to follow the instructions in the README of the patch. If you need to only patch one instance, then you will have to create a dedicated ORACLE_HOME for each database (i.e they will not share database executables). If you share ORACLE_HOME amongst multiple instances, then you will have to patch all of them simultaneously.
    HTH
    Srini

  • CNR: Two cnr instances in the same server (lab environment)

        Hello, we are trying to install two cnr 7.2 intances on the same server in order to replicate in lab the real environnment (failover local cluster) without deploying two servers.
    I've seen on the installation guide that installing both a local and regional server on a single machine is supported, but what about two local servers working as a failover pair?
    up to date, we've managed to install both installs, the dhcp servers are configured for using different interfaces and web gui are listening in different ports. scp ports have been changed (1234 and 4321 ) and, on dhcp-server expert configuration: failover-remote-port and failover-port are configured to be different (677 - 678 in one , and 678 - 677 in the other)
    We can manage both servers from DHCP - failover configuration, as they show up and running, and even see logs... The other configs are
    When trying to syncronize we get the error
                                                "ChangeSet list is empty."
    is this configuration supported?
    best regards!

    user10127912 wrote:
    Hi,
    We are planning to install second instance of Oracle 11gR2 in Linux server 2.6.39-400.21.1.el6uek.x86_64 x86_64. This is something we never haven done before. If you have such experience, please give us some insight.
    The existing instance has all the standard ports:
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    Enterprise Manager Console HTTP Port (pterpdb02) = 1158
    Enterprise Manager Agent Port (pterpdb02) = 3938
    What ports should we select for second listener and enterprise manager? Is there anything else that we need to know before we install the second instance?If you want a second database instance, no additional installation is required - as long as you want to run the second instance at the same version as the the first. Just fire up dbca and create the second database. One installation of Oracle (one ORACLE_HOME) is capable of supporting many database instances, though the same may or may not be said of the hardware it is running on.
    As already said, one listener is enough. One listener, running from one oracle home, using the default name of LISTENER, running on the defualt port of 1521, is quite capable of -- indeed, WAS DESIGNED TO, supporte multiple database instances of multiple versions running from multiple ORACLE_HOMEs.
    One instance of dbcontrol/dbconsole will support only one database. If you do not use Grid Control (extra installation, extra license) you will need to use the emca utility or one of the options in the dbca utility to configure a seperate instance of dbcontrol for each database. Don't worry about the ports, the creation utility will take care of it and report what it does.

  • Terminating the instance due to error 119

    System : Oracle 11gR2 running on Oracle VM.
    Issue : Oracle fails to comeup after LISTENER.ORA is removed/corrupted. Any reason?
    Actions taken : used *.ora files from backup taken during healthy state and dbstart works fine now.
    Resolved but Question : Does dbstart depend on *.ora files availability? What is this error 119 (couldnt find any info on that)?
    Thanks.

    Dear sb92075,
    Thanks for confirming :
    listener is NOT required to start or access any local Oracle database.
    listener.ora file is NOT required to start or use the listener.
    Coming to ...
    It is really, Really, REALLY difficult to fix a problem that can not be seen.
    As said earlier, issue is fixed.  Question is why DBSTART works only when proper ORA files are used.
    Anyways, here is the info requested :
    [oracle@oraclelinux6 bin]$ dbstart
    ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener
    Usage: /apps/app/oracle/product/11.2.0/dbhome_1/bin/dbstart ORACLE_HOME
    Processing Database instance "orcl": log file /apps/app/oracle/product/11.2.0/dbhome_1/startup.log
    [oracle@oraclelinux6 bin]$
    From startup log :
    SQL*Plus: Release 11.2.0.1.0 Production on Mon Dec 2 18:47:47 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    SQL> Connected to an idle instance.
    SQL> ORA-00119: invalid specification for system parameter LOCAL_LISTENER
    ORA-00132: syntax error or unresolved network name 'LISTENER_ORCL'
    SQL> Disconnected
    /apps/app/oracle/product/11.2.0/dbhome_1/bin/dbstart: Database instance "orcl" warm started.
    [oracle@oraclelinux6 bin]$
    From trace file :
    *** 2013-12-02 18:47:58.236
    USER (ospid: 3950): terminating the instance due to error 119
    [oracle@oraclelinux6 trace]$
    From alert log :
    Starting up:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options.
    Using parameter settings in server-side spfile /apps/app/oracle/product/11.2.0/dbhome_1/dbs/spfileorcl.ora
    System parameters with non-default values:
      processes                = 150
      memory_target            = 1584M
      control_files            = "/apps/db/orcl/control01.ctl"
      control_files            = "/apps/app/oracle/flash_recovery_area/orcl/control02.ctl"
      db_block_size            = 8192
      compatible               = "11.2.0.0.0"
      db_recovery_file_dest    = "/apps/app/oracle/flash_recovery_area"
      db_recovery_file_dest_size= 3882M
      undo_tablespace          = "UNDOTBS1"
      remote_login_passwordfile= "EXCLUSIVE"
      db_domain                = "localdomain"
      dispatchers              = "(PROTOCOL=TCP) (SERVICE=orclXDB)"
      local_listener           = "LISTENER_ORCL"
      audit_file_dest          = "/apps/app/oracle/admin/orcl/adump"
      audit_trail              = "DB"
      db_name                  = "orcl"
      open_cursors             = 300
      diagnostic_dest          = "/apps/app/oracle"
    USER (ospid: 2999): terminating the instance due to error 119
    Instance terminated by USER, pid = 2999
    Mon Dec 02 18:47:51 2013
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 3
    Using LOG_ARCHIVE_DEST_1 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =27
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    Starting up:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options.
    Using parameter settings in server-side spfile /apps/app/oracle/product/11.2.0/dbhome_1/dbs/spfileorcl.ora
    System parameters with non-default values:
      processes                = 150
      memory_target            = 1584M
      control_files            = "/apps/db/orcl/control01.ctl"
      control_files            = "/apps/app/oracle/flash_recovery_area/orcl/control02.ctl"
      db_block_size            = 8192
      compatible               = "11.2.0.0.0"
      db_recovery_file_dest    = "/apps/app/oracle/flash_recovery_area"
      db_recovery_file_dest_size= 3882M
      undo_tablespace          = "UNDOTBS1"
      remote_login_passwordfile= "EXCLUSIVE"
      db_domain                = "localdomain"
      dispatchers              = "(PROTOCOL=TCP) (SERVICE=orclXDB)"
      local_listener           = "LISTENER_ORCL"
      audit_file_dest          = "/apps/app/oracle/admin/orcl/adump"
      audit_trail              = "DB"
      db_name                  = "orcl"
      open_cursors             = 300
      diagnostic_dest          = "/apps/app/oracle"
    USER (ospid: 3950): terminating the instance due to error 119
    Instance terminated by USER, pid = 3950
    [oracle@oraclelinux6 trace]$
    [oracle@oraclelinux6 trace]$ df -k
    Filesystem                          1K-blocks      Used Available Use% Mounted on
    /dev/mapper/vg_oraclelinux6-lv_root  15237120   8088772   5709648  59% /
    tmpfs                                 5242880       272   5242608   1% /dev/shm
    /dev/sda1                              495844    125202    345042  27% /boot
    /dev/sdd                             12385456  10527572   1228740  90% /apps
    none                                  4194304       108   4194196   1% /tmp
    Linux                               353894396 300370788  53523608  85% /media/sf_Linux
    /dev/sr0                                54082     54082         0 100% /media/VBOXADDITIONS_4.2.4_81684
    [oracle@oraclelinux6 trace]$ ps -ef | grep oracle
    avahi     1513     1  0 18:43 ?        00:00:00 avahi-daemon: running [oraclelinux6.local]
    oracle    2354     1  0 18:45 ?        00:00:00 /usr/bin/gnome-keyring-daemon --daemonize --login
    oracle    2363  2344  0 18:45 ?        00:00:00 gnome-session
    oracle    2371     1  0 18:45 ?        00:00:00 dbus-launch --sh-syntax --exit-with-session
    oracle    2372     1  0 18:45 ?        00:00:00 /bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
    oracle    2435     1  0 18:45 ?        00:00:00 /usr/bin/VBoxClient --clipboard
    oracle    2443     1  0 18:45 ?        00:00:00 /usr/bin/VBoxClient --display
    oracle    2448     1  0 18:45 ?        00:00:00 /usr/bin/VBoxClient --seamless
    oracle    2453     1  0 18:45 ?        00:00:01 /usr/bin/VBoxClient --draganddrop
    oracle    2477     1  0 18:45 ?        00:00:00 /usr/libexec/gconfd-2
    oracle    2484     1  0 18:45 ?        00:00:00 /usr/libexec/gnome-settings-daemon
    oracle    2491     1  0 18:45 ?        00:00:00 /usr/libexec/gvfsd
    oracle    2494     1  0 18:45 ?        00:00:00 seahorse-daemon
    oracle    2502  2363  0 18:45 ?        00:00:00 metacity --sm-client-id 1072b0438d14c83ab2138561248658457800000023660026
    oracle    2506     1  0 18:45 ?        00:00:00 /usr/bin/pulseaudio --start --log-target=syslog
    oracle    2511  2363  0 18:45 ?        00:00:00 gnome-panel --sm-client-id 1072b0438d14c83ab2138561248661659600000023660027
    oracle    2519  2506  0 18:45 ?        00:00:00 /usr/libexec/pulse/gconf-helper
    oracle    2520  2363  0 18:45 ?        00:00:00 nautilus --sm-client-id 1072b0438d14c83ab2138561248673276200000023660028 --sm-client-state-file /home/oracle/.config/session-state/nautilus-1386038529.state
    oracle    2522     1  0 18:45 ?        00:00:00 /usr/libexec/bonobo-activation-server --ac-activate --ior-output-fd=18
    oracle    2528     1  0 18:45 ?        00:00:00 /usr/libexec/wnck-applet --oaf-activate-iid=OAFIID:GNOME_Wncklet_Factory --oaf-ior-fd=18
    oracle    2530     1  0 18:45 ?        00:00:00 /usr/libexec/trashapplet --oaf-activate-iid=OAFIID:GNOME_Panel_TrashApplet_Factory --oaf-ior-fd=24
    oracle    2532     1  0 18:45 ?        00:00:00 /usr/libexec/gvfs-gdu-volume-monitor
    oracle    2538     1  0 18:45 ?        00:00:00 /usr/libexec/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
    oracle    2544  2363  0 18:45 ?        00:00:00 gnome-volume-control-applet
    oracle    2545  2363  0 18:45 ?        00:00:00 /usr/libexec/polkit-gnome-authentication-agent-1
    oracle    2546  2363  0 18:45 ?        00:00:00 gpk-update-icon
    oracle    2551     1  0 18:45 ?        00:00:00 /usr/libexec/gvfs-gphoto2-volume-monitor
    oracle    2605  2363  0 18:45 ?        00:00:00 abrt-applet
    oracle    2606  2363  0 18:45 ?        00:00:00 nm-applet --sm-disable
    oracle    2607  2363  0 18:45 ?        00:00:00 gnome-power-manager
    oracle    2608  2363  0 18:45 ?        00:00:00 bluetooth-applet
    oracle    2611     1  0 18:45 ?        00:00:00 /usr/libexec/gvfs-afc-volume-monitor
    oracle    2612  2363  0 18:45 ?        00:00:00 /usr/libexec/gdu-notification-daemon
    oracle    2614  2363  0 18:45 ?        00:00:00 python /usr/share/system-config-printer/applet.py
    oracle    2625     1  0 18:45 ?        00:00:00 gnome-screensaver
    oracle    2627     1  0 18:45 ?        00:00:00 /usr/libexec/im-settings-daemon
    oracle    2780     1  0 18:45 ?        00:00:00 /usr/libexec/gconf-im-settings-daemon
    oracle    2786     1  0 18:45 ?        00:00:00 /usr/libexec/clock-applet --oaf-activate-iid=OAFIID:GNOME_ClockApplet_Factory --oaf-ior-fd=19
    oracle    2788     1  0 18:45 ?        00:00:00 /usr/libexec/gdm-user-switch-applet --oaf-activate-iid=OAFIID:GNOME_FastUserSwitchApplet_Factory --oaf-ior-fd=28
    oracle    2790     1  0 18:45 ?        00:00:00 /usr/libexec/notification-area-applet --oaf-activate-iid=OAFIID:GNOME_NotificationAreaApplet_Factory --oaf-ior-fd=34
    oracle    2792     1  0 18:45 ?        00:00:00 /usr/bin/gnote --panel-applet --oaf-activate-iid=OAFIID:GnoteApplet_Factory --oaf-ior-fd=40
    oracle    2837     1  0 18:45 ?        00:00:00 /usr/libexec/gvfsd-burn --spawner :1.7 /org/gtk/gvfs/exec_spaw/1
    oracle    2839     1  0 18:45 ?        00:00:00 /usr/libexec/gvfsd-metadata
    oracle    3863     1  0 18:46 ?        00:00:01 gnome-terminal
    oracle    3864  3863  0 18:46 ?        00:00:00 gnome-pty-helper
    oracle    3865  3863  0 18:46 pts/0    00:00:00 bash
    oracle    3881  3863  0 18:46 pts/1    00:00:00 bash
    oracle    3896  3863  0 18:46 pts/2    00:00:00 bash
    oracle    4012  3896  0 18:54 pts/2    00:00:00 ps -ef
    oracle    4013  3896  0 18:54 pts/2    00:00:00 grep oracle
    [oracle@oraclelinux6 trace]$

  • Is database link only 'valid' for instances in the same server?

    Background: We have 5 servers and installed Oracle 7.3 and 8.
    Problem: I managed to create database link to other instance in same server; but not to other server. Error message received was :
    ORA-02019: connection description for remote database not found
    : TNS server name not found
    BUT: I managed it with 'copy from ' command in SQL*plus.
    Question: Is database link only 'valid' for instances in the same server?
    Thanks! ;o)

    user10127912 wrote:
    Hi,
    We are planning to install second instance of Oracle 11gR2 in Linux server 2.6.39-400.21.1.el6uek.x86_64 x86_64. This is something we never haven done before. If you have such experience, please give us some insight.
    The existing instance has all the standard ports:
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    Enterprise Manager Console HTTP Port (pterpdb02) = 1158
    Enterprise Manager Agent Port (pterpdb02) = 3938
    What ports should we select for second listener and enterprise manager? Is there anything else that we need to know before we install the second instance?If you want a second database instance, no additional installation is required - as long as you want to run the second instance at the same version as the the first. Just fire up dbca and create the second database. One installation of Oracle (one ORACLE_HOME) is capable of supporting many database instances, though the same may or may not be said of the hardware it is running on.
    As already said, one listener is enough. One listener, running from one oracle home, using the default name of LISTENER, running on the defualt port of 1521, is quite capable of -- indeed, WAS DESIGNED TO, supporte multiple database instances of multiple versions running from multiple ORACLE_HOMEs.
    One instance of dbcontrol/dbconsole will support only one database. If you do not use Grid Control (extra installation, extra license) you will need to use the emca utility or one of the options in the dbca utility to configure a seperate instance of dbcontrol for each database. Don't worry about the ports, the creation utility will take care of it and report what it does.

  • How to change DB & Instance name on RAC

    Hi Experts,
    Can anyone tell me how can i change my database name along with the two instances running on the RAC server?
    Any ideas......
    Regards,
    MB

    You can rename database by creating control file as well , like we use to do in single instance database.
    1) Shutdown node 2
    2) Run following command on node 1
    alter database backup control file to trace ;
    3) shutdown database on node 1
    4) copy trace file created in step 2 to file crctl.sql (say) . Edit crctl.sql and set database name what u want to set.
    5) edit init<sid>.ora and change database name
    6) startup nomount and run crctl.sql
    7) Startup database in both node
    8) Change tnsnames.ora and listener.ora ( if needed)
    9) config srvctl
    srvctl remove database -d <old_database_name>
    srvctl add database -d <new_db_name> -o $ORACLE_HOME
    srvctl add instance -d <new_db_name> -i <instance name on node 1> -n Node1
    srvctl add instance -d <new_db_name> -i <instance name on node 2> -n Node2
    Virag

  • 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

  • Oracle database  10.2 installation on mac os 10.5. server

    Hi.,
    Any how I managed to install oracle software and database with two attempt on mac server.
    but it did not create listener.ora and tnsnames.ora file in admin directory.
    I created both files and put it into /network/admin folder and configure it. it looks like:
    tnsname.ora
    RSG =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.133)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = rsg)
    listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /Users/oracle/oracle/product/10.2.0/db_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = rsg)
    (ORACLE_HOME = /Users/oracle/oracle/product/10.2.0/db_1)
    LISTENER =rsg
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.133)(PORT = 1521))
    but when login through oracle and type lsnrctl status it shows:
    LSNRCTL for MacOS X Server: Version 10.2.0.4.0 - Production on 25-MAY-2009 12:33:37
    Copyright (c) 1991, 2007, Oracle. All rights reserved.
    TNS-01150: The address of the specified listener name is incorrect
    NL-00303: syntax error in NV string
    2. when try to start database is shows:-
    oracle:~ oracle$ dbstart
    ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener
    Usage: //Users/oracle/oracle/product/10.2.0/db_1/bin/dbstart ORACLE_HOME
    touch: /Users/admin/oracle/product/10.2.0/db_1/startup.log: Permission denied
    chmod: /Users/admin/oracle/product/10.2.0/db_1/startup.log: Permission denied
    Processing Database instance "rsg": log file /Users/admin/oracle/product/10.2.0/db_1/startup.log
    //Users/oracle/oracle/product/10.2.0/db_1/bin/dbstart: line 361: /Users/admin/oracle/product/10.2.0/db_1/startup.log: Permission denied
    where my ORACLE_Home= /Users/oracle/oracle/product/10.2.0/db_1/bin/
    here what is
    touch: /Users/admin/oracle/product/10.2.0/db_1/startup.log: Permission denied
    I tried to give permission like
    chmod 777 /Users/admin/oracle/product/10.2.0/db_1/
    but doesnot help.??
    where is the problem ??
    chmod: /Users/admin/oracle/product/10.2.0/db_1/startup.log: Permission denied

    Madrid, Now it acts like that:
    1. oracle:~ oracle$ lsnrctl start
    LSNRCTL for MacOS X Server: Version 10.2.0.4.0 - Production on 28-MAY-2009 17:31:32
    Copyright (c) 1991, 2007, Oracle. All rights reserved.
    TNS-01106: Listener using listener name LISTENER has already been started
    oracle:~ oracle$
    2. oracle:~ oracle$ dbstart
    ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener
    Usage: //Users/oracle/oracle/product/10.2.0/db_1/bin/dbstart ORACLE_HOME
    Processing Database instance "rsg": log file /Users/oracle/oracle/product/10.2.0/db_1/startup.log
    Processing Database instance "rsg": log file /Users/oracle/oracle/product/10.2.0/db_1/startup.log
    3.
    oracle:~ oracle$ sqlplus hr/hr@rsg
    SQL*Plus: Release 10.2.0.4.0 - Production on Thu May 28 17:33:28 2009
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    ERROR:
    ORA-28547: connection to server failed, probable Oracle Net admin error
    Enter user-name: hr
    Enter password:
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Mac OS X Error: 2: No such file or directory
    Enter user-name:
    Now ??
    I again stop listener, shut database and restart the same but getting same error.
    --Shyam                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Upgrade from 10.1.0.5 to 10.2.0.3 in RAC system / What about ASM ?

    Hi,
    I have trouble finding this information but answer may be simple.
    We have customers running 10gR1 and we would like to upgrade them to 10gR2 (10.1.0.5 -> 10.2.0.3)
    These are cluster configurations with ASM.
    I've found interesting documents about 10gR2 upgrade but most of them are about a non RAC database upgrade.
    So far I've planned to upgrade the clusterware first using rolling upgrade following doc ID 338706.1 and then upgrade the RAC database following doc ID 316889.1.
    But reading these notes, I'm still wondering about the ASM instance.
    1/ When do I need to upgrade it ?
    2/ How does the RAC database upgrade procedure accesses the datafiles if ASM instance is down ?
    3/ How does the procedure upgrades ORACLE_HOME if ASM instance is running ?
    4/ ???
    Thanks in advance.
    Edited by: user10797640 on Jan 15, 2009 2:09 AM
    Edited by: user10797640 on Jan 15, 2009 2:10 AM
    Edited by: user10797640 on Jan 15, 2009 4:51 AM

    You can follow the same upgrade method that you can use for single database for asm also.
    regards
    Pravin

  • Autoshut not working

    using oel5.7 and 11gr2
    i am using the following script to startup and shutdown automatically
    ORACLE_HOME=/home/oracle/product/10.1.0/Db_1
    ORA_OWNER=oracle
    case “$1″ in
    ’start’) #If the system is starting, then …
    su – $ORA_OWNER -c “$ORACLE_HOME/bin/lsnrctl start” #Start the listener
    su – $ORA_OWNER -c “$ORACLE_HOME/bin/dbstart #Start the database
    ‘stop’) #If the system is stops, that is we’re shutting down our OS, then …
    su -$ORA_OWNER -c “$ORACLE_HOME/bin/dbshut“
    su -$ORA_OWNER -c “$ORACLE_HOME/bin/lsnrctl stop”
    esac
    when the server starts the database starts automatically
    when the server shuts down the database does not shut down automatically
    this is a cut-out of alert log file
    ALTER DATABASE OPEN
    Thread 1 opened at log sequence 39
    Current log# 3 seq# 39 mem# 0: /home/oracle/u01/app/oracle/oradata/looking4/redo03.log
    Successful open of redo thread 1
    MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
    SMON: enabling cache recovery
    Successfully onlined Undo Tablespace 2.
    Verifying file header compatibility for 11g tablespace encryption..
    Verifying 11g file header compatibility for tablespace encryption completed
    SMON: enabling tx recovery
    Database Characterset is AL32UTF8
    No Resource Manager plan active
    replication_dependency_tracking turned off (no async multimaster replication found)
    Starting background process QMNC
    Thu Aug 30 15:03:50 2012
    QMNC started with pid=20, OS id=4598
    Completed: ALTER DATABASE OPEN
    Thu Aug 30 15:03:51 2012
    db_recovery_file_dest_size of 3852 MB is 0.00% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.
    Starting background process CJQ0
    Thu Aug 30 15:03:51 2012
    CJQ0 started with pid=23, OS id=4630
    Thu Aug 30 15:08:37 2012
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 2
    Using LOG_ARCHIVE_DEST_1 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =27
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    Starting up:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options.
    Using parameter settings in server-side spfile /home/oracle/u01/app/oracle/product/11.2.0.1/db_1/dbs/spfilelooking4.ora
    System parameters with non-default values:
    processes = 150
    memory_target = 660M
    control_files = "/home/oracle/u01/app/oracle/oradata/looking4/control01.ctl"
    control_files = "/home/oracle/u01/app/oracle/flash_recovery_area/looking4/control02.ctl"
    db_block_size = 8192
    compatible = "11.2.0.0.0"
    db_recovery_file_dest = "/home/oracle/u01/app/oracle/flash_recovery_area"
    db_recovery_file_dest_size= 3852M
    undo_tablespace = "UNDOTBS1"
    remote_login_passwordfile= "EXCLUSIVE"
    db_domain = "local.lan"
    dispatchers = "(PROTOCOL=TCP) (SERVICE=looking4XDB)"
    local_listener = "(address=(protocol=tcp)(host=unknown485b39d0b515)(port=1521))"
    audit_file_dest = "/home/oracle/u01/app/oracle/admin/looking4/adump"
    audit_trail = "DB"
    db_name = "looking4"
    open_cursors = 300
    diagnostic_dest = "/home/oracle/u01/app/oracle"
    Thu Aug 30 15:08:39 2012
    PMON started with pid=2, OS id=3649
    Thu Aug 30 15:08:39 2012
    VKTM started with pid=3, OS id=3653
    VKTM running at (100ms) precision
    Thu Aug 30 15:08:39 2012
    GEN0 started with pid=4, OS id=3659
    Thu Aug 30 15:08:39 2012
    DIAG started with pid=5, OS id=3663
    Thu Aug 30 15:08:39 2012
    DBRM started with pid=6, OS id=3667
    Thu Aug 30 15:08:39 2012
    PSP0 started with pid=7, OS id=3671
    Thu Aug 30 15:08:39 2012
    DIA0 started with pid=8, OS id=3675
    Thu Aug 30 15:08:39 2012
    MMAN started with pid=9, OS id=3679
    Thu Aug 30 15:08:39 2012
    DBW0 started with pid=10, OS id=3683
    Thu Aug 30 15:08:39 2012
    LGWR started with pid=11, OS id=3687
    Thu Aug 30 15:08:39 2012
    CKPT started with pid=12, OS id=3691
    Thu Aug 30 15:08:40 2012
    SMON started with pid=13, OS id=3695
    Thu Aug 30 15:08:40 2012
    RECO started with pid=14, OS id=3699
    Thu Aug 30 15:08:40 2012
    MMON started with pid=15, OS id=3703
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    Thu Aug 30 15:08:40 2012
    MMNL started with pid=16, OS id=3707
    starting up 1 shared server(s) ...
    ORACLE_BASE from environment = /home/oracle/u01/app/oracle/
    Thu Aug 30 15:08:40 2012
    ALTER DATABASE MOUNT
    Successful mount of redo thread 1, with mount id 1887520888
    Database mounted in Exclusive Mode
    Lost write protection disabled
    Completed: ALTER DATABASE MOUNT
    Thu Aug 30 15:08:45 2012
    ALTER DATABASE OPEN
    observe that there is no shutdown between the two "alter database open"s
    also when i manually execute dbshut it works
    [oracle@unknown485b39d0b515 bin]$ ./dbshut
    ORACLE_HOME_LISTNER is not SET, unable to auto-stop Oracle Net Listener
    Usage: ./dbshut ORACLE_HOME
    Processing Database instance "looking4": log file /home/oracle/u01/app/oracle/product/11.2.0.1/db_1/shutdown.log
    [oracle@unknown485b39d0b515 bin]$
    [oracle@unknown485b39d0b515 bin]$ ps -ef|grep smon
    oracle 5258 4757 0 15:42 pts/1 00:00:00 grep smon
    the symbolic links are given for run level 3 and 5 as follows
    # ln -s /etc/init.d/startdb /etc/rc.d/rc3.d/K01startdb
    # ln -s /etc/init.d/startdb /etc/rc.d/rc3.d/S99startdb
    # ln -s /etc/init.d/startdb /etc/rc.d/rc5.d/K01startdb
    # ln -s /etc/init.d/startdb /etc/rc.d/rc5.d/S99startdb
    why is the database not shutting down during server shutdown?
    or is it shutting down using "shutdown immediate" but just that this info is not written to alert log??
    thanks in advance
    Edited by: 946207 on Aug 30, 2012 3:42 PM

    see you got ORACLE_HOME_LISTNER is not SET  Open "$ORACLE_HOME/bin/dbstart" and replace ORACLE_HOME_LISTNER with ORACLE_HOME_LISTNER=$ORACLE_HOME
    This thread may help you Re: Note:336299.1 question

  • Want to change Public, private and vip address on RAC 10g R2 windows 2003

    The network section told us the configuration of the network who support our cluster will have to change all ip address.
    We are looking for a complet document who give all the step by step instructions how to make this change.
    We have to change the Public, private and VIP at the same time of our 3 nodes cluster.
    We know the OCRCFG will be impact. So we will take backup of it first.
    Can someone are able to indicate us how to procede to execute this task.
    Thanks

    Hi,
    i check the Note:283684.1 you give me, but it didn't give all the answers to my problem.
    I finally found a recipe to make the job. I would like to tell you it's not supported be Oracle, but it work very well
    Don't forget to take a good backup of the ocrcfg and vote disk before you start.
    Here we go:
    Stop all Oracle service on all nodes before the change of the address, the low format of the ocrcfg and vote disk
    change the address in the file host in C:\WINDOWS\system32\drivers\etc with the new address
    change the ip address in the window network definition connection with the new address
    ocopy \\.\ocrcfg d:\backup\ocrcfg.dmp
    ocopy \\.\votedsk1 d:\backup\votedsk1.dmp
    rem go to directory of the cluster binary crs\bin
    cd /D D:\Oracle\Ora10g\crs/bin
    rem Format raw ocrcfg and vote disk
    LogPartFormat.exe \\.\ocrcfg /q
    LogPartFormat.exe \\.\votedsk1 /q
    rem Run in prompt mode the cluster setup
    rem crssetup.exe config -nn %s_nodenumberlist% -pn %s_privatenamelist% -ch %ORA_CRS_HOME% -oh %s_OracleHome% -c %s_clustername% -l "%s_languageid%" -q %s_votedisklist% -g %s_usergroup%
    rem example for 2 node
    crssetup.exe config -nn host_name_node_1 ,1,host_name_node_2,2 -pn host_name_node_1-priv,1,host_name_node_2-priv,2 -ch D:\Oracle\Ora10g\crs -oh D:\Oracle\Ora10g\crs -c crs_lab -l "CANADIAN FRENCH_CANADA.WE8MSWIN1252"; -q "\\.\votedsk1"
    rem ensures that all nodes are configured with the same port for the ONS
    racgons.exe add_config host_name_node_1:6200 host_name_node_2:6200
    rem oifcfg to direct components to use specific network interfaces
    oifcfg.exe setif -global "Public"/10.200.5.0:public "Prive"/192.169.255.0:cluster_interconnect
    rem to rebuild the vip address vipca in wondow componant and make the incription in the cluster (in prompt mode or online)
    rem at the same time it will create the gsd and ons service
    vipca.bat -silent -nodelist "host_name_node_1,host_name_node_2" -nodevips "host_name_node_1/host_name_node_1-vip/255.255.255.0/Public,host_name_node_2/host_name_node_2-vip/255.255.255.0/Public";
    rem vipca
    rem check the state of the crs services (inscription)
    crs_stat -t
    rem now make the registration of the listener in the cluster.
    rem important don't use the prompt command below, it will give you a crs-0223 error at the startup service
    Rem to solve this problem use netca on line
    rem crs_register ora.host_name_node_1.LISTENER_host_name_node_1.lsnr -dir D:\Oracle\Ora10g\crs\crs\profile
    rem crs_register ora.host_name_node_2.LISTENER_host_name_node_2.lsnr -dir D:\Oracle\Ora10g\crs\crs\profile
    rem srvctl start nodeapps -n host_name_node_1
    ren srvctl start nodeapps -n host_name_node_2
    netca
    rem check the state of the crs services (inscription)
    crs_stat -t
    rem start oracle object service and cluster volume before registering and accessing to asm services
    sc \\host_name_node_1 start ”Oracle Object Service”
    sc \\host_name_node_1 start OracleClusterVolumeService
    sc \\host_name_node_2 start ”Oracle Object Service”
    sc \\host_name_node_2 start OracleClusterVolumeService
    rem go the the rdbms directory to make the registration of asm and the database
    set ORACLE_HOME=D:\Oracle\Ora10g\rdbms
    rem add the service asm in the cluster in my case asm1 and asm2 for my 2 nodes
    srvctl add asm -n host_name_node_1 -i +ASM1 -o %ORACLE_HOME%
    srvctl add asm -n host_name_node_2 -i +ASM2 -o %ORACLE_HOME%
    rem start the asm service on each node
    srvctl start asm -n host_name_node_1
    srvctl start asm -n host_name_node_2
    rem check the state of the crs services (inscription)
    crs_stat -t
    rem go to the bin directory of rdbms directory to make the registration of the database
    cd /D D:\Logiciels\Oracle\Ora10g\rdbms/bin
    rem register the database (in my case labotary lab) and the to database service (lab1 and lab2) of each node
    srvctl add database -d lab -o %ORACLE_HOME%
    srvctl add instance -d lab -i lab1 -n host_name_node_1
    srvctl add instance -d lab -i lab2 -n host_name_node_2
    rem finally start the database
    srvctl start database -d lab
    rem go to directory of the cluster binary crs\bin
    rem all the services
    cd /D D:\Logiciels\Oracle\Ora10g\crs/bin
    rem you can go in the database with sqlplus and check all your components
    crs_stat -t
    I hope this will help someone who are in the same situation
    Edited by: ron_berube on 2008-12-12 09:21
    Edited by: ron_berube on 2008-12-12 10:08
    Edited by: ron_berube on 2008-12-13 08:25
    Edited by: ron_berube on 2008-12-18 10:49

  • Oracle's 10gR2 Automated Storage Management implementation on CentOS 4.1

    Actually there are several nice articles on Oracle Technical Network
    devoted to the same topic. What’s new may be said ?
    The target of message is to highlight the optimal sequence of steps
    required to bring Oracle10g (10.2.0.1) ASM-database up on CentOS4.1 , placing ASM instance and serviced databases in different Oracle Homes.
    Oracleasm library install is done immediately after creating "oracle"
    linux account and "dba" group to be ready for ASM Instance creating during
    the first Installer run supposed to build it. ASM instance for disks and disk’s
    group management is created the first by Installer along with the disk’s group
    for database supposed to be built during the second run of Installer and to be
    placed into recently created disk’s group.
    I. Oracle 10gR2 ASM and ASMLib 2.0 I/O.
    1.Install CentOS 4.1
    2.Run as root:
    # groupadd dba # group of users to be granted SYSDBA system privilege
    # groupadd oinstall # group owner of Oracle files
    # useradd -c "Oracle software owner" -g oinstall -G dba oracle
    # passwd oracle
    # mkdir -p /u01/app/oracle
    # chown -R oracle.oinstall /u01
    # mkdir -p /u02/oradata/wtfdata
    # chown -R oracle.oinstall /u02
    OTN instruction:-
    Before installing Automatic Storage Management, it is recommended that you install the optional add-on Automatic Storage Management support library, ASMLib. ASMLib is an application program interface (API) Oracle that is aimed at simplifying the interface between the operating system and the database, and to exploit the capabilities and strengths of storage arrays provided by different vendors.ASMLib provides an alternative interface for the Automatic Storage Management-enabled kernel to discover and access block devices. It provides storage and operating system vendors the opportunity to supply extended storage-related features. These features provide benefits such as improved performance and greater data integrity.
    OTN instruction ends.
    3.To install ASMLIB 2.0 run as root:-
    # rpm -Uvh oracleasm-2.6.9-11.ELsmp-2.0.0-1.i686.rpm \
    oracleasmlib-2.0.0-1.i386.rpm \
    oracleasm-support-2.0.0-1.i386.rpm
    Now you get /etc/init.d/oracleasm ready to go.
    Configuring the Oracle ASM library driver:-
    # /etc/init.d/oracleasm configure
    Default user to own the driver interface [oracle]: oracle
    Default group to own the driver interface [dba]: dba
    Start Oracle ASM library driver on boot (y/n) [y]: y
    Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
    Writing Oracle ASM library driver configuration: [  OK  ]
    Scanning system for ASM disks: [  OK  ]
    # /etc/init.d/oracleasm enable
    Create ASM disks as desired utilizing command:
    # /etc/init.d/oracleasm createdisk VLM0X /dev/sdx
    Tune /etc/sysctl.conf,/etc/security/limits.conf,/etc/pam.d/login, /etc/profile.
    and oracle's shell environment as advised in [1].
    Login as oracle:-
    $ cd /tmp/database
    $./runInstaller
    OTN instructions:-
    It’s recommended that you install Automatic Storage Management in its own Oracle home, regardless of whether you plan to only have one or multiple database instances.Installing Automatic Storage Management in its own Oracle home helps ensure higher availability and manageability.
    With separate Oracle homes, you can upgrade Automatic Storage Management and databases independently, and you can remove database software without impacting the Automatic Storage Management instance. Ensure that the Automatic Storage Management version is the same or later than the Oracle Database version.If an Automatic Storage Management installation does not already exist and you select the Oracle Universal Installer option to install and configure Automatic Storage Management only, then Oracle Universal Installer installs Automatic Storage Management in its own Oracle home.
    OTN instruction ends.
    Select " Advanced installation" and
    create ASM instance in $ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_1
    Create disk group during this run .
    Exit installer.
    $ ./runInstaller
    Select " Advanced installation" and create new ASM-database placed into existing disk's group
    in $ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_2 .
    Modify ~oracle/.bash_profile correspondently.Relogin as oracle.
    Next:-
    $ sqlplus /nolog
    SQL> conn / as sysdba
    Connected.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 285212672 bytes
    Fixed Size 1218968 bytes
    Variable Size 88082024 bytes
    Database Buffers 188743680 bytes
    Redo Buffers 7168000 bytes
    Database mounted.
    SQL> alter database archivelog;
    Database altered.
    SQL> alter database MastDB flashback on;
    Database altered.
    SQL> alter database open;
    Database altered.
    Open Enterpise Manager console.(Enterprise Manager 10g Database Control URL
    http://ServerCentOS41:1158/em). Create new disk's group for flashback recovery area and modify corresponding value on Recovery Settings page of EM.
    System startup in this case should look like:-
    [oracle@ServerCentOS41 ~]$ ./lsnrstart
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 30-AUG-2005 17:57:41
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1521)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ServerCentOS41)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 30-AUG-2005 17:57:42
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 30-AUG-2005 17:57:42
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/10.2.0/db_2/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/10.2.0/db_2/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.2.0/db_2/network/log/listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1522)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC2)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ServerCentOS41)(PORT=1522)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 30-AUG-2005 17:57:42
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/10.2.0/db_2/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.2.0/db_2/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1522)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC2)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@ServerCentOS41 ~]$ dbstart
    Processing ASM instance "+ASM": log file /u01/app/oracle/product/10.2.0/db_1/startup.log
    Processing Database instance "MastDB": log file /u01/app/oracle/product/10.2.0/db_2/startup.log
    [oracle@ServerCentOS41 ~]$ emctl start dbconsole
    TZ set to US/Eastern
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    http://ServerCentOS41:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 10g Database Control ........................ started.
    Logs are generated in directory /u01/app/oracle/oracle/product/10.2.0/db_2/ServerCentOS41_MastDB/sysman/log
    Install described above was done with different Oracle Homes
    for ASM instance and ASM-database.
    To put ASM instance and ASM-database in same Oracle Home.
    Start runInstaller just once to build all stuff at a time.
    Login as oracle:-
    $ cd /tmp/database
    $./runInstaller
    Select " Advanced option" and install "Software only"
    in ORACLE_HOME - /u01/app/oracle/oracle/product/10.2.0/db_1.
    Modify oracle's .bash_profile:-
    export ORACLE_HOME and new PATH.
    Source new .bash_profile:-
    $. ~oracle/.bash_profile
    $dbca
    During this run the request to start CRS daemons by root will come up.
    # $ORACLE_HOME/bin/localconfig add
    ASM instance , needed disk's groups and ASM-database itself will be created.
    Then perform listener and local TNS names configuration.
    $netca
    II. Oracle 10gR2 ASM and Standard Linux I/O.
    This method creates Oracle database files on raw character devices managed by ASM
    using standard Linux I/O system calls.It requires to create RAW devices for all
    disk partitions used by ASM.
    1.Install CentOS 4.1
    2.Run as root:
    # groupadd dba # group of users to be granted SYSDBA system privilege
    # groupadd oinstall # group owner of Oracle files
    # useradd -c "Oracle software owner" -g oinstall -G dba oracle
    # passwd oracle
    # mkdir -p /u01/app/oracle
    # chown -R oracle.oinstall /u01
    # mkdir -p /u02/oradata/data
    # chown -R oracle.oinstall /u02
    Just as an example create 4 partitions:
    /dev/hda6,/dev/hdc6 5 GB each one
    /dev/hda7,/dev/hdc7 3 GB each one
    Create raw devices modifying file /etc/sysconfig/rawdevices as follows:
    /dev/raw/raw1 /dev/hda6
    /dev/raw/raw2 /dev/hdc6
    /dev/raw/raw3 /dev/hda7
    /dev/raw/raw4 /dev/hdc7
    Put in /etc/rc.d/rc.local
    chown oracle:dba /dev/raw/raw*
    chmod 660 /dev/raw/raw*
    I was experiencing problems with loosing "oracle:dba" permissions after Linux
    reboot. Oracle's raw device came up with "root:disk" ownership after reboot.
    Restart Linux
    Run as root:-
    # service rawdevices restart
    Tune /etc/sysctl.conf,/etc/security/limits.conf,/etc/pam.d/login,
    /etc/profile and oracle's shell environment as advised in [1].
    Login as oracle:-
    $ cd /tmp/database
    $./runInstaller
    Select " Advanced installation" and
    create ASM instance in ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/asm
    During this run create diskgroup RAWDATA1 with normal redundancy
    mirroring /dev/raw/raw1 and /dev/raw/raw2.
    You should be fine with discovering raw devices if permissions are in place (oracle:dba)
    Exit installer.
    Export ORACLE_HOME for ASM instance and corresponding PATH.
    Then run "dbca" to create diskgroup RAWDATA2 with
    normal redundancy mirroring /dev/raw/raw3 and /dev/raw/raw4
    $ ./runInstaller
    Select " Advanced installation" and create new ASM-database placed RAWDATA1 diskgroup
    in $ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_1.
    Modify ~oracle/.bash_profile correspondently.Relogin as oracle.
    Next:-
    $ sqlplus /nolog
    SQL> conn / as sysdba
    Connected.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 285212672 bytes
    Fixed Size 1218968 bytes
    Variable Size 88082024 bytes
    Database Buffers 188743680 bytes
    Redo Buffers 7168000 bytes
    Database mounted.
    SQL> alter database archivelog;
    Database altered.
    SQL> alter database rawdbs flashback on;
    Database altered.
    SQL> alter database open;
    Database altered.
    Open Enterpise Manager console.(Enterprise Manager 10g Database Control
    URL http://ServerCentOS41:1158/em). Put flashback recovery area in RAWDATA2
    modifying corresponding value on Recovery Settings page of EM.
    References.
    1.www.puschitz.com/InstallingOracle10g.shtml

    [oracle@casa database]$ df -k
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/hda2 70557084 8674712 58298272 13% /
    none 387852 0 387852 0% /dev/shm
    /dev/hdc 656964 656964 0 100% /media/cdrecorder1So, you have 58298272 bytes available, which is 55MB, and the installer asks for 60 ;) You should probably use df -h instead of df -k...
    PS where are you planning to install to with only 55MB available anyway?
    ~Jer

  • Oracle 10gR2 Automated Storage Management implementation on CentOS 4.1

    Actually there are several nice articles on Oracle Technical Network devoted to the same topic. What’s new may be said ?
    The target of this message is to highlight the optimal sequence of steps required to bring Oracle10g (10.2.0.1) ASM-database up on CentOS4.1 , placing ASM instance and serviced databases in different Oracle Homes.Oracleasm library install is done immediately after creating "oracle" linux account and "dba" group to be ready for ASM Instance creating during the first Installer run supposed to build it. ASM instance for disks and disk’s group management is created the first by Installer along with the disk’s group for database supposed to be built during the second run of Installer and to be placed into recently created disk’s group.
    I. Oracle 10gR2 ASM and ASMLib 2.0 I/O.
    1.Install CentOS 4.1
    2.Run as root:
    # groupadd dba # group of users to be granted SYSDBA system privilege
    # groupadd oinstall # group owner of Oracle files
    # useradd -c "Oracle software owner" -g oinstall -G dba oracle
    # passwd oracle
    # mkdir -p /u01/app/oracle
    # chown -R oracle.oinstall /u01
    # mkdir -p /u02/oradata/wtfdata
    # chown -R oracle.oinstall /u02
    OTN instruction:-
    Before installing Automatic Storage Management, it is recommended that you install the optional add-on Automatic Storage Management support library, ASMLib. ASMLib is an application program interface (API) Oracle that is aimed at simplifying the interface between the operating system and the database, and to exploit the capabilities and strengths of storage arrays provided by different vendors ASMLib provides an alternative interface for the Automatic Storage Management-enabled kernel to discover and access block devices. It provides storage and operating system vendors the opportunity to supply extended storage-related features. These features provide benefits such as improved performance and greater data integrity.
    OTN instruction ends.
    3.To install ASMLIB 2.0 run as root:-
    # rpm -Uvh oracleasm-2.6.9-11.ELsmp-2.0.0-1.i686.rpm \
    oracleasmlib-2.0.0-1.i386.rpm \
    oracleasm-support-2.0.0-1.i386.rpm
    Now you get /etc/init.d/oracleasm ready to go.
    Configuring the Oracle ASM library driver:-
    # /etc/init.d/oracleasm configure
    Default user to own the driver interface [oracle]: oracle
    Default group to own the driver interface [dba]: dba
    Start Oracle ASM library driver on boot (y/n) [y]: y
    Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
    Writing Oracle ASM library driver configuration: [  OK  ]
    Scanning system for ASM disks: [  OK  ]
    # /etc/init.d/oracleasm enable
    Create ASM disks as desired utilizing command:
    # /etc/init.d/oracleasm createdisk VLM0X /dev/sdx
    Tune /etc/sysctl.conf,/etc/security/limits.conf,/etc/pam.d/login, /etc/profile.
    and oracle's shell environment as advised in [1].
    Login as oracle:-
    $ cd /tmp/database
    $./runInstaller
    OTN instructions:-
    It’s recommended that you install Automatic Storage Management in its own Oracle home, regardless of whether you plan to only have one or multiple database instances.Installing Automatic Storage Management in its own Oracle home helps ensure higher availability and manageability.With separate Oracle homes, you can upgrade Automatic Storage Management and databases independently, and you can remove database software without impacting the Automatic Storage Management instance. Ensure that the Automatic Storage Management version is the same or later than the Oracle Database version.If an Automatic Storage Management installation does not already exist and you select the Oracle Universal Installer option to install and configure Automatic Storage Management only, then Oracle Universal Installer installs Automatic Storage Management in its own Oracle home.
    OTN instruction ends.
    Select " Advanced installation" and
    create ASM instance in $ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_1
    Create disk group during this run .
    Exit installer.
    $ ./runInstaller
    Select " Advanced installation" and create new ASM-database placed into existing disk's group in $ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_2 .
    Modify ~oracle/.bash_profile correspondently.Relogin as oracle.
    Next:-
    $ sqlplus /nolog
    SQL> conn / as sysdba
    Connected.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 285212672 bytes
    Fixed Size 1218968 bytes
    Variable Size 88082024 bytes
    Database Buffers 188743680 bytes
    Redo Buffers 7168000 bytes
    Database mounted.
    SQL> alter database archivelog;
    Database altered.
    SQL> alter database MastDB flashback on;
    Database altered.
    SQL> alter database open;
    Database altered.
    Open Enterpise Manager console.(Enterprise Manager 10g Database Control URL
    http://ServerCentOS41:1158/em). Create new disk's group for flashback recovery area and modify corresponding value on Recovery Settings page of EM.
    System startup in this case should look like:-
    [oracle@ServerCentOS41 ~]$ ./lsnrstart
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 30-AUG-2005 17:57:41
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1521)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ServerCentOS41)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 30-AUG-2005 17:57:42
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 30-AUG-2005 17:57:42
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/10.2.0/db_2/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/10.2.0/db_2/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.2.0/db_2/network/log/listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1522)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC2)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ServerCentOS41)(PORT=1522)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 30-AUG-2005 17:57:42
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/10.2.0/db_2/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.2.0/db_2/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1522)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC2)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@ServerCentOS41 ~]$ dbstart
    Processing ASM instance "+ASM": log file /u01/app/oracle/product/10.2.0/db_1/startup.log
    Processing Database instance "MastDB": log file /u01/app/oracle/product/10.2.0/db_2/startup.log
    [oracle@ServerCentOS41 ~]$ emctl start dbconsole
    TZ set to US/Eastern
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    http://ServerCentOS41:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 10g Database Control ........................ started.
    Logs are generated in directory /u01/app/oracle/oracle/product/10.2.0/db_2/ServerCentOS41_MastDB/sysman/log
    Install described above was done with different Oracle Homes
    for ASM instance and ASM-database.
    To put ASM instance and ASM-database in same Oracle Home.
    Start runInstaller just once to build all stuff at a time.
    Login as oracle:-
    $ cd /tmp/database
    $./runInstaller
    Select " Advanced option" and install "Software only"
    in ORACLE_HOME - /u01/app/oracle/oracle/product/10.2.0/db_1.
    Modify oracle's .bash_profile:-
    export ORACLE_HOME and new PATH.
    Source new .bash_profile:-
    $. ~oracle/.bash_profile
    $dbca
    During this run the request to start CRS daemons by root will come up.
    # $ORACLE_HOME/bin/localconfig add
    ASM instance , needed disk's groups and ASM-database itself will be created.
    Then perform listener and local TNS names configuration.
    $netca
    II. Oracle 10gR2 ASM and Standard Linux I/O.
    This method creates Oracle database files on raw character devices managed by ASM using standard Linux I/O system calls.It requires to create RAW devices for all disk partitions used by ASM.
    1.Install CentOS 4.1
    2.Run as root:
    # groupadd dba # group of users to be granted SYSDBA system privilege
    # groupadd oinstall # group owner of Oracle files
    # useradd -c "Oracle software owner" -g oinstall -G dba oracle
    # passwd oracle
    # mkdir -p /u01/app/oracle
    # chown -R oracle.oinstall /u01
    # mkdir -p /u02/oradata/data
    # chown -R oracle.oinstall /u02
    Just as an example create 4 partitions:
    /dev/hda6,/dev/hdc6 5 GB each one
    /dev/hda7,/dev/hdc7 3 GB each one
    Create raw devices modifying file /etc/sysconfig/rawdevices as follows:
    /dev/raw/raw1 /dev/hda6
    /dev/raw/raw2 /dev/hdc6
    /dev/raw/raw3 /dev/hda7
    /dev/raw/raw4 /dev/hdc7
    Put in /etc/rc.d/rc.local
    chown oracle:dba /dev/raw/raw*
    chmod 660 /dev/raw/raw*
    I was experiencing problems with loosing "oracle:dba" permissions after Linux
    reboot. Oracle's raw device came up with "root:disk" ownership after reboot.
    Restart Linux
    Run as root:-
    # service rawdevices restart
    Tune /etc/sysctl.conf,/etc/security/limits.conf,/etc/pam.d/login,
    /etc/profile and oracle's shell environment as advised in [1].
    Login as oracle:-
    $ cd /tmp/database
    $./runInstaller
    Select " Advanced installation" and
    create ASM instance in ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/asm
    During this run create diskgroup RAWDATA1 with normal redundancy
    mirroring /dev/raw/raw1 and /dev/raw/raw2.
    You should be fine with discovering raw devices if permissions are in place (oracle:dba)
    Exit installer.
    Export ORACLE_HOME for ASM instance and corresponding PATH.
    Then run "dbca" to create diskgroup RAWDATA2 with
    normal redundancy mirroring /dev/raw/raw3 and /dev/raw/raw4
    $ ./runInstaller
    Select " Advanced installation" and create new ASM-database placed RAWDATA1 diskgroup
    in $ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_1.
    Modify ~oracle/.bash_profile correspondently.Relogin as oracle.
    Next:-
    $ sqlplus /nolog
    SQL> conn / as sysdba
    Connected.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 285212672 bytes
    Fixed Size 1218968 bytes
    Variable Size 88082024 bytes
    Database Buffers 188743680 bytes
    Redo Buffers 7168000 bytes
    Database mounted.
    SQL> alter database archivelog;
    Database altered.
    SQL> alter database rawdbs flashback on;
    Database altered.
    SQL> alter database open;
    Database altered.
    Open Enterpise Manager console.(Enterprise Manager 10g Database Control
    URL http://ServerCentOS41:1158/em). Put flashback recovery area in RAWDATA2
    modifying corresponding value on Recovery Settings page of EM.
    References.
    1.www.puschitz.com/InstallingOracle10g.shtml
    Message was edited by:
    [email protected]

    Actually there are several nice articles on Oracle Technical Network devoted to the same topic. What’s new may be said ?
    The target of this message is to highlight the optimal sequence of steps required to bring Oracle10g (10.2.0.1) ASM-database up on CentOS4.1 , placing ASM instance and serviced databases in different Oracle Homes.Oracleasm library install is done immediately after creating "oracle" linux account and "dba" group to be ready for ASM Instance creating during the first Installer run supposed to build it. ASM instance for disks and disk’s group management is created the first by Installer along with the disk’s group for database supposed to be built during the second run of Installer and to be placed into recently created disk’s group.
    I. Oracle 10gR2 ASM and ASMLib 2.0 I/O.
    1.Install CentOS 4.1
    2.Run as root:
    # groupadd dba # group of users to be granted SYSDBA system privilege
    # groupadd oinstall # group owner of Oracle files
    # useradd -c "Oracle software owner" -g oinstall -G dba oracle
    # passwd oracle
    # mkdir -p /u01/app/oracle
    # chown -R oracle.oinstall /u01
    # mkdir -p /u02/oradata/wtfdata
    # chown -R oracle.oinstall /u02
    OTN instruction:-
    Before installing Automatic Storage Management, it is recommended that you install the optional add-on Automatic Storage Management support library, ASMLib. ASMLib is an application program interface (API) Oracle that is aimed at simplifying the interface between the operating system and the database, and to exploit the capabilities and strengths of storage arrays provided by different vendors ASMLib provides an alternative interface for the Automatic Storage Management-enabled kernel to discover and access block devices. It provides storage and operating system vendors the opportunity to supply extended storage-related features. These features provide benefits such as improved performance and greater data integrity.
    OTN instruction ends.
    3.To install ASMLIB 2.0 run as root:-
    # rpm -Uvh oracleasm-2.6.9-11.ELsmp-2.0.0-1.i686.rpm \
    oracleasmlib-2.0.0-1.i386.rpm \
    oracleasm-support-2.0.0-1.i386.rpm
    Now you get /etc/init.d/oracleasm ready to go.
    Configuring the Oracle ASM library driver:-
    # /etc/init.d/oracleasm configure
    Default user to own the driver interface [oracle]: oracle
    Default group to own the driver interface [dba]: dba
    Start Oracle ASM library driver on boot (y/n) [y]: y
    Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
    Writing Oracle ASM library driver configuration: [  OK  ]
    Scanning system for ASM disks: [  OK  ]
    # /etc/init.d/oracleasm enable
    Create ASM disks as desired utilizing command:
    # /etc/init.d/oracleasm createdisk VLM0X /dev/sdx
    Tune /etc/sysctl.conf,/etc/security/limits.conf,/etc/pam.d/login, /etc/profile.
    and oracle's shell environment as advised in [1].
    Login as oracle:-
    $ cd /tmp/database
    $./runInstaller
    OTN instructions:-
    It’s recommended that you install Automatic Storage Management in its own Oracle home, regardless of whether you plan to only have one or multiple database instances.Installing Automatic Storage Management in its own Oracle home helps ensure higher availability and manageability.With separate Oracle homes, you can upgrade Automatic Storage Management and databases independently, and you can remove database software without impacting the Automatic Storage Management instance. Ensure that the Automatic Storage Management version is the same or later than the Oracle Database version.If an Automatic Storage Management installation does not already exist and you select the Oracle Universal Installer option to install and configure Automatic Storage Management only, then Oracle Universal Installer installs Automatic Storage Management in its own Oracle home.
    OTN instruction ends.
    Select " Advanced installation" and
    create ASM instance in $ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_1
    Create disk group during this run .
    Exit installer.
    $ ./runInstaller
    Select " Advanced installation" and create new ASM-database placed into existing disk's group in $ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_2 .
    Modify ~oracle/.bash_profile correspondently.Relogin as oracle.
    Next:-
    $ sqlplus /nolog
    SQL> conn / as sysdba
    Connected.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 285212672 bytes
    Fixed Size 1218968 bytes
    Variable Size 88082024 bytes
    Database Buffers 188743680 bytes
    Redo Buffers 7168000 bytes
    Database mounted.
    SQL> alter database archivelog;
    Database altered.
    SQL> alter database MastDB flashback on;
    Database altered.
    SQL> alter database open;
    Database altered.
    Open Enterpise Manager console.(Enterprise Manager 10g Database Control URL
    http://ServerCentOS41:1158/em). Create new disk's group for flashback recovery area and modify corresponding value on Recovery Settings page of EM.
    System startup in this case should look like:-
    [oracle@ServerCentOS41 ~]$ ./lsnrstart
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 30-AUG-2005 17:57:41
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1521)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ServerCentOS41)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 30-AUG-2005 17:57:42
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 30-AUG-2005 17:57:42
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/10.2.0/db_2/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/10.2.0/db_2/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.2.0/db_2/network/log/listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1522)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC2)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ServerCentOS41)(PORT=1522)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 30-AUG-2005 17:57:42
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/10.2.0/db_2/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.2.0/db_2/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1522)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC2)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@ServerCentOS41 ~]$ dbstart
    Processing ASM instance "+ASM": log file /u01/app/oracle/product/10.2.0/db_1/startup.log
    Processing Database instance "MastDB": log file /u01/app/oracle/product/10.2.0/db_2/startup.log
    [oracle@ServerCentOS41 ~]$ emctl start dbconsole
    TZ set to US/Eastern
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    http://ServerCentOS41:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 10g Database Control ........................ started.
    Logs are generated in directory /u01/app/oracle/oracle/product/10.2.0/db_2/ServerCentOS41_MastDB/sysman/log
    Install described above was done with different Oracle Homes
    for ASM instance and ASM-database.
    To put ASM instance and ASM-database in same Oracle Home.
    Start runInstaller just once to build all stuff at a time.
    Login as oracle:-
    $ cd /tmp/database
    $./runInstaller
    Select " Advanced option" and install "Software only"
    in ORACLE_HOME - /u01/app/oracle/oracle/product/10.2.0/db_1.
    Modify oracle's .bash_profile:-
    export ORACLE_HOME and new PATH.
    Source new .bash_profile:-
    $. ~oracle/.bash_profile
    $dbca
    During this run the request to start CRS daemons by root will come up.
    # $ORACLE_HOME/bin/localconfig add
    ASM instance , needed disk's groups and ASM-database itself will be created.
    Then perform listener and local TNS names configuration.
    $netca
    II. Oracle 10gR2 ASM and Standard Linux I/O.
    This method creates Oracle database files on raw character devices managed by ASM using standard Linux I/O system calls.It requires to create RAW devices for all disk partitions used by ASM.
    1.Install CentOS 4.1
    2.Run as root:
    # groupadd dba # group of users to be granted SYSDBA system privilege
    # groupadd oinstall # group owner of Oracle files
    # useradd -c "Oracle software owner" -g oinstall -G dba oracle
    # passwd oracle
    # mkdir -p /u01/app/oracle
    # chown -R oracle.oinstall /u01
    # mkdir -p /u02/oradata/data
    # chown -R oracle.oinstall /u02
    Just as an example create 4 partitions:
    /dev/hda6,/dev/hdc6 5 GB each one
    /dev/hda7,/dev/hdc7 3 GB each one
    Create raw devices modifying file /etc/sysconfig/rawdevices as follows:
    /dev/raw/raw1 /dev/hda6
    /dev/raw/raw2 /dev/hdc6
    /dev/raw/raw3 /dev/hda7
    /dev/raw/raw4 /dev/hdc7
    Put in /etc/rc.d/rc.local
    chown oracle:dba /dev/raw/raw*
    chmod 660 /dev/raw/raw*
    I was experiencing problems with loosing "oracle:dba" permissions after Linux
    reboot. Oracle's raw device came up with "root:disk" ownership after reboot.
    Restart Linux
    Run as root:-
    # service rawdevices restart
    Tune /etc/sysctl.conf,/etc/security/limits.conf,/etc/pam.d/login,
    /etc/profile and oracle's shell environment as advised in [1].
    Login as oracle:-
    $ cd /tmp/database
    $./runInstaller
    Select " Advanced installation" and
    create ASM instance in ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/asm
    During this run create diskgroup RAWDATA1 with normal redundancy
    mirroring /dev/raw/raw1 and /dev/raw/raw2.
    You should be fine with discovering raw devices if permissions are in place (oracle:dba)
    Exit installer.
    Export ORACLE_HOME for ASM instance and corresponding PATH.
    Then run "dbca" to create diskgroup RAWDATA2 with
    normal redundancy mirroring /dev/raw/raw3 and /dev/raw/raw4
    $ ./runInstaller
    Select " Advanced installation" and create new ASM-database placed RAWDATA1 diskgroup
    in $ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_1.
    Modify ~oracle/.bash_profile correspondently.Relogin as oracle.
    Next:-
    $ sqlplus /nolog
    SQL> conn / as sysdba
    Connected.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 285212672 bytes
    Fixed Size 1218968 bytes
    Variable Size 88082024 bytes
    Database Buffers 188743680 bytes
    Redo Buffers 7168000 bytes
    Database mounted.
    SQL> alter database archivelog;
    Database altered.
    SQL> alter database rawdbs flashback on;
    Database altered.
    SQL> alter database open;
    Database altered.
    Open Enterpise Manager console.(Enterprise Manager 10g Database Control
    URL http://ServerCentOS41:1158/em). Put flashback recovery area in RAWDATA2
    modifying corresponding value on Recovery Settings page of EM.
    References.
    1.www.puschitz.com/InstallingOracle10g.shtml
    Message was edited by:
    [email protected]

  • Windows 2008 MSCS, CRM 7.0 (Java + ABAP)

    Hi there,
    We are about to learn and build/Install SAP CRM 7.0 on Windows 2008 & Oracle 10g. As we know, CRM 7.0 JAVA and ABAP has to be a separate installation using SAPinst.  Since our Hardware is well sized in-terms of Memory and CPU (32 GB and 8 Processors). We are planning to install ABAP and Java on the same server/host.  However, SAP Installation guide says that
    "NOTE MSCS only: Multiple Oracle Homes are not supported in an MSCS configuration". This mean we cannot install 2 Oracle homes (one for CRM ABAP and One for CRM Java). At the same time SAP also do not recommend MCOD (Installing Java as an Add-in to an existing ABAP existing Oracle Database).
    What will happen if we decided to install a common Oracle Home, called (CRM) - and Make the Java and ABAP Separated installation to use the common oracle and Cluster the Oracle Database? Do you guys see any cons on this?
    Can someone advice me please, on how do we go around above scenario (s) and Install ABAP and Java separate and Cluster the Oracle Database on Windows MSCS?
    Any thoughts?
    Thanks in Advance.
    Kumar

    >
    Kumar Subramaniam wrote:
    > Hi there,
    >
    > We are about to learn and build/Install SAP CRM 7.0 on Windows 2008 & Oracle 10g. As we know, CRM 7.0 JAVA and ABAP has to be a separate installation using SAPinst.  Since our Hardware is well sized in-terms of Memory and CPU (32 GB and 8 Processors). We are planning to install ABAP and Java on the same server/host.  However, SAP Installation guide says that
    > "NOTE MSCS only: Multiple Oracle Homes are not supported in an MSCS configuration". This mean we cannot install 2 Oracle homes (one for CRM ABAP and One for CRM Java). At the same time SAP also do not recommend MCOD (Installing Java as an Add-in to an existing ABAP existing Oracle Database).
    >
    > What will happen if we decided to install a common Oracle Home, called (CRM) - and Make the Java and ABAP Separated installation to use the common oracle and Cluster the Oracle Database? Do you guys see any cons on this?
    >
    > Can someone advice me please, on how do we go around above scenario (s) and Install ABAP and Java separate and Cluster the Oracle Database on Windows MSCS?
    >
    > Any thoughts?
    >
    > Thanks in Advance.
    > Kumar
    Hi Peter,
    I have the same question,  I'm not sure if I understand your last answer. On the document "Installation of Multiple SAP systems in MSCS Oracle" I can see, Multiple Oracle databases in MSCS are supported. On section  "Installation" is describt the following:
    later on is describt:
    1. On all DB MSCS nodes, you install the Oracle database server software and the current patch set and hot fix (if available).
    Note
    - You must have one ORACLE_HOME per database instance on every cluster node on local disks.
    - All ORACLE_HOMES must use the same disks and directories and ORACLE_HOME names on all DB MSCS nodes.
    Now I saw on Peters answer - Multiple Oracle Home are not longer possible in MSCS on Windows 2008 - only for Windows 2008? What about Windows 2003? Does it mean, we can not install more then one database on the (MultiSID) MSCS cluster?
    We want to install an SAP ME and SAP MII System in MSCS and to the same cluster two databases Instances with ODS and WIP schema.
    Thanks in advanced,
    Elke
    (HP - SAP Global Partner)

Maybe you are looking for

  • Check concordance between the package database and the filesystem

    Hello, I'd like to write this down : To list the packages installed in the database, I use pacman -Qsq -Q because it's a query on the local database, s to search and q for quiet. If you would like to list the files installed by pacman on your compute

  • Installing Photoshop elements 9, update to 9.0.3 fails

    I am new to this. I bought a scanner that includes the adobe photoshop elements 9 and the silverfast se software. once i installed photoshop, it tells me to update and the update fails with:   Adobe Photoshop Elements 9.0.3 Update   There was an erro

  • How do you create an index in Pages 08?

    Can you create an word index at the end of a research document in Pages 08? I've done this using Microsoft Word, but I can't find the function in Pages. I'm brand new to the Mac world, btw.

  • Itunes won't use my store credit, it prompts me for my credit card

    I was given a gift card for Christmas that I applied to my account. I made a purchase a recently as Feb 11 with it. At the top of the screen it tells me I have a $6.06 store credit left yet everytime I try to download a song it takes me to the credit

  • Cisco Unity Problems Activating Licenses

    We are running a ISM-SRE-300-K9 module on a Cisco 2921 router, which we inherited and did not originally program at this site.  We have purchased L-FL-CUE-MBX-5= licenses but we are having tons of trouble getting them activated.  I am not too familia