Академический Документы
Профессиональный Документы
Культура Документы
Solaris 10
RAW Device
Oracle Cluster File System Rel 2
Automatic Storage Management
Oracle Database 10g Enterprise Edition Rel2
Oracle Clusterware 10g Rel2
What other things you need beside software ….
192.10.2.x 192.10.2.x
RAW RAW
ORCL_DATA1 FLASH_RECOVERY_AREA
How do you login to the environment
• Open IE and direct to this URL : http://dg-ssc.demo.sun.com/
• You will see a screen that says "Sun Secure Global Desktop“
• You will also see a popup window that says "Security Warning", Click
Accept.
• From the IE, you will get a Sun Secure Global Desktop login screen.
• You will see a web page that title "Welcome to Sun Microsystems Asia
South Sun Solution Center"
• On the left panel, you will see a see a series of terminal session for
launch.
How do you login to the environment
• Scroll down to the option that say Terminal X (Terminal X will launch
telnet session for c-lab-nodeX).
• Hold the Shift key and Click on this option, and you will prompted with a
Unix login window. The Unix login is root and password is root.
Important to uncheck "Save Password".
• From the telnet session, you can perform most of the Solaris admin
stuff. Public interface is bge0 and Private interface is bge2. Things you
do like create oracle users, etc.
• To end the telnet session, type exit at the command line. It will close
the telnet application.
• To get x-display for oracle user, you are required to re-login to the
Terminal x. End all root telnet sessions if any. Do the same, Shift and
Click on Terminal x. Login using oracle id and password you have used.
How do you login to the environment
• To test x-display, you may start Mozilla by typing Mozilla
from the $ prompt.
• create /etc/hostname.bge2
• #gedit /etc/hostname.bge2
Put this entry in the file “c-lab-node1-priv”
• Update /etc/hosts
# gedit /etc/hosts
Update /etc/hosts
127.0.0.1 localhost
192.168.200.11 c-lab-node1 c-lab-node1.lab.sg loghost
192.168.200.21 c-lab-node2
192.168.200.12 c-lab-node1-vip
192.168.200.22 c-lab-node2-vip
10.0.0.1 c-lab-node1-priv
10.0.0.4 c-lab-node2-priv
Preparing Oracle Installation
• Plumb private inter-connect & assign ip addr for both nodes
Node 2
# ifconfig bge2 plumb
# ifconfig bge2 10.0.0.4 netmask 255.255.255.0
# ifconfig bge2 up
• create /etc/hostname.bge2
#gedit /etc/hostname.bge2
Put this entry in the file “c-lab-node2-priv”
• Update /etc/netmasks
10.12.21.0 255.255.255.0
10.0.0.0 255.255.255.0
Preparing Oracle Installation
• Update /etc/system for both nodes
Oracle 10gRel2 Parameters
set noexec_user_stack=1
set shmsys:shminfo_shmmax=4294967295
set semsys:seminfo_semmap=1024
set semsys:seminfo_semmni=2048
* set semsys:seminfo_semmns=2048 (Obsolete in Solaris 10)
set semsys:seminfo_semmsl=2048
set semsys:seminfo_semmnu=2048
set semsys:seminfo_semume=200
* set shmsys:shminfo_shmmin=200 (Obsolete in Solaris 10)
set shmsys:shminfo_shmmni=200
* set shmsys:shminfo_shmseg=200 (Obsolete in Solaris 10)
set semsys:seminfo_semvmx=32767
Whenever you login to oracle user, you need to execute the following to set the env:
$ . ./set_oracle_env.sh
• Do this on 1 node
# format
e.g available disks
Format> partition
Partition> print
Preparing Oracle Installation
Use c1t32d0s0 and c1t32d1s1 for OCR and Voting Disk (typically need only
120MB for OCR and Voting is sufficient).
Partition> quit
Format> quit
Preparing Oracle Installation
$ /mnt/oracle/10gSol64/10gRel2-10.2.03Patch/runInstaller
Preparing disk for ASM
# format
Layout of c1t42d0
Current partition table (original):
Total disk cylinders available: 34873 + 2 (reserved cylinders)
• Install Oracle 10.2.03 Patch to DB home (ensure all oracle services are down)
Stop all oracle processes
$ srvctl stop asm -n c-lab-node3
$ srvctl stop asm -n c-lab-node2
$ srvctl stop nodeapps -n c-lab-node3
$ srvctl stop nodeapps -n c-lab-node2
$ /mnt/oracle/10gSol64/10gRel2-10.2.03Patch/runInstaller
Create a Clustered Database
Run Database Configuration Assistance (DBCA)
• Start all oracle processes if it is not started
# /etc/init.d/init.crs start (for both nodes)
• Login to oracle and select DB home
# su - oracle
$ dbca
Create a Clustered Database
Create a Clustered Database
Create a Clustered Database
Create a Clustered Database
Create a Clustered Database
Create a Clustered Database
Create a Clustered Database
Create a Clustered Database
Create a Clustered Database
Create a Clustered Database
Create a Clustered Database
Create a Clustered Database
For this test configuration, click Add, and enter orcltest as the "Service Name." Leave both instances
set to Preferred and for the "TAF Policy" select Basic.
Create a Clustered Database
Create a Clustered Database
Create a Clustered Database
Create a Clustered Database
Create a Clustered Database
Create a Clustered Database
Create Listener
Run Network Configuration Assistance (netca)
>> c-lab-node1
/app/oracle/product/10.2.0/db/bin/netca
Create Listener
Create Listener
Create Listener
Create Listener
Create Listener
Create Listener
Create Listener
Create Listener
TAF Demo
From a Windows machine (or other non-RAC client machine), login to the clustered database using the
orcltest service as
the SYSTEM user:
SELECT
instance_name
, host_name
, NULL AS failover_type
, NULL AS failover_method
, NULL AS failed_over
FROM v$instance
UNION
SELECT
NULL
, NULL
, failover_type
, failover_method
, failed_over
FROM v$session
WHERE username = 'SYSTEM';
# su - oracle
$ srvctl status database -d orcl
Instance orcl1 is running on node c-lab-node1
Instance orcl2 is running on node c-lab-node2
SELECT
instance_name
, host_name
, NULL AS failover_type
, NULL AS failover_method
, NULL AS failed_over
FROM v$instance
UNION
SELECT
NULL
, NULL
, failover_type
, failover_method
, failed_over
FROM v$session
WHERE username = 'SYSTEM';
SQL> exit