Install oraToolKit and check the Oracle environment

Source: Internet
Author: User

OraToolKit is a tool used to support and quickly deploy various Oracle software environments and support different versions of databases and operating systems. This toolkit also contains a more practical rlwrap. Everyone knows that sqlplus in linux cannot use up or down arrows to flip pages like windows, so you can use this tool to solve the problem, the installation procedure is very simple. Go to the rlwrap directory, configure-make install, and then configure the system environment variables. Add the line alias sqlplus = 'rlwrap sqlplus '.

Although it supports the entire deployment and management process, I do not intend to use the entire set of features for demonstration here. I want to try the entire tool for a simple reason: When I installed 11g on the virtual machine a few days ago, there were several installation packages and kernel parameter configuration problems. Now I will go back to it, I want to organize a system that has just been installed and meets the requirements of the oracle environment, but I don't want to upload the software package to use the installer for detection, so I thought of this tool.

1. Install oraToolKit
Root@www.bkjia.com ~ # Cd/opt/oracle
[Root@www.bkjia.com oracle] # ls
Prereq oratoolkit-1.0.2.1.5-1.noarch.rpm
[Root@www.bkjia.com oracle] # rpm-ivh oratoolkit-1.0.2.1.5-1.noarch.rpm
Preparing... ######################################## ### [100%]
1: oratoolkit ####################################### #### [100%]
[Root@www.bkjia.com oracle] # ls
Oratoolkit-1.0.2.1.5-1.noarch.rpm otk prereq
[Root@www.bkjia.com oracle] # cd otk
[Root@www.bkjia.com otk] # ls
1.0 current envsetup home license
[Root@www.bkjia.com otk] #
After uploading the file, you can install it to/opt/oracle/otk.
2. Check what oraToolKit has.
Root@www.bkjia.com otk # pwd
/Opt/oracle/otk
[Root@www.bkjia.com tools] # ls/opt/oracle/otk/current/tools
Postinstall rlwrap sshKeysExchange sysInfo. SQL
[Root@www.bkjia.com otk] #./current/bin/installManager
Usage (revision 1.23 ):

InstallManager <action> <configFile> [<execMode>]

Where:

<Action> is the target action of the dataPumpManager

The following actions are supported:

SwReqCheck, osSetup, swInst, cssdConfig, asmSetup,
EnvSetup, dbSetup and setOsKernelParams

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

<ExecMode> 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@www.bkjia.com otk] #
With the help of installManager, we can see from the above that it can perform various checks (Actions). It supports three versions of Database (configFile): osSetup10gR2, osSetup11gR1, and osSetup11gR2 ), in addition, the execution mode is NORMAL by default, or it can be violent execution.
3. Use oraToolKit to check the installation package
We started to use it to check whether the environment for installing ora10gR2 is satisfied. action selects swReqCheck and configFile selects osSetup10gR2. cfg. Let's get started.
We can start to summarize and check whether the conditions are met. When you are sure that the environment you set up is okay, you can directly view the summary.
[Root@www.bkjia.com otk] #/opt/oracle/otk/current/bin/installManager swReqCheck osSetup10gR2. cfg | tail-2 | head-1
2011080425231656: Info: Action swReqCheck of installManager ended with 3 WARNINGS
We can see three warnings, so we can look into the detailed detection information.
[Root@www.bkjia.com otk] #/opt/oracle/otk/current/bin/installManager swReqCheck osSetup10gR2. cfg
2011080425231759: Info: Action swReqCheck of installManager started
Bytes ----------------------------------------------------------------------------------------------------
2011080425231759: Info: Listing environment information
2011080425231759: Info :---------------------------------------------
2011080425231759: Info: Object/Name | Value/Version
2011080425231759: Info :---------------------------------------------
2011080425231800: Info: hostname | gtlions
2011080425231800: Info: OS | RHEL
2011080425231800: Info: OS Version | 6
2011080425231800: Info: OS Release | 0
2011080425231800: Info: HW Architecture | x86
2011080425231800: Info: user | root
2011080425231800: Info: user shell |/bin/bash
20110800000231800: Info: OTK | otk_00000_2_00005
2011080425231800: Info: installManager | 1.23
2011080425231800: Info: Process ID | 12612
2011080425231800: Info: libmiscellaneous. ksh | 1.24
2011080425231800: Info: libstring. ksh | 1.10
2011080425231801: Info: libfile. ksh | 1.2
2011080425231801: Info: libotk. ksh | 1.14
2011080425231801: Info: liberror. ksh | 1.24
2011080425231801: Info: libosadmin. ksh | 1.19
2011080112231801: Info: libinstallManager. ksh | 1.45
2011080426231801: Info: libnetwork. ksh | 1.8
2011080425231801: Info: libappctl. ksh | 1.21
2011080425231801: Info: libdynsql. ksh | 1.2
Bytes ----------------------------------------------------------------------------------------------------
2011080425231801: Info: Executing libmiscellaneous. checkExecMode function
2011080425231801: Info: Executing installManager in NORMAL mode
2011080425231801: Info: Executing libfile. sourceConf function
2011080425231801: Info: Sourcing/opt/oracle/otk/1.0/conf/installManager/osSetup10gR2. cfg
Bytes ----------------------------------------------------------------------------------------------------
2011080425231801: Info: Executing libinstallManager. setScriptVars function
2011080425231801: Info: export SYSDATE = "20110801"
2011080425231801: Info: export EXEC_ACTION = "swreqcheck"
2011080425231801: Info: export LOG_FILE = "/var/opt/oracle/otk/1.0/log-old/installManager/swreqcheck-20110801_231801.log"
2011080425231801: Info: export PLATFORM = "Linux"
2011080425231801: Info: export OS _DISTRIBUTION = "RHEL"
2011080425231801: Info: export OS _VERSION = "6"
2011080425231801: Info: export OS _RELEASE = "0"
2011080425231801: Info: export RAM_MB = "1007"
2011080425231801: Info: export HW_ARCH = "x86"
Bytes ----------------------------------------------------------------------------------------------------
2011080425231801: Info: Executing libinstallManager. doSwRequirementCheck function
2011080425231801: Info: Checking requirement file
231801: Info: export SW_REQUIREMENT_FILE = "/opt/oracle/otk/1.0/conf/installManager/requirement/ora10gR2-RedHat-6-x86.pkg.lst"
231801: Info: Using default package requirement file/opt/oracle/otk/1.0/conf/installManager/requirement/ora10gR2-redhat-6-x86.pkg.lst
231801: Info: Checking if file/opt/oracle/otk/1.0/conf/installManager/requirement/ora10gR2-redhat-6-x86.pkg.lst exists
2011080425231802: Info: Checking 32-bit OS packages
2011080425231802: Info: export ARCH_PATTERN = "I [356] 86"
2011080425231802: Info: export SW_REQUIREMENT_EGREP_PATTERN = "req | opt"
2011080425231802: Info: Correct version (2.20.51.0.2-5.11) of 32-bit binutils installed
2011080425231802: Info: Correct version (0.148-1) of 32-bit elfutils-libelf installed
2011080425231802: Info: Correct version (2.12-1.7) of 32-bit glibc installed
2011080425231802: Info: Correct version (2.12-1.7) of 32-bit glibc-common installed
2011080425231802: Info: Correct version (0.3.107-10) of 32-bit libaio installed
2011080425231802: Info: Correct version (4.4.4-13) of 32-bit libgcc installed
2011080425231802: Info: Correct version (4.4.4-13) of 32-bit libstdc ++ installed
2011080425231803: Info: Correct version (3.81-19) of 32-bit make installed
: Warning: Required package ksh not found, installation of 32-bit version 20100621-2 or later recommended. Package is usually installed with default installation
2011080425231803: Info: Correct version (9.0.4-11) of 32-bit sysstat installed
2011080425231803: Info: Correct version (4.4.4-13) of 32-bit libstdc ++-devel installed
2011080425231803: Info: Correct version (2.6.32-71) of 32-bit kernel-headers installed
2011080425231803: Info: Correct version (2.12-1.7) of 32-bit glibc-headers installed
2011080425231803: Info: Correct version (2.12-1.7) of 32-bit glibc-devel installed
2011080425231803: Info: Correct version (5.7-3.20090208) of 32-bit ncurses-devel installed
2011080425231803: Info: Correct version (0.148-1) of 32-bit elfutils-libelf-devel installed
2011080425231804: Warning: Required package libaio-devel not found, installation of 32-bit version 0.3.107-10 or later recommended. Package shoshould be on CD/DVD
2011080425231804: Info: Correct version (3.4.6-19) of 32-bit compat-gcc-34 installed
2011080425231804: Info: Correct version (1.0.2-1) of 32-bit libXxf86misc installed
2011080425231804: Info: Correct version (1.1.0-1) of 32-bit libXxf86vm installed
2011080425231804: Info: Correct version (1.0.5-1) of 32-bit libXmu installed
2011080425231804: Info: Correct version (1.0.7-1) of 32-bit libXt installed
2011080425231804: Info: Correct version (2.4.1-6) of 32-bit mpfr installed
2011080425231804: Info: Correct version (4.4.4-13) of 32-bit cpp installed
231805: Info: Correct version (1.0.2-7.1) of 32-bit xorg-x11-xauth installed
23: Info: Correct version (3.4.6-19) of 32-bit compat-gcc-34-c + + installed
2011080425231805: Info: Correct version (0.14-1) of 32-bit libdaemon installed
2011080425231805: Info: Correct version (0.6.25-8) of 32-bit avahi installed
2011080425231805: Info: Correct version (0.6.25-8) of 32-bit avahi-glib installed
2011080425231805: Info: Correct version (0.70-4) of 32-bit shared-mime-info installed
2011080425231805: Info: Correct version (0.8.13-2.1) of 32-bit libIDL installed
2011080425231805: Info: Correct version (2.14.17-3.1) of 32-bit ORBit2 installed
2011080425231805: Info: Correct version (2.28.0-6) of 32-bit GConf2 installed
2011080425231806: Info: Correct version (2.24.2-6) of 32-bit gnome-vfs2 installed
2011080425231806: Info: Correct version (2.24.2-4) of 32-bit libbonobo installed
231806: Info: Correct version (2.2.6-15.5) of 32-bit libtool-ltdl installed
2011080425231806: Info: Correct version (2.18.4-5) of 32-bit gtk2-engines installed
2011080426231806: Info: Correct version (2.2.14-11) of 32-bit unixODBC installed
2011080425231806: Info: Correct version (2.7.2-4.1) of 32-bit libmcpp installed
2011080425231806: Info: Correct version (2.7.2-4.1) of 32-bit mcpp installed
2011080425231806: Info: Correct version (0.4.1-3) of 32-bit ConsoleKit-x11 installed
2011080425231807: Info: Correct version (1.0.5-1) of 32-bit libXv installed
231807: Info: Correct version (7.4-15) of 32-bit xorg-x11-server-utils installed
2011080425231807: Info: Correct version (1.0.9-13) of 32-bit xorg-x11-xinit installed
2011080425231807: Info: Correct version (1.1.0-1) of 32-bit libdmx installed
231807: Info: Correct version (1.0.0-15.1) of 32-bit libXp installed
2011080425231807: Info: Correct version (1.1.1-1) of 32-bit libXxf86dga installed
: Info: Correct version (7.4-8) of 32-bit xorg-x11-utils installed
2011080425231807: Info: Correct version (4.2.52-15) of 32-bit compat-db42 installed
2011080425231808: Info: Correct version (4.3.29-15) of 32-bit compat-db43 installed
2011080426231808: Info: Correct version (0.15.7-1.2) of 32-bit cloog-ppl installed
2011080425231808: Info: Correct version (0.10.2-11) of 32-bit ppl installed
2011080425231808: Info: Correct version (4.4.4-13) of 32-bit gcc installed
2011080425231808: Info: Correct version (4.6.21-15) of 32-bit compat-db installed
2011080425231808: Info: Correct version (3.2.3-69) of 32-bit compat-libstdc ++-33 installed
2011080425231808: Info: Correct version (4.4.4-13) of 32-bit gcc-c ++ installed
2011080425231808: Info: Correct version (6.0-3) of 32-bit readline-devel installed
2011080112231808: Warning: Optional package unixODBC-devel not found, installation of 32-bit version 2.2.14-11 or later recommended. Package shoshould be on CD/DVD
2011080425231809: Info: Correct version (2.28.0-11) of 32-bit libgnome installed
Bytes ----------------------------------------------------------------------------------------------------
2011080425231809: Info: Executing libmiscellaneous. getFooter function
2011080426231809: Info: Terminating installManager execution
2011080425231809: Info: Summary log file:/var/opt/oracle/otk/1.0/log-old/installManager/.../installManager. log
: Info: Detailed log file:/var/opt/oracle/otk/1.0/log-old/installManager/swreqcheck-20110801_231801.log
2011080425231809: Info: Action swReqCheck of installManager ended with 3 WARNINGS
Bytes ----------------------------------------------------------------------------------------------------
[Root@www.bkjia.com otk] #
[Root@www.bkjia.com otk] # tail/var/opt/oracle/otk/1.0/log-old/installManager/swreqcheck-20110801_231801.log
2011080425231808: Info: Correct version (6.0-3) of 32-bit readline-devel installed
2011080112231808: Warning: Optional package unixODBC-devel not found, installation of 32-bit version 2.2.14-11 or later recommended. Package shoshould be on CD/DVD
2011080425231809: Info: Correct version (2.28.0-11) of 32-bit libgnome installed
Bytes ----------------------------------------------------------------------------------------------------
2011080425231809: Info: Executing libmiscellaneous. getFooter function
2011080426231809: Info: Terminating installManager execution
2011080425231809: Info: Summary log file:/var/opt/oracle/otk/1.0/log-old/installManager/.../installManager. log
: Info: Detailed log file:/var/opt/oracle/otk/1.0/log-old/installManager/swreqcheck-20110801_231801.log
2011080425231809: Info: Action swReqCheck of installManager ended with 3 WARNINGS
Bytes ----------------------------------------------------------------------------------------------------
[Root@www.bkjia.com otk] #
We can see that there are three packages that do not meet the requirements for installing 10gR2 databases: ksh, libaio-devel, and unixODBC-devel.
[Root@www.bkjia.com otk] # mount/dev/cdrom/mnt
Mount: block device/dev/sr0 is write-protected, mounting read-only
[Root@www.bkjia.com mnt] # cd/mnt/Packages/
[Root@www.bkjia.com 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%]

  • 1
  • 2
  • Next Page

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.