<sdp_diaglet platform="linux" product="DB10R2" set="A200DB10R2_lnx" title="Oracle Database 10g R2 (10.2.0) PreInstall (Linux-x86)" type="A">
<sdp_meta id="$Id: A200DB10R2_lnx.xml,v 1.7 2009/08/18 16:15:07 mschenke Exp $" type="version"/>
<sdp_meta author="KRA" change="Remove TCP_RMEM and TCP_WMEM kernel checks" type="history"/>
<sdp_content set="A200DB10R2_lnx" title="Oracle Database 10g R2 (10.2.0) PreInstall (Linux-x86)" type="check">
<sdp_group>
<sdp_rule id="A00010" mode="VERIFY" name="OS Certified?">
<sdp_command type="RDA"><![CDATA[import $OS_NAM,$OS_TYP
call setHcveResult(check($OS_TYP,\
  'Asianux',check(lc($OS_NAM),\
    'quartet',  'Adequate',\
    'trinity',  cmp_kernel('Asianux 2.0','2.6.9'),\
    'koumei',   cmp_kernel('Asianux 1.0','2.4.21'),\
                'Not certified [Asianux version]'),\
  'Enterprise', 'Adequate',\
  'Red Hat',check(lc($OS_NAM),\
    'tikanga',  'Adequate',\
    'nahant',   cmp_kernel('RH EL4','2.6.9-5'),\
    'taroon',   cmp_kernel('RH EL3','2.4.21-27'),\
    'pensacola',cmp_kernel('RH AS2.1'),\
    'derry',    cmp_kernel('RH AS2.1-ia64'),\
    'destin',   cmp_kernel('RH ASDE2.1'),\
    'panama',   cmp_kernel('RH ES2.1'),\
    'shrike',   cmp_kernel('RH 9.0'),\
    'psyche',   cmp_kernel('RH 8.0'),\
    'valhalla', cmp_kernel('RH 7.3'),\
    'enigma',   cmp_kernel('RH 7.2'),\
    'seawolf',  cmp_kernel('RH 7.1'),\
    'guinness', cmp_kernel('RH 7.0'),\
    'zoot',     cmp_kernel('RH 6.2'),\
                'Not certified [Red Hat version]'),\
  'SuSE',check($OS_NAM,\
    'SLES-8',cmp_kernel('SUSE 8'),\
    'SLES-9',cmp_kernel('SUSE 9','2.6.5-7.97'),\
    'SLES-10','Adequate',\
             'Not certified [Suse version]'),\
  'Not certified [OS]'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks for the correct version of Linux required for installing Oracle Database 10g.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Adequate" result="PASSED"><![CDATA[The correct version of Linux is installed on your server.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[!!SHOWSTOPPER!!
You do not have the correct version of Linux installed on your server. For the certified versions of Linux, see the ''Oracle Database Installation Guide 10g Release 2 (10.2) for Linux x86'' and My Oracle Support.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00020" mode="VERIFY" name="User in /etc/passwd?">
<sdp_command type="RDA"><![CDATA[call setHcveResult(cond(\
  not(testFile('r','/etc/passwd')),\
    'Can not read /etc/passwd',\
  grepFile('/etc/passwd',\
           concat('^',assign($usr,command('/usr/bin/id -nu')),':'),\
           'f'),\
    'userOK',\
    concat($usr,' not in /etc/passwd.')))
]]></sdp_command>
<sdp_description><![CDATA[This rule verifies that the user name of the user who runs this script is found in the /etc/passwd file.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="userOK" result="PASSED"><![CDATA[The /etc/passwd file contains the user. No action is required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[The /etc/passwd file does not contain the user or else the file has no read permission. Add the user to the /etc/passwd file if the user does not exist in the file.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00030" mode="VERIFY" name="Group in /etc/group?">
<sdp_command type="RDA"><![CDATA[call setHcveResult(cond(\
  not(testFile('r','/etc/group')),\
    'Can not read /etc/group',\
  grepFile('/etc/group',concat('^',command('/usr/bin/id -ng'),':'),'f'),\
    'GroupOK',\
    'Group not in /etc/group'))
]]></sdp_command>
<sdp_description><![CDATA[This rule verifies that the group to which the user belongs exists in the /etc/group file.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="GroupOK" result="PASSED"><![CDATA[The /etc/group file contains the group of the user. No action required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[ALERT:
The /etc/group file does not contain the group. Add the group to the /etc/group file.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00040" mode="RECORD" name="Input ORACLE_HOME">
<sdp_command default="$ORACLE_HOME" type="PROMPT" variable="$ORACLE_HOME"><![CDATA[Planned ORACLE_HOME location]]></sdp_command>
<sdp_description><![CDATA[Variable to store ORACLE_HOME entered during the execution.]]></sdp_description>
</sdp_rule>
<sdp_rule id="A00050" mode="VERIFY" name="ORACLE_HOME Valid?">
<sdp_dependencies>
<sdp_dependency condition="IS" id="A00040" minimum="PASSED|RECORD" result="FAILED"><![CDATA[Requires rule 40.]]></sdp_dependency>
</sdp_dependencies>
<sdp_command type="RDA"><![CDATA[import $ORACLE_HOME
call setHcveResult(cond(\
  not(defined($ORACLE_HOME)),    'OHNotSpecified',\
  not(testDir('d',$ORACLE_HOME)),'OHnotvalid',\
  not(testDir('l',$ORACLE_HOME)),'OHexists',\
                                 'OHsymlink'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks for the Oracle home directory.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="OHexists|OHsymlink|OHNotSpecified" result="PASSED"><![CDATA[The Oracle home directory exists. No action required]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[ALERT:
There is something wrong with the Oracle home. Verify the following:
|*Return Value*|*Action*|
|OHnotvalid|Ensure that you provided the correct location or that the directory is created and then run this script again|
|OHsymlink|ORACLE_HOME is a symbolic link|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00060" mode="VERIFY" name="O_H Permissions OK?">
<sdp_dependencies>
<sdp_dependency condition="IS" id="A00040" minimum="PASSED|RECORD" result="FAILED"><![CDATA[Requires rule 40.]]></sdp_dependency>
</sdp_dependencies>
<sdp_command type="RDA"><![CDATA[import $ORACLE_HOME
call setHcveResult(cond(\
  not(defined($ORACLE_HOME)),    'OHNotSpecified',\
  not(testDir('d',$ORACLE_HOME)),'OHNotExist',\
  not(testDir('r',$ORACLE_HOME)),'NoReadPerm',\
  not(testDir('w',$ORACLE_HOME)),'NoWritePerm',\
  not(testDir('x',$ORACLE_HOME)),'NoExecutePerm',\
                                 'CorrectPerms'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks that the user has the correct privileges to install Oracle Database 10g in the Oracle home directory.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="CorrectPerms|OHNotSpecified" result="PASSED"><![CDATA[The permissions for the Oracle home directory are correct. No action required.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|NoReadPerm|Ensure that the install user has read permission for the Oracle home directory|
|NoWritePerm|Ensure that the install user has write permission for the Oracle home directory|
|NoExecutePerm|Ensure that the install user has execute permission for the Oracle home directory|
|OHNotExist|The Oracle home directory does not exist. Create the ORACLE_HOME mount point and ensure that the permissions are set correctly (chmod 755)|
|OHNotSpecified|RDA cannot verify the Oracle home directory because the ORACLE_HOME is not specified|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00070" mode="VERIFY" name="Umask Set to 022?">
<sdp_command type="RDA"><![CDATA[call setHcveResult(cond(\
  expr('==','022',command('"umask"')),'UmaskOK','UmaskNotOK')) # Force shell
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the umask value is set correctly for installing Oracle Database 10g.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="UmaskOK" result="PASSED"><![CDATA[The umask value is set correctly for installing Oracle Database 10g. No action required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[The umask value is not set correctly. Set the umask to 022 before installing Oracle Database 10g.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00080" mode="VERIFY" name="LDLIBRARYPATH Unset?">
<sdp_command type="RDA"><![CDATA[call setHcveResult(cond(\
  defined(getEnv('LD_LIBRARY_PATH')),'IsSet','UnSet'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks that the LD_LIBRARY_PATH environment variable is not set.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" minimum="UnSet" result="PASSED"><![CDATA[The LD_LIBRARY_PATH environment variable is not set. No action required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[The LD_LIBRARY_PATH environment variable is set in your environment and must be unset before installing Oracle Database 10g.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00100" mode="VERIFY" name="Other O_Hs in PATH?">
<sdp_command type="RDA"><![CDATA[var @pth = split(':',getEnv('PATH'))
loop $lin (grepFile(catFile('/etc','oratab'),'#|^$','v'))
{var $pat = concat('^',quote(replace(field(':',1,$lin),'\/+$')),'(\/.*)?$')
 if grep(@pth,$pat)
  return setHcveResult('OratabEntryInPath')
}
call setHcveResult('NoneFound')
]]></sdp_command>
<sdp_description><![CDATA[This rule checks to ensure that the PATH variable does not contain any references to other Oracle home directories based on the /etc/oratab entries.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="NoneFound" result="PASSED"><![CDATA[The PATH does not contain any of the Oracle homes found in the /etc/oratab file. No action required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[The PATH variable contains one or more references to the Oracle homes found in the /etc/oratab file. Remove these references for the PATH variable before installing Oracle Database 10g.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00110" mode="VERIFY" name="oraInventory Permissions">
<sdp_command type="RDA"><![CDATA[call setHcveResult(cond(\
  not(testFile('f','/etc/oraInst.loc')),\
    'oraInventoryNotFound',\
  not(testFile('wr',assign($INV_LOC,\
    value(grepFile('/etc/oraInst.loc','^inventory_loc','f'))))),\
    'oraInventoryNotOK',\
    'oraInventoryOK'))
call setHcveVariable('$INV_LOC')
]]></sdp_command>
<sdp_description><![CDATA[This rule verifies that the user who is installing Oracle Database 10g has sufficient privileges for the oraInventory directory.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="oraInventoryOK|oraInventoryNotFound" result="PASSED"><![CDATA[The user who is currently logged in either has sufficient privileges for the oraInventory directory to install Oracle Database 10g or this is the first Oracle product to be installed on the system in which case the installer creates the oraInventory directory. No action required.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[The user who is currently logged in to install Oracle Database 10g cannot access (write and read) oraInventory. Verify that the user can write to the directory specified in the /etc/oraInst.loc file.
|*Return Value*|*Action*|
|oraInventoryNotOK|Make sure the install user has write permission to ${INV_LOC}|
|oraInventoryNotFound|The /etc/oraInst.loc file was not found.  This is not a problem if this is the first Oracle installation on the system.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00120" mode="VERIFY" name="/tmp Adequate?">
<sdp_command type="RDA"><![CDATA[var @tbl = ()
macro check_tmp
{var (\@tbl,$dir,$siz,$nam) = @arg
 if !testDir('d',$dir)
 {var @tbl = (@tbl,'invalidDir')
  return
 }
 if expr('<',expr('/',get_df($dir),1024),$siz)
  var @tbl = (@tbl,concat($nam,'TooSmall'))
 elsif !testDir('w',$dir)
  var @tbl = (@tbl,concat($nam,'NoWrite'))
}
var $TEMP = nvl(getEnv('TEMP'),getEnv('TMP'),'/tmp')
var $TMPDIR = getEnv('TMPDIR','/var/tmp')
call setHcveVariable('$TEMP','$TMPDIR')
call check_tmp(\@tbl,$TEMP,400,'Temp')
call check_tmp(\@tbl,$TMPDIR,200,'TMPDIR')
call setHcveResult(cond(scalar(@tbl),join("\012",@tbl),'TempSpaceOK'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks for sufficient space available to store temporary files during the Oracle Database 10g installation.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="TempSpaceOK" result="PASSED"><![CDATA[There is sufficient temporary disk space available for installing Oracle Database 10g. No action required.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[The temp space is not configured correctly.
|*Return Value*|*Action*|
|TempTooSmall|ALERT- Your temporary space ${TEMP} has less than the required 400 MB free space. Make sure your temporary space has at least 400 MB of free space.|
|TempNoWrite|ALERT- Your temporary space ${TEMP} does not have write permissions for this user.|
|TMPDIRTooSmall|ALERT- ${TMPDIR} has less than the required 200 MB. Point the TMPDIR environment variable to a mount point with at least 200 MB of free space.|
|TMPDIRNoWrite|ALERT- TMPDIR is set in the environment; however, ${TMPDIR} does not have write permissions for this user.|
|invalidDir|ALERT- $TEMP or $TMPDIR are set in the environment with an invalid directory.|
FYI: The runInstaller (OUI) uses or checks for temporary space by checking for the TEMP environment variable first, then the TMP environment variable, and lastly the actual '/tmp' mount point.
%BR%The operating system also requires additional space by creating files under /tmp or using the TMPDIR environment variable if it finds it.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00130" mode="RECORD" name="Swap (in MB)">
<sdp_command type="RDA"><![CDATA[if !testFile('x','/usr/bin/free')
 return setHcveResult('SWAPNotDetermined')
var $swp = field('\s+',1,grepCommand('/usr/bin/free -mt','Swap','f'))
call setHcveResult(cond(isNumber($swp),$swp,'SWAPNotSet'))
]]></sdp_command>
<sdp_description><![CDATA[This rule shows the amount of free swap space.]]></sdp_description>
</sdp_rule>
<sdp_rule id="A00140" mode="VERIFY" name="RAM (in MB)">
<sdp_command type="RDA"><![CDATA[call setHcveResult(nvl(\
  field('\s+',1,grepCommand('/usr/bin/free -m','Mem','f')),\
  0))
]]></sdp_command>
<sdp_description><![CDATA[This rule verifies that your system has sufficient physical memory installed to install Oracle Database 10g.]]></sdp_description>
<sdp_actions>
<sdp_action condition=">" minimum="1023" result="PASSED"><![CDATA[You have sufficient physical memory installed to install Oracle Database 10g. No action required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[ALERT:
The amount of physical memory in your system is not sufficient to install Oracle Database 10g.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00150" mode="VERIFY" name="Swap OK?">
<sdp_dependencies>
<sdp_dependency condition="IS" id="A00130" minimum="PASSED|RECORD" result="FAILED"><![CDATA[Requires rule 130.]]></sdp_dependency>
<sdp_dependency condition="IS" id="A00140" minimum="PASSED|RECORD" result="FAILED"><![CDATA[Requires rule 140.]]></sdp_dependency>
</sdp_dependencies>
<sdp_command type="RDA"><![CDATA[var $swp = "%A00130%"
var $mem = "%A00140%"
call setHcveResult(cond(\
  not(isNumber($swp)),                      'SwapNotDetermined',\
  expr('<',$swp,1610),                      'InsufficientSwap',\
  not(expr('>',$mem,0)),                    'MemNotDetermined',\
  and(expr('>',$mem,1024),expr('<',$mem,2048)),\
    cond(expr('<',$swp,expr('*',$mem,1.5)), 'SwapLessThanRAM','SwapToRAMOK'),\
  and(expr('>',$mem,2049),expr('<',$mem,8192)),\
    cond(expr('<',$swp,$mem),               'SwapLessThanRAM','SwapToRAMOK'),\
  expr('>',$mem,8192),\
    cond(expr('<',$swp,expr('*',$mem,0.75)),'SwapLessThanRAM','SwapToRAMOK'),\
                                            'SwapToRAMOK'))
]]></sdp_command>
<sdp_description><![CDATA[This rule verifies that the total amount of swap space is greater than or equal to the amount recommended by the ''Oracle Database Installation Guide 10g Release 2 (10.2) for Linux x86''.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="SwapToRAMOK" result="PASSED"><![CDATA[The amount of swap space meets the minimum requirements for installing Oracle Database 10g. No action required.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[The amount of swap space is less than the amount recommended by the ''Oracle Database Installation Guide 10g Release 2 (10.2) for Linux x86''. Verify the requirements and adjust your system accordingly.
|*Return Value*|*Action*|
|SwapNotDetermined|ALERT- A Swap to Memory ratio cannot be determined because swap is not set up or you do not have execute permission to determine swap|
|SwapLessThanRAM|Alert - Review Knowledge Article:160706.1 for correct ratio of Swap to Ram|
|InsufficientSwap|ALERT- Oracle Database 10g requires at least 1.6 GB of swap space|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00160" mode="VERIFY" name="Disk Space OK?">
<sdp_dependencies>
<sdp_dependency condition="IS" id="A00040" minimum="PASSED|RECORD" result="FAILED"><![CDATA[Requires rule 40.]]></sdp_dependency>
</sdp_dependencies>
<sdp_command type="RDA"><![CDATA[import $ORACLE_HOME
call setHcveVariable('$ORACLE_HOME')
if !length($ORACLE_HOME)
 return setHcveResult('OHNotSpecified')
if !testDir('d',$ORACLE_HOME)
 return setHcveResult('OHNotValid')
var $dsk = expr('/',get_df($ORACLE_HOME),1024)
call setHcveResult(cond(expr('>=',$dsk,2700), 'DiskSpaceOK',\
                        expr('>=',$dsk,1500), 'OnlySpaceForOne',\
                        expr('>=',$dsk,1000), 'ClientOnly',\
                                              'NoSpace'))
]]></sdp_command>
<sdp_description><![CDATA[This rules verifies that the amount of disk space in the Oracle home directory is sufficient for installing Oracle Database 10g.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="DiskSpaceOK|OHNotSpecified" result="PASSED"><![CDATA[ORACLE_HOME has sufficient disk space to install Oracle Database software, create a database, and install Companionion CD products. No action required.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[ORACLE_HOME has insufficient disk space for installing any type of Oracle Database 10g architecture. Verify the specifications.
|*Return Value*|*Action*|
|OnlySpaceForOne|``${ORACLE_HOME}`` has sufficient free disk space to install the Oracle Database 10g software but not enough to create a database.|
|ClientOnly|``${ORACLE_HOME}`` has sufficient free disk space to do a client installation only.|
|NoSpace|``${ORACLE_HOME}`` has insufficient free disk space for an Oracle Database 10g installation.|
|OHNotValid|Disk space calculations cannot be performed since ``${ORACLE_HOME}`` is not a valid directory|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00170" mode="VERIFY" name="Kernel Parameters OK?">
<sdp_dependencies>
<sdp_dependency condition="IS" id="A00140" minimum="PASSED|RECORD" result="FAILED"><![CDATA[Requires rule 140.]]></sdp_dependency>
</sdp_dependencies>
<sdp_command type="RDA"><![CDATA[var @tbl = ()
import $OS_BIT
var $SHMMAXREQD     = expr('*',%A00140%,524288)
if expr('==',$OS_BIT,32)
 var $SHMMAXREQD    = min(4294967295,$SHMMAXREQD)
var $SHMMNIREQD     = 4096
var $SHMALLREQD     = 2097152
var $SEMMNIREQD     = 128
var $SEMMSLREQD     = 250
var $SEMMNSREQD     = 32000
var $SEMOPMREQD     = 100
var $FILEMAXREQD    = 65536
var $RMEMORWMEMREQD = 262144
call setHcveVariable('$SHMMAXREQD','$SHMMNIREQD','$SHMALLREQD','$SEMMNIREQD',\
                     '$SEMMSLREQD','$SEMMNSREQD','$SEMOPMREQD','$FILEMAXREQD',\
                     '$RMEMORWMEMREQD')
macro chk_minimum
{var (\@tbl,$nam,$max,$val) = @arg
 if !defined($val)
 {var @tbl = (@tbl,concat($nam,'Undef'))
  return
 }
 if expr('<',$val,$max)
  var @tbl = (@tbl,concat($nam,'TooSmall'))
}
call chk_minimum(\@tbl,'SHMMAX',$SHMMAXREQD,\
                 grepFile('/proc/sys/kernel/shmmax','.','f'))
call chk_minimum(\@tbl,'SHMMNI',$SHMMNIREQD,\
                 grepFile('/proc/sys/kernel/shmmni','.','f'))
call chk_minimum(\@tbl,'SHMALL',$SHMALLREQD,\
                 grepFile('/proc/sys/kernel/shmall','.','f'))
var ($lin) = grepFile('/proc/sys/kernel/sem','.','f')
var ($msl,$mns,$opm,$mni) = split('\s+',$lin,4)
call chk_minimum(\@tbl,'SEMMNI',$SEMMNIREQD,$mni)
call chk_minimum(\@tbl,'SEMMSL',$SEMMSLREQD,$msl)
call chk_minimum(\@tbl,'SEMMNS',$SEMMNSREQD,$mns)
call chk_minimum(\@tbl,'SEMOPM',$SEMOPMREQD,$opm)
call chk_minimum(\@tbl,'FILEMAX',$FILEMAXREQD,\
                 grepFile('/proc/sys/fs/file-max','.','f'))
call chk_minimum(\@tbl,'RMEM_DEFAULT',$RMEMORWMEMREQD,\
      value(grepCommand('/sbin/sysctl -a','net.core.rmem_default\s*=','f')))
call chk_minimum(\@tbl,'RMEM_MAX',$RMEMORWMEMREQD,\
      value(grepCommand('/sbin/sysctl -a','net.core.rmem_max\s*=','f')))
call chk_minimum(\@tbl,'WMEM_DEFAULT',$RMEMORWMEMREQD,\
      value(grepCommand('/sbin/sysctl -a','net.core.wmem_default\s*=','f')))
call chk_minimum(\@tbl,'WMEM_MAX',$RMEMORWMEMREQD,\
      value(grepCommand('/sbin/sysctl -a','net.core.wmem_max\s*=','f')))
call setHcveResult(cond(scalar(@tbl),join("\012",@tbl),'KernelOK'))
]]></sdp_command>
<sdp_description><![CDATA[This rule verifies that the kernel parameters are set according to the ''Oracle Database Installation Guide 10g Release 2 (10.2) for Linux x86''.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="KernelOK" result="PASSED"><![CDATA[The kernel parameters are set according to the ''Oracle Database Installation Guide 10g Release 2 (10.2) for Linux x86''. No action required.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[The kernel parameters are not set according to the ''Oracle Database Installation Guide 10g Release 2 (10.2) for Linux x86''. See the ''Oracle Database Installation Guide 10g Release 2 (10.2) for Linux x86''.
|*Return Value*|*Action*|
|SHMMAXUndef|SHMMAX has not been defined and must be set to ${SHMMAXREQD}|
|SHMMAXTooSmall|Increase the kernel parameter SHMMAX to ${SHMMAXREQD}. The maximum value is limited to 4GB on 32 bit Linux versions|
|SHMMNIUndef|SHMMNI has not been defined and must be set to ${SHMMNIREQD} or more|
|SHMMNITooSmall|Increase the kernel parameter SHMMNI to at least ${SHMMNIREQD}|
|SHMALLUndef|SHMALL has not been defined and must be set to ${SHMALLREQD} or more|
|SHMALLTooSmall|Increase the kernel parameter SHMALL to at least ${SHMALLREQD}|
|SEMMNIUndef|SEMMNI has not been defined and must be set to ${SEMMNIREQD}|
|SEMMNITooSmall|Increase the kernel parameter SEMMNI to at least ${SEMMNIREQD}|
|SEMMSLUndef|SEMMSL has not been defined and must be set to ${SEMMSLREQD}|
|SEMMSLTooSmall|Increase the kernel parameter SEMMSL to at least ${SEMMSLREQD}|
|SEMMNSUndef|SEMMNS has not been defined and must be set to ${SEMMNSREQD}|
|SEMMNSTooSmall|Increase the kernel parameter SEMMNS to at least ${SEMMNSREQD}|
|SEMOPMUndef|SEMOPM has not been defined and must be set to ${SEMOPMREQD}|
|SEMOPMTooSmall|Increase the kernel parameter SEMOPM to at least ${SEMOPMREQD}|
|FILEMAXUndef|FILE-MAX has not been defined and must be set to ${FILEMAXREQD}|
|FILEMAXTooSmall|Increase the kernel parameter FILE-MAX to at least ${FILEMAXREQD}|
|RMEM_DEFAULTTooSmall|Increase the kernel parameter RMEM_DEFAULT to at least ${RMEMORWMEMREQD}|
|RMEM_DEFAULTUndef|RMEM_DEFAULT has not been defined and must be set to ${RMEMORWMEMREQD}|
|RMEM_MAXTooSmall|Increase the kernel parameter RMEM_MAX to at least ${RMEMORWMEMREQD}|
|RMEM_MAXUndef|RMEM_MAX has not been defined and must be set to ${RMEMORWMEMREQD}|
|WMEM_DEFAULTTooSmall|Increase the kernel parameter WMEM_DEFAULT to at least ${RMEMORWMEMREQD}|
|WMEM_DEFAULTUndef|WMEM_DEFAULT has not been defined and must be set to ${RMEMORWMEMREQD}|
|WMEM_MAXTooSmall|Increase the kernel parameter WMEM_MAX to at least ${RMEMORWMEMREQD}|
|WMEM_MAXUndef|WMEM_MAX has not been defined and must be set to ${RMEMORWMEMREQD}|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00180" mode="VERIFY" name="Got ld,nm,ar,make?">
<sdp_command type="RDA"><![CDATA[var @tbl = ()
macro find_exe
{var (\@tbl,$exe,$ref) = @arg
 var $cmd = findCommand($exe)
 if $cmd
 {if testFile('l',$cmd)
  {var ($lin) = command(concat('/bin/ls -l ',$cmd))
   var $cmd = field('\*',0,field('\s+',10,$lin))
  }
  if !compare('eq',$cmd,$ref)
   var @tbl = (@tbl,concat(ucfirst($exe),'NotFound'))
 }
 else
  var @tbl = (@tbl,concat(ucfirst($exe),'NotFound'))
}
call find_exe(\@tbl,'ar','/usr/bin/ar')
call find_exe(\@tbl,'ld','/usr/bin/ld')
call find_exe(\@tbl,'nm','/usr/bin/nm')
call find_exe(\@tbl,'make','/usr/bin/make')
call setHcveResult(cond(scalar(@tbl),join("\012",@tbl),'ld_nm_ar_make_found'))
]]></sdp_command>
<sdp_description><![CDATA[This rule verifies that the required assembly tools for the installation of Oracle Database 10g exist.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="ld_nm_ar_make_found" result="PASSED"><![CDATA[All required assembly tools for the installation of Oracle Database 10g were found. No action required.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[Some of the required assembly tools for the Oracle Database 10g installation were not found. Check your installation.
|*Return Value*|*Action*|
|ArNotFound|ar either is not found in PATH or not in /usr/bin as required|
|LdNotFound|ld either is not found in PATH or not in /usr/bin as required|
|NmNotFound|nm either is not found in PATH or not in /usr/bin as required|
|MakeNotFound|make either is not found in PATH or not in /usr/bin as required|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00190" mode="VERIFY" name="ulimits OK?">
<sdp_command type="RDA"><![CDATA[var @tbl =()
macro get_ulimit_unl
{var (\@tbl,$nam,$pat) = @arg
 var ($lin) = grepLastFile(concat('^',$pat),'if')
 var ($lmt) = match($lin,'\s(\S+)\s*$')
 if !defined($lmt)
  var @tbl = (@tbl,concat($nam,'NotDefined'))
 elsif compare('ne',$lmt,'unlimited')
  var @tbl = (@tbl,concat($nam,'TooSmall'))
}
macro get_ulimit_val
{var (\@tbl,$nam,$pat,$ref) = @arg
 var ($lin) = grepLastFile(concat('^',$pat),'if')
 var ($lmt) = match($lin,'\s(\S+)\s*$')
 if !length($lmt)
  var @tbl = (@tbl,concat($nam,'NotDefined'))
 elsif and(compare('ne',$lmt,'unlimited'),expr('<',$lmt,$ref))
  var @tbl = (@tbl,concat($nam,'TooSmall'))
}
call loadCommand('ulimit "-a"') # Force shell
call get_ulimit_unl(\@tbl,'Time','cpu')
call get_ulimit_unl(\@tbl,'File','file')
call get_ulimit_val(\@tbl,'Data','data',1048576)
call get_ulimit_val(\@tbl,'Stack','stack',32768)
call get_ulimit_val(\@tbl,'NoFiles','open',65536)
call get_ulimit_val(\@tbl,'Memory','max memory',2045680)
call get_ulimit_val(\@tbl,'Maxuproc','max user',16384)
call get_ulimit_val(\@tbl,'Vmemory','virtual',4194304)
call get_ulimit_val(\@tbl,'MaxLockMem','max locked',3145728)
call setHcveResult(cond(scalar(@tbl),join("\012",@tbl),'ulimitOK'))
]]></sdp_command>
<sdp_description><![CDATA[This rule verifies that the ulimit settings are adequate for installing Oracle Database 10g.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="ulimitOK" result="PASSED"><![CDATA[The ulimit settings are adequate for installing Oracle Database 10g. No action required.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[Review the ulimit settings and check the recommended values from the ''Oracle Database Installation Guide 10g Release 2 (10.2) for Linux x86'' before installing the software.
|*Return Value*|*Action*|
|TimeNotDefined|ulimit(TIME) has not been defined|
|TimeTooSmall|Increase the ulimit(TIME) to unlimited|
|FileNotDefined|ulimit(FILE) has not been defined|
|FileTooSmall|Increase the ulimit(FILE) to unlimited|
|DataNotDefined|ulimit(DATA) has not been defined|
|DataTooSmall|Increase the ulimit(DATA) to a minimum of 1048576|
|StackNotDefined|ulimit(STACK) has not been defined|
|StackTooSmall|Increase the ulimit(STACK) to a minimum of 32768|
|NoFilesNotDefined|ulimit(NOFILES) has not been defined|
|NoFilesTooSmall|Increase the ulimit(NOFILES) to a minimum of 4096|
|MaxuprocNotDefined|ulimit(MAXUPROC) has not been defined|
|MaxuprocTooSmall|Increase the ulimit(MAXUPROC) to a minimum of 16384|
|MemNotDefined|ulimit(MEMORY) has not been defined|
|MemTooSmall|Increase the ulimit(MEMORY) to a minimum of 2045680|
|VmemoryNotDefined|ulimit(VMEMORY) has not been defined|
|VmemoryTooSmall|Increase the ulimit(VMEMORY) to a minimum of 4194304|
|MaxLockMemNotDefined|ulimit(MAXLOCKMEM) has not been defined|
|MaxLockMemTooSmall|Note: This applies for Red Hat Enterprise Linux 3 when using VLM only%BR% Increase the ulimit(MAXLOCKMEM) to a minimum of 3145728|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00200" mode="VERIFY" name="EL4 RPMs OK?">
<sdp_command type="RDA"><![CDATA[import $OS_NAM,$OS_TYP
if !match($OS_TYP,'Enterprise')
 call setHcveResult('NotEnterprise')
elsif !match($OS_NAM,'october',true)
 call setHcveResult('NotEL4')
else
{var @tbl = ()
 call cmp_os_pkg(\@tbl,'binutils','2.15.92.0.2.10/EL4')
 call cmp_os_pkg(\@tbl,'compat-db','4.1.25.9')
 call cmp_os_pkg(\@tbl,'compat-libstdc++-296','2.96.132.7.2','i386')
 call cmp_os_pkg(\@tbl,'compat-libstdc++-33','3.2.3.47.3','i386')
 call cmp_os_pkg(\@tbl,'control-center','2.8.0.12')
 call cmp_os_pkg(\@tbl,'gcc','3.4.3.9/EL4')
 call cmp_os_pkg(\@tbl,'gcc-c++','3.4.3.9/EL4')
 call cmp_os_pkg(\@tbl,'glibc','2.3.4.2')
 call cmp_os_pkg(\@tbl,'glibc-common','2.3.4.2')
 call cmp_os_pkg(\@tbl,'gnome-libs','1.4.1.2.90.44.1')
 call cmp_os_pkg(\@tbl,'libaio','0.3.96.0')
 call cmp_os_pkg(\@tbl,'libstdc++','3.4.3.9/EL4')
 call cmp_os_pkg(\@tbl,'libstdc++-devel','3.4.3.9/EL4')
 call cmp_os_pkg(\@tbl,'make','3.80.5')
 call cmp_os_pkg(\@tbl,'openmotif21','2.1.30.11/RHEL4')
 call cmp_os_pkg(\@tbl,'pdksh','5.2.14.30')
 call cmp_os_pkg(\@tbl,'sysstat','5.0.5.1')
 call cmp_os_pkg(\@tbl,'xscreensaver','4.18.5/rhel4')
 call setHcveResult(cond(scalar(@tbl),join("\012",@tbl),'EL4rpmsOK'))
}]]></sdp_command>
<sdp_description><![CDATA[This rule verifies that the correct versions of the required RPMs are installed on an Enterprise Linux 4 system.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="EL4rpmsOK|NotEL4|NotEnterprise" result="PASSED"><![CDATA[The correct binutils, compat-db, compat-libstdc++-296, compat-libstdc++-33, control-center, gcc, gcc-c++, glibc, glibc-common, gnome-libs, libaio, libstdc++, libstdc++-devel, make, openmotif21, pdksh, sysstat, and xscreensaver packages are installed on your Enterprise Linux 4 system. No action required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[You have incorrect versions of binutils, compat-db, compat-libstdc++-296, compat-libstdc++-33, control-center, gcc, gcc-c++, glibc, glibc-common, gnome-libs, libaio, libstdc++, libstdc++-devel, make, openmotif21, pdksh, sysstat, or xscreensaver installed on your system. Make sure that the correct versions are installed. For the required versions, see Knowledge Article: 169706.1.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00201" mode="VERIFY" name="EL5 RPMs OK?">
<sdp_command type="RDA"><![CDATA[import $OS_NAM,$OS_TYP
if !match($OS_TYP,'Enterprise')
 call setHcveResult('NotEnterprise')
elsif !match($OS_NAM,'carthage',true)
 call setHcveResult('NotEL5')
else
{var @tbl = ()
 call cmp_os_pkg(\@tbl,'gcc-c++','4.1.1.52/EL5')
 call cmp_os_pkg(\@tbl,'gcc','4.1.1.52/EL5')
 call cmp_os_pkg(\@tbl,'libstdc++-devel','4.1.1.52/EL5')
 call cmp_os_pkg(\@tbl,'glibc-devel','2.5.12')
 call cmp_os_pkg(\@tbl,'glibc-headers','2.5.12')
 call cmp_os_pkg(\@tbl,'libgomp','4.1.1.52/EL5')
 call cmp_os_pkg(\@tbl,'libXp','1.0.0.8')
 call cmp_os_pkg(\@tbl,'compat-libstdc++-33','3.2.3.61')
 call cmp_os_pkg(\@tbl,'compat-libstdc++-296','2.96.138')
 call cmp_os_pkg(\@tbl,'sysstat','7.0.0.3/EL5')
 call setHcveResult(cond(scalar(@tbl),join("\012",@tbl),'EL5rpmsOK'))
}]]></sdp_command>
<sdp_description><![CDATA[This rule verifies that the correct versions of the required RPMs are installed on an Enterprise Linux 5 system.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="EL5rpmsOK|NotEL5|NotEnterprise" result="PASSED"><![CDATA[The correct gcc-c++, gcc, libstdc++-devel, glibc-devel, glibc-headers, libgomp, libXp, compat-libstdc++-33, compat-libstdc++-296 and sysstat packages are installed on your Enterprise Linux 5 system. No action required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[You have incorrect versions of gcc-c++, gcc, libstdc++-devel, glibc-devel, glibc-headers, libgomp, libXp, compat-libstdc++-33, compat-libstdc++-296 or sysstat installed on your system. Make sure that the correct versions are installed. For information about the correct versions, see Knowledge Article: 419646.1.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00204" mode="VERIFY" name="RHEL3 RPMs OK?">
<sdp_command type="RDA"><![CDATA[import $OS_NAM,$OS_TYP
if !match($OS_TYP,'Red Hat')
 call setHcveResult('NotRedHat')
elsif !match($OS_NAM,'taroon',true)
 call setHcveResult('NotRHEL3')
else
{var @tbl = ()
 call cmp_os_pkg(\@tbl,'compat-db','4.0.14.5')
 call cmp_os_pkg(\@tbl,'compat-gcc','7.3.2.96.128')
 call cmp_os_pkg(\@tbl,'compat-gcc-c++','7.3.2.96.128')
 call cmp_os_pkg(\@tbl,'compat-libstdc++','7.3.2.96.128')
 call cmp_os_pkg(\@tbl,'compat-libstdc++-devel','7.3.2.96.128')
 call cmp_os_pkg(\@tbl,'gcc','3.2.3.34')
 call cmp_os_pkg(\@tbl,'glibc','2.3.2.95.20')
 call cmp_os_pkg(\@tbl,'make','3.79.1')
 call cmp_os_pkg(\@tbl,'openmotif21','2.1.30.8')
 call cmp_os_pkg(\@tbl,'setarch','1.3.1')
 call setHcveResult(cond(scalar(@tbl),join("\012",@tbl),'RHEL3rpmsOK'))
}]]></sdp_command>
<sdp_description><![CDATA[This rule verifies that the correct versions of the required RPMs are installed on a Red Hat Enterprise Linux 3 system.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="RHEL3rpmsOK|NotRHEL3|NotRedHat" result="PASSED"><![CDATA[The correct compat-db, compat-gcc, compat-gcc-c++, compat-libstdc++, compat-libstdc++-devel, gcc, glibc, make, openmotif21, and setarch packages are installed on your RHEL 3 system. No action required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[You have incorrect versions of compat-db, compat-gcc, compat-gcc-c++, compat-libstdc++, compat-libstdc++-devel, gcc, glibc, make, openmotif21, or setarch installed on your system. Make sure that the correct versions are installed. For information about the certified versions, see Knowledge Article: 169706.1.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00205" mode="VERIFY" name="RHEL4 RPMs OK?">
<sdp_command type="RDA"><![CDATA[import $OS_NAM,$OS_TYP
if !match($OS_TYP,'Red Hat')
 call setHcveResult('NotRedHat')
elsif !match($OS_NAM,'nahant',true)
 call setHcveResult('NotRHEL4')
else
{var @tbl = ()
 call cmp_os_pkg(\@tbl,'binutils','2.15.92.0.2.10/EL4')
 call cmp_os_pkg(\@tbl,'compat-db','4.1.25.9')
 call cmp_os_pkg(\@tbl,'compat-libstdc++-296','2.96.132.7.2','i386')
 call cmp_os_pkg(\@tbl,'compat-libstdc++-33','3.2.3.47.3','i386')
 call cmp_os_pkg(\@tbl,'control-center','2.8.0.12')
 call cmp_os_pkg(\@tbl,'gcc','3.4.3.9/EL4')
 call cmp_os_pkg(\@tbl,'gcc-c++','3.4.3.9/EL4')
 call cmp_os_pkg(\@tbl,'glibc','2.3.4.2')
 call cmp_os_pkg(\@tbl,'glibc-common','2.3.4.2')
 call cmp_os_pkg(\@tbl,'gnome-libs','1.4.1.2.90.44.1')
 call cmp_os_pkg(\@tbl,'libaio','0.3.96.0')
 call cmp_os_pkg(\@tbl,'libstdc++','3.4.3.9/EL4')
 call cmp_os_pkg(\@tbl,'libstdc++-devel','3.4.3.9/EL4')
 call cmp_os_pkg(\@tbl,'make','3.80.5')
 call cmp_os_pkg(\@tbl,'openmotif21','2.1.30.11/RHEL4')
 call cmp_os_pkg(\@tbl,'pdksh','5.2.14.30')
 call cmp_os_pkg(\@tbl,'sysstat','5.0.5.1')
 call cmp_os_pkg(\@tbl,'xscreensaver','4.18.5/rhel4')
 call setHcveResult(cond(scalar(@tbl),join("\012",@tbl),'RHEL4rpmsOK'))
}]]></sdp_command>
<sdp_description><![CDATA[This rule verifies that the correct versions of the required RPMs are installed on a Red Hat Enterprise Linux 4 system.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="RHEL4rpmsOK|NotRHEL4|NotRedHat" result="PASSED"><![CDATA[The correct binutils, compat-db, compat-libstdc++-296, compat-libstdc++-33, control-center, gcc, gcc-c++, glibc, glibc-common, gnome-libs, libaio, libstdc++, libstdc++-devel, make, openmotif21, pdksh, sysstat, and xscreensaver packages are installed on your RHEL4 system. No action required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[You have incorrect versions of binutils, compat-db, compat-libstdc++-296, compat-libstdc++-33, control-center, gcc, gcc-c++, glibc, glibc-common, gnome-libs, libaio, libstdc++, libstdc++-devel, make, openmotif21, pdksh, sysstat, or xscreensaver installed on your system. Make sure that the correct versions are installed. For information about the correct versions, see Knowledge Article: 169706.1.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00206" mode="VERIFY" name="RHEL5 RPMs OK?">
<sdp_command type="RDA"><![CDATA[import $OS_NAM,$OS_TYP
if !match($OS_TYP,'Red Hat')
 call setHcveResult('NotRedHat')
elsif !match($OS_NAM,'tikanga',true)
 call setHcveResult('NotRHEL5')
else
{var @tbl = ()
 call cmp_os_pkg(\@tbl,'gcc-c++','4.1.1.52/EL5')
 call cmp_os_pkg(\@tbl,'gcc','4.1.1.52/EL5')
 call cmp_os_pkg(\@tbl,'libstdc++-devel','4.1.1.52/EL5')
 call cmp_os_pkg(\@tbl,'glibc-devel','2.5.12')
 call cmp_os_pkg(\@tbl,'glibc-headers','2.5.12')
 call cmp_os_pkg(\@tbl,'libgomp','4.1.1.52/EL5')
 call cmp_os_pkg(\@tbl,'libXp','1.0.0.8')
 call cmp_os_pkg(\@tbl,'compat-libstdc++-33','3.2.3.61')
 call cmp_os_pkg(\@tbl,'compat-libstdc++-296','2.96.138')
 call cmp_os_pkg(\@tbl,'sysstat','7.0.0.3/EL5')
 call setHcveResult(cond(scalar(@tbl),join("\012",@tbl),'RHEL5rpmsOK'))
}]]></sdp_command>
<sdp_description><![CDATA[This rule verifies that the correct versions of the required RPMs are installed on a Red Hat Enterprise Linux 5 system.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="RHEL5rpmsOK|NotRHEL5|NotRedHat" result="PASSED"><![CDATA[The correct gcc-c++, gcc, libstdc++-devel, glibc-devel, glibc-headers, libgomp, libXp, compat-libstdc++-33, compat-libstdc++-296 and sysstat packages are installed on your RHEL5 system. No action required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[You have incorrect versions of gcc-c++, gcc, libstdc++-devel, glibc-devel, glibc-headers, libgomp, libXp, compat-libstdc++-33, compat-libstdc++-296 or sysstat installed on your system. Make sure that the correct versions are installed. For information about the correct versions, see Knowledge Article: 419646.1.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00209" mode="VERIFY" name="SUSE SLES9 RPMs OK?">
<sdp_command type="RDA"><![CDATA[import $OS_NAM,$OS_TYP
if !match($OS_TYP,'SuSE')
 call setHcveResult('NotSuSE')
elsif !match($OS_NAM,'SLES-9')
 call setHcveResult('NotSLES9')
else
{var @tbl = ()
 call cmp_os_pkg(\@tbl,'binutils','2.15.90.0.1.1.32.5')
 call cmp_os_pkg(\@tbl,'glibc-devel','2.3.3.98.47')
 call cmp_os_pkg(\@tbl,'gcc','3.3.3.43.34')
 call cmp_os_pkg(\@tbl,'gcc-c++','3.3.3.43.34')
 call cmp_os_pkg(\@tbl,'db1','1.85.85.1')
 call cmp_os_pkg(\@tbl,'orbit','0.5.17.330.1')
 call cmp_os_pkg(\@tbl,'glibc','2.3.3.98.28')
 call cmp_os_pkg(\@tbl,'gnome-libs','1.4.1.7.671.1')
 call cmp_os_pkg(\@tbl,'plotutils','2.4.1.575.1')
 call cmp_os_pkg(\@tbl,'gnuplot','3.7.3.256.1')
 call cmp_os_pkg(\@tbl,'libstdc++','3.3.3.43.24')
 call cmp_os_pkg(\@tbl,'libstdc++-devel','3.3.3.43.34')
 call cmp_os_pkg(\@tbl,'make','3.80.184.1')
 call cmp_os_pkg(\@tbl,'pdksh','5.2.14.780.1')
 call cmp_os_pkg(\@tbl,'sysstat','5.0.1.35.4')
 call setHcveResult(cond(scalar(@tbl),join("\012",@tbl),'SLES9rpmsOK'))
}]]></sdp_command>
<sdp_description><![CDATA[This rule verifies that the correct versions of the required RPMs are installed on a SUSE Linux Enterprise Server 9 system.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="SLES9rpmsOK|NotSLES9|NotSuSE" result="PASSED"><![CDATA[The correct binutils, glibc-devel, make, gcc, gcc-c++, db1, orbit, glibc, gnome-libs, plotutils, gnuplot, libstdc++, libstdc++-devel, pdksh, and sysstat packages are installed on your SUSE SLES9 system. No action required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[You have incorrect versions of binutils, glibc-devel, make, gcc, gcc-c++, db1, orbit, glibc, gnome-libs, plotutils, gnuplot, libstdc++, libstdc++-devel, pdksh, or sysstat packages installed on your SUSE SLES9 system. Make sure that the correct versions are installed. For information about the correct version, see Knowledge Article: 169706.1.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00210" mode="VERIFY" name="SUSE SLES10 RPMs OK?">
<sdp_command type="RDA"><![CDATA[import $OS_NAM,$OS_TYP
if !match($OS_TYP,'SuSE')
 call setHcveResult('NotSuSE')
elsif !match($OS_NAM,'SLES-10')
 call setHcveResult('NotSLES10')
else
{var @tbl = ()
 call cmp_os_pkg(\@tbl,'glibc-devel','2.4.31.2')
 call cmp_os_pkg(\@tbl,'gcc','4.1.0.28.4')
 call cmp_os_pkg(\@tbl,'libstdc++-devel','4.1.0.28.4')
 call cmp_os_pkg(\@tbl,'gcc-c++','4.1.0.28.4')
 call cmp_os_pkg(\@tbl,'libaio-devel','0.3.104.14.2')
 call setHcveResult(cond(scalar(@tbl),join("\012",@tbl),'SLES10rpmsOK'))
}]]></sdp_command>
<sdp_description><![CDATA[This rule verifies that the correct versions of the required RPMs are installed on a SUSE Linux Enterprise Server 10 system.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="SLES10rpmsOK|NotSLES10|NotSuSE" result="PASSED"><![CDATA[The correct glibc-devel, gcc, libstdc++-devel, gcc-c++ and libaio-devel packages are installed on your SUSE SLES10 system. No action required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[You have incorrect versions of glibc-devel, gcc, libstdc++-devel, gcc-c++ or libaio-devel packages installed on your SUSE SLES10 system. Make sure that the correct versions are installed. For information about the correct version, see Knowledge Article: 387137.1.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00213" mode="VERIFY" name="Asianux1 RPMs OK?">
<sdp_command type="RDA"><![CDATA[import $OS_NAM,$OS_TYP
if !match($OS_TYP,'Asianux')
 call setHcveResult('NotAsianux')
elsif !match($OS_NAM,'koumei',true)
 call setHcveResult('NotAsianux1')
else
{var @tbl = ()
 call cmp_os_pkg(\@tbl,'make','3.79.1')
 call cmp_os_pkg(\@tbl,'gcc','3.2.3.34')
 call cmp_os_pkg(\@tbl,'glibc','2.3.2.95.20')
 call cmp_os_pkg(\@tbl,'compat-db','4.0.14.5')
 call cmp_os_pkg(\@tbl,'compat-gcc','7.3.2.96.128')
 call cmp_os_pkg(\@tbl,'compat-gcc-c++','7.3.2.96.128')
 call cmp_os_pkg(\@tbl,'compat-libstdc++','7.3.2.96.128')
 call cmp_os_pkg(\@tbl,'compat-libstdc++-devel','7.3.2.96.128')
 call cmp_os_pkg(\@tbl,'openmotif21','2.1.30.8')
 call cmp_os_pkg(\@tbl,'setarch','1.3.1')
 call setHcveResult(cond(scalar(@tbl),join("\012",@tbl),'Asianux1rpmsOK'))
}]]></sdp_command>
<sdp_description><![CDATA[This rule verifies that the correct versions of the required RPMs are installed on an Asianux 1 system.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="Asianux1rpmsOK|NotAsianux1|NotAsianux" result="PASSED"><![CDATA[The correct make, gcc, glibc, compat-db, compat-gcc, compat-gcc-c++, compat-libstdc++, compat-libstdc++-devel, openmotif21 and setarch packages are installed on your Asianux 1 system. No action required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[You have incorrect versions of make, gcc, glibc, compat-db, compat-gcc, compat-gcc-c++, compat-libstdc++, compat-libstdc++-devel, openmotif21 or setarch installed on your system. Make sure that the correct versions are installed. For information about the correct version, see ''Oracle Database Installation Guide 10g Release 2 (10.2) for Linux x86''.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00214" mode="VERIFY" name="Asianux2 RPMs OK?">
<sdp_command type="RDA"><![CDATA[import $OS_NAM,$OS_TYP
if !match($OS_TYP,'Asianux')
 call setHcveResult('NotAsianux')
elsif !match($OS_NAM,'trinity',true)
 call setHcveResult('NotAsianux2')
else
{var @tbl = ()
 call cmp_os_pkg(\@tbl,'binutils','2.15.92.0.2.13/EL4')
 call cmp_os_pkg(\@tbl,'compat-db','4.1.25.9')
 call cmp_os_pkg(\@tbl,'compat-libstdc++-296','2.96.132.7.2')
 call cmp_os_pkg(\@tbl,'control-center','2.8.0.12')
 call cmp_os_pkg(\@tbl,'gcc','3.4.3.22.1/EL4')
 call cmp_os_pkg(\@tbl,'gcc-c++','3.4.3.22.1/EL4')
 call cmp_os_pkg(\@tbl,'glibc','2.3.4.2.9')
 call cmp_os_pkg(\@tbl,'glibc-common','2.3.4.2.9')
 call cmp_os_pkg(\@tbl,'gnome-libs','1.4.1.2.90.44.1')
 call cmp_os_pkg(\@tbl,'libstdc++','3.4.3.22.1')
 call cmp_os_pkg(\@tbl,'libstdc++-devel','3.4.3.22.1')
 call cmp_os_pkg(\@tbl,'make','3.80.5')
 call cmp_os_pkg(\@tbl,'pdksh','5.2.14.30')
 call cmp_os_pkg(\@tbl,'sysstat','5.0.5.1')
 call cmp_os_pkg(\@tbl,'xscreensaver','4.18.5/RHEL4.2')
 call cmp_os_pkg(\@tbl,'setarch','1.6.1')
 call setHcveResult(cond(scalar(@tbl),join("\012",@tbl),'Asianux2rpmsOK'))
}]]></sdp_command>
<sdp_description><![CDATA[This rule verifies that the correct versions of the required RPMs are installed on an Asianux 2 system.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="Asianux2rpmsOK|NotAsianux2|NotAsianux" result="PASSED"><![CDATA[The correct binutils, compat-db, compat-libstdc++-296, control-center, gcc, gcc-c++, glibc, glibc-common, gnome-libs, libstdc++, libstdc++-devel, make, pdksh, sysstat, xscreensaver and setarch packages are installed on your Asianux 2 system. No action required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[You have incorrect versions of binutils, compat-db, compat-libstdc++-296, control-center, gcc, gcc-c++, glibc, glibc-common, gnome-libs, libstdc++, libstdc++-devel, make, pdksh, sysstat, xscreensaver or setarch installed on your system. Make sure that the correct versions are installed. For information about the correct version, see ''Oracle Database Installation Guide 10g Release 2 (10.2) for Linux x86''.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00215" mode="VERIFY" name="Asianux3 RPMs OK?">
<sdp_command type="RDA"><![CDATA[import $OS_NAM,$OS_TYP
if !match($OS_TYP,'Asianux')
 call setHcveResult('NotAsianux')
elsif !match($OS_NAM,'quartet',true)
 call setHcveResult('NotAsianux3')
else
{var @tbl = ()
 call cmp_os_pkg(\@tbl,'binutils','2.17.50.0.6.2/EL5')
 call cmp_os_pkg(\@tbl,'compat-libstdc++-33','3.2.3.61')
 call cmp_os_pkg(\@tbl,'elfutils-libelf','0.125.3/EL5')
 call cmp_os_pkg(\@tbl,'elfutils-libelf-devel','0.125')
 call cmp_os_pkg(\@tbl,'gcc','4.1.1.52')
 call cmp_os_pkg(\@tbl,'gcc-c++','4.1.1.52')
 call cmp_os_pkg(\@tbl,'glibc','2.5.12')
 call cmp_os_pkg(\@tbl,'glibc-common','2.5.12')
 call cmp_os_pkg(\@tbl,'glibc-devel','2.5.12')
 call cmp_os_pkg(\@tbl,'glibc-headers','2.5.12')
 call cmp_os_pkg(\@tbl,'libaio','0.3.106')
 call cmp_os_pkg(\@tbl,'libaio-devel','0.3.106')
 call cmp_os_pkg(\@tbl,'libgcc','4.1.1.52')
 call cmp_os_pkg(\@tbl,'libstdc++','4.1.1')
 call cmp_os_pkg(\@tbl,'libstdc++-devel','4.1.1-52/E15')
 call cmp_os_pkg(\@tbl,'make','3.81.1.1')
 call cmp_os_pkg(\@tbl,'sysstat','7.0.0')
 call cmp_os_pkg(\@tbl,'unixODBC','2.2.11')
 call cmp_os_pkg(\@tbl,'unixODBC-devel','2.2.11')
 call setHcveResult(cond(scalar(@tbl),join("\012",@tbl),'Asianux3rpmsOK'))
}]]></sdp_command>
<sdp_description><![CDATA[This rule verifies that the correct versions of the required RPMs are installed on an Asianux 3 system.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="Asianux3rpmsOK|NotAsianux3|NotAsianux" result="PASSED"><![CDATA[The correct binutils, compat-libstdc++-33, elfutils-libelf, elfutils-libelf-devel, gcc, gcc-c++, glibc, glibc-common, glibc-devel, glibc-headers, libaio, libaio-devel, libgcc, libstdc++, libstdc++-devel, make, sysstat, unixODBC and unixODBC-devel packages are installed on your Asianux 3 system. No action required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[You have incorrect versions of binutils, compat-libstdc++-33, elfutils-libelf, elfutils-libelf-devel, gcc, gcc-c++, glibc, glibc-common, glibc-devel, glibc-headers, libaio, libaio-devel, libgcc, libstdc++, libstdc++-devel, make, sysstat, unixODBC or unixODBC-devel installed on your system. Make sure that the correct versions are installed. For information about the correct version, see ''Oracle Database Release Notes 10g Release 2 (10.2) for Linux x86''.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00218" mode="VERIFY" name="Patch 3006854 Installed?">
<sdp_command type="RDA"><![CDATA[import $OS_NAM
call setHcveResult(cond(\
  not(match($OS_NAM,'taroon',true)),\
    'NotRHEL3',\
  and(grepFile('/etc/ld.so.preload',quote('/etc/libcwait.so'),'f'),\
      testFile('e','/etc/libcwait.so')),\
    'Installed',\
    'NotPresent'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks for patch 3006854. This is required only for Red Hat Application Server/Enterprise Server 3.0 when RAC is installed.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="Installed|NotRHEL3" result="PASSED"><![CDATA[Patch 3006854 is installed or not required.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[See the following table for the necessary action to take:
|*Return Value*|*Action*|
|Not Installed|Install patch 3006854 if this is a RAC installation|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00219" mode="VERIFY" name="ip_local_port_range OK?">
<sdp_command type="RDA"><![CDATA[var @tbl = ()
if !testFile('e','/proc/sys/net/ipv4/ip_local_port_range')
 return setHcveResult(join("\012",'iplocalNotFound',\
                           'ALERT- The ip_local_port_range is not present \
                            in the /proc/sys/net/ipv4 directory as required'))
macro chk_prt_rng
{import $prt_hig
 var (\@tbl,$flg,@lst) = @arg
 if expr('>=',$prt_hig,65000)
  var @tbl = (@tbl,$lst[0])
 else
 {if $flg
   var @tbl = (@tbl,$lst[1])
  else
   var @tbl = (@tbl,$lst[1],$lst[2])
 }
}
var ($prt_low,$prt_hig) = split(\
 '\s+',grepFile('/proc/sys/net/ipv4/ip_local_port_range','\d+','f'),2)
call cond(expr('<=',$prt_low,1024),\
          chk_prt_rng(\@tbl,true,'ip_local_port_rangeOK','HighTooLow'),\
          chk_prt_rng(\@tbl,undef,'LowTooHigh','LowTooHigh','HighTooLow'))
call setHcveResult(join("\012",@tbl))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks that the ip_local_port_range kernel parameter is set according to the ''Oracle Database Installation Guide 10g Release 2 (10.2) for Linux x86''.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="ip_local_port_rangeOK" result="PASSED"><![CDATA[The sockets defined in /proc/sys/net/ipv4/ip_local_port_range are adequate for installing Oracle Database 10g. No action required.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[The sockets defined in /proc/sys/net/ipv4/ip_local_port_range are not set correctly for installing Oracle Database 10g.
%BR%Change the values according to those recommended by the ''Oracle Database Installation Guide 10g Release 2 (10.2) for Linux x86'':
%BR%$ /bin/echo 1024 65000 > /proc/sys/net/ipv4/ip_local_port_range
|*Return Value*|*Action*|
|LowTooHigh|The low end value for the ip_local_port_range is set too high and must be reset to a maximum of 1024|
|HighTooLow|The high end value for the ip_local_port_range is set too low and must be reset to a minimum of 65000|
|iplocalNotFound|ip_local_port_range is not present in the /proc/sys/net/ipv4 directory as required|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00220" mode="VERIFY" name="Tainted Kernel?">
<sdp_command type="RDA"><![CDATA[if !testFile('x','/sbin/lsmod')
 return setHcveResult('Cannot run /sbin/lsmod')
call loadCommand('/sbin/lsmod')
call setHcveResult(cond(\
  grepLastFile('not tainted','if'), 'NotTainted',\
  grepLastFile('taint','if'),       'Tainted',\
                                    'NotVerifiable'))
]]></sdp_command>
<sdp_description><![CDATA[This rule determines if the kernel contains tainted modules.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="NotTainted|NotVerifiable" result="PASSED"><![CDATA[The Linux kernel is not tainted.  No action is required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[The Linux kernel is tainted. For clarification about what action is required, see Knowledge Article: 225710.1.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00230" mode="VERIFY" name="Other OUI Up?">
<sdp_command type="RDA"><![CDATA[call setHcveResult(cond(\
  grepCommand('/bin/ps -ef','runInstaller','i'),'AnotherOUIup','NoOtherOUI'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks for another active runInstaller process on the system.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="NoOtherOUI" result="PASSED"><![CDATA[No other runInstaller process is running currently. No action required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[Stop the other instance of runInstaller that is currently active on your system.]]></sdp_action>
</sdp_actions>
</sdp_rule>
</sdp_group>
</sdp_content>
</sdp_diaglet>
