how to install oracle database 12c on oracle linux...
Post on 01-Feb-2018
236 Views
Preview:
TRANSCRIPT
How to Install Oracle Database 12c on Oracle Linux 6.4 64bit
We are installing single instance database using non ASM file system
In my last 2 session I demonstrated how to create virtual machine using vmware workstation 9 and how
to Install Oracle Linux 6.4 64bit on it.
Here we will learn to Install oracle database 12c on Oracle Linux 6.4 64bit.
After installing oracle Linux the first step is to check the network configuration and setup the public yum
please refer to my articles on how to manually configure ip address and setting up public yum on my
blog.
Now install the Oracle rdbms server 12c preinstall rpm which will install all the package required for the
database and also create the required OS users and groups
[root@db12c02 /]# yum install oracle-rdbms-server-12cR1-preinstall
[root@db12c02 /]# passwd oracle
Changing password for user oracle.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
Now create Oracle base & software location folder
[root@db12c02 /]# mkdir –P /u01/app/oracle/product/12.1.0/dbhome_1
Now change the ownership of /u01 directory to oracle and oinstall group
[root@db12c02 /]# chown -R oracle:oinstall /u01
Now change the permission
[root@db12c02 /]# chmod -R 775 /u01
[root@db12c02 /]# mkdir –P /u01/app/oraInventory
Create directory to stage oracle software since I have given required permission to /u01 I will create my
staging directory in that
[root@db12c02 /]# mkdir –P /u01/software
Now edit the /etc/hosts file to provide fully qualified domain name for your machine in my case I have
put the entry as below
192.168.1.3 db12c01.localdomain db12c01
Save and exit the vi editor
Ping db12c01.localdomain
Ping db12c01
To check if the hostname is getting resolved properly
Downloaded the Oracle 12c software from
https://edelivery .oracle.com
Now using winscp login using oracle user and copy both the zip file to /u01/software directory
V38500-01_1of2.zip
V38500-01_2of2.zip
Now change the directory to /u01/software
Unzip V38500-01_1of2.zip
Unzip V38500-01_2of2.zip
As I am using mobaterm personal edition. I don’t have to start my xsession for oracle user as when I
start the session this software automatically starts the xserver for each connected session.
But you can run xhost +x command to start the X session
Now run the installer here we are only going to install the software. We will be creating the database in
next session
Cd /u01/software/database/
./runInstaller
Now follow the screen shot
Click on next
Just click on yes and click next
Click on skip software updates
Click on install database software only
Click on single instance database installation
English is the default language Keep default and click on next
Click on Enterprise Edition (6.4GB) and click on next
Input the details as per the screenshot and click on next
Input the details as per the screenshot and click on next
It will provide you the summary of installation you can edit any of the information needed or proceed
with the installation by clicking install button
Now open the terminal and login as root
Su
Input the password and run both the script
Cd /u01/app/oraInventory/
./oraInstRoot.sh
Cd /u01/app/oracle/product/12.1.0/dbhome_1
./root.sh
And then click on ok
Now the database software is installed successfully
Now we have to add the oracle environment variables for user oracle
Vi /home/oracle/.bash_profile
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_HOSTNAME=db12c01.localdomain ; export ORACLE_HOSTNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=/u01/app/oracle /product/12.1.0/dbhome_1; export ORACLE_HOME
ORACLE_SID=my12c01 ; export ORACLE_SID
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
Save and close
Now run the .bash_profile so that the environment variables are set
. .bash_profile
Now lets create One container database with 1 pluggable database
Now run the database configuration assistant utility to create the database
Type dbca and press enter
Click on create database and click next
Click on Advanced mode and click Next
Click on General Purpose or Transaction Processing and click Next
Input my12c01 as Global database name & SID as same.
Click on Create a Container Database with One or more PDBs
Number of PDBs type 1
PDB Name type mypdb01 and click on next
Click on Configure Enterprise manage (EM) Database Express and click on Next
Select user the same Administrative Password for All Accounts type in the required password and click
on next (Please note down the password as this will be your sys & system passwords to login to the
database as administrator/root)
Tick the check box type LISTENER in the name box and port as 1521 and click on Next
Input the values as per the screenshot and click on next
I have selected the sample Schemas so that it installs the sample users and data for practice purpose.
Tick on sample schemas and click on next
Tick on use Automatic Memory Management and click on next
Click on Create Database if you want the installer to save the script click on generate database creation
scripts or untick the same and click on next
It will provide you the database creation summary now click on Finish button to start the database
creation
Please write to me at sunil@sunilthetechfreak.com for any queries or any correction in my documents.
Thanks to all
top related