PRE-INSTALLATION STEPS
1. Check /etc/hosts file must be contain a fully qualified name for the server.
bash-3.00# vi /etc/hosts
#
# Internet host table
#
::1 localhost
127.0.0.1 localhost
192.168.56.132 solaris10.server.com solaris10 unknown # Added by DHCP
~
~
"/etc/hosts" 6 lines, 139 characters
#
# Internet host table
#
::1 localhost
127.0.0.1 localhost
192.168.56.132 solaris10.server.com solaris10 unknown # Added by DHCP
~
~
"/etc/hosts" 6 lines, 139 characters
2. Now we need 3 groups as an installation requirement: oinstall, dba, and oper.
Before we add these groups, we have to make sure that these groups don't exist.
bash-3.00# grep oinstall /etc/group
bash-3.00# grep dba /etc/group
bash-3.00# grep oper /etc/group
bash-3.00# grep dba /etc/group
bash-3.00# grep oper /etc/group
If this command doesn't return any value, it means these groups do not exist. Now we are ready to create these groups:
bash-3.00# /usr/sbin/groupadd oinstall
bash-3.00# /usr/sbin/groupadd dba
bash-3.00# /usr/sbin/groupadd oper
bash-3.00# /usr/sbin/groupadd dba
bash-3.00# /usr/sbin/groupadd oper
3. Now we need to create oracle user. First, we need to check whether oracle user does not exist.
bash-3.00# id -a oracle
If the user exist, it should return message like this:
uid=502(oracle) gid=502(oinstall) groups=502(oinstall),503(dba)
To create oracle user:
bash-3.00# useradd -g oinstall -G dba -d /export/home/oracle -m -s /bin/ksh oracle
Now, if we list file in /export/home/oracle folder, it will return like this:
bash-3.00# ls -la /export/home/oracle
total 12
drwxr-xr-x 2 oracle oinstall 512 Apr 22 15:24 .
drwxr-xr-x 7 root root 512 Apr 22 15:24 ..
-rw-r--r-- 1 oracle oinstall 144 Apr 22 15:24 .profile
-rw-r--r-- 1 oracle oinstall 136 Apr 22 15:24 local.cshrc
-rw-r--r-- 1 oracle oinstall 157 Apr 22 15:24 local.login
-rw-r--r-- 1 oracle oinstall 174 Apr 22 15:24 local.profile
total 12
drwxr-xr-x 2 oracle oinstall 512 Apr 22 15:24 .
drwxr-xr-x 7 root root 512 Apr 22 15:24 ..
-rw-r--r-- 1 oracle oinstall 144 Apr 22 15:24 .profile
-rw-r--r-- 1 oracle oinstall 136 Apr 22 15:24 local.cshrc
-rw-r--r-- 1 oracle oinstall 157 Apr 22 15:24 local.login
-rw-r--r-- 1 oracle oinstall 174 Apr 22 15:24 local.profile
4. Change the owner of the file.
bash-3.00# chown oracle:oinstall /export/home/oracle
5. Set oracle password (example: oracle)
bash-3.00# passwd -r files oracle
New Password: oracle
Re-enter new Password: oracle
passwd: password successfully changed for oracle
New Password: oracle
Re-enter new Password: oracle
passwd: password successfully changed for oracle
6. Use vi to edit /export/home/oracle/.profile file.
bash-3.00# vi /export/home/oracle/.profile
7. Add these following lines inside /export/home/oracle/.profile file.
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/export/home/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=ORASOL; export ORACLE_SID
PATH=$ORACLE_HOME/bin:$PATH; export PATH
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/export/home/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=ORASOL; export ORACLE_SID
PATH=$ORACLE_HOME/bin:$PATH; export PATH
8. Create /export/home/oracle/product/10.2.0/db_1 folder and change the owner for this folder
bash-3.00# mkdir -p /export/home/oracle/product/10.2.0/db_1
bash-3.00# chown -R oracle:oinstall /export/home/oracle
bash-3.00# chown -R oracle:oinstall /export/home/oracle
9. (Optional) Edit Solaris kernel parameter in the /etc/system file:
set semsys:seminfo_semmni=100
set semsys:seminfo_semmns=1024
set semsys:seminfo_semmsl=256
set semsys:seminfo_semvmx=32767
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmmni=100
set semsys:seminfo_semmns=1024
set semsys:seminfo_semmsl=256
set semsys:seminfo_semvmx=32767
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmmni=100
10. In Solaris 10, that kernel configuration (No. 8) is obsolete. The other way, you can do these following command. This one is to create oracle project with project.max-shm-memory = 4GB.
bash-3.00# projadd -U oracle -K "project.max-shm-memory=(priv,4GB,deny)" oracle
11. Because of this setting will be lost after reboot, so we need to set permanently.
bash-3.00# projmod -s -K "project.max-shm-memory=(priv,4GB,deny)" oracle
12. Verify our project and kernel setting:
bash-3.00# cat /etc/project
system:0::::
user.root:1::::
noproject:2::::
default:3::::
group.staff:10::::
oracle:100::oracle::project.max-shm-memory=(priv,4294967296,deny)
system:0::::
user.root:1::::
noproject:2::::
default:3::::
group.staff:10::::
oracle:100::oracle::project.max-shm-memory=(priv,4294967296,deny)
13. Add this line in the /etc/user_attr file:
oracle::::project=oracle
Continue to PART 3...
0 comments
Post a Comment