Sei sulla pagina 1di 34

RHEL 5.

1 Installation

1. Boot the server using the first CD.

You may need to change your BIOS settings to allow booting from the CD. Press F11 &
select boot from CD-rom.
Installation Number: d2c5-4567-d34e-bb45 and Click Next
Click on drop down box

Select Create custom layout. Click Next.

Create partitions as per sizing given by SISL. For details please refer individual server
sizing details.
After partition creation, following screen will appear.
Do not check Use a boot loader password and Configure advanced boot loader
options.
Click Next.
In Network Devices select Device eth0, Click Edit. Provide IP address and Prefix
(netmask) manually.
Uncheck IPv6 Check Box. Close.
Hostname;
Set the hostname: manually
Provide appropriate hostname and Gateway in Miscellaneous Settings. No need to
provide Primary / Secondary DNS.
Click Next.
Click on Asia and then India, it will take Asia / Calcutta.
Click Next.

Enter root password and confirm. Click Next


Click Customize now and then Next.
Select all the packages and its Optional packages, it takes some time as Install
Everything option is not provided as was provided in RHEL4. Click Next.

2. Installing Packages
o Software will be copied to the hard disk and installed. Change disks as prompted.
All six CDs will be asked.
3. Congratulations
o Remove the installation media from the system, and click on Reboot .

The system automatically reboots and presents a new welcome screen.

The first time you start your Red Hat Enterprise Linux system in run level 5 (the graphical
run level), the Setup Agent is presented, which guides you through the Red Hat Enterprise
Linux configuration. Using this tool, you can set your system time and date, install software,
register your machine with Red Hat Network, and more. The Setup Agent lets you configure
your environment at the beginning, so that you can get started using your Red Hat Enterprise
Linux system quickly.
4. License Agreement
o Read the license agreement. If you agree to the terms, select Yes, I agree to the
License Agreement and click on Next.

5. Firewall Configuration
o For the purposes of this walk-through, no firewall is configured. Select No
firewall
o Select Disabled on the "Enable SELinux" drop down list.
o Click on Proceed when the "Warning - No Firewall" window appears.
6. Date and Time
o Set the Date and Time.
7. Display
o Accept the defaults or change as required.
8. Red Hat Login
o Do not register now
o Click Next
9. System User
o Create an account engineer.
o Type in password for user engineer
10. Additional CDs
o Click on Next.
11. Finish Setup
o Click on Next.
12. A graphical login screen appears.
13. Congratulations! Your RHEL5.1 software is now installed. It Reboots.

ORACLE INSTALLATION USING RHEL 5.1

Home Articles Scripts Forums Blog Certification Misc About Printer Friendly
Oracle 8i | Oracle 9i | Oracle 10g | Oracle 11g | Miscellaneous | Oracle RAC | Oracle Apps |
Linux

Home Articles 10g Here

Oracle Database 10g Release 2 (10.2.0.1) Installation On Redhat Linux 5.1(updates)


In this article I'll describe the installation of Oracle Database 10g Release 2 (10.2.0.1) on
Fedora Core 5. The article is based on a Fedora Core 5 (FC5 X86) Server Installation with a
minimum of 2G swap, secure Linux disabled and the following package groups installed:
STEP-1
Hosts File
The /etc/hosts file must contain a fully qualified name for the server:

<IP-address> <fully-qualified-machine-name> <machine-name>Set Kernel Parameters


Example
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 mainserver localhost.localdomain localhost
172.16.24.35 mainserver mainserver
#::1 localhost6.localdomain6 localhost6

STEP-2
Add the following lines to the /etc/sysctl.conf file:
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144

STEP-3
Run the following command to change the current kernel parameters:
/sbin/sysctl -p

STEP-4
Add the following lines to the /etc/security/limits.conf file:

* soft nproc 2047


* hard nproc 16384
* soft nofile 1024
* hard nofile 65536

STEP-5
Add the following line to the /etc/pam.d/login file, if it does not already
exist:
session required /lib/security/pam_limits.so

STEP-6
Disable secure linux by editing the /etc/selinux/config file, making sure the
SELINUX flag is set as follows:

SELINUX=disabledAlternatively, this alteration can be done using the GUI tool (Desktop >
System Settings > Security Level). Click on the SELinux tab and disable the feature.

STEP-7
Setup Install the following packages:

# From Fedora Core 5 DVD


cd /media/dvd/Fedora/RPMS
rpm -Uvh setarch-*
rpm -Uvh --force tcl-*
rpm -Uvh libXp-*
rpm -Uvh openmotif-2*
rpm -Uvh compat-db-*
rpm -Uvh compat-libstdc++-33*
rpm -Uvh compat-libf2c-32-*
rpm -Uvh compat-gcc-32-*
rpm -Uvh libaio-*
rpm -Uvh compat-gcc-32-c++-*
rpm -Uvh compat-libstdc++-296*
rpm -Uvh compat-libgcc-296*

# From download
rpm -Uvh openmotif21-2.1.30-14.i386.rpm
STEP-8
Create the new groups and users:
groupadd oinstall
groupadd dba
groupadd oper

useradd -g oinstall -G dba oracle


passwd oracle

STEP-9
Create the directories in which the Oracle software will be installed:

mkdir -p /home/app/oracle/product/10.2.0/db_1
chown -R oracle.oinstall /home

STEP-10
Login as root and issue the following command:

xhost +<machine-name>

STEP-11
Edit the /etc/redhat-release file replacing the current release information

Red Hat Enterprise Linux Server 4 (RHEL4)

STEP-12
Login as the oracle user and add the following lines at the end of the
.bash_profile file:
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR

ORACLE_BASE=/home/app/oracle; export ORACLE_BASE


ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=orcl; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
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/jre:$ORACLE_HOME/jlib:
$ORACLE_HOME/rdbms/jlib; export CLASSPATH

if [ $USER = "oracle" ]; then


if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi

STEP-13
JAVA SETTING
Installed java

IBMJava2-AMD64-142-SDK-1.4.2-11.0.x86_64.rpm
And set the export path
Oracle# export JAVA_HOME=/opt/IBMJava2-AMD64-142-SDK-1.4.2-11.0.x86_64

STEP-14
Installation
Log into the oracle user. If you are using X emulation then set the DISPLAY environmental
variable:
DISPLAY=<machine-name>:0.0; export DISPLAYStart the Oracle Universal Installer (OUI)
by issuing the following command in the database directory:

./runInstaller
Condition: - How to make main server
Imp: - make all change with oracle login only

1 > Stop all programs which are related to oracle like communication, ftp, PTI, extractor etc.

2 > Export the database from (main server) that is old one for creating data base
(/bin#./exp (press enter)

Export dump file should have proper path and x-tation (path =
/publish/finalserver/13mar08.dmp

3 > (i) go to /home/app/oracle/oracle/product/10.2.0/db_1/network/admin


(ii) Open tnsnames.ora and listener.ora files make necessary changes
(iii) Change IP address and hostname of backup and main server in network and
/etc/hosts
File

Note: - make necessary changes on main and backup server (tnsname.ora and
listner.ora)
Make changes on IP address, Network and hosts file (for reference see bottom
screenshot)
Before import database go to the
[oracle@mainserver ~]cd $ORACLE_HOME
[oracle@mainserver ~]cd bin
[oracle@mainserver]$ ./sqlplus

Sql>create user editorial identified by ganesha;


Sql>grant dba to editorial;
Sql> exit
After creating of user
Then exit from sql prompt
Copy export file new mainserver server and import by following command

(a) IMPORT dump file on Oracle server: -

1. Copy the Export Dump file into the local server derive
Login as oracle
[oracle@mainserver ~]cd $ORACLE_HOME
[oracle@mainserver ~]cd bin
[oracle@mainserver ~]$ ./sqlplus
SQL> conn sys as sysdba
SQL>password: newswrap
SQL>connected as idle ins.
SQL>create user editorial identified by ganesha;
SQL>grant dba to editorial;
SQL>grant all privilege to editorial;
[oracle@mainserver ~]cd bin
[oracle@mainserver ~]$ ./imp USERID=editorial FULL=N FROMUSER=editorial
TOUSER=editorial IGNORE=true

user:editorial(press enter)
Pwd:ganesha(press enter)

Import file: Derive:\filename.dmp (press enter); give the dump file name
Buffer size: 500000 (press enter)
List content import file only No (press enter)
Ignore create error view to object extent No (press enter)
Import Grant Yes (press enter)
Import table data Yes (press enter)
Import Entire Export file No (press enter)
Put user name = editorial
FOR NEWSWRAP SETTING
4 > setting of global name on main and backup server run all following command on #SQL>
shell

# alter system set global_names=false scope=spfile 'for main


server
To check the value of oracle Parameter
For set sga_max_size for buffering the users login
Alter system set sga_max_size=2191182336 scope=spfile
For increase the process id

Alter system set processes=1000 scope=spfile

Note: - make changes on tnsnames.ora & listner.ora

Path for .ora files is


[oracle@mainserver admin]$ pwd
/home/app/oracle/oracle/product/10.2.0/db_1/network/admin

USING TOAD ORACLE GRAPHIC MODE FOR DISABLE BACKUPSERVER REP

CONDITION : IF YOU DO NOT CONFIGURE BACKUPSERVER


Disable all trigger on back server with the help of following screen shoots.

(a) Login into backup server by toad

(b) Disable all trigger of backup server


# enable all trigger on main server

Login into main server by toad

(c) Enable all trigger on main server


NOTE:----Some time the trigger is not enable
On that case you have to choose one by one trigger and
Compile each trigger properly and then click enable trigger option on Toad MENU
for
Proper replicating with mainserver

Then check newswrap weather login successfully or not

Thanking you
kunal

Potrebbero piacerti anche