Linux server meets the minimum hardware requirements.
- 1GB of RAM (plus appropriately sized swap space)
- 6.4GB of disk space for the software installation
- 1GB of disk space for your /tmp directory
Package and OS requirements
In this example, I’m meeting the package and Operating System requirements by running the following yum command (as root):yum install oracle-rdbms-server-12cR1-preinstall
[root@sujeet newrpms]# ls
binutils-2.17.50.0.6-6.0.1.el5.i386.rpm
binutils-2.17.50.0.6-9.0.1.el5.i386.rpm
compat-binutils215-2.15.92.0.2-24.i386.rpm
compat-libcwait-2.0-2.i386.rpm
compat-libstdc++-3.2-1.i386.rpm
compat-libstdc++-egcs-1.1.2-1.i386.rpm
compat-oracle-el5-1.0-5.i386.rpm
fonts-chinese-3.02-12.el5.noarch.rpm
openmotif21-2.1.30-11.EL5.i386.rpm
openmotif21-debuginfo-2.1.30-11.EL5.i386.rpm
xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386.rpm
INSTALL RPM COMMAND:-
[root@sujeet ~]# rpm –ivh <rpmname>
[root@sujeet ~]# rpm –Uivh <rpmname>
Install rpm check:-
[root@sujeet ~]# rpm -qa |grep <rpmname>
(The “oracle-rdbms-server-11gR2-preinstall” RPM seems to work fine too though…)If you don’t install the package bundle above, then you’ll have to meet all of the required prerequisites manually.
CHANGE HOSTNAME OR MACHINE NAME
[root@sujeet ~]# vi /etc/hosts
Make sure that there is an entry in /etc/hosts file for your
machine like this:
127.0.0.1 localhost.localdomain localhost
100.200.23.25 oracle.sujeet oracle
GUI:-Create User and Group
System -> Administration -> Users and Groups ->
i) Add user oracle
ii) Add Group dba
iii) Assign user to that group
OR
COMMAND LINE:-
[root@sujeet ~]# useradd -g dba -m oracle
[root@sujeet ~]# passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
Create directories where the Oracle Software and database
will be installed.
[root@sujeet ~]# Mkdir /u01
[root@sujeet ~]# chown -R oracle:dba /u01
[root@sujeet ~]# chmod -R 777 /u01
SELINUX=disabled
System -> Administration ->
If you leave SELINUX=enforcing then you may get an error later
while starting sqlplus:
sqlplus: error while loading shared libraries:
/usr/lib/oracle/default/client64/lib/libclntsh.so.11.1:
cannot restore segment
prot after reloc: Permission denied
Linux Kernel Parameters to support Oracle.
Open /etc/sysctl.conf and add the following lines:
[root@sujeet ~]# vi /etc/sysconfig/network
# Oracle settings
fs.file-max = 65536
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65500
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
Make the kernel parameters changes effective immediately:
[root@sujeet ~]# /sbin/sysctl -p
[root@sujeet ~]# /sbin/sysctl -a | grep <name of kernel>
Download the database 12c software
You need to download both Oracle Database 12c parts from the Oracle Technology Network (OTN).Use Below Link:-
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
Oracle Database Software Downloads
(12.1.0.1.0)
Microsoft Windows x64 (64-bit) | File 1, File 2 (2.5 GB) See All |
Linux x86-64 | File 1, File 2 (2.3 GB) See All |
Oracle Solaris (SPARC systems, 64-bit) | File 1, File 2 (2.6 GB) See All |
Oracle Solaris (x86 systems, 64-bit) | File 1, File 2 (2.3 GB) See All |
Once you’ve downloaded the software, unzip both files to a staging area:
unzip /tmp/linuxamd64_12c_database_1of2.zip -d /u02/app/oracle/software unzip /tmp/linuxamd64_12c_database_2of2.zip -d /u02/app/oracle/softwareAll of the contents from the above will be extracted to a “database” directory.
Restart system
[root@sujeet ~]# init 6
Permission to connect any HOST
[root@sujeet ~]# xhost +
access control disabled, clients can connect from any host
Start the installer
Open an X-Windows session to the server as the ‘oracle’ user.Once you’ve met the requirements, and have unzipped the software, you can start the install:
/u02/app/oracle/software/database/runInstaller
Once the GUI starts, respond as follows:- Configure Security Updates
- Unchecked ‘I wish to receive security updates via My Oracle Support’
- Next
- Confirm with ‘Yes’
- Download Software Updates
- Skip software updates
- Next
- Installation Option
- Install database software only (you can opt to create a database instance at the same time, but I’m keeping the two separate here)
- Next
- Grid Installation Options
- Single instance database installation
- Next
- Product Languages
- Select any additional required languages and move across, otherwise leave just the default ‘English’ selected
- Next
- Database Edition
- Enterprise Edition (6.4GB) (…or as appropriate depending on which edition you’re licensed for!)
- Next
- Installation Location
- Oracle Base: /u01/app/oracle
- Software Location: /u01/app/oracle/product/12.1.0.1
- Next
- Create Inventory (first Oracle installation only)
- Inventory Directory: /u01/app/oraInventory
- oraInventory Group Name: oinstall
- Next
- Operating System Groups
- Database Administrator (OSDBA) group: dba
- Database Operator (OSOPER) group (Optional): dba
- Leave all the other memberships as the default ‘dba’ group too.
- Next
- Prerequisites Checks
- All prerequisite checks should complete successfully here, if not, then obviously they will need addressing before proceeding. Assuming all database validation checks are successful, you shouldn’t actually see this page as the installer will automatically move onto the next screen.
- Summary
- Check everything is correct!
- Click Install
Run the root.sh scripts
When prompted, run the following as root:/u01/app/oraInventory/orainstRoot.sh (first Oracle installations only)
[root@linux06 ~]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory. Adding read,write permissions for group. Removing read,write,execute permissions for world.
/u01/app/oracle/product/12.1.0.1/root.sh
[root@linux06 ~]# /u01/app/oracle/product/12.1.0.1/root.sh
Performing root user operation for Oracle 12c The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /u01/app/oracle/product/12.1.0.1 Enter the full pathname of the local bin directory: [/usr/local/bin]: <enter> Copying dbhome to /usr/local/bin ... Copying oraenv to /usr/local/bin ... Copying coraenv to /usr/local/bin ... Creating /etc/oratab file... 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.
Finally, click close to finish
Environment settings
Once the installation has finished, add the following variables to your ‘oracle’ user profile:vi /home/oracle/.bash_profile # Oracle variables TMP=/tmp; export TMP TMPDIR=$TMP; export TMPDIR ORACLE_HOSTNAME=linux06.vbox; export ORACLE_HOSTNAME ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/12.1.0.1; export ORACLE_HOME #ORACLE_SID=SNAP12C; export ORACLE_SID #PATH=/usr/sbin:$PATH; export PATH PATH=$ORACLE_HOME/bin:$PATH; export PATH LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATHReload your profile with the new variables:
. ~/.bash_profile
How to Deinstall 12c
If you ever want to remove the software, simply run start the deinstall utility as follows, responding appropriately:
$ORACLE_HOME/deinstall/deinstall
No comments:
Post a Comment