Memory and Disk Space Requirements
- Minimum: 1 GB of RAM
- 6.4 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
yum install binutils -y
yum install compat-libstdc++-33 -y
yum install compat-libstdc++-33.i686 -y
yum install gcc -y
yum install gcc-c++ -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 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 libaio -y
yum install libaio.i686 -y
yum install libaio-devel -y
yum install libaio-devel.i686 -y
yum install libXext -y
yum install libXext.i686 -y
yum install libXtst -y
yum install libXtst.i686 -y
yum install libX11 -y
yum install libX11.i686 -y
yum install libXau -y
yum install libXau.i686 -y
yum install libxcb -y
yum install libxcb.i686 -y
yum install libXi -y
yum install libXi.i686 -y
yum install make -y
yum install sysstat -y
yum install unixODBC -y
yum install unixODBC-devel -y
yum install zlib-devel -y
yum install zlib-devel.i686 -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.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
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
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.1.0.2/db_1
chown -R oracle:oinstall /u01
chmod -R 775 /u01
Automatic Setup
If you plan to use the "oracle-rdbms-server-12cR1-preinstall" package to perform all your prerequisite setup, issue the following command.
yum install oracle-rdbms-server-12cR1-preinstall -y
Download Software
Note: you must download both zip files to install Oracle Database Enterprise Edition.
Once you’ve downloaded the software, unzip both files to a staging area:
unzip p21419221_121020_Linux-x86-64_1of10.zip -d /soft/oracle
unzip p21419221_121020_Linux-x86-64_2of10.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 60K
-rwxr-xr-x. 1 oracle oinstall 500 Feb 7 2013 welcome.html
-rwxr-xr-x. 1 oracle oinstall 8.4K Jul 7 2014 runInstaller
drwxr-xr-x. 2 oracle oinstall 34 Jul 7 2014 rpm
drwxrwxr-x. 2 oracle oinstall 29 Jul 7 2014 sshsetup
drwxrwxr-x. 2 oracle oinstall 61 Jul 7 2014 response
drwxr-xr-x. 14 oracle oinstall 4.0K Jul 7 2014 stage
-rwxr-xr-x. 1 oracle oinstall 34K Aug 7 2015 readme.html
drwxr-xr-x. 4 oracle oinstall 4.0K Jan 3 09:04 install
[oracle@joshi database]$
[oracle@joshi database]$ ./runInstaller
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 500 MB. Actual 35710 MB Passed
Checking swap space: must be greater than 150 MB. Actual 3861 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_09-19-54AM. Please wait ...[oracle@joshi database]$
[root@joshi ~]# /u01/app/oracle/product/12.1.0.2/db_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.2/db_1
Enter the full pathname of the local bin directory: [/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 file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying coraenv to /usr/local/bin ...
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.
[root@joshi ~]#
No comments:
Post a Comment