Thursday, July 7, 2016

Oracle Database 12cR1 install step by step on Oracle Linux 6.8

Oracle Database 12cR1 Install


How to Install Oracle Database 12cR1 on Oracle Linux 6.8 – 64bit



Environment:
Oracle Linux 6.7 64bit, 6 GB RAM
150 GB Disk Space

Download:
·         
1. V38500-01_1of2.zip
2. V38500-01_2of2.zip
·         Download from OTN

Unix Required:
·         Directories
Login to unix server with "oracle – user account name" account
$su # enter the password for root access
[root@obiee12c /]# mkdir oracle
[root@obiee12c /]# chown oracle:dba /oracle
[root@obiee12c /]# chmod -r 775 oracle
[root@obiee12c /]# exit
[obiee@obiee12c ~]$ cd /oracle
[obiee@obiee12c oracle]$ mkdir database
[obiee@obiee12c oracle]$ mkdir orainventory
·         Inventory Setup
[oracle@obiee12c oracle]$ su
Password:
[root@obiee12c oracle]# cd /etc
[root@obiee12c etc]# vi oraInst.loc
Add following lines
inventory_loc=/oracle/database/orainventory
inst_group=dba
Save and exit
·         Host Name Setup
Check the host name
[root@obiee12c etc]# vi hostname
#add bellow line at host file, if host name not exist
192.168.64.13 obiee12c.oracle    oracle
"IP Address might be differ"

Oracle Pre Install RPM:
·       To Install Oracle Database 12cR1 on a Linux system, need to pre-configure the operating environment since the database requires certain software packages, package versions, and tweaks to kernel parameters.
Using the Oracle RDBMS Server 12cR1 Pre-install RPM, you can complete most of the pre-installation configuration tasks
·         Install RPM
[obiee@obiee oracle]$ su
Password:
[root@obiee oracle]# yum install oracle-rdbms-server-12cR1-preinstall
Restart the server

Manual Install and Configurations:
·         Limits:
Add following values to /etc/security/limits.conf
obiee   soft   nofile    1024
obiee   hard   nofile    65536
obiee   soft   nproc    16384
obiee   hard   nproc    16384
obiee   soft   stack    10240
obiee   hard   stack    32768
obiee   hard   memlock    134217728
obiee   soft   memlock    134217728
·         System Controls:
Add following Values /etc/sysctl.confto
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4294967295
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576

/etc/security/limits.d/90-nproc.conf:
* - nproc 16384
·         Users and groups:
groupadd -g 501 oinstall
groupadd -g 502 dba
groupadd -g 503 oper
groupadd -g 504 asmadmin
groupadd -g 506 asmdba
groupadd -g 505 asmoper

Creating Users and Groups:
useradd -u 502 -g oinstall -G dba,asmdba,oper oracle
passwd oracle

·         Required RPMS:
Following RPM’s are required for Oracle  linux 6 64 bit
binutils-2.20.51.0.2-5.11.el6 (x86_64)
compat-libcap1-1.10-1 (x86_64)
compat-libstdc++-33-3.2.3-69.el6 (x86_64)
gcc-4.4.4-13.el6 (x86_64)
gcc-c++-4.4.4-13.el6 (x86_64)
glibc-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6 (x86_64)
ksh
libgcc-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6 (x86_64)
libstdc++-devel-4.4.4-13.el6 (x86_64)
libaio-0.3.107-10.el6 (x86_64)
libaio-devel-0.3.107-10.el6 (x86_64)
make-3.81-19.el6
sysstat-9.0.4-11.el6 (x86_64)
unixODBC-2.2.14-11.el6 (x86_64) or later
unixODBC-devel-2.2.14-11.el6 (x86_64) or later

·         Restart Server:
After Installation and configuration, needs to be restart to effect the new changes

Environment Variables:
·         Execute following variables before installing
# Oracle Settings
TMP=/oracle/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_HOSTNAME=obiee.oracle; export ORACLE_HOSTNAME
ORACLE_UNQNAME=OBIEE12C; export ORACLE_UNQNAME
ORACLE_BASE=/oracle/database/obase; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/12.1.0/db; export ORACLE_HOME
ORACLE_SID=OBIEE12C; 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

Database Install:
 [oracle@obiee12c oracle]$ cd /oracle/software/database12c
[oracle@obiee12c oracle]$ ./runInstaller
 
     1. Our Installer has been launched here. For every steps we need to move forward by Clicking Next or OK

     2. Configure Security Updates:
I’m going to skip this step as I don’t want security updates. Un-check the check box and mark the checkbox that says “Wish to receive security updates via My Oracle Support“.
Click on Next, you will get a error saying that you’ve not provided and email address click Yes to continue.




     3. Software Updates:
While we skiped the email step by default it will choose skip software updates Click next to continue.



4. Installation Option:
Next, choose the type of installation, I’m choosing the first option to Create and configure a database.



5.System Class:
I’m going to choose Server Class here. If we need to install in any Desktop machines we can choose the above Option as Desktop Class.



6.Grid Installation Options:
We are going to setup only single instance database installation here. So, select the first option.



7.Install Type:
Choose the Advance install option to get more option while going through Installation steps.



8.Product Languages:
By Default Language will be chooses as English. If you need to change according to your language, choose from the below list.



9.Database Edition:
Time to choose which edition of database installation we looking for. For large scale Productions we can use Enterprise or if we need standard edition or we can choose the options as mentioned there. We need more than 6.5 GB space for Enterprise installation because database Population will grow soon/increase.



10.Installation Location:
Enter the Oracle base installation location, here all installed configurations files will be stored. Here you need to define the location of oracle installation path, as we created the location above in the second part of this article.




11.Creating Inventory:
For the first time installation, every Inventory files will be created under ‘/oracle/database/oralnventory‘ directory. We have created the group oracle for installation. So now the oracle group has permission to access Inventory Directory. Let us choose the Oracle as the Group for Operating system group.



12.Configuration Type:
Select the type of database, you want to create. Since, we are using for General purpose, so choosing general from the below options and click Next.



13.Database identifiers:
Specify the Global Database name for uniquely identified and un-check the Create as Container database, as here we are not going to create multiple databases.



14.Configuration Options:
In my installation, I have assigned 6GB of Memory to my virtual machine, but this is not enough for Oracle. Here we need to Enable allocate memory automatically for the use of system global Area.
Check the box that says Enable Automatic Memory Management and keep the default allocate memory. If we need some sample schema’s we can check and continue for installation.




    Change Character Set to AL32UTF8


15.Database Storage:
We need to choose the location to store the database storage. Here I’m going to assign ‘/oracle/database/obase/oradata‘ location to save the databases and Click Next to continue to installer steps.



16.Management Options:
I don’t have a Cloud control manager credentials from oracle, so I have to skip this step.



17.Recovery Options:
If we have to Enable recovery options, then we have to check the Enable Recovery. In real environment these options are Compulsory to setup. Here to enable this option we need to add separate group and we need to define one of the file system location rather than default location where our database save.



18.Schema Passwords:
We need to define the password for starter database which is all pre-loaded while the installations. Password must contain alphanumeric, upper_case and lower_case. For example, my password is Oracle123. This password we will use in web interface login too.



19.Operating system Groups:
We need to provide system privileges to create database for that we need to choose the "dba" group. Choose oracle for every options.



20.Summary:
At last we can review every settings before database population. If we need any changes we can edit the settings.



21.Install Product:
Installation started to Preparation and copying files. This will take long time to complete according to our Hardware Resource.




22. During setup process, it will ask to run two scripts as a root user 


[oracle@obiee12c oracle]$ su
Password:
[root@obiee12c oracle]# cd /
[root@obiee12c oracle]# ./oracle/database/oralnventory/orainstRoot.sh
[root@obiee12c oracle]# ./oracle/database/obase/product/12.1.0/db_1/root.sh 


     After successfully execution of above two scripts, we need to move forward by clicking on OK.
     After finishing all the above tasks successfully, we will receive the Database Configuration Assistant window with the all the details and it will show you the EM Database Express URL. Click OK to move forward.


Finally Oracle Database installation was successfully completed. Click on Close to quit the Oracle Installer.


Verify Install:
·         Start and Stop
[oracle@obiee12c oracle]$ sqlplus / as sysdba
SQL> Shutdown immediate
SQL> exit
[obiee@obiee12c oracle]$ sqlplus / as sysdba
SQL> startup
SQL> exit
·         Listeners Start and Stop
[oracle@obiee12c oracle]$ lsnrctl stop
[oracle@obiee12c oracle]$ lsnrctl start
·         DB EM Express:
Open following link in browser
http://obiee12c.oracle:5500/em/
When EM Express prompts you for your username and password, Use to log in as a user with DBA privilege such as SYS or SYSTEM and use the password which we used for Schema password.After login into the Oracle panel, you can see the main interface as Database Home and few screen shot as shown below.

 




20 comments:

Priya Kannan said...

Great post! I am see the great contents and step by step read really nice information.I am gather this concepts and more information. It's helpful for me my friend. Also great blog here with all of the valuable information you have.
Linux Training in Chennai

gowsalya said...

Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.


Devops Training in pune

Devops Training in Chennai

Devops Training in Bangalore

AWS Training in chennai

AWS Training in bangalore

Unknown said...

Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.

rpa training in Chennai

rpa training in anna nagar | rpa training in marathahalli

rpa training in btm | rpa training in kalyan nagar

rpa training in electronic city | rpa training in chennai

rpa online training | selenium training in training

gowsalya said...

Awesome! Education is the extreme motivation that open the new doors of data and material. So we always need to study around the things and the new part of educations with that we are not mindful.
python training in tambaram
python training in annanagar
python training in OMR
python training in chennai

Unknown said...

I prefer to study this kind of material. Nicely written information in this post, the quality of content is fine and the conclusion is lovely. Things are very open and intensely clear explanation of issues

java training in tambaram | java training in velachery

java training in omr | oracle training in chennai

Unknown said...

Thank you for this post. That's all I are able to say. You most absolutely have built this blog website into something special. You clearly know what you are working on, you've insured so many corners.thanks

Data science course in tambaram | Data Science course in anna nagar
Data Science course in chennai | Data science course in Bangalore
Data Science course in marathahalli | Data Science course in btm

pragyachitra said...

I believe there are many more pleasurable opportunities ahead for individuals that looked at your site.

angularjs Training in bangalore

angularjs Training in btm

angularjs Training in electronic-city

angularjs online Training

angularjs Training in marathahalli

Chris Hemsworth said...

The article is so informative. This is more helpful. Thanks for sharing.

Best online software testing training course institute in chennai with placement
Best selenium testing online course training in chennai
Learn best software testing online certification course class in chennai with placement

divi said...

Hi, This is the excellent information.i will be like that for your wonderful information.
web design company in velachery

subha said...

wonderful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. good luck.
Ai & Artificial Intelligence Course in Chennai
PHP Training in Chennai
Ethical Hacking Course in Chennai Blue Prism Training in Chennai
UiPath Training in Chennai

aarthi said...

Oracle database technical knowledge is very informative.Keep updating.
Java training in Chennai

Java training in Bangalore

Java training in Hyderabad

Java Training in Coimbatore

Java Online Training

Jayalakshmi said...

Really Great informative post on search engine optimization. Also your on page optimization module is really awesome.
hardware and networking training in chennai

hardware and networking training in tambaram

xamarin training in chennai

xamarin training in tambaram

ios training in chennai

ios training in tambaram

iot training in chennai

iot training in tambaram

jeni said...

I simply wanted to thank you so much again. I am not sure the things that I might have gone through without the type of hints revealed by you regarding that situation.

angular js training in chennai

angular js training in velachery

full stack training in chennai

full stack training in velachery

php training in chennai

php training in velachery

photoshop training in chennai

photoshop training in velachery

shiny said...

Informative post! I really like and appreciate your work, thank you for sharing such a useful information about google ranking factors strategies.




hardware and networking training in chennai

hardware and networking training in annanagar

xamarin training in chennai

xamarin training in annanagar

ios training in chennai

ios training in annanagar

iot training in chennai

iot training in annanagar

deiva said...

Awesome! Education is the extreme motivation that open the new doors of data and material. So we always need to study around the things and the new part of educations with that we are not mindful.
web designing training in chennai

web designing training in omr

digital marketing training in chennai

digital marketing training in omr

rpa training in chennai

rpa training in omr

tally training in chennai

tally training in omr



praveen said...

Excellent post, From this post i got more detailed information,
Thanks to share with us,
oracle training in chennai

oracle training in porur

oracle dba training in chennai

oracle dba training in porur

ccna training in chennai

ccna training in porur

seo training in chennai

seo training in porur

ram said...

Thank you for posting informative insights, I think we have got some more information to share with! Do check out
oracle training in chennai and let us know your thoughts. Let’s have great learning!

Devi said...

Infycle Technologies offers the best Data Science Certification in Chennai and is widely known fots excellence in giving the best Data Science training in Chennai. Providing quality software programming training with 100% placement & to build a solid career for every young professional in the software industry is the ultimate aim of Infycle Technologies. Apart from all, the students love the 100% practical training, which is the specialty of Infycle Technologies. To proceed with your career with a solid base, reach Infycle Technologies through 7502633633r i.Get Data Science Certification in Chennai | Infycle ologies.coTechnologies

Boomerang Airplane said...

Much obliged for sharing this brilliant substance. its extremely fascinating. Numerous web journals I see these days don't actually give whatever pulls in others however the manner in which you have plainly clarified everything it's truly awesome. There are loads of posts But your method of Writing is so Good and Knowledgeable. continue to post such helpful data and view my site too...

origami airplane
paper airplane facts
the arrow paper airplane
paper airplane fighter
smart fly
rhino - bolt
how to make a paper airplane for beginners
paper airplane techniques
paper airplane designs

satcharitrasai said...

Very nice blog.
Sai Satcharitra English pdf
Sai Satcharitra telugu pdf
Sai Satcharitra tamil pdf
Sai Satcharitra Hindi pdf
Sai Satcharitra Bengali pdf
Sai Satcharitra Kannada pdf
Sai Satcharitra Marathi pdf
Sai Satcharitra Malayalam pdf
Sai Satcharitra Gujarati pdf