Tuesday, 20 August 2013

Oracle Linux 6.4 Installation or Red Hat Enterprise Linux 6.4


Oracle Linux 6.4 Installation or Red Hat Enterprise Linux 6.4

System Requirements

Architecture

These instructions are for installing OLE 6  on an IA-32 system (i.e., a 32-bit Intel- or AMD-based system) and Opteron 64-bit systems (x86_64).

Minimum Memory

Red Hat recommends for 32 bit a minimum of 1GB memory/logical CPU, and for 64 bit a minimum of 1GB of memory, 1GB/logical CPU. At SLAC, RHEL6 has been successfully installed on systems with 512 MB, but such systems have a tendency to bog down badly due to excessive swapping when too many applications are open at once.

Minimum Disk Space

OCIO recommends a minimum disk size of above 12 GB, and a minimum root partition ("/") size of about 9 GB.

Follow the steps to install the Oracle Linux installation 6.4

1. Please download the ISO software from the below link,


Copy the ISO image to DVD..

2. Boot from the DVD. At the boot screen, press the "Enter" key.

Boot


3. Press the "tab" key to move focus to the "Skip" key, then press the "Enter" key to continue.


4. On the "Welcome" screen, click the "Next" button


5. Select the appropriate language, then click the "Next" button.


6. Select the relevant keyboard setting, then click the "Next" button.

7. Select the storage option necessary for the installation, then click the "Next" button


8.
a. If you are installing the Linux directly in a machine use following step

Click the "Re-initialize all" button on the disk initialization warning dialog.
Disk Partitioning Warning

If you are installing in Virtual machine you will get the following steps,
Click Next button

Click "Yes, discard and data" for confirmation

9. Enter a fully qualified host name, then click the "Configure Network" button.

Hostname

10. Highlight the relevant connection and click the "Edit" button.

Network Connection

11. Check the "Connect automatically" checkbox. If you are not using DHCP, click on the "IPv4 Settings" tab, set the method to "Manual", click the "Add" button and enter the appropriate network details. When you are happy with the details, click the "Apply" and "Close" buttons to return to the host name screen, then click the "Forward" button.

Editing System eth0

12. Select the relevant time zone by clicking on your nearest city on the map. Click on the "Next" button to proceed. for India select Asia/Kolkata.


13. Enter a root password for the server, then click the "Next" button to proceed.


14. Check the partitioning type you require. If you want to amend the default partitioning layout, check the "Review and modify partitioning layout" option. Click the "Next" button.


15. Select Free space and Click "Create" button to create the partition.


16. Choose Standard Partition option and Click "Create"

17. Select the below option for /boot mount point  and Click "OK"


Go to step 16 and create the below partitions 


The swap size should be the double the size of the RAM.



For installing Oracle create the below partition



You can allocate the other remaining size by selecting "Fill to maximum allowable size" option for the root.

18. Select the drive to install the Linux software and it will prompt for conformation Click "Format"


19. Format confirmation Click "Write changes to disk"

20. Accept the boot loader settings by clicking the "Next" button.


21. Accept the "Basic Server" installation and check the "Customize now" option, then click the "Next" button.

Package Installation Defaults

22. The "Package Group Selection" screen allows you to select the required package groups, and individual packages within the details section. When you've made your selection, click the "Next" button. If you want the server to have a regular gnome desktop you need to include the following package groups from the "Desktops" section:

  • Desktops
  • Desktop
  • Desktop Platform
  • Fonts
  • General Purpose Desktop
  • Graphical Administration Tools
  • X Windows System
Package Group Selection

23. Wait for the installation to complete.

Installing Packages

24. Click the "Reboot" button to complete the installation.

Congratulations

25. On the "Welcome" screen, click the "Forward" button.

Welcome

26. Accept the license agreement and click the "Forward" button.

License Agreement

27. Pick the desired ULN Registration option, then click the "Forward" button. In this case we will pick the register later option.

Software Updates

28. Click the "No thanks, I'll connect later." button.

Software Updates Confirm

29. Finish the software updates setup by clicking the "Forward" button.

Software Updates Finish

30. Enter the details for system user, then click the "Forward" button.


31. Adjust the Date and Time settings if necessary, and click the "Forward" Button.

Date Time

32. Accept the default setting on the Kdump screen by clicking the "Finish" button.

Kdump

33. Log as a root user. Use the password which is given at the installation time.

Firewall
To turn off the firewall do the following.
  1. Open the "Firewall Configuration" dialog (System > Administration > Firewall).
  2. Click the "Close" button on the startup dialog and type in the "root" password if requested.
  3. On the resulting dialog, click the "Disable" button, followed by the "Apply" button on the toolbar.Firewall
  4. Click the "Yes" button on the confirmation dialog.
  5. Quit the "Firewall Configuration" dialog.

SELinux

Disable SELinux by editing the "/etc/selinux/config" file, making sure the SELINUX flag is set as follows.
SELINUX=disabled
Once the change is complete, restart the server.


For installing Oracle 12c database follow the below link,



Hope this is helpful........... 

Friday, 2 August 2013

Oracle Database 12c Release 1 (12.1) Installation On Oracle Linux 6.4

Oracle Database 12c Release 1 (12.1) Installation On Oracle Linux 6.4

Download the software from below link.

http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html

Oracle Installation Prerequisites

Perform either the Automatic Setup or the Manual Setup to complete the basic prerequisites. The Additional Setup is required for all installations.

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
Note. Earlier versions of Oracle Linux required manual setup of the Yum repository by following the instructions at http://public-yum.oracle.com.
It is probably worth doing a full update as well, but this is not strictly speaking necessary.
# yum update

Manual Setup

If you have not used the "oracle-rdbms-server-12cR1-preinstall" package to perform all prerequisites, you will need to manually perform the following setup tasks.
Add or amend the following lines in the "/etc/sysctl.conf" file.
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
Run the following command to change the current kernel parameters.
/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    2047
oracle   hard   nproc    16384
oracle   soft   stack    10240
oracle   hard   stack    32768
Install the following packages if they are not already present.
# From Public Yum or ULN
yum install binutils -y
yum install compat-libcap1 -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
Create the new groups and users.
groupadd -g 54321 oinstall
groupadd -g 54322 dba
groupadd -g 54323 oper
#groupadd -g 54324 backupdba
#groupadd -g 54325 dgdba
#groupadd -g 54326 kmdba
#groupadd -g 54327 asmdba
#groupadd -g 54328 asmoper
#groupadd -g 54329 asmadmin

useradd -u 54321 -g oinstall -G dba,oper oracle

Uncomment the extra groups you require.

Additional Setup

The following steps must be performed, whether you did the manual or automatic setup.
Set the password for the "oracle" user.
passwd oracle
Amend the "/etc/security/limits.d/90-nproc.conf" file as described below. See MOS Note [ID 1487773.1]
# Change this
*          soft    nproc    1024

# To this
* - nproc 16384
Set secure Linux to permissive by editing the "/etc/selinux/config" file, making sure the SELINUX flag is set as follows.
SELINUX=permissive
Once the change is complete, restart the server or run the following command.
# setenforce Permissive
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.
# service iptables stop
# chkconfig iptables off
Create the directories in which the Oracle software will be installed.
mkdir -p /u01/app/oracle/product/12.1.0/db_1
chown -R oracle:oinstall /u01
chmod -R 775 /u01
Unless you are working from the console, or using SSH tunnelling, login as root and issue the following command.
xhost +<machine-name>
Add the following lines at the end of the "/home/oracle/.bash_profile" file.
# Oracle Settings
export TMP=/tmp
export TMPDIR=$TMP

export ORACLE_HOSTNAME=ol6-121.localdomain
export ORACLE_UNQNAME=cdb12c
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/12.1.0/db_1
export ORACLE_SID=cdb12c

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

Installation

Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable.
DISPLAY=<machine-name>:0.0; export DISPLAY
Copy the software as oracle user and unzip it using below commend

unzip linuxamd64_12c_database_1of2.zip
unzip linuxamd64_12c_database_2of2.zip 

Start the Oracle Universal Installer (OUI) by issuing the following command in the database directory.
./runInstaller
Proceed with the installation and follow the below steps.



Configure security Updates
Oracle Database 12c Release 1 installer - Installing database - Configure security Updates
Press yes for conformation message 

Configure security Updates - conformation
Oracle Database 12c Release 1 installer - Installing database - Configure security Updates - conformation



 Software updates
Oracle Database 12c Release 1 installer - Installing database - Software updates

Option 1 : Create and configure a database (Installing the software with creating the database)
Option 2 : Install database software only (Only software installation)
Option 3 : Upgrade an existing database (Upgrading the existing software to Oracle 12c)

Now we will select the option 2 install the software 


Installation option
Oracle Database 12c Release 1 installer - Installing database - Installation option

Option 1 : Single instance database installation (select the option to install standalone database)
Option 2 : Oracle Real Application Cluster database installation (Select this option to install the RAC)
Option 3 : Oracle RAC one node database installation

Now we will select the option 1 to install standalone database

Grid installation option
Oracle Database 12c Release 1 installer - Installing database - Grid installation option


 Product languages
Oracle Database 12c Release 1 installer - Installing database - Product languages
 - Choose the Enterprise edition option
 - Click Next

Database edition
Oracle Database 12c Release 1 installer - Installing database - Database edition
-  Oracle base - Specify the path to place the oracle software and configuration

- Oracle Home - Specify the path for storing the Oracle database software files separate from database in the oracle base directory.

- Click Next


Installation location
Oracle Database 12c Release 1 installer - Installing database - Installation location
 - Installation Directory - Specify a directory for installation metadata files.Use the inventory If it is already excites.

Create Inventory
Oracle Database 12c Release 1 installer - Installing database - Create Inventory


Operating system groups
Oracle Database 12c Release 1 installer - Installing database - Operating system groups


Prerequisite checks
Oracle Database 12c Release 1 installer - Installing database - Prerequisite checks


Warnings can be ignored....

Prerequisite checks - Conformation
Oracle Database 12c Release 1 installer - Installing database - Prerequisite checks - Conformation
Check the configuration before clicking Install.....

Summary
Oracle Database 12c Release 1 installer - Installing database - Summary


While installing you may ask to execute the below script to execute as a root user
# sh /u01/app/oraInventory/orainstRoot.sh
# sh /u01/app/oracle/product/12.1.0/dbhome_1/root.sh




Finish
Oracle Database 12c Release 1 installer - Installing database - Finish





Enjoy the work experience......