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

Oracle 11g on rhel5.5

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

Check memory

[oracle@oracle ~] $grep MemTotal / proc/meminfo

MemTotal: 1213920 kB

Check swap space, require "= memory"

[oracle@oracle ~] $grep SwapTotal / proc/meminfo

SwapTotal: 2048276 kB

View system architecture

[oracle@oracle] $uname-m

I686

View disk space

[oracle@oracle] $df-h

File system capacity used available used% mount point

/ dev/sda3 18G 11G 6.5G 61% /

/ dev/sda1 99M 12M 83M 12% / boot

Tmpfs 593M 0 593M 0% / dev/shm

Configure fixed ip address and hostname

[root@handong ~] # vim / etc/sysconfig/network-scripts/ifcfg-eth0

[root@handong ~] # cat / etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0

BOOTPROTO=none

HWADDR=00:0c:29:4c:c2:9c

ONBOOT=yes

NETMASK=255.255.255.0

IPADDR=10.7.21.11

GATEWAY=10.7.21.255

TYPE=Ethernet

[root@handong ~] # vim / etc/sysconfig/network

[root@handong ~] # cat / etc/sysconfig/network

NETWORKING=yes

NETWORKING_IPV6=no

HOSTNAME=oracle

Modify hosts files, local and host mappings

[root@handong ~] # cat / etc/hosts

10.7.11.22 handong

New groups and affiliated groups

[root@handong] # groupadd oinstall & & groupadd dba

Create a user and specify the group to which the user belongs and the affiliated group

[root@handong] # useradd-g oinstall-G dba oracle

[root@handong ~] # passwd oracle

Configure the yum file

[root@handong ~] # mount / dev/cdrom / media

[root@handong ~] # cd / etc/yum.repos.d/

[root@oracle yum.repos.d] # rm-rf *

[root@oracle yum.repos.d] # vim iso.repo

[Server]

Name=Server

Baseurl= file:///media/Server

Enabled=1

Gpgcheck=0

[root@oracle yum.repos.d] # yum clean all

[root@oracle yum.repos.d] # yum update

Install prerequisite software packages with YUM

[root@handong ~] # yum install sysstat libaio glibc compat-libstdc++-33.x86_64 elfutils-libelf-devel\ * gcc-c++ libaio-devel unixODBC\ * readline\ *-y

Create an installation directory

[root@handong ~] # mkdir / 01

Change all groups in the installation directory

[root@handong] # chown-R handong:oinstall / u01 /

Set the user's environment variable

[root@handong ~] # vi / home/oracle/.bash_profile

Export ORACLE_BASE=/u01/app/oracle

Export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1

Export ORACLE_SID=orcl

Export PATH=$PATH:$ORACLE_HOME/bin

Export NLS_LANG= "SIMPLIFIED CHINESE_CHINA.UTF8"

ORACLE_BASE oracle product catalog

ORACLE_HOME database home directory (usually the HOME directory is a subdirectory of BASE)

ORACLE_SID oracle database instance name

PATH appends the oracle command to the execution search path

Location of the LD_LIBRARY_PATH dynamic library

NLS_LANG change character set to UTF8

Turn off kernel-level security check

[root@handong ~] # setenforce 0

Permanently turn off kernel-level security check can be modified

[root@handong] # vim / etc/selinux/config

# This file controls the state of SELinux on the system.

# SELINUX= can take one of these three values:

# enforcing-SELinux security policy is enforced.

# permissive-SELinux prints warnings instead of enforcing.

# disabled-SELinux is fully disabled.

SELINUX=disabled

# SELINUXTYPE= type of policy in use. Possible values are:

# targeted-Only targeted network daemons are protected.

# strict-Full SELinux protection.

SELINUXTYPE=targeted

Stop the firewall

# service iptables stop

# service ip6tables stop

Do not start up.

# chkconfig iptables off

# chkconfig ip6tables off

Switch users, enter the installation directory, execute scripts for graphical installation

Be sure to log in to the graphical interface with the account you created before executing the script (or when root users do not execute xhost +)

[root@handong ~] # su oracle

[oracle@handong ~] $cd / u01/database/

[oracle@handong database] $. / runInstaller

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