分类: Oracle
2006-08-13 21:38:04
[root@rhel1 ~]# mount /media/cdrom/ mount: block device /dev/hdc is write-protected, mounting read-only [root@rhel1 ~]# cd /media/cdrom/ [root@rhel1 cdrom]# cd RedHat/RPMS/ [root@rhel1 RPMS]# rpm -ivh libaio-devel-0.3.103-3.i386.rpm warning: libaio-devel-0.3.103-3.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e Preparing... ########################################### [100%] 1:libaio-devel ########################################### [100%] |
[root@rhel1 RPMS]# rpm -ivh gnome-libs-devel-1.4.1.2.90-44.1.i386.rpm ORBit-devel-0.5.17-14.i386.rpm gtk+-devel-1.2.10-33.i386.rpm imlib-devel-1.9.13-23.i386.rpm glib-devel-1.2.10-15.i386.rpm warning: gnome-libs-devel-1.4.1.2.90-44.1.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e Preparing... ########################################### [100%] 1:glib-devel ########################################### [ 20%] 2:gtk+-devel ########################################### [ 40%] 3:imlib-devel ########################################### [ 60%] 4:ORBit-devel ########################################### [ 80%] 5:gnome-libs-devel ########################################### [100%] |
[root@rhel1 ~]# unzip p4198954_21_LINUX.zip Archive: p4198954_21_LINUX.zip creating: 4198954/ inflating: 4198954/compat-oracle-rhel4-1.0-5.i386.rpm inflating: 4198954/compat-libcwait-2.0-2.i386.rpm inflating: 4198954/README.txt [root@rhel1 ~]# cd 4198954/ [root@rhel1 4198954]# rpm -ivh compat-libcwait-2.0-2.i386.rpm Preparing... ########################################### [100%] cat: /etc/ld.so.preload: No such file or directory 1:compat-libcwait ########################################### [100%] [root@rhel1 4198954]# cat /etc/ld.so.preload /usr/lib/libcwait.so [root@rhel1 4198954]# rpm -ivh compat-oracle-rhel4-1.0-5.i386.rpm Preparing... ########################################### [100%] 1:compat-oracle-rhel4 ########################################### [100%] |
[root@rhel1 ~]# groupadd oinstall [root@rhel1 ~]# groupadd dba [root@rhel1 ~]# useradd oracle -g oinstall -G dba,oinstall [root@rhel1 ~]# passwd oracle Changing password for user oracle. New UNIX password: BAD PASSWORD: it is based on a dictionary word Retype new UNIX password: passwd: all authentication tokens updated successfully. [root@rhel1 ~]# id oracle uid=500(oracle) gid=501(oinstall) groups=501(oinstall),502(dba) [root@rhel1 ~]# id nobody uid=99(nobody) gid=99(nobody) groups=99(nobody) |
[root@rhel1 ~]# fdisk -l Disk /dev/sda: 12.8 GB, 12884901888 bytes 255 heads, 63 sectors/track, 1566 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 13 104391 83 Linux /dev/sda2 14 1566 12474472+ 8e Linux LVM Disk /dev/sdb: 4294 MB, 4294967296 bytes 255 heads, 63 sectors/track, 522 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 62 497983+ 83 Linux /dev/sdb2 63 124 498015 83 Linux /dev/sdb3 125 186 498015 83 Linux /dev/sdb4 187 522 2698920 5 Extended /dev/sdb5 187 205 152586 83 Linux /dev/sdb6 206 224 152586 83 Linux /dev/sdb7 225 243 152586 83 Linux /dev/sdb8 244 268 200781 83 Linux /dev/sdb9 269 281 104391 83 Linux /dev/sdb10 282 294 104391 83 Linux /dev/sdb11 295 307 104391 83 Linux /dev/sdb12 308 320 104391 83 Linux /dev/sdb13 321 333 104391 83 Linux /dev/sdb14 334 346 104391 83 Linux /dev/sdb15 347 359 104391 83 Linux Disk /dev/sdc: 4294 MB, 4294967296 bytes 255 heads, 63 sectors/track, 522 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdc1 1 19 152586 83 Linux /dev/sdc2 20 38 152617+ 83 Linux /dev/sdc3 39 57 152617+ 83 Linux /dev/sdc4 58 522 3735112+ 5 Extended /dev/sdc5 58 76 152586 83 Linux /dev/sdc6 77 95 152586 83 Linux /dev/sdc7 96 114 152586 83 Linux /dev/sdc8 115 176 497983+ 83 Linux /dev/sdc9 177 238 497983+ 83 Linux /dev/sdc10 239 251 104391 83 Linux /dev/sdc11 252 264 104391 83 Linux |
Raw Volume
|
File Size
|
Sample File Name
|
SYSTEM tablespace |
400 Mb
|
db_name_raw_system_400m |
USERS tablespace |
120 Mb
|
db_name_raw_users_120m |
TEMP tablespace |
100 Mb
|
db_name_raw_temp_100m |
UNDOTBS tablespace per instance |
312 Mb
|
db_name_raw_undotbsx_312m |
CWMLITE tablespace |
100 Mb
|
db_name_raw_cwmlite_100m |
EXAMPLE |
160 Mb
|
db_name_raw_example_160m |
OEMREPO |
20 Mb
|
db_name_raw_oemrepo_20m |
INDX tablespace |
70 Mb
|
db_name_raw_indx_70m |
TOOLS tablespace |
12 Mb
|
db_name_raw_tools_12m |
DRYSYS tablespace |
90 Mb
|
db_name_raw_drsys_90m |
First control file |
110 Mb
|
db_name_raw_controlfile1_110m |
Second control file |
110 Mb
|
db_name_raw_controlfile2_110m |
Two ONLINE redo log files per instance |
120 Mb x 2
|
db_name_thread_lognumber_120m |
spfile.ora |
5 Mb
|
db_name_raw_spfile_5m |
srvmconfig |
100 Mb
|
db_name_raw_srvmconf_100m |
quorum |
20 Mb |
quorum_raw_20m |
/dev/raw/raw11 /dev/sdb1 /dev/raw/raw12 /dev/sdb2 /dev/raw/raw13 /dev/sdb3 /dev/raw/raw15 /dev/sdb5 /dev/raw/raw16 /dev/sdb6 /dev/raw/raw17 /dev/sdb7 /dev/raw/raw18 /dev/sdb8 /dev/raw/raw19 /dev/sdb9 /dev/raw/raw20 /dev/sdb10 /dev/raw/raw21 /dev/sdb11 /dev/raw/raw22 /dev/sdb12 /dev/raw/raw23 /dev/sdb13 /dev/raw/raw24 /dev/sdb14 /dev/raw/raw25 /dev/sdb15 /dev/raw/raw31 /dev/sdc1 /dev/raw/raw32 /dev/sdc2 /dev/raw/raw33 /dev/sdc3 /dev/raw/raw35 /dev/sdc5 /dev/raw/raw36 /dev/sdc6 /dev/raw/raw37 /dev/sdc7 /dev/raw/raw38 /dev/sdc8 /dev/raw/raw39 /dev/sdc9 /dev/raw/raw40 /dev/sdc10 /dev/raw/raw41 /dev/sdc11 |
raw/*:root:disk:0660 |
raw/*:oracle:oinstall:0660 |
system=/dev/raw/raw11 spfile=/dev/raw/raw20 users=/dev/raw/raw17 temp=/dev/raw/raw21 undotbs1=/dev/raw/raw12 undotbs2=/dev/raw/raw13 example=/dev/raw/raw18 cwmlite=/dev/raw/raw41 xdb=/dev/raw/raw22 odm=/dev/raw/raw23 indx=/dev/raw/raw24 tools=/dev/raw/raw25 drsys=/dev/raw/raw40 control1=/dev/raw/raw15 control2=/dev/raw/raw16 redo1_1=/dev/raw/raw31 redo1_2=/dev/raw/raw32 redo2_1=/dev/raw/raw33 redo2_2=/dev/raw/raw35 srvmconfig=/dev/raw/raw36 quorum=/dev/raw/raw19 |
# Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost 192.168.1.141 rhel1 192.168.1.142 rhel2 10.10.10.141 rhel1-priv 10.10.10.142 rhel2-priv |
[root@rhel2 ~]# chkconfig rsh on [root@rhel2 ~]# chkconfig rlogin on [root@rhel2 ~]# service xinetd restart Stopping xinetd: [ OK ] Starting xinetd: [ OK ] |
rhel1 rhel2 rhel1-priv rhel2-priv |
[root@rhel2 ~]# cat /proc/meminfo |grep "Total" MemTotal: 706628 kB HighTotal: 0 kB LowTotal: 706628 kB SwapTotal: 1441784 kB VmallocTotal: 303096 kB HugePages_Total: 0 [root@rhel2 ~]# df -m Filesystem 1M-blocks Used Available Use% Mounted on /dev/mapper/VolGroup00-LogVol00 10552 2446 7571 25% / /dev/sda1 99 9 85 10% /boot none 346 0 346 0% /dev/shm |
compat-db-4.1.25-9 compat-gcc-32-3.2.3-47.3 compat-gcc-32-c++-3.2.3-47.3 compat-oracle-rhel4-1.0-3 compat-libcwait-2.0-1 compat-libgcc-296-2.96-132.7.2 compat-libstdc++-296-2.96-132.7.2 compat-libstdc++-33-3.2.3-47.3 gcc-3.4.3-9.EL4 gcc-c++-3.4.3-9.EL4 gnome-libs-1.4.1.2.90-44 gnome-libs-devel-1.4.1.2.90-44 libaio-devel-0.3.102-1 libaio-0.3.102-1 make-3.80-5 openmotif21-2.1.30-11 xorg-x11-deprecated-libs-devel-6.8.1-23.EL xorg-x11-deprecated-libs-6.8.1-23.EL rsh-server-0.17-5 |
kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default = 262144 net.core.rmem_max = 262144 net.core.wmem_default = 262144 net.core.wmem_max = 262144 |
modprobe hangcheck-timer hangcheck_tick=30 hangcheck_margin=180 |
[root@rhel1 ~]# mkdir -p /u01/app/oracle [root@rhel1 ~]# chown -R oracle:oinstall /u01/app/oracle [root@rhel1 ~]# chmod 755 -R /u01/app/oracle |
export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/9.2.0 export PATH=$ORACLE_HOME/bin:$PATH export DBCA_RAW_CONFIG=~/raw_config export LD_ASSUME_KERNEL=2.4.19 export ORACLE_SID=orcl1 |
export ORACLE_SID=orcl2 |
KernelModuleName=hangcheck-timer |
[root@rhel1 bin]# export ORACLE_HOME=/u01/app/oracle/product/9.2.0 [root@rhel1 bin]# ./ocmstart.sh oracm &1 >/u01/app/oracle/product/9.2.0/oracm/log/cm.out & [root@rhel1 bin]# ps -ef |grep cm root 7201 1 0 23:09 pts/1 00:00:00 oracm root 7211 3358 0 23:09 pts/1 00:00:00 grep cm [root@rhel1 bin]# |
[root@rhel2 log]# su - oracle [oracle@rhel2 ~]$ gsdctl start Successfully started GSD on local node [oracle@rhel2 ~]$ gsdctl stat GSD is running on the local node [oracle@rhel2 ~]$ |
listener_orcl1= (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=rhel1)(PORT=1521))) listener_orcl2= (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=rhel2)(PORT=1521))) listeners_orcl= (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=rhel1)(PORT=1521)) (ADDRESS=(PROTOCOL=tcp)(HOST=rhel2)(PORT=1521))) orcl= (description= (ADDRESS=(PROTOCOL=tcp)(HOST=rhel1)(PORT=1521)) (ADDRESS=(PROTOCOL=tcp)(HOST=rhel2)(PORT=1521)) (connect_data= (service_name=orcl) (failover_mode= (type=select)(method=basic)(retries=20)(delay=15)))) orcl1= (description= (ADDRESS=(PROTOCOL=tcp)(HOST=rhel1)(PORT=1521)) (connect_data= (sid=orcl1))) orcl2= (description= (ADDRESS=(PROTOCOL=tcp)(HOST=rhel2)(PORT=1521)) (connect_data= (sid=orcl2))) |
/u01/app/oracle/product/9.2.0/bin/orapwd file=/u01/app/oracle/product/9.2.0/dbs/orapworcl2 password=change_on_install |