Step 1 : switch user to root
Step 2: Create oracle user and set password.
Step 3: Create directories for oracle base to install oracle products.
[sree@localhost ~]$ su - root
Password:
[root@localhost ~]#
[root@localhost ~]# useradd oracle
[root@localhost ~]# passwd oracle
Changing password for user oracle.
New password:
BAD PASSWORD: it is based on a dictionary word
BAD PASSWORD: is too simple
Retype new password:
passwd: all authentication tokens updated successfully.
[root@localhost ~]#
[root@localhost ~]# groupadd oinstall
[root@localhost ~]#
[root@localhost ~]# mkdir -p /u01/app/oracle
[root@localhost ~]#
[root@localhost ~]# chown -R oracle:oinstall /u01
[root@localhost ~]#
[root@localhost ~]# chmod -R 777 /u01
Step 4: login as oracle user and copy Oracle11g software to the desktop.
[oracle@localhost Desktop]$ cd
[oracle@localhost ~]$
[oracle@localhost ~]$ chmod -R 777 /home/oracle/Desktop/Oracle11g/
[oracle@localhost ~]$
[oracle@localhost ~]$ export ORACLE_BASE=/u01/app/oracle/
[oracle@localhost ~]$
[oracle@localhost ~]$ /home/oracle/Desktop/Oracle11g/runInstaller -ignoresysprereqs
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 27279 MB Passed
Checking swap space: must be greater than 150 MB. Actual 3999 MB Passed
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
Uncheck the checkbox and click on next.
Here you can choose installation option.
Select System class either Desktop class or server class.
Global database name is by default “orcl”. You can change database name. Set password to database.
Check the ignore all box and click on next.
Wait for until installation gets completed.
Click on password management to unlock users.
Unlocked scott user and provided the password. Click on ok
execute the above scripts.
[root@localhost ~]# [root@localhost ~]# sh /u01/app/oraInventory/orainstRoot.sh Changing permissions of /u01/app/oraInventory. Adding read,write permissions for group. Removing read,write,execute permissions for world. Changing groupname of /u01/app/oraInventory to oracle. The execution of the script is complete. [root@localhost ~]# [root@localhost ~]# sh /u01/app/ora oracle/ oraInventory/ [root@localhost ~]# sh /u01/app/oracle/product/11.2.0/dbhome_1/root.sh Running Oracle 11g root.sh script... The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /u01/app/oracle/product/11.2.0/dbhome_1 Enter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to /usr/local/bin ... Copying oraenv to /usr/local/bin ... Copying coraenv to /usr/local/bin ... Creating /etc/oratab file... Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root.sh script. Now product-specific root actions will be performed. Finished product-specific root actions. [root@localhost ~]# [root@localhost ~]#
Click on close.
Finally, edit .bash_profile and add below paths.
[oracle@localhost ~]$ vi .bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin export ORACLE_SID=orcl export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1 export PATH=$PATH:$ORACLE_HOME/bin ~ ~ :wq [oracle@localhost ~]$ . .bash_profile [oracle@localhost ~]$ exit
Nice Post Nadeem.Very Helpful for beginners
ReplyDeleteThanks for ur precious comment
Delete