- Global Database Name & SID: OIAM
- Server parameter file: /opt/oracle/db/product/11.2.0/dbhome_1/dbs/spfileOIAM.ora
- TNS Listener : 1521
- ORACLE_HOME=/opt/oracle/db/product/11.2.0/dbhome_1/
- password: demo1234
- login as oracle
. setuporadb.sh
dbstart $ORACLE_HOME
- to start serverdbshut $ORACLE_HOME
- to stop server.
Database control URL: https://:1158/em
Oracle 12.2.0.1 (12.2.0.1.171017)
- RCU
- Authentication Level - DB 12.2 and later version support higher authentication mechanism which is not compatible with RCU's level due to which authentication fails with unsupported authentication protocol. Keeping that in mind need to add
SQLNET.ALLOWED_LOGON_VERSION_SERVER=8
andSQLNET.ALLOWED_LOGON_VERSION_CLIENT=8
to $ORACLE_HOME//network/admin/sqlnet.ora (create an empty file if not already present) and restart the DB. Also, reset the password for sys & system usingalter user system identified by <password>
to ensure that new authentication protocol is active. - MDS Schema creation failure - DB Security in 12.2 disables some features which triggers error while creating MDS Schema. Execute
ALTER SYSTEM SET "_allow_insert_with_update_check"=TRUE scope=spfile
and restart database.
- Authentication Level - DB 12.2 and later version support higher authentication mechanism which is not compatible with RCU's level due to which authentication fails with unsupported authentication protocol. Keeping that in mind need to add
In case of OEL, you can use oracle-rdbms-server-12cR1-preinstall
or oracle-rdbms-server-11gR2-preinstall
to ensure appropriate prerequisites are met.
- Install pre-requisite software
yum groupinstall -y "X Window System"
yum install xclock
yum install -y zip unzip
- Install firefox to download software
yum install bzip2
yum install firefox
yum install wget
- Download the database from
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
- Setup users
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
- Add the following to
/etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 1987162112
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 = 1048586
- Apply values
sysctl -p
sysctl -a
- Add the following to
/etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
- Install required packages
yum install -y binutils.x86_64 compat-libcap1.x86_64 gcc.x86_64 gcc-c++.x86_64 glibc.i686 glibc.x86_64 \
glibc-devel.i686 glibc-devel.x86_64 ksh compat-libstdc++-33 libaio.i686 libaio.x86_64 libaio-devel.i686 libaio-devel.x86_64 \
libgcc.i686 libgcc.x86_64 libstdc++.i686 libstdc++.x86_64 libstdc++-devel.i686 libstdc++-devel.x86_64 libXi.i686 libXi.x86_64 \
libXtst.i686 libXtst.x86_64 make.x86_64 sysstat.x86_64 smartmontools
- set the following
mkdir /opt/oracle/tmp
export TMP=/opt/oracle/tmp
export TMPDIR=/opt/oracle/tmp
- Start installation
cd /opt/oracle/installers/db/database/
./runInstaller
- Security Updates - Uncheck
- Install database software only
- Grid Option - Single Instance
- Product Language - English
- Database Edition - Enterprise
- Installation Location - Base -
/opt/oracle/db
- Ora Inventory - /opt/oracle/oraInventory, Group name: oinstall
- OSDBA group : dba; OSOPER group : oinstall
- Ignore pre-requisite errors (ensure all packages are installed as i686 & swap space is 8GB)
- Run the scripts /opt/oracle/oraInventory/orainstRoot.sh /opt/oracle/db/product/11.2.0/dbhome_1/root.sh
- logout and then login as oracle
- ensure that ORACLE_HOME & ORACLE_SID are set and PATH contains $ORACLE_HOME/bin
netca
- Listener Configuration
- Add
- LISTENER
- TCP
- 1521
- Next and finish. This will configure and start the LISTENER on 1521
- 1&2 as above
- dbca
- (Version 12.2) Click on Advanced Configuration
- Create a database
- General Purpose or Transaction Processing
- Global Database Name : OIAM, SID: OIAM
- (Version 12.2) Database Identification: Uncheck Container Database
- Management: a. Enterprise Manager : uncheck enterprise manager b. Configure Database control for local management c. Automatic maintainance tasks checked
- Use same password : demo1234
- Storage Type: File, Use Database file location from template
- Specify flash recovery checked, default values
- (Version 12.2) Select default listener already selected.
- (Version 12.2) Configure Data Vault and Oracle Label Security - unchecked.
- Nothin on sample schema
- Use Automatic Memory management : checked; Memory Size: 3072
- Sizing > User Processes : 500
- Character sets: AL32UTF8
- (Version 12.2) National Character set: UTF8
- open_cursors: 800
- Create the database
- Enable Database in /etc/oratab to allow easy start of server using dbstart tool
OIAM:/opt/oracle/db/product/11.2.0/dbhome_1:Y
- Updated the tmpfs line in /etc/fstab to allow oracle database to start on server
tmpfs /dev/shm tmpfs size=3g 0 0
- Change the default profile to ensure that passwords don't expire
alter profile DEFAULT limit PASSWORD_LIFE_TIME unlimited;
alter profile DEFAULT limit PASSWORD_REUSE_TIME unlimited;
To simplify the oracle environment setup, a file "~oracle/setuporadb.sh"
was created with following content
export ORACLE_BASE=/opt/oracle/db
export DB_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export ORACLE_HOME=$DB_HOME
export ORACLE_SID=OIAM
export ORACLE_TERM=xterm
export JAVA_HOME=/opt/oracle/java/
export BASE_PATH=/usr/sbin:$PATH
export PATH=$JAVA_HOME/bin/:$ORACLE_HOME/bin/:$BASE_PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_HOME_LISTNER=$ORACLE_HOME
Sample patch 8545377
- Setup environment and shutdown server
. ~oracle/setuporadb.sh
dbshut $ORACLE_HOME
- Check the correct Oracle HOME
opatch lsinventory -invPtrLoc /opt/oracle/oraInventory/oraInst.loc
- Apply patch
unzip p8545377_112010_Linux-x86-64.zip; cd 8545377; opatch apply -invPtrLoc /opt/oracle/oraInventory/oraInst.loc
- Restart the server
- Global Database Name & SID: OIAM
- Server parameter file:
/opt/oracle/db/product/11.2.0/dbhome_1/dbs/spfileOIAM.ora
- Database control URL:
https://<hostname>:1158/em