Академический Документы
Профессиональный Документы
Культура Документы
2
1. Verify that your system has correct hostname, static IP address and distribution version,
using following commands.
3. Now change the SELinux mode to permissive and restart the system to make Permanent
changes for selinux.
[root@teslarh ~]$ vim /etc/sysconfig/selinux
[root@teslarh ~]$ init 6
6.1. Create the new groups Oracle inventory, OSDBA and OSOPER for Oracle installation.
[root@teslarh ~]$ groupadd -g 54321 oracle
[root@teslarh ~]$ groupadd -g 54322 dba
[root@teslarh ~]$ groupadd -g 54323 oper
7. If you have the Linux firewall enabled, you will need to disable or configure it, as
shown here or here. To disable it, do the following.
[root@teslarh ~]$ systemctl stop firewalld
[root@teslarh ~]$ systemctl disable firewalld
8. Create the following directory for installing Oracle and change the ownership and grand
permission to the newly created directory using recursive.
[root@teslarh ~]$ mkdir p /u01/app/oracle/product/12.1.0.2/dbhome_1
[root@teslarh ~]$ chown -R oracle:oinstall /u01
[root@teslarh ~]$ chmod -R 775 /u01
[root@teslarh ~]$ ls l /u01
Append the below Environment Entry. Save and exit the vi editor using wq!.
## Oracle Env Settings
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=teslarh
export ORACLE_UNQNAME=orcl
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/12.1.0.2/dbhome_1
export ORACLE_SID=orcl
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
Now exit from root user and login again as teslarh user and switch to oracle user. Again, this
step is not required, if you are already using root account, just switch to oracle user for further
instructions.
[root@teslarh ~]$ exit
[root@teslarh ~]$ su - oracle
I have already downloaded the zip package and extracted the contents of oracle installer.
[root@teslarh ~]$ cd ~
[root@teslarh ~]$ ls
[root@teslarh ~]$ unzip linuxamd64_12c_database_1of2.zip
[root@teslarh ~]$ unzip linuxamd64_12c_database_2of2.zip
12. Installing Oracle 12c Database in Red Hat Enterprise Linux 7.2
12.1 After extracting, we will get database directory which has 2.6GB in size. So, next we can
go-head and install the oracle. Let us start the installation by running runInstaller.
Navigate the installer Directory and run the Installer.
12.2 Ingresar con Usuario Oracle
[root@teslarh ~]$ su - oracle
[oracle@teslarh ~]$ cd database/
Our Installer has been launched here. For every steps we need to move forward by
Clicking Next or OK.
15.1. First add the following Adobe repositories for Flash Player based on your Linux
systems.
For 64-bit x86_64 Systems
[root@teslarh ~]$ rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-
release-x86_64-1.0-1.noarch.rpm
[root@teslarh ~]$ rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
chkconfig --list
cat /etc/inittab
Ejemplo:
Queremos el servicio web httpd al inicio del sistema en los runlevels 3,4 y 5: