Skip Headers

Oracle9i Database Certified Configuration Installation Guide
Release 2 (9.2.0.2) for Solaris Operating Environment (SPARC 64-bit)
Part No. B12103-02
  Go To Table Of Contents
Contents
Go To Index
Index

Previous Next  

A Environment Checking Tool

This appendix contains information on the ocheck environment checking tool. The following topics are included:

Tool Usage

The tool uses several files which all begin with ocheck. These files must be located in the same directory as the main program. The following command shows the syntax for the tool:

/admin/dbcc/3.1.0/ref_config/ocheck/ocheck -product prod_name phase 

The following table lists the tool parameters.

Table A-1 ocheck Tool Parameters

Parameter Description
product
Checks the product name defined by the prod_name option. The ocheck.chk file lists the product names.
phase
Defines the phase of the installation. The ocheck.chk file lists the phases. Currently, the following phases are available:
  • -preinstall and -postinstall run checks before and after product installation.

  • -preconfig and -postconfig run checks before and after product configuration.

  • -preimage and -postimage run checks before and after installation of a product image.

  • -reconfig runs checks before product reconfiguration, such as cloning, and single-instance to Real Application Clusters conversion.

  • -system runs checks to ensure suitability of system hardware and operating system configuration for installation of Oracle products.

  • -all runs all available checks for a given product.


Exit Status

The ocheck tool displays the following exit status numbers:

  • Status number of 0 (zero) indicates all checks passed successfully.

  • Status number of 1 indicates the wrong arguments were used to call the tool.

  • Status numbers 2 through 29 indicate a problem occurred when running the tool.

  • Status numbers 30 through 99 indicate the highest severity of system misconfigurations encountered by the tool during its run.

Check Definitions

The following table lists each check and its description. The variable names that begin with OCC_ are defined in the genocc data files or the ocheck.conf file. If a value depends on the setting for a specific database, then it will be in the genocc file. If the value is fixed and defined by the certified configuration, then it will be in the ocheck.conf file.

Table A-2 Check Definitions

Check Description
check_active_instance Checks if a SQL*Plus connection can be made, and if more than one instance is found.
check_clusterware_install Checks if the Oracle UDLM and Sun Cluster packages are installed on the system. This is for Solaris operating system only.
check_clusterware_running Checks if the scstat program returns a successful exit status.
check_cm_running Checks if the lsnodes program returns a successful exit status.
check_cpu_count Checks if the number of processors installed and running is above a given minimum count. The source for the minimum is OCC_CPU_COUNT_MIN, and is 2.
check_cpu_power Checks if the Oracle processor power number is above a given minimum value. The power number is the sum of the MHz of all running processors. The source for the minimum is OCC_CPU_COUNT_MIN * OCC_CPU_CLOCKSPEED_MIN. The Linux Intel minimum is 1400, and the Solaris operating system minimum is 800.
check_cpu_speed Checks if the processor MHz of all processors is above a given minimum value. The source for the minimum is OCC_CPU_CLOCKSPEED_MIN. The Linux Intel minimum is 700, and the Solaris operating system minimum is 400.
check_executable_bc Checks if the bc program is installed on the system.
check_executable_ksh Checks if the ksh program is installed on the system.
check_executable_oracle Checks if the Oracle program is installed, has the correct ownership and permissions, and can resolve all references to shared libraries.
check_external_storage Checks if raw devices for Oracle data storage exist for the system. The source is OCC_EXTERNAL_DATA_STORAGE_DEVICE.
check_filesystem_data_storage Checks if the file system used for Oracle data files is at least a given minimum size. The source for the minimum is OCC_FILESYSTEM_SIZE_DATA_MIN_MB. The value is 9216.
check_filesystem_data_storage_mount_opts Checks if the file system used for Oracle data files is mounted with the correct options. The source is OCC_MOUNT_NFS_OPTIONS. The options are the following:
  • bg hard intr noac rsize=32768

  • rw tcp vers=3

  • wsize-32768

check_filesystem_program_space Checks if the file system used for the Oracle program files has a given minimum amount of free space. The source is OCC_FILESYSTEM_AVAIL_SW_INSTALL_MIN_MB. The value is 5210.
check_filesystem_program_storage Checks if the file system for the Oracle program files is at least a given minimum size. The source is hard-coded. The value is 9216.
check_filesystem_sizes Checks if several standard file systems are at least a given minimum size. The source is OCC_FILESYSTEM_SIZES.

The following are the Linux Intel values:

  • 9216 MB for /

  • 128 MB for /boot

  • 1024 MB for /oem

  • 4096 MB for /admin

The following are Solaris operating system values:

  • 5120 MB for /

  • 2048 MB for /var

  • 1024 MB for /tmp

check_gcc_version This is on Linux only. Checks if the version and revision values of the installed gcc compiler are correct. The sources are OCC_GCC_VERSION and OCC_GCC_RELEASE. The Linux Intel values are 2.96, and 108.1, respectively.
check_group_dba Checks if the Oracle DBA group exists. The source is OCC_ORACLE_DBA_GROUP. The value is group:db{lowercase(OCC_DB_NAME)}.
check_group_install Checks if the Oracle software owner group oinstall exists.
check_gsd_running Checks if the gsdctl program returns a successful exit status.
check_httpd Checks if an httpd process is running on the system.
check_install_log Checks if the Oracle Installer log is not empty. If it is not empty, then it contains error messages.
check_listener_running Checks if the tnslsnr process is running on the system.
check_mirrored_sw_disks This check is not implemented in this release.
check_mount_options Checks if UFS partitions are mounted with the logging option.
check_network_interfaces Checks if the number of configured network interfaces is above a given minimum. The source is OCC_NIC_COUNT. The value is 2.
check_network_interfaces_rac Checks if the number of configured network interfaces is above a given minimum. The source is OCC_NIC_COUNT_RAC_MIN. The value is 4.
check_oracle_home Checks if the ORACLE_HOME and ORACLE_SID variables are set, and if the $ORACLE_HOME/bin/oracle directory exists in the system.
check_oracle_user Checks if the Oracle user account exists, has the correct login shell, such as /bin/bash or /bin/ksh, and is in the Oracle DBA group. The sources are OCC_ORACLE_DBA_USER and OCC_ORACLE_DBA_GROUP. The user value is or{lowercase(OCC_DB_NAME_)}. The group value is db{lowercase(OCC_DB_NAME)}.
check_oracle_user_groups Checks if the Oracle user is in the Oracle DBA group, is in the Oracle software owner group, and has the Oracle software owner group as its primary group.
check_oracle_user_home Checks if the Oracle user exists and has the correct home directory set, and if the home directory exists and is owned by the Oracle user. The sources are OCC_ORACLE_DBA_USER and OCC_ORACLE_DBA_USER_HOME. The user value is or{lowercase(OCC_DB_NAME_)}. The directory value is /{lowercase(OCC_DB_NAME_}/oracle.
check_os_64bit Checks if the operating system can run 64-bit applications. This is for Solaris operating system only.
check_os_cluster_patches Checks if the required clusterware patches have been installed on the system. The source is OCC_PATCHES_RAC. The value is 110648-20. This is for Solaris operating system only.
check_os_patches Checks if the required operating system patches have been installed on the system. The source is OCC_PATCHES. The Solaris value is 108528-15 112953-02.
check_os_version Checks if the operating system is correct. The sources are OCC_OS_VERSION, OCC_OS_VERSION_NAME_LINUX, and OCC_OS_VERSION_SUNOS_UPDATE.

The Linux Intel values are as follows:

  • 2.4.9-e.12 24.9-e.12smp 2.4.9-e.12enterprise

  • Redhat 2.1 AS

The Solaris operating system values are as follows:

  • 5.8

  • 7 2/02

check_packages_rac Checks if the required packages for Real Application Clusters are installed on the system. The source is OCC_PACKAGES_RAC. The value is "".
check_physical_memory Checks if the amount of installed RAM is above a given amount. The source is (OCC_CPU_COUNT_MIN * OCC_RAM_PER_CPU_MIN_MB) - 128. The value is 1920.
check_private_network This check is not implemented in this release.
check_public_network Checks if a network adapter is up and running.
check_remote_rsh_oracle Checks if the oracle user is able to use rsh to reach all cluster nodes. The source is nodes:OCC_RAC_NODES. The value is variable.
check_remote_rsh_root Checks if the root user is able to use rsh to reach all cluster nodes. The source is nodes:OCC_RAC_NODES. The value is variable.
check_remote_time Checks if the date and time on all cluster nodes is within two seconds of those on the local node. The source is nodes:OCC_RAC_NODES. The value is variable.
check_shared_memory Checks if the system shared memory and semaphore parameters are set correctly. The Linux Intel source is hard-coded. The Solaris operating source is OCC_KERNEL_PARAMS.
check_shared_storage_files This check is not implemented in this release.
check_snmp_agent Checks if the agentctl program returns a successful exit status.
check_sqlplus_connect Checks if the sqlplus program is able to log in as SYSOPER and access the DUAL table.
check_sqlplus_login Checks if the sqlplus program is able to log in as SYSDBA.
check_swap_space Checks if the amount of swap configured is above a given minimum. The source is OCC_SWAP_SIZE_MIN. The value is 4 GB - 96 MB.
check_swap_space_avail Checks if the amount of swap space available is above a given minimum. The source is hard-coded. The Linux Intel value is not implemented in this release. The Solaris operating system value is 4 GB.
check_tnsping Checks if the tnsping program returns a successful exit status when pinging the database service. The source is service name:OCC_DB_NAME. The value is variable.
check_volmgr_installed Checks if the VERITAS volume manager is installed on the system. This is for Solaris operating system only.

Check Listing by Product and Phase

The ocheck tool checks specific items depending on the product and phase parameters used with the ocheck command. This section includes the following topics:

Oracle9i Database Certified Configuration Single-instance System Checks

Oracle9i Database Certified Configuration single-instance can be checked using the rdbms product parameter with the different phase parameters to check the system. This section describes the checks for each phase parameter. The following topics are included in this section:

Using the rdbms Parameter with the preinstall Parameter

The following items are checked when using the rdbms parameter and the preinstall parameter:

  • check_cpu_count

  • check_cpu_power

  • check_cpu_speed

  • check_executable_bc

  • check_executable_ksh

  • check_filesystem_program_space

  • check_filesystem_program_storage

  • check_filesystem_sizes

  • check_gcc_version

  • check_group_dba

  • check_group_oinstall

  • check_mirrored_sw_disks

  • check_mount_options

  • check_network_interfaces

  • check_oracle_user

  • check_oracle_user_groups

  • check_oracle_user_home

  • check_os_64bit

  • check_os_patches

  • check_os_version

  • check_physical_memory

  • check_swap_space

  • check_swap_space_avail

Using the rdbms Parameter with the postinstall Parameter

The following items are checked when using the rdbms parameter and the postinstall parameter:

  • check_executable_oracle

  • check_install_log

  • check_sqlplus_login

Using the rdbms Parameter with the preconfig Parameter

The following items are checked when using the rdbms parameter and the preconfig parameter:

  • check_cpu_count

  • check_cpu_power

  • check_cpu_speed

  • check_executable_bc

  • check_executable_ksh

  • check_executable_oracle

  • check_filesystem_data_storage

  • check_filesystem_data_storage_mount_opts

  • check_gcc_version

  • check_group_dba

  • check_group_oinstall

  • check_install_log

  • check_mirrored_sw_disks

  • check_mount_options

  • check_network_interfaces

  • check_oracle_user

  • check_oracle_user_groups

  • check_oracle_user_home

  • check_os_64bit

  • check_os_patches

  • check_os_version

  • check_physical_memory

  • check_public_network

  • check_shared_memory

  • check_sqlplus_login

  • check_swap_space

  • check_swap_space_avail

Using the rdbms Parameter with the postconfig Parameter

The following items are checked when using the rdbms parameter and the postconfig parameter:

  • check_httpd

  • check_listener_running

  • check_oracle_home

  • check_snmp_agent

  • check_sqlplus_connect

  • check_tnsping

Using the rdbms Parameter with the preimage Parameter

The following items are checked when using the rdbms parameter and the preimage parameter:

  • check_cpu_count

  • check_cpu_power

  • check_cpu_speed

  • check_executable_bc

  • check_executable_ksh

  • check_filesystem_data_storage

  • check_filesystem_data_storage_mount_opts

  • check_filesystem_program_space

  • check_filesystem_program_storage

  • check_filesystem_sizes

  • check_gcc_version

  • check_group_dba

  • check_group_oinstall

  • check_mirrored_sw_disks

  • check_mount_options

  • check_network_interface

  • check_oracle_user

  • check_oracle_user_groups

  • check_oracle_user_home

  • check_os_64bit

  • check_os_patches

  • check_os_version

  • check_physical_memory

  • check_swap_space

  • check_swap_space_avail

  • check_public_network

Using the rdbms Parameter with the postimage Parameter

The following items are checked when using the rdbms parameter and the postimage parameter:

  • check_executable_oracle

  • check_install_log

  • check_sqlplus_login

Using the rdbms Parameter with the reconfig Parameter

The following items are checked when using the rdbms parameter and the reconfig parameter:

  • check_cpu_count

  • check_cpu_power

  • check_cpu_speed

  • check_executable_bc

  • check_executable_ksh

  • check_executable_oracle

  • check_gcc_version

  • check_group_dba

  • check_group_oinstall

  • check_install_log

  • check_mirrored_sw_disks

  • check_mount_options

  • check_network_interfaces

  • check_oracle_user

  • check_oracle_user_groups

  • check_oracle_user_home

  • check_os_64bit

  • check_os_patches

  • check_os_version

  • check_physical_memory

  • check_public_network

  • check_shared_memory

  • check_sqlplus_login

  • check_swap_space

  • check_swap_space_avail

Using the rdbms Parameter with the system Parameter

The following items are checked when using the rdbms parameter and the system parameter:

  • check_cpu_count

  • check_cpu_power

  • check_cpu_speed

  • check_executable_bc

  • check_executable_ksh

  • check_filesystem_sizes

  • check_gcc_version

  • check_mirrored_sw_disks

  • check_os_64bit

  • check_os_patches

  • check_os_version

  • check_physical_memory

  • check_swap_space

  • check_swap_space_avail

Using the rdbms Parameter with the all Parameter

The all parameter causes all checks listed in the ocheck.chk file to be run for the product.

Oracle9i Database Certified Configuration Real Applications Clusters System Checks

Oracle9i Database Certified Configuration Real Application Clusters can be checked using the rac product parameter with the different phase parameters to check the system. This section describes the checks for each phase parameter. The following topics are included in this section:

Using the rac Parameter with the preinstall Parameter

The following items are checked when using the rac parameter and the preinstall parameter:

  • check_clusterware_installed

  • check_clusterware_running

  • check_cpu_count

  • check_cpu_power

  • check_cpu_speed

  • check_executable_bc

  • check_executable_ksh

  • check_filesystem_program_space

  • check_filesystem_program_storage

  • check_filesystem_sizes

  • check_gcc_version

  • check_group_dba

  • check_group_oinstall

  • check_mirrored_sw_disks

  • check_mount_options

  • check_network_interfaces_rac

  • check_oracle_user

  • check_oracle_user_groups

  • check_os_64bit

  • check_oracle_user_home

  • check_os_cluster_patches

  • check_os_patches

  • check_os_version

  • check_packages_rac

  • check_physical_memory

  • check_swap_space

  • check_swap_space_avail

  • check_volmgr_installed

Using the rac Parameter with the postinstall Parameter

The following items are checked when using the rac parameter and the postinstall parameter:

  • check_executable_oracle

  • check_install_log

  • check_sqlplus_login

Using the rac Parameter with the preconfig Parameter

The following items are checked when using the rac parameter and the preconfig parameter:

  • check_cpu_count

  • check_cpu_speed

  • check_cpu_power

  • check_clusterware_installed

  • check_clusterware_running

  • check_executable_bc

  • check_executable_ksh

  • check_executable_oracle

  • check_external_storage

  • check_gcc_version

  • check_group_dba

  • check_group_oinstall

  • check_install_log

  • check_mirrored_sw_disks

  • check_mount_options

  • check_network_interfaces_rac

  • check_oracle_user

  • check_oracle_user_groups

  • check_os_64bit

  • check_oracle_user_home

  • check_os_cluster_patches

  • check_os_patches

  • check_os_version

  • check_packages_rac

  • check_physical_memory

  • check_private_network

  • check_public_network

  • check_remote_rsh_oracle

  • check_remote_rsh_root

  • check_remote_time

  • check_shared_memory

  • check_shared_storage_files

  • check_sqlplus_login

  • check_swap_space

  • check_swap_space_avail

  • check_volmgr_installed

Using the rac Parameter with the postconfig Parameter

The following items are checked when using the rac parameter and the postconfig parameter:

  • check_active_instance

  • check_gsd_running

  • check_httpd

  • check_listener_running

  • check_oracle_home

  • check_snmp_agent

  • check_sqlplus_connect

  • check_tnsping

Using the rac Parameter with the preimage Parameter

The following items are checked when using the rac parameter and the preimage parameter:

  • check_clusterware_installed

  • check_clusterware_running

  • check_cpu_speed

  • check_cpu_count

  • check_cpu_power

  • check_executable_bc

  • check_executable_ksh

  • check_external_storage

  • check_filesystem_program_space

  • check_filesystem_program_storage

  • check_filesystem_sizes

  • check_gcc_version

  • check_group_dba

  • check_group_oinstall

  • check_mirrored_sw_disks

  • check_mount_options

  • check_network_interfaces_rac

  • check_oracle_user

  • check_oracle_user_groups

  • check_oracle_user_home

  • check_os_64bit

  • check_os_cluster_patches

  • check_os_patches

  • check_os_version

  • check_packages_rac

  • check_physical_memory

  • check_public_network

  • check_private_network

  • check_remote_rsh_root

  • check_remote_time

  • check_shared_storage_files

  • check_swap_space

  • check_swap_space_avail

  • check_volmgr_installed

Using the rac Parameter with the postimage Parameter

The following items are checked when using the rac parameter and the postimage parameter:

  • check_executable_oracle

  • check_install_log

  • check_sqlplus_login

Using the rac Parameter with the reconfig Parameter

The following items are checked when using the rac parameter and the reconfig parameter:

  • check_clusterware_installed

  • check_clusterware_running

  • check_cm_running

  • check_cpu_count

  • check_cpu_power

  • check_cpu_speed

  • check_executable_bc

  • check_executable_ksh

  • check_executable_oracle

  • check_gcc_version

  • check_group_dba

  • check_group_oinstall

  • check_install_log

  • check_mirrored_sw_disks

  • check_mount_options

  • check_network_interfaces-rac

  • check_oracle_user

  • check_oracle_user_groups

  • check_oracle_user_home

  • check_os_64bit

  • check_os_cluster_patches

  • check_os_patches

  • check_os_version

  • check_packages_rac

  • check_physical_memory

  • check_private_network

  • check_public_network

  • check_remote_rsh_oracle

  • check_shared_memory

  • check_sqlplus_login

  • check_swap_space

  • check_swap_space_avail

  • check_volmgr_installed

Using the rac Parameter with the system Parameter

The following items are checked when using the rac parameter and the system parameter:

  • check_cpu_count

  • check_cpu_power

  • check_cpu_speed

  • check_executable_bc

  • check_executable_ksh

  • check_filesystem_sizes

  • check_gcc_version

  • check_mirrored_sw_disks

  • check_network_interfaces-rac

  • check_os_64bit

  • check_os_patches

  • check_os_cluster_patches

  • check_os_version

  • check_physical_memory

  • check_swap_space

  • check_swap_space_avail

Using the rac Parameter with the all Parameter

The all parameter causes all checks listed in the ocheck.chk file to be run for the product.

Program Output

The ocheck report output is printed to the screen. To print the output to a file, use the -o option. The output consists of a header, body, and footer. Informational messages about the progress of the program and errors may be printed to standard output.

Report Header

The report header contains the following:

  • Version of ocheck tool

  • Time the report was generated

  • Name of the system, and the name of the database being examined

  • Product and phase being checked

  • Report body column headings

The following is an example of a report header:

ocheck 3.7b (library C313b/S37)      10-Mar-2003 11:44:04 PST
system: systhost1 (ORCL)             RDBMS "system" check
Check                          Value             Expected                 Status

Report Body

The report body consists of the section header lines and the check output lines. The section header lines consist of descriptive text used to categorize groups of checks. The check output lines consists of one line of formatted output, and an optional line of text with additional information or an explanation of an error.

The following is an example of a report body:

Operating System and Software Configuration
Filesystem size: /dgold/oradata    0 MB         >= 8192 MB           fail
-- directory "/dgold/oradata" does not exist

In the preceding example, the first column, Filesystem size: /data, contains the name of the check and describes what was examined by the check. The second column, 0 MB, contains the current value or state of the checked item. The third column, 8192 MB, specifies the expected value or state that would make the check successful. It is preceded by a logical operator, such as ==, <=, or =, that indicates how the value in the second column compares with the value in the third column. The fourth column indicates the status of the check. The status is either pass or fail. An optional warn status is not used currently. The optional line of additional information is always preceded by two hyphens, and explains the check status.

Report Footer

The report footer is one printed line to show the user that the ocheck tool completed, and the report has not been truncated by the system. The following is an example of the report footer:

End of Report

See Also:

For output examples from the ocheck tool, refer to Appendix B, " Sample Output Files"

Standalone Validation

The ocheck tool checks the hardware, software and operating system for compatibility with Oracle9i Database Certified Configuration. The tool uses several files which all begin with ocheck. These files must be located in the same directory as the main program. If the script succeeds, then the system can run an Oracle9i Database Certified Configuration. If the script halts, then the system cannot run the certified configuration. Check the log, correct any problems, and rerun the script.

The following tasks describe how to run the ocheck tool:

  1. Log in to the system.

  2. Run the script using one of the following commands:

    • To run the script without capturing the data:

      /admin/dbcc/3.1.0/ref_config/ocheck/ocheck [-single|-rac] -system
      
      
    • To run the script and capture the data:

      /admin/dbcc/3.1.0/ref_config/ocheck/ocheck [-single|-rac] -system -o /var/tmp/ocheck.system.log