登录 注册
当前位置:主页 > 资源下载 > 6 > 11g安装guide.doc下载

11g安装guide.doc下载

  • 更新:2024-11-08 14:34:08
  • 大小:3.88MB
  • 推荐:★★★★★
  • 来源:网友上传分享
  • 类别:Oracle - 数据库
  • 格式:DOC

资源介绍

11g傻瓜安装教程, 准备环境: 首先用root账户登陆系统 获取IP:dhclient 查看内存空间 [root@localhost ~]# grep MemTotal /proc/meminfo MemTotal: 3863544 kB Minimum: 1 GB of RAM Recommended: 2 GB of RAM or more 看操作系统多少位 [root@localhost ~]# uname -m x86_64 查看swap空间 [root@localhost ~]# grep SwapTotal /proc/meminfo SwapTotal: 4063228 kB 内存和swap的使用空间 [root@localhost ~]# free total used free shared buff/cache available Mem: 3863544 890756 1966144 15500 1006644 2653992 Swap: 4063228 0 4063228 确定可用共享内存的数量 [root@localhost ~]# df -h /dev/shm/ Filesystem Size Used Avail Use% Mounted on tmpfs 1.9G 0 1.9G 0% /dev/shm 确定/tmp目录中可用的磁盘空间量,至少需要1G [root@localhost ~]# df -h /tmp Filesystem Size Used Avail Use% Mounted on /dev/mapper/rhel-root 36G 3.6G 32G 10% / 确定系统上的空闲磁盘空间量 [root@localhost ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/rhel-root 36G 3.6G 32G 10% / devtmpfs 1.9G 0 1.9G 0% /dev tmpfs 1.9G 0 1.9G 0% /dev/shm tmpfs 1.9G 13M 1.9G 1% /run tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup /dev/sda1 1014M 170M 845M 17% /boot tmpfs 378M 28K 378M 1% /run/user/0 /dev/sr0 4.4G 4.4G 0 100% /mnt 查看操作系统版本 [root@localhost ~]# cat /proc/version Linux version 3.10.0-862.el7.x86_64 (mockbuild@x86-034.build.eng.bos.redhat.com) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Wed Mar 21 18:14:51 EDT 2018 查看内核版本 [root@localhost ~]# uname -r 3.10.0-862.el7.x86_64 要求:On Oracle Linux 7 with Red Hat Compatible Kernel 3.10.0-54.0.1.el7.x86_64 or later [root@localhost ~]# uname --all Linux localhost.localdomain 3.10.0-862.el7.x86_64 #1 SMP Wed Mar 21 18:14:51 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux [root@localhost ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.5 (Maipo) 配置yum源 vim /etc/yum.repos.d/base.repo [base] name=base baseurl=file:///mnt enable=1 gpgcheck=0 mount /dev/cdrom /mnt 安装Oracle Database 11g Release 2(11.2)所需的软件包 [root@localhost ~]#yum -y install compat-libcap1 compat-libstdc++-33 compat-libstdc++ gcc gcc-c++ glibc glibc-devel ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel libXi libXtst make sysstat 确定是否安装了所需的包 [root@localhost ~]# rpm -q compat-libcap1 compat-libstdc++-33 compat-libstdc++ gcc gcc-c++ glibc glibc-devel ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel libXi libXtst make sysstat compat-libcap1-1.10-7.el7.x86_64 package compat-libstdc++-33 is not installed package compat-libstdc++ is not installed gcc-4.8.5-28.el7.x86_64 gcc-c++-4.8.5-28.el7.x86_64 glibc-2.17-222.el7.x86_64 glibc-devel-2.17-222.el7.x86_64 ksh-20120801-137.el7.x86_64 libaio-0.3.109-13.el7.x86_64 libaio-devel-0.3.109-13.el7.x86_64 libgcc-4.8.5-28.el7.x86_64 libstdc++-4.8.5-28.el7.x86_64 libstdc++-devel-4.8.5-28.el7.x86_64 libXi-1.7.9-1.el7.x86_64 libXtst-1.2.3-1.el7.x86_64 make-3.82-23.el7.x86_64 sysstat-10.1.5-13.el7.x86_64 建相关的组和用户 root@localhost ~]# groupadd oinstall [root@localhost ~]# groupadd dba [root@localhost ~]# usermod -g oinstall -G dba oracle [root@localhost ~]# id oracle uid=1000(oracle) gid=1001(oinstall) groups=1001(oinstall),1002(dba) [root@localhost ~]# passwd oracle --stdin Changing password for user oracle. oracle passwd: all authentication tokens updated successfully. 配置内核参数 [root@localhost ~]# gedit /etc/sysctl.conf fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 536870912 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576 运行sysctl -p使生效 [root@localhost ~]# sysctl -p fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 536870912 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576 创建所需目录 [root@localhost ~]# mkdir -p /u01/app/oracle/product/11.2[一般公司都安装在这个目录] [root@localhost ~]# chown -R oracle:oinstall /u01[所属用户改成oracle,所属组为osinatll,-R是u01下所有的子目录全改] [root@localhost ~]# chmod -R 775 /u01[上面更改了所属权限,接下来需要更改权限] 复制安装包至虚拟机 [root@localhost ~]# cd /tmp [root@localhost tmp]# ls anaconda.log hsperfdata_root ifcfg.log ks-script-Ku7GJ7 packaging.log program.log sensitive-info.log ssh-XSwMIM8mqT6k storage.log systemd-private-4eeb5389d4bd41c7aa2f41b11e249236-colord.service-5j4WNO systemd-private-4eeb5389d4bd41c7aa2f41b11e249236-cups.service-Xrhdoq systemd-private-4eeb5389d4bd41c7aa2f41b11e249236-rtkit-daemon.service-ubfvXF tracker-extract-files.0 VMwareDnD vmware-root yum.log [root@localhost tmp]# cd VMwareDnD [root@localhost VMwareDnD]# ls q2WKMF [root@localhost VMwareDnD]# cd