How to Install Oracle Database 12c on Oracle Linux 6 · to Install Oracle Linux 6.4 64bit on it....

18
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

Transcript of How to Install Oracle Database 12c on Oracle Linux 6 · to Install Oracle Linux 6.4 64bit on it....

Page 1: How to Install Oracle Database 12c on Oracle Linux 6 · 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

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

Page 2: How to Install Oracle Database 12c on Oracle Linux 6 · 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

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

Page 3: How to Install Oracle Database 12c on Oracle Linux 6 · 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

Click on next

Just click on yes and click next

Page 4: How to Install Oracle Database 12c on Oracle Linux 6 · 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

Click on skip software updates

Click on install database software only

Page 5: How to Install Oracle Database 12c on Oracle Linux 6 · 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

Click on single instance database installation

English is the default language Keep default and click on next

Page 6: How to Install Oracle Database 12c on Oracle Linux 6 · 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

Click on Enterprise Edition (6.4GB) and click on next

Input the details as per the screenshot and click on next

Page 7: How to Install Oracle Database 12c on Oracle Linux 6 · 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

Input the details as per the screenshot and click on next

Page 8: How to Install Oracle Database 12c on Oracle Linux 6 · 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

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

Page 9: How to Install Oracle Database 12c on Oracle Linux 6 · 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

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

Page 10: How to Install Oracle Database 12c on Oracle Linux 6 · 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

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

Page 11: How to Install Oracle Database 12c on Oracle Linux 6 · 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

Click on create database and click next

Click on Advanced mode and click Next

Page 12: How to Install Oracle Database 12c on Oracle Linux 6 · 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

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

Page 13: How to Install Oracle Database 12c on Oracle Linux 6 · 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

PDB Name type mypdb01 and click on next

Click on Configure Enterprise manage (EM) Database Express and click on Next

Page 14: How to Install Oracle Database 12c on Oracle Linux 6 · 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

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

Page 15: How to Install Oracle Database 12c on Oracle Linux 6 · 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

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

Page 16: How to Install Oracle Database 12c on Oracle Linux 6 · 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

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

Page 17: How to Install Oracle Database 12c on Oracle Linux 6 · 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

It will provide you the database creation summary now click on Finish button to start the database

creation

Page 18: How to Install Oracle Database 12c on Oracle Linux 6 · 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

Please write to me at [email protected] for any queries or any correction in my documents.

Thanks to all