Oracle 12c DB installation
Here are the easy steps to install the Oracle 12c (12.1.0.2) Database.
[root@ol5-12c-cdb ~]# groupadd oinstall
[root@ol5-12c-cdb ~]# useradd -g oinstall oracle
[root@ol5-12c-cdb ~]# passwd oracle
We will use below dir's for 12c DB software installation.
Oracle Base: /u01/app/oracle
DB Home: /u01/app/oracle/product/12.1.0/dbhome_1
Inventory: /u01/app/oraInventory
[root@ol5-12c-cdb ~]# xhost +
access control disabled, clients can connect from any host
[root@ol5-12c-cdb ~]# su - oracle
[oracle@ol5-12c-cdb ~]$ cd /media/sf_Oracle_Base/sw12.1.0.2db/database
[oracle@ol5-12c-cdb database]$ ./runInstaller
[Step1] If you have valid credentials and the server is connected to the Internet, then you should provide these details. Otherwise, you can skip this option and configure them after installation.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtbHkoKZCX9_29ful7a4ZN1qC51Q7qQ-JarXNATXN9mYvkwjVWAOtVojSMLcuyhnpxcOH8zAlMxNOtwM1Ktjso546__y_kL9dFbX8sFvmlgxdxEiE5SUcxTYHdYX7fqQPh2fvTPjld_Mo/s640/12cdb_2.png)
[Step-2] Select "Install Database software only"
We will create the container database along with PDB's in later posts.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmdPRHD6l_uEbz8PJSczfXM904RV-OyVOqBl8a_dk3_QDjYEjtllODW1Smu8Hiq4PMW9L6hwL_R4qeGuSdF7H00OgP66cmdqSGr_VE0O3Gcy4YNHCnNJ9Zd6xjzk8z_8i-Vi5rH8Ojm_c/s640/12cdb_3.png)
[Step-3] Select "Single instance database instance" and click next..
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCXimPO6O-4L_fgfjg_5lfQmohmT4j2_eUDFwurqahB3LeBAsGmm7bGadAkZv0olOc5Sd6v62G_6RaJDF0ek5e9UdmIsJFYuTnuKAz1YB0VWY8yiC8MAAKdQz1alVqVVp5te-qP4PuNM0/s640/12cdb_4.png)
[Step-4]Select your preferred language and click next..
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRsQ_FamVD4dI4Q4M7xoz1xWjyzKTpTLJ0WurNTBuuFfGG5CyipN1PXzAmgBSeRRWrV3tk5eVhA1RYNtXIlNHTxo4xrNXRdC87-tL7OWbEPr0p3DNP1t_BnAEBTz0lQj0Cc1rDbehz1yY/s640/12cdb_5.png)
[Step-5] Click Next..
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcJ9r8yXBl3VEBf72K49rPgKL8YLJ5XIb6Xop-XWTr-_E4nUGVnkQphmWKkj-oMSFnaG1xleDEeKQ41fzgmWFeVzPxLaXmM61rSMn-I5i4hDWcxO7Cc3kRSpoJxqxb8GPx7kYpxNw-mRo/s640/12cdb_6.png)
[Step-6] Provide directory paths for oracle base and oracle home software.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDXLBUA83c5ABtdCUavdP8oZcE0WuPh1ipNXNCKRca3ViceIWPy4Lezvx6pJ9T1C_3RlBerY2PQKsmaLJZhpCivfM-ARvUSQW6F88TkH_mI0itp7EZjSDGy1Q2AzKNza4RXyA2685D6MI/s640/12cdb_7.png)
[Step-7] Provide path for Central Inventory. Select group as oinstall.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbeEw3XV-7wdX5KP0iUoe_v16V5kqDsIevHXbBCna6X-AQvsDqkYd2DJkPsF8d7pWFDzCrs_p4XVAZSCPzt_cKSGR7buM3dvC2t9UOHFS2vZEKPF6sAfDGHvskgRwRq5v6SkTpTwfan_A/s640/12cdb_8.png)
[Step-8] select group "oinstall" and click next..
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxAuEqwjsX1cMbWs4zeAmFwiJhpepxaOGxRWq0is1FkRMj3IN2KWpaAphSNHX4w_g86SPR1pnhbtptyhaU62J6fGw8DImdoGhTi7OI8mpi00w-y4DLHbk1kUCN21YXolRAdzxAZVTw3IA/s640/12cdb_9.png)
[Step-9] We may ignore this error and proceed further with installation.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLJ2yaMlb85ivP8UDBrYPXss9WMLtIm2nq7lem94jgKW_k1mJup6chnTztnycJk1OAVrSaJQOaFjleE5NbigWpRujITo_ENl12UEUaxC-cFb123UeMbnBVbgKvxQXgHyGlx9VU9rbKrlM/s640/12cdb_10.png)
[Step-10] It lists all the details, Review once and click Install.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEil2KADp8Nuk1LzEvUXweo1FidAbpeSs2fnz6kcv9wyPEaNkcFLpoLQomcBgrw-uhT6VXUne7o_d55_1eTZ9KbZBeV14XU8QECgFupZRjzAA0GIaVj4zFtu3cfzEDEgL490KmNbTVDLYkQ/s640/12cdb_11.png)
[Step-11] Installation is in Progress...
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW7JojntAf6zaGMTOFIT6h_GY_zgSmj3dMxuILtcTvwjbV1WvWD_heTl85t7Ga7VUs6o5N0MJ604MglExWjr7n2-gprBQWvv2kDkwMhtYl-8CeXeaQC94JC-EuDwgMyRht0tfiOmZ1Z0w/s640/12cdb_12.png)
[Step-12] Once after installation we need to run below scripts as a root user.
/u01/app/oraInventory/orainstRoot.sh
/u01/app/oracle/product/12.1.0/dbhome_1/root.sh
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihnyA1eApx22YclFqwAZfrn5ObWszMuarc1GQ-DO8eTR0PAotI2lDoG9wYXZmFfZ0_EJyPiO3UdKpuvYzjYxeBIdq05X7pb9awpwSS4DyBhltruy4N7heepyw_pNTAUrDpeKp3oEIzV54/s640/12cdb_13.png)
Please choose default options while running the scripts
Script:1
---------------------------------------------------------------------------------
[root@ol5-12c-cdb ~]# 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 oinstall.
The execution of the script is complete.
---------------------------------------------------------------------------------
Script:2
---------------------------------------------------------------------------------
[root@ol5-12c-cdb ~]# sh /u01/app/oracle/product/12.1.0/dbhome_1/root.sh
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/12.1.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 script.
Now product-specific root actions will be performed.
---------------------------------------------------------------------------------
Oracle Database Software installation has been completed.
Click on below link for Container DB creation.
Container DB creation (Coming soon..)
No comments:
Post a Comment