What Are The Drone Anti-jamming Systems Technology?
Installing oracle grid infrastructure and database 12c r1
1. INSTALLING ORACLE GRID
INFRASTRUCTURE AND
DATABASE 12C R1
English
ABSTRACT
Oracle’s dramatic re-architecture of its latest
enterprise relational database, Oracle Database
12c, offers database customers a long list of
real improvements to support cloud
implementations, enable the consolidation and
management of many databases as one, and
streamline the day-to-day work of database
administrators. This documents used for
showing, Oracle GRID Infrastructure and the
Oracle Universal Installer (OUI) installation the
Oracle Database 12c software. Moreover, this
document also show how to create Oracle ASM
Configuration Assistant (ASMCA), installing and
configuring Oracle ASM instances, disk groups,
volumes, and Oracle Automatic Storage
Management Cluster File System (Oracle
ACFS) and create a database by using
Database Configuration Assistant (DBCA) to
create additional databases.
VOEURNG SOVANN
Installation and configuration
2. Installing Oracle Grid Infrastructure and Database 12c R1
pg. 1
Installing Oracle Grid Infrastructure 12c R1 (12.1) On Standalone Server
(Oracle Restart)On Linux 7 with ASM
Required:
Using VirtualBox GUI I have created a new virtual machine named linux 7 with following:
-Server should have at least 50-60 GB free space for the installation of Grid Infrastructure and Oracle
Database 12c home.
- 2 network interfaces (the first one attached to NAT and the second one attached to Host-Only
Adapter)
-Minimum Memory Requirements
At least 4 GB RAM is required to install Oracle Grid Infrastructure 12c and Oracle Database 12c.
- Download package oracle-rdbms-server-12cR1-preinstall-1.0-1.el6.x86_64.rpm from http://public-
yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/ and once download completed using
this command rpm -ivh oracle-rdbms-server-12cR1-preinstall-1.0-1.el6.x86_64.rpm or if you
have internet connection using: yum update -y
Or yum install 12cr1-preinstall-1.0-1.el6.x86_64 -y with root user after complete install linux7
I was assuming t that you have been install Linux 7 in your virtual box already with assign
Static IP = 192.168.56.1 in your virtual box adopter and configure network on your VM by
- Hostname= linux7 with IP = 192.168.56.200 and hostname = linux 7
-
-Disable SELINUX and FIREWALL
Set secure Linux to permissive by editing the "/etc/selinux/config" file, making sure the SELINUX flag
is set as follows.
SELINUX=permissive
Navigate to System => Administration => Firewall. Click on Disable button and then click on Apply to
disable firewall. Or command systemctl disable firewalld
- Creating Groups, Users and Environment variables
Creation groups for Oracle Grid Infrastructure
/usr/sbin/groupadd -g 54321 oinstall
/usr/sbin/groupadd -g 54322 dba
/usr/sbin/groupadd -g 54333 oper
/usr/sbin/groupadd -g 54325 backupdba
3. Installing Oracle Grid Infrastructure and Database 12c R1
pg. 2
/usr/sbin/groupadd -g 54326 dgdba
/usr/sbin/groupadd -g 54327 kmdba
/usr/sbin/groupadd -g 54328 asmdba
/usr/sbin/groupadd -g 54329 asmoper
/usr/sbin/groupadd -g 54330 asmadmin
- Create Oracle Grid Infrastructure User (grid)
#useradd -u 64322 -g oinstall -G dba,asmdba,asmadmin,asmoper -d /home/grid -m grid
- Create Oracle user
#useradd -u 64321 -g oinstall -G dba,oper -d /home/oracle -m oracle
Change password of user grid and oracle
#Passwd grid
#Passwd oracle
#usermod -a -G oper oracle
#usermod -a -G asmdba oracle
1.Creating directories
Create the Oracle Inventory Directory
mkdir -p /u01/app/oraInventory
chown -R grid:oinstall /u01/app/oraInventory
chmod -R 775 /u01/app/oraInventory
Creating the Oracle Base Directory for Oracle Grid installation
mkdir -p /u01/app/grid
chown -R grid:oinstall /u01/app/grid
chmod -R 775 /u01/app/grid
Creating the Oracle Grid Infrastructure Home Directory
mkdir -p /u01/app/grid/ product/12.1.0.1/grid
chown -R grid:oinstall /u01/app/grid
chmod -R 775 /u01/
Creating the Oracle Base Directory for Oracle Database installation
4. Installing Oracle Grid Infrastructure and Database 12c R1
pg. 3
mkdir -p /u01/app/oracle
chown -R oracle:oinstall /u01/app/oracle
chmod -R 775 /u01/app/oracle
Creating the Oracle RDBMS Home Directory
mkdir -p /u01/app/oracle/product/12.1.0.1/db_1
chown -R oracle:oinstall /u01/app/oracle/product/12.1.0.1
Needed to ensure that dbca is able to run after the rdbms installation.
mkdir /u01/app/oracle/cfgtoollogs
chown -R oracle:oinstall /u01/app/oracle/cfgtoollogs
chmod -R 775 /u01/app/oracle/cfgtoollogs
Configure .bash_profile for grid user
Login to the server as grid user. Use vi editor to edit the profile of grid user.
vi $HOME/.bash_profile
Add the following entries in the file:
# Oracle Settings for grid user
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=linux7
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=$ORACLE_BASE/product/12.1.0.1/grid
export ORA_CRS_HOME=$ORACLE_HOME
export ORACLE_SID=+ASM
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
5. Installing Oracle Grid Infrastructure and Database 12c R1
pg. 4
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
envo
umask 022
Configure .bash_profile for oracle user
Login to the server as oracle user. Use vi editor to edit the profile of oracle user.
vi $HOME/.bash_profile
Add the following entries in the file:
# Oracle Settings for oracle user
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=linux7
export ORACLE_UNQNAME=asmdb
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/12.1.0.1/db_1
export ORACLE_SID=asmdb
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
envo
umask 022
After complete configure already , login as root user and command init 0 to shutdown system and
adding Virtual disk
Go to setting of your --- Storage and add virtual disk
Name : DISK1 15G
Name : DISK2 15G
NAME : FRA 5G
6. Installing Oracle Grid Infrastructure and Database 12c R1
pg. 5
Then start your linux 7 Virtual box
Using tool such as Putty or Secure CRT to connect your VM
- Checking Oracle Linux is up and running. Now we check whether oracleasm package is
installed: if not yet , install oracleasm-support-2.1.8-3.1.el7.x86_64,
#Yum install -y oracleasm-support-2.1.8-3.1.el7.x86_64
Configuring and load the ASM kernel module (as root user).
#oracleasm configure -i
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: grid
Default group to own the driver interface []: asmadmin
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
The script completes following tasks:
- Creates the /etc/sysconfig/oracleasm configuration file
- Creates the /dev/oracleasm mount point
- Mounts the ASMLib driver file system
7. Installing Oracle Grid Infrastructure and Database 12c R1
pg. 6
# /usr/sbin/oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": oracleasm
Configuring "oracleasm" to use device physical block size
Mounting ASMlib driver filesystem: /dev/oracleasm
Using this command to check available disks
# fdisk -l | grep "Disk /dev/sd"
#fdisk /dev/sdb
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-261, default 1): <ENTER>
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-261, default 261): <ENTER>
Using default value 261
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
Format disk sdc ,sdd the same to sdb
Creating ASM disks:
# cd /dev/oracleasm/disks
#oracleasm createdisk DISK1 /dev/sdb1
#oracleasm createdisk DISK2 /dev/sdc1
#oracleasm createdisk FRA /dev/sdd1
# ls -l /dev/sd*
8. Installing Oracle Grid Infrastructure and Database 12c R1
pg. 7
Download – linuxamd64_12c_grid_1of2.zip
Download – linuxamd64_12c_grid_2of2.zip
Copy zip files to oracle server to /tmp directory using WinSCP and unzip it
Login as Grid user and go to the location of that download file and go to folder grid
Open Xmanager (I assume that you already install it ) as administrator
The installation Oracle Universal Installer will be starting :
- Choosing Skips software update --- Next
- Install and configure oracle grid Infrastructure for standalone server --Next
- DISKGROUPNAME= DATA , Redundancy = Normal (Mirror disk group ) , Candidate disks: click
DISK1 ,DISK2—next
- Installation location : /u01/app/grid/ product/12.1.0.1/grid
- Oracle bas: /u01/app/grid --- next
- Click Automatic run configure script --- providing root password -- next
- Finish
After finish , run asmca in order to create FRA diskgroup by click on Redundancy = external (not
mirror )
Check the status of the cluster
As grid use the following command to check the status of the cluster software.
#crsctl stat res -t
9. Installing Oracle Grid Infrastructure and Database 12c R1
pg. 8
Check asm parameter
# srvctl config asm
Installing Oracle 12c R1 (12.1) On Standalone Server (Oracle
Restart)On Linux
After finish installing grid infrastructure unzip (linuxamd64_12102_database_1of2.zip,
linuxamd64_12102_database_2of2.zip) Oracle Database software installation packages
And using oracle user and go to path of installing oracle database software and then using this
command
$export DISPLAY=192.168.56.1:0.0
$./runInstaller
10. Installing Oracle Grid Infrastructure and Database 12c R1
pg. 9
and then Oracle Universal Installer will pop up , these are the following :
- If you have oracle support account lets complete it if you don’t have , just skip it ---Next
- Skip software update --- Next
- Install database software only --- Next
- Single instance database installation --- Next
- English – Next
- Enterprise edition – Next
- Oracle base: /u01/app/oracle , Oracle software installation :
/u01/app/oracle/product/12.1.0/db-1 -- Next
- Next
- Finish
Create new listener for ASMDB
$ netca
When the net configure assistant welcome form pop up , click Listener Configuration ---ADD give
the listener name = LISTENER_ASMDB port 1522 because (1521 used by ASM Instance listener )---
Finish
Run dbca (Database Creation Assistant) as an oracle user to create a
database
Run command
$dbca
Following these steps:
- Click on create database – Next
- Advance mode – Next
- Click on General purpose or transaction processing – Next
- Give global name and sid = asmdb – Next
- Click on configure Enterprise manger (EM) database express --- Next
11. Installing Oracle Grid Infrastructure and Database 12c R1
pg. 10
- Provide the password to administrative account --- Next
- Choose listener (LISTENER_ASM) --- Next
- Database file , Storage type = ASM ,
click Use Common location for all data files -- +DATA , click on use
Oracle-Managed Files
Rocovery Related Files
Storage type= ASM , click on used Fast recovery Area = +FRA ,size=20
--- Next
- Memory size (SGA and PGA )=1024MB, Character sets = Used
Unicode(AL32UTF8), Connection Mode = Dedicated Mode , click on All
Initialization Parameters
Place control files on ASM disks +DATA and +FRA. Initialization
parameters section.
- ("+DATA/{DB_UNIQUE_NAME}/control01.ctl", "+FRA/{DB_UNIQUE_NAME}/contr
ol02.ctl")
---Next
- Click on Create Database --- Next
- Finish