当前位置: 移动技术网 > 科技>软件教程>编程开发 > Oracle 10g 64位安装图解流程

Oracle 10g 64位安装图解流程

2016年12月08日  | 移动技术网科技  | 我要评论
Oracle 10g 64位安装图解流程

oracle 10g客户端是一款非常好用且功能强大的主要用于oracle数据库的开发和编辑等操作的软件,这个精简版本从官方的oracle客户端中提取,软件解压后就可以运行,操作方法也比较简单,可以直接连接oracle服务器进行数据库的浏览、编辑和导出等操作,非常方便,需要此款工具的朋友们可以前来下载使用  

  1. 安装准备阶段

  1.1 安装oracle环境

  本例使用x-manager来实现与linux系统的连接,本例使用的所有命令和操作都是在x-manager下进行。x-manager安装完成后的配置方法如下:

  1. 打开x-manager的x-shell

  2. 点击new,新建一个连接地址,设置完成后,点击ok

  

  3. 使用用户名,密码进行登录,登录完成后,进入如下图所示画面即成功连接到linux系统

  4. 4 4. 将下载的oracle数据库的安装包10201_data _linux_x86_64.cpio.gz放在/opt/setup080305目录下。使用刚刚安装的x-manager软件即可完成上述操作,点击绿色的new file transfer,将左侧需要上传的文件拖拽到右侧的文件目录中即可。如下图所示

  5.创建/u01/app/oracle目录为oracle安装的oracle_

  1.2 查询所需安装包是否完整

  使用root用户进入系统,使用终端命令rpm -q gcc make binutils openmotif setarch compat-db compat-gcc compat-gcc-c++ compat-libstdc++ compat-libstdc++-devel

  运行结果如图所示

  gcc-4.1.2-46.el5

  make-3.81-3.el5

  binutils-2.17.50.0.6-12.el5

  package openmotif is not installed

  setarch-2.0-1.1

  package compat-db is not installed

  package compat-gcc is not installed

  package compat-gcc-c++ is not installed

  package compat-libstdc++ is not installed

  package compat-libstdc++-devel is not installed

  缺少的包需要在光盘中寻找并安装,需要安装下面的包,从 dvd 光盘中(按照以下的顺序安装)

  首先加载dvd光盘或iso镜像,使用命令cd /media/rhel_5.4\ x86_64\ dvd/server/

  跳进安装包所在目录,使用以下命令安装所属包,并查看安装包是否安装成功。

  rpm -uvh compat-db-4.2.52-5.1.x86_64.rpm

  package compat-db-4.2.52-5.1.x86_64 is already installed

  rpm -uvh libaio-0.3.106-3.2.x86_64.rpm

  package libaio-0.3.106-3.2.x86_64 is already installed

  rpm -uvh compat-libstdc++-33-3.2.3-61.x86_64.rpm

  package compat-libstdc++-33-3.2.3-61.x86_64 is already installed

  rpm -uvh compat-gcc-34-3.4.6-4.x86_64.rpm

  package compat-gcc-34-3.4.6-4.x86_64 is already installed

  rpm -uvh compat-gcc-34-c++-3.4.6-4.x86_64.rpm

  package compat-gcc-34-c++-3.4.6-4.x86_64 is already installed

  rpm -uvh libxp-1.0.0-8.1.el5.x86_64.rpm

  package libxp-1.0.0-8.1.el5.x86_64 is already installed

  rpm -uvh openmotif-2.3.1-2.el5.x86_64.rpm

  package openmotif-2.3.1-2.el5.x86_64 is already installed

  rpm -uvh gcc-4.1.2-46.el5.x86_64.rpm

  package gcc-4.1.2-46.el5.x86_64 is already installed

  rpm -uvh glibc-2.5-42.x86_64.rpm

  package glibc-2.5-42.x86_64 is already installed

  rpm -uvh libxp-1.0.0-8.1.el5.i386.rpm

  package libxp-1.0.0-8.1.el5.i386 is alrea dy installed

  如图:

  

  然后再检查所需安装包是否全部安装成功:rpm -q gcc make binutils openmotif setarch compat-db compat-gcc compat-gcc-c++ compat-libstdc++ compat-libstdc++-devel

  如图

  

  注:安装后一直都是报libstdc以及gcc-c没有安装,实际上已经安装成功,可以继续进行下一步安装。

  1.3 检查安装oracle的硬件要求

  使用命令df –h,检查内存,交换区,硬盘空间等。如图:

  

  1.4 在vi /etc/sysctl.conf文件行末添加以下内容

  #use for oracle

  kernel.shmall = 2097152

  kernel.shmmax = 2147483648

  kernel.shmmni = 4096

  kernel.sem = 250 32000 100 128

  fs.file-max = 65536

  net.ipv4.ip_local_port_range = 1024 65000

  net.core.rmem_default = 262144

  net.core.rmem_max = 262144

  net.core.wmem_default = 262144

  net.core.wmem_max = 262144

  再运行sysctl –p应用以上参数,如下图所示。

  

  1.5 在vi /etc/security/limits.conf文件行末添加以下内容

  #use for oracle

  * soft nproc 2047

  * hard nproc 16384

  * soft nofile 1024

  * hard nofile 65536

  如图所示:

  

  1.6 在vi /etc/pam.d/login文件行末添加如下内容

  # use for oracle

  session required pam_limits.so

  如图所示

  

  1.7 在vi /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

  selinuxtype=disabled

  如图所示:

  

  到此,安装oracle的准备阶段告一段落。

  2. 创建安装oracle的用户、组及配置

  2.1 解压安装文件10201_data _linux_x86_64.cpio.gz

  由于之前已经把数据库的安装文件放在了/opt/setup080305/文件夹下,现在即可以使用命令解压安装文件,也可以在windows下解压好重新上传到linux系统上,完成后结果如图所示。

  

如您对本文有疑问或者有任何想说的,请点击进行留言回复,万千网友为您解惑!

相关文章:

验证码:
移动技术网