Memory and Disk Space Requirements
- Minimum: 1 GB of RAM
- 7.5 GB of disk space for the software installation
- 1.7 GB of disk space for the Database files
- At least 1 GB of disk space in the /tmp directory
- Swap space recommendation:
Available RAM Swap Space Required
1. Between 1 GB and 2 GB 1.5 times the size of the RAM
2. Between 2 GB and 16 GB Equal to the size of the RAM
3. More than 16 GB 16 GB
2. Between 2 GB and 16 GB Equal to the size of the RAM
3. More than 16 GB 16 GB
The following packages (or later versions) must be installed
yum install binutils -y
yum install compat-libcap1 -y
yum install compat-libstdc++-33 -y
yum install compat-libstdc++-33.i686 -y
yum install glibc -y
yum install glibc.i686 -y
yum install glibc-devel -y
yum install glibc-devel.i686 -y
yum install ksh -y
yum install libaio -y
yum install libaio.i686 -y
yum install libaio-devel -y
yum install libaio-devel.i686 -y
yum install libX11 -y
yum install libX11.i686 -y
yum install libXau -y
yum install libXau.i686 -y
yum install libXi -y
yum install libXi.i686 -y
yum install libXtst -y
yum install libXtst.i686 -y
yum install libgcc -y
yum install libgcc.i686 -y
yum install libstdc++ -y
yum install libstdc++.i686 -y
yum install libstdc++-devel -y
yum install libstdc++-devel.i686 -y
yum install libxcb -y
yum install libxcb.i686 -y
yum install make -y
yum install nfs-utils -y
yum install net-tools -y
yum install smartmontools -y
yum install sysstat -y
yum install unixODBC -y
yum install unixODBC-devel -y
Create Required Operating System Groups and Users
groupadd oinstall groupadd dba useradd -g oinstall -G dba oracle
If the oracle user exists, but its primary group is not oinstall or it is not a member of the dba group, then enter the following command:
usermod -g oinstall -G dba oracle
Configuring Kernel Parameters and Resource Limits
For production database systems, Oracle recommends that you tune these values to optimize the performance of the system.
For production database systems, Oracle recommends that you tune these values to optimize the performance of the system.
edit the /etc/sysctl.conf file, and add or edit lines similar to the following:
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
kernel.panic_on_oops = 1
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
net.ipv4.conf.all.rp_filter = 2
net.ipv4.conf.default.rp_filter = 2
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
Enter the following command to change the current values of the kernel parameters:
/sbin/sysctl -p
Add the following lines to the "/etc/security/limits.conf" file.
/sbin/sysctl -p
Add the following lines to the "/etc/security/limits.conf" file.
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
oracle soft stack 10240
oracle hard stack 32768
oracle hard memlock 134217728
oracle soft memlock 134217728
Create the directories in which the Oracle software will be installed.
mkdir -p /u01/app/oracle/product/12.2.0.1/db_1
chown -R oracle:oinstall /u01
chmod -R 775 /u01
Automatic Setup
If you plan to use the "oracle-rdbms-server-12cR2-preinstall" package to perform all your prerequisite setup, issue the following command.
yum install oracle-database-server-12cR2-preinstall -y
Download Software
Unzip the file
unzip V839960-01.zip -d /soft/oracle
If you have had an existing installation on your system, and you are using the same user account to install this installation, then unset the ORACLE_HOME, ORACLE_BASE, ORACLE_SID, TNS_ADMIN environment variables
unset ORACLE_HOME
unset ORACLE_BASE
unset ORACLE_SID
unset TNS_ADMIN
Use the following command to check the PATH environment variable:
[oracle@joshi ~]$ echo $PATH
/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/oracle/.local/bin:/home/oracle/bin
Ensure that the $ORACLE_HOME/bin path is removed from your PATH environment variable.
Installation
Start the Oracle Universal Installer (OUI) by issuing the following command in the database directory.
[oracle@joshi database]$ ls -ltrh
total 24K
-rwxr-xr-x. 1 oracle oinstall 500 Feb 7 2013 welcome.html
drwxr-xr-x. 4 oracle oinstall 4.0K Jan 26 2017 install
-rwxr-xr-x. 1 oracle oinstall 8.6K Jan 26 2017 runInstaller
drwxr-xr-x. 2 oracle oinstall 35 Jan 26 2017 rpm
drwxrwxr-x. 2 oracle oinstall 29 Jan 26 2017 sshsetup
drwxrwxr-x. 2 oracle oinstall 61 Jan 26 2017 response
drwxr-xr-x. 14 oracle oinstall 4.0K Jan 26 2017 stage
[oracle@joshi database]$ ./runInstaller
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 500 MB. Actual 30374 MB Passed
Checking swap space: must be greater than 150 MB. Actual 3742 MB Passed
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2021-01-03_11-59-24AM. Please wait ...[oracle@joshi database]$
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/12.2.0.1/db_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying oraenv to /usr/local/bin ...
The contents of "coraenv" have not changed. No need to overwrite.
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.
Do you want to setup Oracle Trace File Analyzer (TFA) now ? yes|[no] :
yes
Installing Oracle Trace File Analyzer (TFA).
Log File: /u01/app/oracle/product/12.2.0.1/db_1/install/root_joshi_2021-01-03_12-33-16-454769086.log
Finished installing Oracle Trace File Analyzer (TFA)
[root@joshi ~]#
No comments:
Post a Comment