oracle11g在centos64上的安装日志


1.安装必要的环境和包;
2.添加必要的用户和用户组
3.创建必要的目录
## 修改oracle配置文件,配置环境变量 ,注意以oracle身份执行
[oracle@localhost ~]$ vi .bash_profile
## 修改为如下结果:
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs
ORACLE_BASE=/u01//home/oracle
ORACLE_HOME=$ORACLE_BASE/product/11g/db_1
ORACLE_SID=orcl
NLS_LANG=AMERICAN_AMERICA.UTF8

PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin

export ORACLE_BASE ORACLE_HOME ORACLE_SID NLS_LANG PATH

## 保存后,检查oracle用户的环境变量,oracle变量已经加入:
[oracle@localhost ~]$ echo $PATH
/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/sbin:/sbin:/home/oracle/bin:/u01//home/oracle/product/11g/db_1/bin
## 创建oracle安装的目录,并赋予oracle用户写权限:
[root@localhost oracle]# mkdir -p /u01//oracle
## oracle及其组员可以读写/u01//oracle目录
[root@localhost oracle]# chown -R oracle:oinstall /u01/app/oracle
## 所以成员 可以执行oracle,但只有管理员root可以修改配置
[root@localhost oracle]# chmod -R 755 /u01/app/oracle

## 修改内核参数
[root@localhost oracle]# vi /etc/sysctl.conf

# Kernel sysctl configuration file for Red Hat
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename
# Useful for debugging multi-threaded applications
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Controls the maximum size of a message, in bytes
kernel.msgmnb = 65536

# Controls the default maxmimum size of a mesage queue
kernel.msgmax = 65536

# Controls the maximum shared segment size, in bytes
kernel.shmmax = 68719476736

# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 4294967296

# custum define,以下是自定义参数
fs.file-max = 65535
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65535
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default =262144
net.core.wmem_max = 262144

## 修改权限参数:
[root@localhost oracle]# vi /etc/security/limits.conf

#
#

#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student – maxlogins 4

oracle soft nproc 2047
oracle hard nproc 16383
oracle soft nofile 1023
oracle hard nofile 65535

# End of file

## 修改登录参数
[root@localhost oracle]# vi /etc/pam.d/login

#%PAM-1.0
auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
auth include system-auth
account required pam_nologin.so
account include system-auth
password include system-auth
# pam_selinux.so close should be the first session rule
session required pam_selinux.so close
session include system-auth
session required pam_loginuid.so
session optional pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session required pam_selinux.so open
session optional pam_keyinit.so force revoke

# custom define
session required /lib/security/pam_limits.so
session required pam_limits.so

## 激活上面的配置:
[root@localhost oracle]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
fs.file-max = 65535
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65535
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144

## 复制oracle安装文件到临时目录
[root@localhost oracle]# cd /media
[root@localhost media]# ls
.x64_11gR2_
[root@localhost media]# cd ./.x64_11gR2_/
[root@localhost .x64_11gR2_]# ls
doc install response rpm runInstaller sshsetup stage welcome.html

[root@localhost media]# cp -R * /tmp/oracle
[root@localhost media]# ls /tmp/oracle
doc install response rpm runInstaller sshsetup stage welcome.html
## 赋予执行权限:
[root@localhost media]# chmod 755 -R /tmp/oracle
[root@localhost media]# ls -al /tmp/oracle
总计 84
drwxr-xr-x 8 root root 4096 01-18 12:35 .
drwxrwxrwt 17 root root 4096 01-18 12:32 ..
drwxr-xr-x 12 root root 4096 01-18 12:32 doc
drwxr-xr-x 4 root root 4096 01-18 12:32 install
drwxr-xr-x 2 root root 4096 01-18 12:32 response
drwxr-xr-x 2 root root 4096 01-18 12:32 rpm
-rwxr-xr-x 1 root root 3226 01-18 12:32 runInstaller
drwxr-xr-x 2 root root 4096 01-18 12:32 sshsetup
drwxr-xr-x 14 root root 4096 01-18 12:35 stage
-rwxr-xr-x 1 root root 5402 01-18 12:35 welcome.html

[root@localhost oracle]# ./runInstaller

该用户是 root 用户。如果用户是 root 用户, Oracle Universal Installer 将无法继续安装。
: 没有那个文件或目录
[root@localhost oracle]# su – oracle

[oracle@localhost ~]$ cd /tmp/oracle
[oracle@localhost oracle]$ ls
doc install response rpm runInstaller sshsetup stage welcome.html
[oracle@localhost oracle]$ ./runInstaller
正在启动 Oracle Universal Installer…

检查临时空间: 必须大于 120 MB。 实际为 65838 MB 通过
检查交换空间: 必须大于 150 MB。 实际为 3039 MB 通过
检查监视器: 监视器配置至少必须显示 256 种颜色
>>> 无法使用命令 /usr/bin/xdpyinfo 自动检查显示器颜色。请检查是否设置了 DISPLAY 变量。 未通过 如下:

声明: 除非转自他站(如有侵权,请联系处理)外,本文采用 BY-NC-SA 协议进行授权 | 智乐兔
转载请注明:转自《oracle11g在centos64上的安装日志
本文地址:https://www.zhiletu.com/archives-342.html
关注公众号:智乐兔

赞赏

wechat pay微信赞赏alipay pay支付宝赞赏

上一篇
下一篇

相关文章

在线留言

你必须 登录后 才能留言!

在线客服
在线客服 X

售前: 点击这里给我发消息
售后: 点击这里给我发消息

智乐兔官微