Rhel Ora on Vmware

Published on January 2017 | Categories: Documents | Downloads: 23 | Comments: 0 | Views: 155
of 46
Download PDF   Embed   Report

Comments

Content

[email protected]

Sotware Requirement:
Some Softwares were given with links for free download. VMware Workstation 7.1 http://torrentz.eu/c8e3d20eeb74d464251dd990254af7429d4862d5 Oracle 10g Database http://thepiratebay.org/torrent/6067253 Red Hat 5.3 http://www.torrenthound.com/hash/b2fda31f399e39364597c73a96267920badbc74f/torrent-info/RedHat-Enterprise-Linux-5-3-AS-DVD-for-x86

Hardware Requirements:
RAM minimum 1.5GB HDD minimum 20GB as virtual

[email protected]

SEGMENT-1
RHEL5 Installation On VMware Workstation 7.1

[email protected]

[email protected]

[email protected]

[email protected]

[email protected]

[email protected]

[email protected]

[email protected]

[email protected]

[email protected]

[email protected]

[email protected]

[email protected]

[email protected]

Select -> Skip

Click -> NEW button

[email protected]

Mount Point -> / Size MB-> 20000

File System Type -> Swap Size MB -> 5000

[email protected]

Mount Point -> /u01 Size MB -> 10000

Mount Point->/u02 Select-> Fill to maximum allowable size

[email protected]

[email protected]

Click -> Edit

Disable IPV6 Support Enable IPV4 Support Select -> Manual Configuration

[email protected]

IP Address -> 192.168.0.1 Prefix(Netmask)->255.255.255.0 Click -> OK

Select-> Manual -> localhost.localdomain Gateway: 192.168.1.1 Primary DNS: 192.168.1.1 Secondary DNS: 192.168.1.1 Click -> Next

[email protected]

Select-> Asia/Kolkata

Root Password : redhat Confirm : redhat

[email protected]

Select -> Customize now Click -> Next

Select -> Development Enable -> Development Tools, Legacy S/W Development, X S/W development.

[email protected]

Click -> Next

Click -> Next

Click -> Reboot

[email protected]

[email protected]

Make -> Disable

Click ->Yes

[email protected]

Make -> disable

Click -> Yes

[email protected]

Click -> Forward

Change Date & Time if incorrect

[email protected]

Click-> Forward

Set username & password as redhat

[email protected]

Click -> Finish

[email protected]

Click -> Ok Restart takes place…..

User name: root

[email protected]

Password: redhat

[email protected]

SEGMENT -2
INSTALLING VMWARE TOOLS TO GET FULL-SCREEN

Click-> Install tools (at base of VMware console)

Double Click -> Vmware tools 8.4.5 [email protected]

Select the file and click Extract

Select Extract in Folder as Desktop Click -> Extract

[email protected]

You can view the Extracted file on Desktop.

Open A Terminal [root@localhost ~]# cd Desktop/ [root@localhost Desktop~]# cd vmware-tools-distrib/ [root@localhost vmware-tools-distrib ]# ./vmware-install.pl Then Proceed with some ENTER’s Wait till next statement executes, be patient please. It will list out some ranges of display resolution , Choose your best match with corresponding value. I choose [14] as for 1280*780 for 14”’ monitor. Choose [22] if you 22’’ monitor. (You can get Display resolution for your system at Windows Display Settings) After Installing completes, Logout & Log In. You Will get Full Screen.

[email protected]

SEGMENT-3 CONFIGURING RHEL FOR ORACLE10G Software Requirements Make sure that you have the following packages (libs): libXp, compat-libstdc++ It is required to have the following packages which you can check with the following command: rpm -q binutils compat-db control-center gcc gcc-c++ \ glibc glibc-common gnome-libs libstdc++ libstdc++-devel \ make pdksh sysstat xscreensaver libXp-1.0.0-11.fc9.i386.rpm -> install it too.. Checking Software Packages (RPMs) For 10g R2 (32-bit) on RHEL 4 x86, the document Oracle Database Release Notes 10g Release 2 (10.2) for Linux x86 lists the following required package versions or higher: binutils-2.15.92.0.2-10.EL4 compat-db-4.1.25-9 control-center-2.8.0-12 gcc-3.4.3-9.EL4 gcc-c++-3.4.3-9.EL4 glibc-2.3.4-2 glibc-common-2.3.4-2 gnome-libs-1.4.1.2.90-44.1 libstdc++-3.4.3-9.EL4 libstdc++-devel-3.4.3-9.EL4 make-3.80-5 pdksh-5.2.14-30

[email protected]

sysstat-5.0.5-1 xscreensaver-4.18-5.rhel4.2 To check the RPMs, run: rpm -q binutils compat-db control-center gcc gcc-c++ glibc \ glibc-common gnome-libs libstdc++ libstdc++-devel make pdksh \ sysstat xscreensaver libaio To Install the missed packages rpm -Uvh pkgconfig-0.15.0-3.i386.rpm rpm -Uvh glibc-kernheaders-2.4-9.1.87.i386.rpm rpm -Uvh glibc-headers-2.3.4-2.9.i386.rpm rpm -Uvh glibc-devel-2.3.4-2.9.i386.rpm rpm -Uvh compat-gcc-32-3.2.3-47.3.i386.rpm rpm -Uvh compat-libcwait-2.1-1.i386.rpm rpm -Uvh zlib-devel-1.2.1.2-1.i386.rpm rpm -Uvh freetype-devel-2.1.9-5.el4.i386.rpm rpm -Uvh fontconfig-devel-2.2.3-7.0.1.i386.rpm rpm -Uvh xorg-x11-devel-6.8.2-1.EL.18.0.1.i386.rpm rpm -Uvh xorg-x11-deprecated-libs-devel-6.8.2-1.EL.18.0.1.i386.rpm rpm -Uvh gcc-3.4.6-8.0.1.i386.rpm rpm -Uvh libstdc++-devel-3.4.6-8.0.1.i386.rpm rpm -Uvh gcc-c++-3.4.6-8.0.1.i386.rpm rpm -Uvh compat-libgcc-296-2.96-132.7.2.i386.rpm rpm -Uvh libaio-0.3.105-2.i386.rpm rpm -Uvh libaio-devel-0.3.105-2.i386.rpm rpm -Uvh openmotif21-2.1.30-11.RHEL4.6.i386.rpm

[email protected]

rpm -Uvh compat-libstdc++-296-2.96-132.7.2.i386.rpm rpm -Uvh compat-libstdc++-33-3.2.3-47.3.i386.rpm rpm -Uvh compat-gcc-32-c++-3.2.3-47.3.i386.rpm rpm -Uvh sysstat-5.0.5-1.i386.rpm

Changing the Red Hat Release
As RHEL5 has been released after Oracle 10g was, Oracle 10g does not support RHEL5 o-cially. The latest version 10g supports in RHEL4. So we have to get round it by changing the release conguration:

echo "rhel4" > /etc/redhat-release Creating the oracle user account We need to create oinstall and dba groups and an oracle account belonging to them. When logged as root user, /usr/sbin/groupadd oinstall /usr/sbin/groupadd dba /usr/sbin/useradd -m -g oinstall -G dba oracle Set the password for the oracle user: passwd oracle You can set "oracle" as the password too Creating the Installation Path and Setting the Permissions mkdir -p /u01/app/oracle chown -R oracle:oinstall /u01/app/oracle chmod -R 775 /u01/app/oracle

[email protected]

SEGMENT-4 set the /etc/hosts as follows
vi /etc/hosts 127.0.0.1 localhost.localdomain localhost # IP Adddress hostname.domainname aliasname 192.168.0.1 localhost6.localdomain6 localhost6 Network Settings

Manual IP Address Settings: Address: 192.168.0.1 Subnet mask: 255.255.255.0 Default gateway address:192.168.1.1

[email protected]

In DNS: Hostname: localhost.localdomain Primary DNS: 192.168.1.1 Secondary DNS: 192.168.1.1 Tertiary DNS: 192.168.1.1 DNS search path: local.lan

[email protected]

In Hosts Verify that IP : 192.168.0.1 Name: localhost6.localdomain6 Aliases: localhost6 If its incorrect repeat set the /etc/hosts (beging of Segment-4)

[email protected]

SEGMENT-5
Configuring Kernel Parameters We can set the kernel parameters with the following command: cat >> /etc/sysctl.conf << EOF kernel.shmall = 2097152 kernel.shmmax = 536870912 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 fs.file-max = 658576 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default = 262144 net.core.wmem_default = 262144 net.core.rmem_max = 1048536 net.core.wmem_max = 1048536 EOF Activate the modication with the following command: /sbin/sysctl -p Configuring Shell Limits cat >> /etc/security/limits.conf << EOF oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 EOF cat >> /etc/pam.d/login << EOF

[email protected]

session required /lib/security/pam_limits.so EOF cat >> /etc/profile << EOF if [ \$USER = "oracle" ]; then if [ \$SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi umask 022 fi EOF cat >> /etc/csh.login << EOF if ( \$USER == "oracle" ) then limit maxproc 16384 limit descriptors 65536 umask 022 endif EOF Configuring Hangcheck Timer modprobe hangcheck-timer hangcheck_tick=30 hangcheck_margin=180 cat >> /etc/rc.d/rc.local << EOF modprobe hangcheck-timer hangcheck_tick=30 hangcheck_margin=180 EOF

[email protected]

Environment Settings for Oracle User In this section, we'll use oracle user. su - oracle To set the environment variables, apply the following command to append Oracle-specic contents to /home/oracle/.bash_prole: cat >> /home/oracle/.bash_profile << EOF # User specific environment and startup programs umask 022 PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin export LD_LIBRARY_PATH=/usr/lib:/usr/X11R6/lib export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=\$ORACLE_BASE/product/10.2.0/db_1 export ORACLE_SID=orcl PATH=\$ORACLE_HOME/bin:\$ORACLE_HOME/jdk/jre/lib/i386/server:\ \$ORACLE_HOME/rdbms/lib:\$ORACLE_HOME/lib:\$LD_LIBRARY_PATH:\ /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/sbin:\ /usr/sbin:/root/bin:\$PATH PATH=\$PATH:\$HOME/bin export PATH unset USERNAME EOF Activate these variables and the paths with: source ~/.bash_profile

[email protected]

SEGMENT-6 ORACLE Installation Running the Installer In a root terminal, xhost + su - oracle Extract the 10201_database_linux32.zip le into /u01, or somewhere else where oracle user has read right: unzip 10201_database_linux32.zip -d /u01 cd /u01/database ./runInstaller

ORACLE De-Installation To reinstall Oracle10g after a failed installation attempt, you might want to execute the following commands. Make sure you first used the De-installation option in OUI. su - root export ORACLE_HOME=/u01/app/oracle/product/10.1.0/db_1 rm -rf /u01/app/oracle/* rm -f /etc/oraInst.loc /etc/oratab rm -rf /etc/oracle rm -f /etc/inittab.cssd rm -f /usr/local/bin/coraenv /usr/local/bin/dbhome

Enjoy the Execution……….! With Cheers, K.Muthuram

[email protected]

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close