GVKun编程网logo

如何简化 Oracle Linux 6 上的 Oracle Database 11g 安装(linux oracle 11g安装图解)

1

在本文中,我们将为您详细介绍如何简化OracleLinux6上的OracleDatabase11g安装的相关知识,并且为您解答关于linuxoracle11g安装图解的疑问,此外,我们还会提供一些关于

在本文中,我们将为您详细介绍如何简化 Oracle Linux 6 上的 Oracle Database 11g 安装的相关知识,并且为您解答关于linux oracle 11g安装图解的疑问,此外,我们还会提供一些关于(PLSQL + Oracle 11g 64bit + 32位oci.dll文件) 访问Oracle 11g、108.You are installing Oracle Database 11g on your server. During the installation Oracle Universal、111.You are installing Oracle Database 11g on a machine. When you run the installer, the Oracle Univ、68.You are managing an Oracle Database 11g database. You want to ensure the recovery of the database的有用信息。

本文目录一览:

如何简化 Oracle Linux 6 上的 Oracle Database 11g 安装(linux oracle 11g安装图解)

如何简化 Oracle Linux 6 上的 Oracle Database 11g 安装(linux oracle 11g安装图解)

作者GinnyHenningsen;由MicheleCasey更新
如何通过安装oracle-rdbms-server-11gR2-preinstallrPM软件包简化OracleLinux6上的OracleDatabase11g安装。
2012年9月发布
注:本文适用于OracleLinux6。前一篇文章“如何简化OracleLinux上的Oracle数据库安装”介绍了如何在OracleLinux5上执行类似任务。
针对OracleLinux的oracle-rdbms-server-11gR2-preinstallrPM简介
由于数据库需要某些软件包、软件包版本以及内核参数微调,因此当您在系统上安装OracleDatabase11g之前,需要预先配置操作环境。
(一定要阅读相应的Oracle数据库安装指南以便熟悉硬件、软件和操作系统要求。)


在 Oracle Linux 上,我发现有一种非常轻松的办法可以让系统满足这些安装先决条件:首先安装一个名为oracle-rdbms-server-11gR2-preinstall的 RPM 软件包。此 RPM 执行一些预配置步骤,包括:

  • 自动下载并安装 Oracle Grid Infrastructure 和 Oracle Database 11g第 2 版 (11.2.0.3) 安装过程所需的任何额外的软件包和特定软件版本,并通过yumup2date功能处理软件包依赖关系。

  • 创建用户oracle和组oinstall(针对OraInventory)、dba(针对OSDBA),供数据库安装期间使用。(出于安全目的,该用户没有默认口令,且不能远程登录)。要启用远程登录,请使用passwd工具设置一个口令。)

  • 修改/etc/sysctl.conf中的内核参数以更改共享内存、信号、最大文件描述符数量等设置。

  • 设置/etc/security/limits.conf中的软硬 shell 资源限制,如锁定内存地址空间、打开的文件数量、进程数和核心文件大小。

  • 对于 x86_64 计算机,在内核中设置numa=off

请注意,oracle-rdbms-server-11gR2-preinstall只是根据数据库安装的需要来分析现有的/etc/sysctl.conf/etc/security/limits.conf文件并更新值。所有与数据库安装无关的预自定义设置保持不变。

oracle-rdbms-server-11gR2-preinstallRPM 软件包可通过Oracle Unbreakable Linux Network(ULN,需要支持合同)、Oracle Linux 分发媒体或Oracle 公共 yum 信息库获取。因此,无论系统是否在 ULN 注册访问 Oracle 补丁和支持,您均可使用oracle-rdbms-server-11gR2-preinstall来简化 Oracle Linux 上的数据库安装。此外,Oracle 公共 yum 信息库现在还包括了所有安全和错误勘误表,从而通过最新的安全更新和错误修复来确保系统的安全和稳定。

安装oracle-rdbms-server-11gR2-preinstallRPM

本文其余部分将逐步介绍通过 Oracle 公共 yum 信息库在 Oracle Linux 上安装oracle-rdbms-server-11gR2-preinstall的过程。我首先从一个运行适用于 x86_64 的 Oracle Linux 第 6 版 Update 3 的系统开始,这个 64 位版本的 Oracle Linux 是我从Oracle 软件交付云(需要注册或登录)下载的。首先,设置一个yum配置文件,让其指向正确的信息库,然后从该信息库安装oracle-rdbms-server-11gR2-preinstallRPM。

以下是针对 Oracle 数据库安装使用oracle-rdbms-server-11gR2-preinstall对系统进行预配置的步骤:

  1. 作为一个授权用户(如root)检索配置信息库位置的文件:

    #cd/etc/yum.repos.d#wgethttp://public-yum.oracle.com/public-yum-ol6.repo
  2. 使用文本编辑器修改该文件,将字段enabled=0更改为enabled=1以反映对应于该计算机操作系统版本的信息库。

    下面是public-yum-old6.repo的部分内容,以粗体显示更改过的行。


  3. 接下来,使用yum install命令安装oracle-rdbms-server-11gR2-preinstallRPM。

    清单 1 中的输出显示了安装过程如何检查依赖关系,然后下载和安装所需软件包。

    #yuminstalloracle-rdbms-server-11gR2-preinstallLoadedplugins:refresh-packagekit,rhnplugin,security
    
    SettingupInstallProcess
    
    ResolvingDependencies
    
    -->Runningtransactioncheck
    
    --->Packageoracle-rdbms-server-11gR2-preinstall.x86_640:1.0-6.el6willbeinstalled
    
    -->ProcessingDependency:gcc-c++forpackage:oracle-rdbms-server-11gR2-preinstall-1.0-6.el6.x86_64
    
    -->ProcessingDependency:gccforpackage:oracle-rdbms-server-11gR2-preinstall-1.0-6.el6.x86_64
    
    -->ProcessingDependency:libaio-develforpackage:
    oracle-rdbms-server-11gR2-preinstall-1.0-6.el6.x86_64
    
    -->ProcessingDependency:libstdc++-develforpackage:
    oracle-rdbms-server-11gR2-preinstall-1.0-6.el6.x86_64
    
    -->ProcessingDependency:glibc-develforpackage:
    oracle-rdbms-server-11gR2-preinstall-1.0-6.el6.x86_64
    
    -->ProcessingDependency:compat-libstdc++-33forpackage:
    oracle-rdbms-server-11gR2-preinstall-1.0-6.el6.x86_64
    
    -->ProcessingDependency:kshforpackage:oracle-rdbms-server-11gR2-preinstall-1.0-6.el6.x86_64
    
    -->ProcessingDependency:compat-libcap1forpackage:
    oracle-rdbms-server-11gR2-preinstall-1.0-6.el6.x86_64
    
    -->Runningtransactioncheck
    
    --->Packagecompat-libcap1.x86_640:1.10-1willbeinstalled
    
    --->Packagecompat-libstdc++-33.x86_640:3.2.3-69.el6willbeinstalled
    
    --->Packagegcc.x86_640:4.4.6-4.el6willbeinstalled
    
    -->ProcessingDependency:cpp=4.4.6-4.el6forpackage:gcc-4.4.6-4.el6.x86_64
    
    -->ProcessingDependency:cloog-ppl>=0.15forpackage:gcc-4.4.6-4.el6.x86_64
    
    --->Packagegcc-c++.x86_640:4.4.6-4.el6willbeinstalled
    
    -->ProcessingDependency:libmpfr.so.1()(64bit)forpackage:gcc-c++-4.4.6-4.el6.x86_64
    1. 清单 1:安装oracle-rdbms-server-11gR2-preinstallRPM

      yum 安装过程在/var/log/oracle-rdbms-server-11gR2-preinstall/results/orakernel.log文件中记录有关内核更改的消息,并在/var/log/oracle-rdbms-server-11gR2-preinstall/backup目录中备份当前系统设置。

    2. 至此,系统已准备好,可以安装 Oracle 数据库了。举例来说,若要安装 Oracle Database 11g第 2 版,请按照“适用于 Linux 的数据库安装指南”的第 4 章“安装 Oracle 数据库”中的说明进行操作。

      下面介绍我在测试环境中安装 Oracle Database 11g第 2 版的步骤。在生产环境中进行安装之前,请务必查看所有文档并遵循建议的最佳实践。

      注:请注意,11g第 2 版早期版本(11.2.0.1 和 11.2.0.2)中的安装程序将显示“缺少软件包”故障,例如,pdksh软件包。这些可以安全地忽略掉,因为预安装 RPM 已经安装了ksh软件包(用于替代pdksh)。该错误在安装程序的 11.2.0.3 版中已经修复。

      Oracle Universal Installer 执行一些检查,验证是否已经安装必要的操作系统软件包和版本。此外,它还检查通过oracle-rdbms-server-11gR2-preinstall安装设置的内核参数。在内核设置检查期间,安装程序可能将一些设置标志为“Failed”,您应对这些失败进行分析。在有些情况下,仍可以继续数据库安装。在检查/etc/sysctl.conf中的内核设置时,您会发现oracle-rdbms-server-11gR2-preinstall已经修改并且添加了必要的设置,以确保满足最低的要求,具体定义请参见适用于 Linux 的 Oracle 数据库安装指南 11g 第 2 版 (11.2)第 2 章Oracle 数据库安装前要求中的 2.10.1 节“显示和更改内核参数值”。以下是要求清单:

      fs.aio-max-nr=1048576
      
      fs.file-max=6815744
      
      kernel.shmall=2097152
      
      kernel.shmmax=4294967295
      
      kernel.shmmni=4096
      
      kernel.sem=25032000100128
      
      net.ipv4.ip_local_port_range=900065500
      
      net.core.rmem_default=262144
      
      net.core.rmem_max=4194304
      
      net.core.wmem_default=262144
      
      net.core.wmem_max=1048576


      如果需要,您可以(以root身份)编辑/etc/sysctl.conf文件来手动指定设置,例如:

      #vi/etc/sysctl.conf#/sbin/sysctl-p


      Oracle Universal Installer 还会执行其他检查,如验证glibc版本、磁盘空间是否足够、环境变量和路径设置,以及物理内存和交换空间是否足够。一般来说,安装oracle-rdbms-server-11gR2-preinstall即可满足先决条件,因此您可以直接继续安装数据库。

      1. root身份在一个具有足够空间的文件系统中创建一个父目录作为下载文件的目标位置:

        #mkdir/home/OraDB11g#cd/home/OraDB11g


        该文件系统中所需的磁盘空间量随具体的安装类型而变化,但大概 zip 文件大小两倍的空间(即 5 GB)就足以容纳相应软件和数据文件。

      2. 从 Oracle 技术网上的“Oracle 数据库软件下载”页面将安装媒体文件下载到此目标目录中。

      3. 解压缩文件:

        #unziplinux.x64_11gR2_database_1of2.zip#unziplinux.x64_11gR2_database_2of2.zip
      4. oracle用户身份登录。转到database目录并输入以下命令运行 Oracle Universal Installer:

        $cd/home/OraDB11g/database$./runInstaller

总结

安装oracle-rdbms-server-11gR2-preinstallRPM 可以节省在 Oracle Linux 上安装 Oracle Database 11g的时间。RPM 能让系统满足 Oracle 数据库安装的大多数先决条件,从而极大地简化了安装过程。

另请参见

以下是本文前面所引用的资源:

  • Oracle Unbreakable Linux Network:https://linux.oracle.com

  • Oracle 公共 yum 信息库:http://public-yum.oracle.com/

  • Oracle 软件交付云(要求注册或登录):https://edelivery.oracle.com/linux

  • 适用于 Linux 的数据库安装指南第 4 章“安装 Oracle 数据库”:http://docs.oracle.com/cd/E11882_01/install.112/e24321/inst_task.htm#BABBBHJH

  • Oracle 技术网上的“Oracle 数据库软件下载”页:http://www.oracle.com/technetwork/cn/database/enterprise-edition/downloads/index.html

以下是 Oracle Database 文档库中的一些其他资源:http://www.oracle.com/pls/db112/homepage。适用于 Linux 的 Oracle 数据库安装指南 11g第 2 版 (11.2)(http://download.oracle.com/docs/cd/E11882_01/install.112/e16763/toc.htm) 中相关部分内容的当前有效 URL 如下:

  • 第 1 章“Oracle 数据库安装概述”中的“关于 Oracle RDBMS 预安装和 Oracle 验证的 RPM”:http://download.oracle.com/docs/cd/E11882_01/install.112/e16763/install_overview.htm#BABDBHCJ

  • 第 2 章“Oracle 数据库安装前要求”:http://download.oracle.com/docs/cd/E11882_01/install.112/e16763/pre_install.htm#BABFDGHJ

  • 第 4 章“安装 Oracle 数据库”中的“下载 Oracle 软件”,介绍如何从 Oracle 技术网下载安装文件:http://docs.oracle.com/cd/E11882_01/install.112/e16763/inst_task.htm#autoId6

您还可以查看博客条目“适用于 Oracle Linux 6 的 Oracle RDBMS Server 11gR2 预安装 RPM 现已发布”:https://blogs.oracle.com/linux/entry/oracle_rdbms_server_11gr2_pre

关于作者

在过去的 15 年里,Ginny Henningsen 一直以自由撰稿人的身份为高科技公司开发技术资料和文档。在此之前,Ginny 就职于 Sun Microsystems,Inc,曾在普鲁士王市(宾夕法尼亚州)和密尔沃基威(威斯康星州)担任系统工程师。Ginny 拥有卡内基 - 梅隆大学的学士学位以及维拉诺瓦大学的 MSCS 学位。

Michele Casey 是 Oracle Linux 产品管理总监。2006 年以来,她在 Linux 商业发行版和开源项目中担任项目经理职位。此外,她还担任了系统管理员、项目经理和技术支持工程师等职务。

修订版 1.0,2012 年 9 月 17 日


本文档属转载源于

http://www.oracle.com/technetwork/cn/articles/servers-storage-admin/ginnydbinstallonlinux6-1845247-zhs.html

(PLSQL + Oracle 11g 64bit + 32位oci.dll文件) 访问Oracle 11g

(PLSQL + Oracle 11g 64bit + 32位oci.dll文件) 访问Oracle 11g

(PLsql Developer + Oracle 11g 64位客户端 + 32位oci.dll文件) 访问Oracle 11g 数据库服务器的方法及说明:

PLsql Developer 连接 64位Oracle 数据库需要找到两个东东:

1、32位的 oci.dll 文件
因为PLsql Developer 为32位软件,故在访问 Oracle 11g 64位数据库时,需首先经过32位的oci.dll这个中间人再与64位oracle 数据库通信。故在PLsql Developer访问 64位oracle 数据库时,必须要能能找到 32位的 oci.dll文件位置。
2、ORACLE_HOME 目录(即 Oracle主目录)
找 ORACLE_HOME 是为了找到 tnsnames.ora .tnsnames.ora存储数据库连接信息。tnsnames.ora可通过”Net Configuration Assistant”配置,或直接从别的计算机上复制一个该文件放置到 Oracle客户端主目录\network\admin 中即可
解决方法多种多样,但要实现的目标也就上面两个。

具体操作步骤:

安装完 Oracle 64位客户端后,进行以下两步设置:
1 环境变量
新增: ORACLE_HOME,指定值为Oracle 64位客户端主目录,如 D:\app\database\product\11.2.0\client_1
使环境变量生效:注销计算机或在CMD命令中执行:C:> set ORACLE_HOME=D:\app\database\product\11.2.0\client_1

2 打开 PLsql Developer,选择“Cancel(或取消)”进入主界面。
选择 tool(工具)-> options(首选项)-> Oracle:指定以下两项
Oracle 主目录:(注:此处不设置ORACLE_HOME,环境变量中已设定)
Oci库:选择 32位oci.dll文件所在目录及文件名,如 :d:\app\oraclient\oci.dll

说明: 1、测试不在Windows 环境变量中指定ORACLE_HOME,而是直接在 PLsql Developer 中指定 “Oracle 主目录”与 “OCI库文件”,连接不成功。 2、32位 oci.dll的获取有两种方式,一是再安装一个32位Oracle 11g 客户端;二是直接从网络下载一个包含32位 oci.dll 的简易安装包。

108.You are installing Oracle Database 11g on your server. During the installation Oracle Universal

108.You are installing Oracle Database 11g on your server. During the installation Oracle Universal

108.You are installing Oracle Database 11g on your server. During the installation Oracle Universal
Installer (OUI) prompts you to enter the path of the inventory directory and also prompts you to specify an
operating system group name. Which statement is true in this case?
A.The ORACLE_BASE parameter is not set.
B.The installation is being performed by the root user.
C.The operating system group that will be specified should have root user as its member.
D.The installation is being performed without the "Create Starter Database" option selected.
E.The operating system group that will be specified must have permission to write to the inventory directory.
答案:E
解析:
这里其实是在安装过程中,指定inventory目录的路径,并且指定操作系统用户组名
inventory这个目录,其实就是安装软件的时候存储一些安装的信息,它的主要作用就是安装和升级,它的路径是通过oraInst.loc文件指定的

指定的系统组对该目录必须有些的权限,因为安装的时候会往里面写,还有日志

A:ORACLE_BASE解释如下 ORACLE_BASE is the root of the Oracle Database directory tree. The Oracle Base directory is the top level directory that you can use to install the varIoUs oracle software products. You can use the same Oracle base directory for multiple installations. For example,/u01/app/oracle is an Oracle base directory created by the oracle user. B:错误,谁会在rott下安装数据库软件啊 C:错误,谁会把root放进去啊 D:错误,不知道这个说的是什么 E:正确

111.You are installing Oracle Database 11g on a machine. When you run the installer, the Oracle Univ

111.You are installing Oracle Database 11g on a machine. When you run the installer, the Oracle Univ

111.You are installing Oracle Database 11g on a machine. When you run the installer,the Oracle Universal Installer (OUI) shows the message that says one of the product-specific prerequisite checks has Failed: Checking available swap space requirements ... Expected result: 1512MB Actual Result: 1018MB Check complete. The overall result of this check is: Failed <<<< Problem: The system does not have the required swap space. What happens to the installation in this situation? A.It can be continued. B.It resizes the swap space automatically when you proceed further. C.It can be continued,but the instance cannot be started without increasing the swap space. D.It shows a message saying one or more prerequisite checks have Failed and the installation cannot proceed. 答案:A 参考:https://docs.oracle.com/cd/B28359_01/install.111/b32002/pre_install.htm 按照文档上的说,内存最低要求为1g,建议的swap最小是1.5倍也就是1.5g的swap,但是这里如果忽略的话,也可以安装成功

68.You are managing an Oracle Database 11g database. You want to ensure the recovery of the database

68.You are managing an Oracle Database 11g database. You want to ensure the recovery of the database

68.You are managing an Oracle Database 11g database. You want to ensure the recovery of the database to the point of failure. Which configuration will you do to accomplish the task? A.Multiplex all database files. B.Configure the Flash Recovery Area. C.Configure the database instance for ARCHIVELOG mode. D.Configure the FAST_START_MTTR_TARGET initialization parameter. 答案:C 解析:这个说是恢复到错误发生的时间点,这个相当于不完全恢复,不完全恢复的先觉条件是@R_301_6250@处于归档模式 当@R_301_6250@设置为归档模式之后对@R_301_6250@意味着 1.当@R_301_6250@(磁盘或系统文件问题所导致的)崩溃之后,所有提交的数据都能恢复 2.可以对@R_301_6250@进行联机备份,而且在联机备份期间可以继续进行其他的操作 3.当某一非系统表空间脱机时,@R_301_6250@的其他部分继续正常工作 4.可以进行如下的不完全恢复 a.恢复到某一特定的时间点 b.恢复到某一特定的scn号 c.恢复到某一特定的归档文件的结尾

今天关于如何简化 Oracle Linux 6 上的 Oracle Database 11g 安装linux oracle 11g安装图解的分享就到这里,希望大家有所收获,若想了解更多关于(PLSQL + Oracle 11g 64bit + 32位oci.dll文件) 访问Oracle 11g、108.You are installing Oracle Database 11g on your server. During the installation Oracle Universal、111.You are installing Oracle Database 11g on a machine. When you run the installer, the Oracle Univ、68.You are managing an Oracle Database 11g database. You want to ensure the recovery of the database等相关知识,可以在本站进行查询。

本文标签: