环境配置
OS 版本:
[root@localhost ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.9 (Santiago)
[root@localhost ~]#
[root@localhost ~]# uname -r
2.6.32-696.el6.x86_64
[root@localhost ~]#
安装前提:
配置好yum源:
1. iso文件拷贝到/home,把iso挂载到/mnt目录
2. mount -o loop /home/rhel-server-6.9-x86_64-dvd.iso /mnt
3. 修改yum源:vi /etc/yum.repos.d/rhel-source.repo
4. 改[rhel-source]下的将enabled=1,然后将baseurl=file:///mnt/ 保存退出
5. 更新yum源:1、yum clean all 2、yum update
服务器修改主机名:
vi /etc/sysconfig/network
修改:
HOSTNAME=orcldb
centos6以上修改方式:
hostnamectl set-hostname orcldb
vi /etc/hosts
修改自己的hostname
安装部署 系统参数:
1、安装oracle依赖包关系
yum install -y bc binutils compat-libcap1 compat-libstdc++-33 gcc gcc-c++ elfutils-libelf elfutils-libelf-devel \
glibc glibc-devel ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel libxcb \
libX11 libXau libXi libXtst libXrender libXrender-devel \
make net-tools nfs-utils smartmontools \
sysstat e2fsprogs e2fsprogs-libs \
fontconfig-devel expect \
openssh-clients \
readline* psmisc --skip-broken \
policycoreutils policycoreutils-python smartmontools \
sysstat \
gcc gcc-c++ gcc-info gcc-locale gcc48 gcc48-info gcc48-locale gcc48-c++
验证:
rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' binutils \
compat-libcap1 \
compat-libstdc++-33 \
gcc \
gcc-c++ \
glibc \
glibc-devel \
ksh \
libgcc \
libstdc++ \
libstdc++-devel \
libaio \
libaio-devel \
libXext \
libXtst \
libX11 \
libXau \
libxcb \
libXi \
make \
elfutils-libelf-devel \
sysstat | grep "not installed"
[root@localhost ~]# rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' binutils \
> compat-libcap1 \
> compat-libstdc++-33 \
> gcc \
> gcc-c++ \
> glibc \
> glibc-devel \
> ksh \
> libgcc \
> libstdc++ \
> libstdc++-devel \
> libaio \
> libaio-devel \
> libXext \
> libXtst \
> libX11 \
> libXau \
> libxcb \
> libXi \
> make \
> elfutils-libelf-devel \
> sysstat | grep "not installed"
package ksh is not installed
[root@localhost ~]#
--rpm 查询方法:
rpm -q bc binutils compat-libcap1 compat-libstdc++-33 gcc gcc-c++ elfutils-libelf elfutils-libelf-devel glibc glibc-devel ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel libxcb libX11 libXau libXi libXtst libXrender libXrender-devel make net-tools nfs-utils smartmontools sysstat e2fsprogs e2fsprogs-libs fontconfig-devel expect unzip openssh-clients readline
rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' compat-libstdc++-33
[root@localhost ~]# rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' compat-libstdc++-33
compat-libstdc++-33-3.2.3-69.el6 (x86_64)
[root@localhost ~]#
--检查常用的lib包:
rpm -q binutils compat-libstdc++ gcc glibc libaio libgcc libstdc++ make sysstat unixODBC
--执行结果:
[root@localhost soft]# rpm -q binutils compat-libstdc++ gcc glibc libaio libgcc libstdc++ make sysstat unixODBC
binutils-