Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Installation of oracle11gR2 tutorial for RedHat6.6

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the tutorial of installing oracle11gR2 in RedHat6.6, which has certain reference value and can be used for reference by friends who need it. The following materials are about installing oracle11gR2 tutorials in RedHat6.6

Oracle 11g release2 linux x86-64

1. Hardware requirements:

More than 1G of memory

Swap exchange partition:

Memory RAM corresponds to swap partition SWAP

1GB-2GB 1.5RAM

2GB-16GB = RAM

> 16GB 16GB

Hard disk space:

Install oracle Software 5G

Database space 2G

2Red hat Enterprise 6 system environment requirement software:

Compat-libcap1

Compat-libstdc++-33

Gcc

Gcc-c++

Glibc-devel

Ksh

Libgcc

Libstdc++

Libstdc++-devel

Libaio

Libaio-devel

Make

3 kernel requirements:

4, create groups and users that meet the requirements:

Touch / etc/oraInst.locvi / etc/oraInst.loc add the following two lines of inventory_loc=/u01/app/oraInventoryinst_group=oinstall

Create the necessary groups and users

Groupadd oinstallgroupadd dbauseradd-g oinstall-G dba oracle

Set the password for the oracle user

Passwd oracle

Password abc123

6. Configure kernel parameters and resource limits

Sysctl-a | grep semcat / proc/sys/kernel/sem

: 250 32000 100 128

The first column represents the maximum number of semaphores in each signal set.

The second column represents the total number of system-wide maximum semaphores.

The third column represents the maximum number of system operations when each signal occurs.

The fourth column represents the system-wide maximum total number of signal sets.

Modify the / etc/sysctl.conf configuration file to add the following lines of kernel parameter settings

Vi / etc/sysctl.confkernel.sem = 32000 128net.ipv4.ip_local_port_range = 9000 65500fs.file-max = 6815744net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048576fs.aio-max-nr = 1048576vm.hugetlb_shm_group =

Sysctl-p enables / etc/sysctl.conf to take effect immediately

Check the number cat / etc/group of the oinstall group (mine is 500)

Echo 500 > / proc/sys/vm/hugetlb_shm_group

Add one line to / etc/sysctl.conf for permanent effect: vm.hugetlb_shm_group = 500

Check the resource limitations of oracle software users

Su oracle$ ulimit-Sn$ ulimit-Hn$ ulimit-Su$ ulimit-Hu$ ulimit-Ss$ ulimit-Hs

Check the corresponding numbers for those that do not meet the requirements

Add root users to limits.conf

Vi / etc/security/limits.conforacle hard nofile 65536oracle soft nproc 2047oracle hard nproc 16384oracle hard stack 32768source / etc/profile

Refresh the configuration. Su-oracle to see that the configuration parameters have met the conditions.

7, create the required directory

The Oracle installation directory requires 3G ~ 4G hard disk space

Use df-h to view the partition space that meets the criteria to create a directory in it (my change directory "/" the remaining 13g meets the criteria)

Create / u01/app directory

[root@localhost ~] # mkdir-p / u01/app (root directory of graphical interface oraclea installation) [root@localhost ~] # chown-Roracle:oinstall / u01/app/ [root@localhost ~] # chmod-R 755 / u01/app/

8, configure the oracle user environment

Vi / etc/oraInst.loc adds content; inventory_loc=/u01/app/oraInventoryinst_group=oinstall

9, configure x-manger

Connect red hat linux 6 with xmanager-xstart

Host: linux ip addr

Username oracle password:

Protocol SSH

If the error prompt: / usr/bin/xterm does not exist

Yum installxterm needs to be installed on Linux to connect properly

Su-oracleexport DISPLAY=192.168.1.108:0.0xhost +

Hint: access control disabled, clients can connect from any host indicates that the configuration is successful

Xdpyinfo dependency: yum installxorg-x11-utils

Xdpyinfo/usr/bin/xdpyinfo

Test whether x-manger can be used properly

Xclock

Xcolck installation

Yum install xorg-x11-appsum install xorg-x11-apps

The time can be displayed normally, but there is a warning.

Warning:Missing charsets in String to FontSet conversion

10. The database requires directory settings

Su-oracle

Mkdir db

Su-root

Note:

Linux.x64_11gR2_database_1of2.zip

Linux.x64_11gR2_database_2of2.zip. I uploaded it to linux through pure-ftp.

Then unzip decompresses and generates the installation directory database of oracle.

Mv / data/www1/database / home/oracle/db/

Su-oracle

Cddb

Chown-R oracle:oinstall database

Chmod 755 database

Cddatabase

. / runInstaller

Two problems encountered during installation

1. The display screen appears garbled during installation.

The reason is the font problem:

Solution:

. / runInstaller-jreLOC/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre

2, [INS-06101] cannot determine the IP address of the local host

The local host is not mapped to a valid IP address in the Hosts file, such as / etc/hosts in Unix. Action-assign a valid IP address to the local host, or set it to the loopback IP address (127.0.0.1 in IPv4 or:: 1 in IPv6). Summary-localhost.test: localhost.test

Vi / etc/sysconfig/network

: NETWORKING=yes

HOSTNAME=Oracle

Hostname Oracle

Eth0ip:192.168.205.135

Vi / etc/hosts

: 192.168.205.135 Oracle

So the ip of the hosts file matches the hostname

After reading the contents of the appeal, have you mastered the installation method of installing oracle11gR2 in RedHat6.6? If you want to know more related content, welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report