Rac12r2 Sol11.4 Install
Rac12r2 Sol11.4 Install
Rac12r2 Sol11.4 Install
vi /etc/ssh/sshd_config
LoginGraceTime 0
-- Restart
svcadm restart ssh
-- /etc/hosts
::1 localhost
127.0.0.1 localhost loghost
192.168.197.131 rac1.oracle.com rac1
192.168.197.132 rac2.oracle.com rac2
192.168.197.133 rac3.oracle.com rac3
192.168.42.131 rac1-priv.oracle.com rac1-priv
192.168.42.132 rac2-priv.oracle.com rac2-priv
192.168.42.133 rac3-priv.oracle.com rac3-priv
192.168.197.231 rac-scan.oracle.com rac-scan
192.168.197.232 rac-scan.oracle.com rac-scan
192.168.197.233 rac-scan.oracle.com rac-scan
2/ Kiem tra vung swap va memory
/*RAM Swap Space
Between 1 GB and 2 GB 1.5 times the size of RAM
Between 2 GB and 16 GB Equal to the size of RAM
More than 16 GB 16 GB */
-- Kiem tra
root@rac1:~# swap -lh
swapfile dev swaplo blocks free
/dev/zvol/dsk/rpool/swap 231,1 4K 12G 12G
-- Neu thieu thi them
--swap
zfs set volsize=12g rpool/swap
-- RAM
/usr/sbin/prtconf | grep "Memory size"
3/ Install package tren 2 node
pkg install oracle-rdbms-server-12-1-preinstall
-- verify
pkg contents -ro type,fmri -t depend oracle-rdbms-server-12-1-preinstall
--
pkginfo -i SUNWarc SUNWbtool SUNWcsl SUNWhea SUNWlibC SUNWlibm UNWlibms UNWsprot
SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
inquiry - show disk ID
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> current
Current Disk = c1t2d0
<ATA-VBOX HARDDISK-1.0 cyl 6524 alt 2 hd 255 sec 63>
/pci@0,0/pci8086,2829@d/disk@2,0
format> fdisk
No fdisk table exists. The default partition for the disk is:
Type "y" to accept the default partition, otherwise type "n" to edit the
partition table.
y
format> partition
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
partition> print
Current partition table (original):
Total disk cylinders available: 6524 + 2 (reserved cylinders)
partition> 6
Part Tag Flag Cylinders Size Blocks
6 unassigned wm 0 0 (0/0/0) 0
partition> print
Current partition table (unnamed):
Total disk cylinders available: 6524 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wm 0 0 (0/0/0) 0
2 backup wu 0 - 6523 49.98GB (6524/0/0) 104808060
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 3 - 6523 49.95GB (6521/0/0) 104759865
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 - 0 7.84MB (1/0/0) 16065
9 unassigned wm 0 0 (0/0/0) 0
partition> label
Ready to label disk, continue? y
partition> quit
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
inquiry - show disk ID
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> quit
--
root@rac1:~# ls -lrt /dev/rdsk/c1t2d0s6
lrwxrwxrwx 1 root root 51 Mar 18 08:14 /dev/rdsk/c1t2d0s6 ->
../../devices/pci@0,0/pci8086,2829@d/disk@2,0:g,raw
ls -lLh /dev/rdsk/c1t2d0s6
chmod 660 /dev/rdsk/c1t2d0s6
chown -R grid:asmadmin /dev/rdsk/c1t2d0s6
--
root@rac1:~# ls -lLh /dev/rdsk/c1t2d0s6
crw-rw---- 1 grid asmadmin 168, 134 Mar 18 09:37 /dev/rdsk/c1t2d0s6
14/ Check
/u01/app/12.2.0.1/grid/runInstaller
grid@rac1:/u01/app/12.2.0.1/grid$ ./runcluvfy.sh stage -pre crsinst -n rac1,rac2 -
verbose
-- patch
unzip -d /u01/app/12.2.0/grid p6880880_210000_Solaris86-64.zip
grid@rac1:/u01/app/12.2.0/grid$ ./gridSetup.sh -applyPSU /export/home/grid/33583921
./gridSetup.sh -applyOneOffs /export/home/grid/33583921/26839277
./gridSetup.sh -applyOneOffs /export/home/grid/33583921/33587128
./gridSetup.sh -applyOneOffs /export/home/grid/33583921/33678030
./gridSetup.sh -applyOneOffs /export/home/grid/33583921/33116894
./gridSetup.sh -applyOneOffs /export/home/grid/33583921/33610989
-- VNC viewer
root@rac2:~# vncserver :1
Password:
Verify:
xauth: file /root/.Xauthority does not exist
-- client
192.168.197.132:1