Rhel-server 5.5 Mounting ORACLE10

Source: Internet
Author: User
Tags chmod dba gz file tmp file

VMWARE + REDHAT + ORA10

Let's talk about the environment, the operating system is Microsoft Windows Server 2003, and the virtual machine VMware Workstation Version 7.1.2 build-301548 is installed, and the virtual machine is selected to be installed on the Redhat Enterprise Linux 5.

1: Install Virtual machine tools: The virtual machine tool is an enhanced tool that comes with VMware virtual machines, equivalent to the enhancements in VirtualBox (Sun VirtualBox Guest additions), which greatly enhances the interactivity of virtual machines and hosts, and significantly provide virtual machine performance. For example, after installing the virtual machine tool, the virtual machine will be displayed with enhanced performance. Another obvious advantage is that, for example, the host is Windows, the virtual machine is Linux, because the file system is different, the two cannot be the direct exchange of files. However, with the virtual machine tool, you can attach a folder under Windows to the Linux file system, which facilitates the exchange of files. There is also the mouse can be free to move before the virtual machine and host (no more pressing ctrl+alt), and the virtual machine screen can also be implemented as follows:

on how to install the virtual machine work, there will be a line at the bottom of the virtual machine, as shown, you can directly click the Install Virtual Machine tool. As follows

You can also install it in the following ways:

1. After starting Linux in the virtual machine, (note that the virtual machine must be started). Select the VM option in the menu, where a subkey is install VMware Tools, select it. Start installation

2. Select the menu VM under Settings, pop up the following window, select the image file.

3. Enter Terminal Command window: Execute mount/dev/cdrom/mnt/cdrom note sometimes reported: Mount:mount Point/mnt/cdrom does not exist. After you create the CDROM directory under the directory MNT (mkdir cdrom), then mount the CD-ROM

4. Enter the Mnt/cdrom directory, you will see the vmwaretools-8.4.4-301548.tar.gz file, copy it to the TMP file directory, execute the command: Tar xzvf Vmwaretools-8.4.4-301548.tar.gz after decompression generates a folder Vmware-tools-distrib:,

5. Locate the vmware-install.pl file in the folder and follow the instructions in the Command window to install the./vmware-install.pl command.

6. Vmware-tools has been installed successfully, you will see a Hgfs directory under directory/mnt/.

Second: How to realize the file sharing between host and virtual machine

This is very simple if you install the virtual machine tool. In the VM menu, select the Setting subkey and select options. In the left half of the form you see a shared folders, select Always enable or enabled until next power off or suspend, select Add, and select the folder you want to share with customer Linux.

Now that you've done all the work, you'll see the folder you added under/mnt/hgfs. Write files to the specified share folders under Windows, which can be seen in the Linux client, as well as on Linux, and can be modified under Windows.

Then we started to install the database formally.

1. Check and install the necessary packages

[[email protected]/] #rpm-qa|grep Binutilsbinutils-2.17.50.0.6-14.el5

Check to see if the package is installed: libxp-1.0.0-8.1.el5.i386.rpm, otherwise the installation of Oracle will be faulty (and check for some necessary packages, of course).

2. Configure the Hosts file

Add a line to the hosts: your host IP name and then save exit.

[root@localhost/]# vi etc/hosts10.30.38.166 localhost.localdomain localhost

2 Configure kernel parameters and other information:

Edit etc/sysctl.conf, you can see that there are already some kernel parameters inside

# controls the maximum shared segment size, in Byteskernel.shmmax = 4294967295# Controls The maximum number of shared memo Ry segments, in Pageskernel.shmall = 268435456 We need to edit and add some of the following parameters kernel.shmmax=536870912kernel.shmmni=4096kernel.sem= 32000 128fs.file-max=65536net.ipv4.ip_local_port_range=1024 65500net.core.rmem_default= 4194304net.core.wmem_default=262144net.core.rmem_max=4194304net.core.wmem_max=262144

Shmmax Maximum shared memory 2GB physical memory if small, it can be set to 536870912.

Shmmni minimum shared memory 4096KB.

Shmall all memory sizes.

I checked the Internet. You can use some of the following commands to view kernel parameters

1./sbin/sysctl-a | grep SHM

2./sbin/sysctl-a | grep sem

3./sbin/sysctl-a | grep File-max

4./sbin/sysctl-a | grep ip_local_port_range

5./sbin/sysctl-a | grep Rmem_default

6./sbin/sysctl-a | grep Rmem_max

7./sbin/sysctl-a | grep Wmem_default

8./sbin/sysctl-a | grep Wmem_max

Three: Set shell scripting restrictions for Oracle users:

[Email protected]/]# vi/etc/security/limits.conf

[Email protected]/]# VI etc/pam.d/login

Add to

Session required/lib/security/pam_limits.so

IV: Modify the default profile for bash and Ksh and the default logon script for Cshell

[Email protected]/]# VI etc/profile

Add the following script

if [\ $USER = "Oracle"]; thenif [\ $SHELL = "/bin/ksh"]; Thenulimit-p 16384ulimit-n 65536elseulimit-u 16384-n 65536fiumask 022fi

Note the red part, because there is no space, resulting in a subsequent error

[[Email protected]/]# vi etc/csh.logif (\ $USER = = "Oracle") thenlimit maxproc 16384limit descriptor 65536umask 022endif

V: Create an Oracle user group, and install the directory

[[email protected] sbin]# groupadd oinstall[[email protected] sbin]# groupadd dba[[email protected] sbin]# useradd-m-G o Install-g dba Oracle[[email protected] sbin]# CD/[[email protected]/]# mkdir-p/home/oracle[[email protected]/]# Chow N-r Oracle:oinstall/home/oracle[[email protected]/]# chmod-r 775/home/oracle

VI: Install JDK1.6 version

After the installation, I looked at the JDK version and found that it was JDK1.4.2

[Email protected]/]# java-version

Java Version "1.4.2"

Gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-48)

Copyright (C) 2006 free Software Foundation, Inc.

This was free software; See the source for copying conditions. There is NO

Warranty Not even to merchantability or FITNESS for A particular PURPOSE.

View information about your own JDK

[Email protected]/]# locate JDK

/usr/include/xulrunner-sdk-1.9/java/jdk_java_lang_string.h

[Email protected]/]# Rpm-qa | grep GCJ

java-1.4.2-gcj-compat-1.4.2.0-40jpp.115

Libgcj-4.1.2-48.el5

Uninstalling the information of your own JDK

[Email protected]/]# rpm-e--nodeps java-1.4.2-gcj-compat-1.4.2.0-40jpp.115

Uninstalling the JDK version of RMP installation

[[email protected]/] #rpm-qa | grep JD

[[email protected]/] #rpm-e--nodeps jkd-1.4.2*******

The steps to install JDK 1.6 are as follows:

1: I copied the jdk-6u31-linux-i586.bin from the window 2003 directory to the shared directory \kerryshare

2: Copy the JDK installation package from Kerryshare to the/usr/java/directory

[Email protected]/]# cp/mnt/hgfs/kerryshare/jdk-6u31-linux-i586.bin/usr/java/

3: Modify permissions, unzip the JDK installation package

[[email protected]/] #chmod +x Jdk-6u31-linux-i586.bin

[Email protected]/]#./jdk-6u31-linux-i586.bin

4: Setting Environment variables

Setting up the Etc/profile file

Java_home =/usr/java/jdk1.6.0_31

Class_path =. $JAVA _home/lib.tools.jar

Path= $JAVA _home/bin: $PATH

Export Java_home Class_path PATH

After rebooting (if you do not want to re-system, you can use the command source/etc/profile to make the configuration file effective immediately) to view the configuration of environment variables, $JAVA _home, $CLASS _path found to be empty problems, after careful examination of the attempt, found incredibly is Java_ The home variable is empty, later after the check found = around the existence of space, delete the space after the OK

If you need the JDK to be used by all users, you can configure it to configure the above content in/etc/profile.d/java.sh

Java_home=/usr/java/jdk1.6.0_31

Class_path=. $JAVA _home/lib.tools.jar

Path= $JAVA _home/bin: $PATH

Export Java_home Class_path PATH

5: Remove the TMP directory JDK installation package and the extracted folder

VI: Set Oracle Environment variables

First switch to the Oracle account with Su-oracle, then set some environment variables in the. bash_profile file, as shown below

Export Pathexport java_home=/usr/java/jdk1.6.0_31export oracle_base=/home/oracleexport ORACLE_HOME= $ORACLE _base/ Product/dbhome_1export oracle_sid=wgodsexport oracle_owner=oracleexport path= $ORACLE _home/bin: $PATHexport PATH=$ Java_home/bin: $PATH: $ORACLE _home/apache/apache/binld_library_path= $ORACLE _home/lib:lib:/usr/lib:/usr/local/ Libexport ld_library_pathclasspath= $ORACLE _home/jre: $ORACLE _home/jlib: $ORACLE _home/rdbms/jlibexport CLASSPATH=$ CLASSPATH: $ORACLE _home/network/jlibexport ora_nls33= $ORACLE _home/ocommon/nls/admin/data

Seven: Put the downloaded installation file 10201_database_linux32.zip to the shared directory Kerryshare, and then copy the file to the TMP directory

[Email protected]/]$ cp-r/mnt/hgfs/kerryshare/10201_database_linux32.zip/tmp

Input command

[Email protected]/]$ Unzip/tmp/10201_database_linux32.zip

View the installation's help information.

Do the following:

Prompt to check the operating system version, must be redhat-3,redhat-4 and does not support the redhat-5 version. Since Oracle's official support is only available to REDHAT4, the release notes need to be modified. Comment out the Red Hat Enterprise Linux Server Release 5.4 (Tikanga) line, preceded by a line of Red Hat Enterprise Linux Server Release 4 (tikanga). Of course, when the Oracle installation is complete, modify it back. Red Hat Enterprise Linux Server Release 4 (tikanga) must be the first line of the Redhat-release file, or a warning will be reported when it is installed.

In the terminal command input

[Email protected] database]# xhost + localhost

localhost being added to access control list

Solve the above problem

If the package libxp-1.0.0-8.1.el5.i386.rpm is missing, the following error will be reported

Rhel-server 5.5 Mounting ORACLE10

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.