Oracle database 12c R1 installation document
To quickly build a test environment for oracle database 12c, use oracle-validated-rpm/oracle-rdbms-server-11gR2-preinstall rpm to automatically configure the installation environment. Of course there are other methods. Like oracle-rdbms-server-12cR1-preinstall
For: ol5.8
1. Attach the Local CD to the system: Put the rhel6.2 installation CD into the optical drive and operate it under the command line of the terminal.
Mkdir/media/oel # create a mount directory
Mount/dev/cdrom/media/oel # mount the disc to the/media/rhel directory.
Cd/media/oel # enter the Mount directory
Ls # Check the Mount directory. The disc is mounted successfully.
2. Configure the local yum Source
Cd/etc/yum. repos. d/# enter the yum configuration directory
Touch oel-media.repo # create a yum Profile
Vi oel-media.repo # edit the configuration file and add the following content
###################
Eg.
[Oel-media]
Name = oel 1, 5.8
Baseurl = file: // media/oel/Server
Enabled = 1
Gpgcheck = 0
Eg.
[Oel-media]
Name = oel5.8 # custom name
Baseurl = file: // media/oel/Server # local disk Mount path
Enabled = 1 # enable yum source. If 0 is disabled, 1 is enabled.
Gpgcheck = 0 # Check the GPG-KEY, 0 is not checked, 1 is checked
# Gpgkey = file: // media/rhel/RPM-GPG-KEY-redhat-release # path to the GPG-KEY
###################
3. Clear yum cache and use yum install to automatically install software
Yum clean all # Clear yum Cache
Yum install oracle-validated
For OL6.3 you can use the Oracle Linux 6.3 oracle-rdbms-server-11gR2-preinstall rpm package to automate the configuration of an oracle installation environment. # Cd/etc/yum. repos. d
# Wget http://public-yum.oracle.com/public-yum-ol6.repo
Disable selinux and configure "/etc/selinux/config" SELINUX = permissive
Restart the server, or use the following command to take effect immediately. # setenforce Permissive
Disable firewall # service iptables stop
# Chkconfig iptables off create an oracle installation directory mkdir-p/12c/app/oracle/product/12.1.0/db_1
Chown-R oracle: oinstall/12c
Chmod-R 775/12 c
Edit the user environment variable vi/home/oracle/. bash_profile of oracle
# Oracle Settings
Export TMP =/tmp
Export TMPDIR = $ TMP
Export ORACLE_UNQNAME = cdb12c
Export ORACLE_BASE =/12c
Export ORACLE_HOME = $ ORACLE_BASE/product/12.1.0/db_1
Export ORACLE_SID = lixora
Export PATH =/usr/sbin: $ PATH
Export PATH = $ ORACLE_HOME/bin: $ PATH
Export LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib
Export CLASSPATH = $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlib
Upload the media, decompress it, and install unzip linuxamd64_12c_database_1of2.zip.
Unzip linuxamd64_12c_databasesilicate f2.zip
Enable the X graphical interface to open the terminal as the root user or log on to the ssh client. The following command can be used to solve the problem:
Command 1: export DISPLAY =: 0.0 or DISPLAY = <machine-name>: 0.0; export DISPLAY
Command 2: xhost +
Start installation:
./RunInstaller
Note that the ', My oracle SUPPORT' option is not selected.
Select to install software only
Note: After two scripts are executed, the oracle db 12c software is installed here.
Next we need to use Netca to configure the listener, which is also executed by oracle users: netca
After configuring the listener, start using Dbca to create a database
So far, the installation of oracle database 12c has been completed.