热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

oraToolKit之一安装oraToolKit并检测安装Oracle环境

oraToolKit是一个这么一个工具,用来支持和快速部署oracle的各个软件环境,支持各种不同版本的数据库和操作系统。这个工具包还包

oraToolKit是一个这么一个工具,用来支持和快速部署oracle的各个软件环境,支持各种不同版本的数据库和操作系统。这个工具包还包

oraToolKit是一个这么一个工具,用来支持和快速部署Oracle的各个软件环境,支持各种不同版本的数据库和操作系统。这个工具包还包含一个比较实用的东西rlwrap,大家都知道在linux环境下的sqlplus没办法像windows下一样使用上下箭头来翻页,那么使用这个工具就可以解决问题,安装步骤很简单,进入rlwrap目录,configure-make-make install,,然后在系统环境变量进行配置下即可,增加这么一行:alias sqlplus='rlwrap sqlplus'。

虽然它支持整个部署和管理过程,但是我这里并不打算使用整套功能来演示。想试用下整个工具只是出于一个简单的原因:前几天在虚拟机上安装11g的时候,出现了几个安装包的却是和内核参数的配置问题,现在回过头来,想整理一个系统刚安装完成的,同时满足oracle使用环境,但是不想上传软件包使用安装程序检测,于是就想到了这个工具。

1. 安装oraToolKit
[root@ ~]# cd /opt/oracle
[root@ oracle]# ls
oratoolkit-1.0.2.1.5-1.noarch.rpm prereq
[root@ oracle]# rpm -ivh oratoolkit-1.0.2.1.5-1.noarch.rpm
Preparing... ########################################### [100%]
1:oratoolkit ########################################### [100%]
[root@ oracle]# ls
oratoolkit-1.0.2.1.5-1.noarch.rpm otk prereq
[root@ oracle]# cd otk
[root@ otk]# ls
1.0 current envsetup home license
[root@ otk]#
上传之后就可以安装了,安装到/opt/oracle/otk。
2. 看看oraToolKit都有啥
[root@ otk]# pwd
/opt/oracle/otk
[root@ tools]# ls /opt/oracle/otk/current/tools
postinstall rlwrap sshKeysExchange sysInfo.sql
[root@ otk]# ./current/bin/installManager
Usage (revision 1.23):

installManager [ ]

Where:

is the target action of the dataPumpManager

The following actions are supported:

swReqCheck, osSetup, swInst, cssdConfig, asmSetup,
envSetup, dbSetup and setOsKernelParams

is a configuration file from /opt/oracle/otk/1.0/conf/installManager directory.

is the execution mode of installManager, either NORMAL (default) or FORCE

Available config files
osSetup10gR2.cfg
osSetup11gR1.cfg
osSetup11gR2.cfg
20110801_230429: Warning: KLK-00022: Parameter prerequisite not fulfilled
[root@ otk]#
installManager使用帮助,从上面我们可以看到它可以进行各项检测工作(action),支持osSetup10gR2、osSetup11gR1、osSetup11gR2这3个版本的数据库(configFile),还有就是执行模式默认情况下是NORMAL,还可以是暴力执行。
3. 使用oraToolKit进行检测安装包情况
我们开始用它来检测是否满足安装ora10gR2的环境,action选择的是swReqCheck,configFile选择的是osSetup10gR2.cfg,我们开始吧。
我们可以开始先汇总的看下是否满足条件,当你确信基本上你搭建的环境没上面问题的时候,就可以直接看汇总的情况了。
[root@ otk]# /opt/oracle/otk/current/bin/installManager swReqCheck osSetup10gR2.cfg|tail -2|head -1
20110801_231656: Info: Action swReqCheck of installManager ended with 3 WARNINGS
可以看到有3个警告,我们就深入的看详细的检测信息。
[root@ otk]# /opt/oracle/otk/current/bin/installManager swReqCheck osSetup10gR2.cfg
20110801_231759: Info: Action swReqCheck of installManager started
----------------------------------------------------------------------------------------------------
20110801_231759: Info: Listing environment information
20110801_231759: Info: ---------------------------------------------
20110801_231759: Info: Object/Name | Value/Version
20110801_231759: Info: ---------------------------------------------
20110801_231800: Info: hostname | gtlions
20110801_231800: Info: OS | RHEL
20110801_231800: Info: OS Version | 6
20110801_231800: Info: OS Release | 0
20110801_231800: Info: HW Architecture | x86
20110801_231800: Info: user | root
20110801_231800: Info: user shell | /bin/bash
20110801_231800: Info: OTK | OTK_1_0_2_1_5
20110801_231800: Info: installManager | 1.23
20110801_231800: Info: Process ID | 12612
20110801_231800: Info: libmiscellaneous.ksh | 1.24
20110801_231800: Info: libstring.ksh | 1.10
20110801_231801: Info: libfile.ksh | 1.2
20110801_231801: Info: libotk.ksh | 1.14
20110801_231801: Info: liberror.ksh | 1.24
20110801_231801: Info: libosadmin.ksh | 1.19
20110801_231801: Info: libinstallManager.ksh | 1.45
20110801_231801: Info: libnetwork.ksh | 1.8
20110801_231801: Info: libappctl.ksh | 1.21
20110801_231801: Info: libdynsql.ksh | 1.2
----------------------------------------------------------------------------------------------------
20110801_231801: Info: Executing libmiscellaneous.checkExecMode function
20110801_231801: Info: Executing installManager in NORMAL mode
20110801_231801: Info: Executing libfile.sourceConf function
20110801_231801: Info: Sourcing /opt/oracle/otk/1.0/conf/installManager/osSetup10gR2.cfg
----------------------------------------------------------------------------------------------------
20110801_231801: Info: Executing libinstallManager.setScriptVars function
20110801_231801: Info: export SYSDATE="20110801"
20110801_231801: Info: export EXEC_ACTION="swreqcheck"
20110801_231801: Info: export LOG_FILE="/var/opt/oracle/otk/1.0/log-old/installManager/swreqcheck-20110801_231801.log"
20110801_231801: Info: export PLATFORM="Linux"
20110801_231801: Info: export OS_DISTRIBUTION="RHEL"
20110801_231801: Info: export OS_VERSION="6"
20110801_231801: Info: export OS_RELEASE="0"
20110801_231801: Info: export RAM_MB="1007"
20110801_231801: Info: export HW_ARCH="x86"
----------------------------------------------------------------------------------------------------
20110801_231801: Info: Executing libinstallManager.doSwRequirementCheck function
20110801_231801: Info: Checking requirement file
20110801_231801: Info: export SW_REQUIREMENT_FILE="/opt/oracle/otk/1.0/conf/installManager/requirement/ora10gR2-RedHat-6-x86.pkg.lst"
20110801_231801: Info: Using default package requirement file /opt/oracle/otk/1.0/conf/installManager/requirement/ora10gR2-redhat-6-x86.pkg.lst
20110801_231801: Info: Checking if file /opt/oracle/otk/1.0/conf/installManager/requirement/ora10gR2-redhat-6-x86.pkg.lst exists
20110801_231802: Info: Checking 32-bit OS packages
20110801_231802: Info: export ARCH_PATTERN="i[356]86"
20110801_231802: Info: export SW_REQUIREMENT_EGREP_PATTERN="req|opt"
20110801_231802: Info: Correct version (2.20.51.0.2-5.11) of 32-bit binutils installed
20110801_231802: Info: Correct version (0.148-1) of 32-bit elfutils-libelf installed
20110801_231802: Info: Correct version (2.12-1.7) of 32-bit glibc installed
20110801_231802: Info: Correct version (2.12-1.7) of 32-bit glibc-common installed
20110801_231802: Info: Correct version (0.3.107-10) of 32-bit libaio installed
20110801_231802: Info: Correct version (4.4.4-13) of 32-bit libgcc installed
20110801_231802: Info: Correct version (4.4.4-13) of 32-bit libstdc++ installed
20110801_231803: Info: Correct version (3.81-19) of 32-bit make installed
20110801_231803: Warning: Required package ksh not found, installation of 32-bit version 20100621-2 or later recommended. Package is usually installed with default installation
20110801_231803: Info: Correct version (9.0.4-11) of 32-bit sysstat installed
20110801_231803: Info: Correct version (4.4.4-13) of 32-bit libstdc++-devel installed
20110801_231803: Info: Correct version (2.6.32-71) of 32-bit kernel-headers installed
20110801_231803: Info: Correct version (2.12-1.7) of 32-bit glibc-headers installed
20110801_231803: Info: Correct version (2.12-1.7) of 32-bit glibc-devel installed
20110801_231803: Info: Correct version (5.7-3.20090208) of 32-bit ncurses-devel installed
20110801_231803: Info: Correct version (0.148-1) of 32-bit elfutils-libelf-devel installed
20110801_231804: Warning: Required package libaio-devel not found, installation of 32-bit version 0.3.107-10 or later recommended. Package should be on CD/DVD
20110801_231804: Info: Correct version (3.4.6-19) of 32-bit compat-gcc-34 installed
20110801_231804: Info: Correct version (1.0.2-1) of 32-bit libXxf86misc installed
20110801_231804: Info: Correct version (1.1.0-1) of 32-bit libXxf86vm installed
20110801_231804: Info: Correct version (1.0.5-1) of 32-bit libXmu installed
20110801_231804: Info: Correct version (1.0.7-1) of 32-bit libXt installed
20110801_231804: Info: Correct version (2.4.1-6) of 32-bit mpfr installed
20110801_231804: Info: Correct version (4.4.4-13) of 32-bit cpp installed
20110801_231805: Info: Correct version (1.0.2-7.1) of 32-bit xorg-x11-xauth installed
20110801_231805: Info: Correct version (3.4.6-19) of 32-bit compat-gcc-34-c++ installed
20110801_231805: Info: Correct version (0.14-1) of 32-bit libdaemon installed
20110801_231805: Info: Correct version (0.6.25-8) of 32-bit avahi installed
20110801_231805: Info: Correct version (0.6.25-8) of 32-bit avahi-glib installed
20110801_231805: Info: Correct version (0.70-4) of 32-bit shared-mime-info installed
20110801_231805: Info: Correct version (0.8.13-2.1) of 32-bit libIDL installed
20110801_231805: Info: Correct version (2.14.17-3.1) of 32-bit ORBit2 installed
20110801_231805: Info: Correct version (2.28.0-6) of 32-bit GConf2 installed
20110801_231806: Info: Correct version (2.24.2-6) of 32-bit gnome-vfs2 installed
20110801_231806: Info: Correct version (2.24.2-4) of 32-bit libbonobo installed
20110801_231806: Info: Correct version (2.2.6-15.5) of 32-bit libtool-ltdl installed
20110801_231806: Info: Correct version (2.18.4-5) of 32-bit gtk2-engines installed
20110801_231806: Info: Correct version (2.2.14-11) of 32-bit unixODBC installed
20110801_231806: Info: Correct version (2.7.2-4.1) of 32-bit libmcpp installed
20110801_231806: Info: Correct version (2.7.2-4.1) of 32-bit mcpp installed
20110801_231806: Info: Correct version (0.4.1-3) of 32-bit ConsoleKit-x11 installed
20110801_231807: Info: Correct version (1.0.5-1) of 32-bit libXv installed
20110801_231807: Info: Correct version (7.4-15) of 32-bit xorg-x11-server-utils installed
20110801_231807: Info: Correct version (1.0.9-13) of 32-bit xorg-x11-xinit installed
20110801_231807: Info: Correct version (1.1.0-1) of 32-bit libdmx installed
20110801_231807: Info: Correct version (1.0.0-15.1) of 32-bit libXp installed
20110801_231807: Info: Correct version (1.1.1-1) of 32-bit libXxf86dga installed
20110801_231807: Info: Correct version (7.4-8) of 32-bit xorg-x11-utils installed
20110801_231807: Info: Correct version (4.2.52-15) of 32-bit compat-db42 installed
20110801_231808: Info: Correct version (4.3.29-15) of 32-bit compat-db43 installed
20110801_231808: Info: Correct version (0.15.7-1.2) of 32-bit cloog-ppl installed
20110801_231808: Info: Correct version (0.10.2-11) of 32-bit ppl installed
20110801_231808: Info: Correct version (4.4.4-13) of 32-bit gcc installed
20110801_231808: Info: Correct version (4.6.21-15) of 32-bit compat-db installed
20110801_231808: Info: Correct version (3.2.3-69) of 32-bit compat-libstdc++-33 installed
20110801_231808: Info: Correct version (4.4.4-13) of 32-bit gcc-c++ installed
20110801_231808: Info: Correct version (6.0-3) of 32-bit readline-devel installed
20110801_231808: Warning: Optional package unixODBC-devel not found, installation of 32-bit version 2.2.14-11 or later recommended. Package should be on CD/DVD
20110801_231809: Info: Correct version (2.28.0-11) of 32-bit libgnome installed
----------------------------------------------------------------------------------------------------
20110801_231809: Info: Executing libmiscellaneous.getFooter function
20110801_231809: Info: Terminating installManager execution
20110801_231809: Info: Summary log file: /var/opt/oracle/otk/1.0/log-old/installManager/../installManager.log
20110801_231809: Info: Detailed log file: /var/opt/oracle/otk/1.0/log-old/installManager/swreqcheck-20110801_231801.log
20110801_231809: Info: Action swReqCheck of installManager ended with 3 WARNINGS
----------------------------------------------------------------------------------------------------
[root@ otk]#
[root@ otk]# tail /var/opt/oracle/otk/1.0/log-old/installManager/swreqcheck-20110801_231801.log
20110801_231808: Info: Correct version (6.0-3) of 32-bit readline-devel installed
20110801_231808: Warning: Optional package unixODBC-devel not found, installation of 32-bit version 2.2.14-11 or later recommended. Package should be on CD/DVD
20110801_231809: Info: Correct version (2.28.0-11) of 32-bit libgnome installed
----------------------------------------------------------------------------------------------------
20110801_231809: Info: Executing libmiscellaneous.getFooter function
20110801_231809: Info: Terminating installManager execution
20110801_231809: Info: Summary log file: /var/opt/oracle/otk/1.0/log-old/installManager/../installManager.log
20110801_231809: Info: Detailed log file: /var/opt/oracle/otk/1.0/log-old/installManager/swreqcheck-20110801_231801.log
20110801_231809: Info: Action swReqCheck of installManager ended with 3 WARNINGS
----------------------------------------------------------------------------------------------------
[root@ otk]#
我们可以看到有3个包未安装不满足安装10gR2的数据库:ksh、libaio-devel、unixODBC-devel。
[root@ otk]# mount /dev/cdrom /mnt
mount: block device /dev/sr0 is write-protected, mounting read-only
[root@ mnt]# cd /mnt/Packages/
[root@ Packages]# rpm -ivh libaio-devel*.rpm unixODBC-devel*.rpm
warning: libaio-devel-0.3.107-10.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Preparing... ########################################### [100%]
1:unixODBC-devel ########################################### [ 50%]
2:libaio-devel ########################################### [100%]

linux

推荐阅读
  • 二维码的实现与应用
    本文介绍了二维码的基本概念、分类及其优缺点,并详细描述了如何使用Java编程语言结合第三方库(如ZXing和qrcode.jar)来实现二维码的生成与解析。 ... [详细]
  • 随着Linux操作系统的广泛使用,确保用户账户及系统安全变得尤为重要。用户密码的复杂性直接关系到系统的整体安全性。本文将详细介绍如何在CentOS服务器上自定义密码规则,以增强系统的安全性。 ... [详细]
  • 本文介绍了如何通过安装 sqlacodegen 和 pymysql 来根据现有的 MySQL 数据库自动生成 ORM 的模型文件(model.py)。此方法适用于需要快速搭建项目模型层的情况。 ... [详细]
  • publicclassBindActionextendsActionSupport{privateStringproString;privateStringcitString; ... [详细]
  • 调试利器SSH隧道
    在开发微信公众号或小程序的时候,由于微信平台规则的限制,部分接口需要通过线上域名才能正常访问。但我们一般都会在本地开发,因为这能快速的看到 ... [详细]
  • 解决JavaScript中法语字符排序问题
    在开发一个使用JavaScript、HTML和CSS的Web应用时,遇到从SQLite数据库中提取的法语词汇排序不正确的问题,特别是带重音符号的字母未按预期排序。 ... [详细]
  • 本文详细介绍了如何正确设置Shadowsocks公共代理,包括调整超时设置、检查系统限制、防止滥用及遵守DMCA法规等关键步骤。 ... [详细]
  • 本文详细介绍了如何搭建一个高可用的MongoDB集群,包括环境准备、用户配置、目录创建、MongoDB安装、配置文件设置、集群组件部署等步骤。特别关注分片、读写分离及负载均衡的实现。 ... [详细]
  • 3DSMAX制作超现实的体育馆模型
    这篇教程是向脚本之家的朋友介绍3DSMAX制作超现实的体育馆模型方法,教程制作出来的体育馆模型非常地不错,不过教程有点难度,需要有一定基础的朋友学习,推荐到脚本之家,喜欢的朋友可 ... [详细]
  • 默认情况下,Git 使用 Nano 编辑器进行提交信息的编辑,但如果您更喜欢使用 Vim,可以通过简单的配置更改来实现这一变化。本文将指导您如何通过修改全局配置文件来设置 Vim 作为默认的 Git 提交编辑器。 ... [详细]
  • 探索Java 11中的ZGC垃圾收集器
    Java 11引入了一种新的垃圾收集器——ZGC,由Oracle公司研发,旨在支持TB级别的内存容量,并保证极低的暂停时间。本文将探讨ZGC的开发背景、技术特点及其潜在的应用前景。 ... [详细]
  • 为何Compose与Swarm之后仍有Kubernetes的诞生?
    探讨在已有Compose和Swarm的情况下,Kubernetes是如何以其独特的设计理念和技术优势脱颖而出,成为容器编排领域的领航者。 ... [详细]
  • CRZ.im:一款极简的网址缩短服务及其安装指南
    本文介绍了一款名为CRZ.im的极简网址缩短服务,该服务采用PHP和SQLite开发,体积小巧,约10KB。本文还提供了详细的安装步骤,包括环境配置、域名解析及Nginx伪静态设置。 ... [详细]
  • 本文作为《WM平台上使用Sybase Anywhere 11》系列的第二篇,将继续探讨在Windows Mobile (WM) 系统中如何高效地操作Sybase Anywhere 11数据库。继上一篇关于安装与基本测试的文章之后,本篇将深入讲解数据库的具体操作方法。 ... [详细]
  • 从CodeIgniter中提取图像处理组件
    本指南旨在帮助开发者在未使用CodeIgniter框架的情况下,如何独立使用其强大的图像处理功能,包括图像尺寸调整、创建缩略图、裁剪、旋转及添加水印等。 ... [详细]
author-avatar
林斯诺_SNOW
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有