失效链接处理 |
Centos7安装oracle11g静默安装 PDF 下载
本站整理下载:
提取码:8e34
相关截图:
主要内容:
1、准备安装包(安装的时候出现swap分区不足,跳出请执行以下操作)
设置系统swap分区 150M往上
查看swap分区大小
cat /proc/swaps
创建512M的Swap分区
fallocate -l 512m /mnt/512MiB.swap
chmod 600 /mnt/512MiB.swap
dd if=/dev/zero of=/mnt/512MiB.swap bs=1024 count=524288
chmod 600 /mnt/512MiB.swap
mkswap /mnt/512MiB.swap
swapon /mnt/512MiB.swap
2、调整防火墙:
安装iptables
yum -y install iptables-services
启动防火墙
systemctl restart iptables.service
配置开机启动
systemctl enable iptables.service
配置vim /etc/sysconfig/iptables 添加以下内容后 重启防火墙:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 1521 -j ACCEPT
或者使用firewalld
启动firewalld
systemctl restart firewalld.service
配置开放端口(命令行输入后重启防火墙)
firewall-cmd --zone=public --add-port=1521/tcp --permanent
请注意:iptables和firewalld启动一个就可以
关闭selinux
vim /etc/selinux/config
修改为disabled
# 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 - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
执行:setenforce 0
3、添加 IP与主机名对应记录:
[root@Centos ~]# vim /etc/hosts # 红色部分为添加内容
192.168.229.140 hostname #自己电脑的hostname
4、安装依赖的软件包:
系统插件更新
yum clean all
yum repolist
yum update
安装依赖
yum -y install binutils compat-libcap1 compat-libstdc++* gcc gcc-c++ glibc-2.17* glibc-devel-2.17* ksh libaio* libaio-devel* libgcc* libstdc++* libstdc++-devel* libXi* libXtst* libXtst make sysstat elfutils-libelf-devel
卸载ksh,因为ksh和pdksh冲突
rpm -qa |grep ksh
ksh-20120801-142.el7.x86_64
rpm -e ksh-20120801-142.el7.x86_64
安装pdksh
yum -y install pdksh-5.2.14-37.el5_8.1.x86_64.rpm
安装rlwrap
1、找到系统是否安装了 readline
rpm -qa | grep readline
结果 安装了 readline-6.2-9.el7.x86_64.rpm
2、yum -y install gcc readline readline-devel
3、安装完成后
解压 tar zxvf rlwrap-0.37.tar.gz
进去目录 cd /root/rlwrap-0.37
./configure && make && make install
安装完成后
which rlwrap
/usr/local/bin/rlwrap
4、vim oracle~/.bash_profile 添加以下内容
alias sqlplus="rlwrap sqlplus"
alias rman="rlwrap rman"
alias lsnrctl="rlwrap lsnrctl"
|