728x90
-- 사전환경
--- IP
ipadm show-if --interface 확인 ipadm create-ip net0 --interface 생성 ipadm delete-ip net0 ipadm create-addr -T static -a local=192.168.223.221/24 net0/prod ipadm create-addr -T static -a local=10.10.10.211/16 net1 ipadm show-addr |
---/etc/hosts
## public 192.168.223.221 solaris1 192.168.223.222 solaris2 ## private 10.10.10.221 solaris1-priv 10.10.10.222 solaris2-priv ## vip 192.168.223.223 solaris1-vip 192.168.223.224 solaris2-vip ## scan 192.168.223.225 solaris-scan |
--- 방화벽
svcadm disable firewall svcadm disable network |
--- group, user 생성
groupadd dba useradd -g dba -d /export/home/oracle -m oracle passwd oracle |
--- kernel setting
projadd -U oracle -G dba -K "project.max-shm-memory=(priv,600m,deny)" user.oracle projmod -U oracle -G dba -K "project.max-shm-memory=(priv,3G,deny)" user.oracle projmod -s -K "process.max-sem-nsems =(priv,256,deny)" user.oracle projmod -sK "project.max-sem-ids=(priv,100,deny)" user.oracle projmod -sK "project.max-shm-ids=(priv,100,deny)" user.oracle projmod -sK "tcp_smallest_anon_port=(priv,9000,deny)" user.oracle projmod -sK "tcp_largest_anon_port=(priv,65500,deny)" user.oracle projmod -sK "udp_smallest_anon_port=(priv,9000,deny)" user.oracle projmod -sK "udp_largest_anon_port=(priv,65500,deny)" user.oracle projmod -s -K "process.max-file-descriptor=(priv,4096,deny)" user.oracle cat /etc/project |
--- Disk Partition
root@solaris:~# format Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c1d0 <VBOX HAR-88343a3a-0b8bca1-0001-50.00GB> /pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0 1. c1d1 <VBOX HAR-933a7fed-e636102-0001 cyl 3914 alt 2 hd 255 sec 63> /pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0 Specify disk (enter its number): 1 selecting c1d1 Controller working list found [disk formatted, defect list found] No Solaris fdisk partition found. 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 show - translate a disk address label - write label to the disk analyze - surface analysis defect - defect list management backup - search for backup labels verify - read and display labels save - save new disk/partition definitions inquiry - show disk ID volname - set 8-character volume name !<cmd> - execute <cmd>, then return quit format> fdisk No fdisk table exists. The default partition for the disk is: a 100% "SOLARIS System" partition Type "y" to accept the default partition, otherwise type "n" to edit the partition table. y format> p 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 (default): Total disk cylinders available: 3913 + 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 - 3912 29.98GB (3913/0/0) 62862345 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 unassigned wm 0 0 (0/0/0) 0 7 unassigned wm 0 0 (0/0/0) 0 8 boot wu 0 - 0 7.84MB (1/0/0) 16065 9 alternates wm 1 - 2 15.69MB (2/0/0) 32130 partition> 0 Part Tag Flag Cylinders Size Blocks 0 unassigned wm 0 0 (0/0/0) 0 Enter partition id tag[unassigned]: Enter partition permission flags[wm]: Enter new starting cyl[0]: 3 Enter partition size[0b, 0c, 3e, 0.00mb, 0.00gb]: 10gb --나머지 선택할 경우 $ partition> print Current partition table (unnamed): Total disk cylinders available: 3913 + 2 (reserved cylinders) format> label Ready to label disk, continue? yes format> quit chown -R oracle:dba c1d1* |
-- Profile
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export ODI_SUPERVISOR_ENCODED_PASS=LoiOxAMgVygJvPHXOsD7Zw==
export LANG=C
export PATH
export PS1="[\u@\h-$ORACLE_SID:\w]$"
export EDITOR=vi # ed for sqlplus
export ORACLE_BASE=/oracle/base
export GRID_BASE=/oragrid/base
export GRID_HOME=/oragrid/product/12
export ORACLE_HOME=$ORACLE_BASE/product/12
export ORACLE_SID=orcl
export ORACLE_TERM=xterm
export BASE_PATH=/usr/sbin:$PATH
export PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME:/usr/bin:$GRID_HOME/bin:$GRID_HOME/OPatch
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export NLS_LANG=american_america.AL32UTF8
stty erase ^H |
-- GRID Install
12c OCR 39G 이상이어야함
728x90
'ORACLE' 카테고리의 다른 글
[ORACLE] INCREMENTAL BACKUP (Crontab) (0) | 2022.03.07 |
---|---|
[ORACLE] RMAN FULLBACKUP (Crontab) (0) | 2022.03.07 |
[ORACLE] RAC interconnect MTU 값이 다를경우 log (0) | 2022.01.28 |
[ORACLE] Recyclebin (0) | 2022.01.14 |
[ORACLE] engine silent 명령어 (0) | 2022.01.14 |