<sdp_diaglet platform="solaris" product="AS1012" set="A300AS1012_sls" title="Oracle Application Server 10g R2 (10.1.2) PreInstall (Solaris-sparc)" type="A">
<sdp_meta id="$Id: A300AS1012_sls.xml,v 1.3 2009/01/19 16:52:23 mschenke Exp $" type="version"/>
<sdp_meta author="SDP" change="Initial diaglet conversion" type="history"/>
<sdp_content set="A300AS1012_sls" title="Oracle Application Server 10g R2 (10.1.2) PreInstall (Solaris-sparc)" type="check">
<sdp_group>
<sdp_rule id="A00001" mode="VERIFY" name="Processor Type">
<sdp_command type="RDA"><![CDATA[call setHcveResult(cond(\
  not(testFile('x','/usr/sbin/psrinfo')),\
    'Cannot access /usr/sbin/psrinfo',\
  grepCommand('/usr/sbin/psrinfo -v','sparcv9','if'),\
    'SPARC v9',\
    'Not a SPARC v9 processor'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks for the processor type. The processor must have a SPARC v9 architecture because Oracle Application Server 10g Release 2 (10.1.2) uses the Sun Java 1.4.1 HotSpot Server VM, which no longer supports SPARC v8 and older processors.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="SPARC v9" result="PASSED"><![CDATA[The processor is certified.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[The processor must have a SPARC v9 architecture.
|*Return Value*|*Action*|
|Not a SPARC v9 processor|Use a certified processor type.|
|Cannot access /usr/sbin/psrinfo|Grant execute permission on /usr/sbin/psrinfo to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00002" mode="VERIFY" name="Processor Speed">
<sdp_command type="RDA"><![CDATA[if !testFile('x','/usr/sbin/psrinfo')
 return setHcveResult('Cannot access /usr/sbin/psrinfo')
var ($lin) = grepCommand('/usr/sbin/psrinfo -v','processor operates at','f')
var $mhz = field('\s+',5,$lin)
call setHcveResult(cond(\
 expr('>=',$mhz,450),\
   'The minimum requirement for the processor speed has been met.',\
   concat('Processor speed [',$mhz,'MHZ] does not meet minimum requirement')))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks for the processor speed. The minimum requirement is 450 MHz or faster.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="The minimum requirement for the processor speed has been met." result="PASSED"><![CDATA[The minimum requirement for the processor speed is met.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Processor speed ... does not meet minimum requirement|Use a processor with a speed of 450 MHz or faster.|
|Cannot access /usr/sbin/psrinfo|Make sure the user has access to the psrinfo command.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00003" mode="VERIFY" name="32 and 64-bit Support">
<sdp_command type="RDA"><![CDATA[var $pth = findCommand('isainfo')
if !$pth
 return setHcveResult('Cannot access isainfo commmand')
call loadCommand(concat($pth,' -v'))
call setHcveResult(cond(\
  and(grepLastFile('64\-bit','f'),grepLastFile('32\-bit','f')),\
    'System supports 32-bit and 64-bit applications',\
    'System does not support both 32-bit and 64-bit applications'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks that the operating system is configured to support 32-bit and 64-bit applications.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" minimum="System supports 32-bit and 64-bit applications" result="PASSED"><![CDATA[No action required. The system supports 32-bit and 64-bit applications]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|System does not support both 32-bit and 64-bit applications|Configure the system to support both 32-bit and 64-bit applications|
|Cannot access isainfo command|Make sure that the isainfo executable is accessible to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00004" mode="VERIFY" name="Memory">
<sdp_command type="RDA"><![CDATA[var $MEM = undef
call setHcveVariable('$MEM')
if !testFile('x','/usr/sbin/prtconf')
 return setHcveResult('Cannot access /usr/sbin/prtconf')
var $MEM = field('\s+',2,grepCommand('/usr/sbin/prtconf','Memory','f'))
call setHcveResult(concat($MEM,' MB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule retrieves the available physical memory in MB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" minimum=" MB$" result="PASSED"><![CDATA[No action is required.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Cannot access /usr/sbin/prtconf|Grant execute permission on /usr/sbin/prtconf to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00005" mode="VERIFY" name="Memory for MDR and OIM">
<sdp_command type="RDA"><![CDATA[import $MEM
call setHcveResult(cond(\
  not(defined($MEM)),   'Cannot access /usr/sbin/prtconf',\
  expr('>=',$MEM,1000), 'Available',\
                        'Need at least 1 GB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough memory to install the Metadata Repository and Oracle Identity Management install type. The minimum requirement is 1GB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough memory to install the Metadata Repository and Oracle Identity Management install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 1 GB|Increase the memory to 1 GB or more to install the Metadata Repository and Identity Management install type.|
|Cannot access /usr/sbin/prtconf|Grant execute permission on /usr/sbin/prtconf to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00006" mode="VERIFY" name="Memory for OIM Only">
<sdp_command type="RDA"><![CDATA[import $MEM
call setHcveResult(cond(\
  not(defined($MEM)),   'Cannot access /usr/sbin/prtconf',\
  expr('>=',$MEM,1000), 'Available',\
                        'Need at least 1 GB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough memory to install the Oracle Identity Management only install type. The minimum requirement is 1 GB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough memory to install the Oracle Identity Management only install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 1 GB|Increase the memory to 1 GB or more to install the Oracle Identity Management only install type.|
|Cannot access /usr/sbin/prtconf|Grant execute permission on /usr/sbin/prtconf to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00007" mode="VERIFY" name="Memory for MDR Only">
<sdp_command type="RDA"><![CDATA[import $MEM
call setHcveResult(cond(\
  not(defined($MEM)),   'Cannot access /usr/sbin/prtconf',\
  expr('>=',$MEM,1000), 'Available',\
                        'Need at least 1 GB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough memory to install the Metadata Repository only install type. The minimum requirement is 1 GB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough memory to install the Metadata Repository only install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 1 GB|Increase the memory to 1 GB or more to install the Metadata Repository only install type.|
|Cannot access /usr/sbin/prtconf|Grant execute permission on /usr/sbin/prtconf to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00008" mode="VERIFY" name="Memory for J2EE">
<sdp_command type="RDA"><![CDATA[import $MEM
call setHcveResult(cond(\
  not(defined($MEM)),  'Cannot access /usr/sbin/prtconf',\
  expr('>=',$MEM,512), 'Available',\
                       'Need at least 512 MB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough memory to install the J2EE and Web Cache install type. The minimum requirement is 512 MB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough memory to install the J2EE and Web Cache install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 512|Increase the memory to 512 MB or more to install the J2EE and Web Cache install type.|
|Cannot access /usr/sbin/prtconf|Grant execute permission on /usr/sbin/prtconf to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00009" mode="VERIFY" name="Memory for Portal">
<sdp_command type="RDA"><![CDATA[import $MEM
call setHcveResult(cond(\
  not(defined($MEM)),   'Cannot access /usr/sbin/prtconf',\
  expr('>=',$MEM,1000), 'Available',\
                        'Need at least 1 GB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough memory to install the Portal and Wireless install type. The minimum requirement is 1 GB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough memory to install the Portal and Wireless install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 1 GB|Increase the memory to 1 GB or more to install the Portal and Wireless install type.|
|Cannot access /usr/sbin/prtconf|Grant execute permission on /usr/sbin/prtconf to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00010" mode="VERIFY" name="Memory for Business Intelligence (10.1.2.0.2)">
<sdp_command type="RDA"><![CDATA[import $MEM
call setHcveResult(cond(\
  not(defined($MEM)),   'Cannot access /usr/sbin/prtconf',\
  expr('>=',$MEM,1000), 'Available',\
                        'Need at least 1 GB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough memory to install the 10.1.2.0.2 Business Intelligence and Forms install type. The minimum requirement is 1 GB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough memory to install the Business Intelligence and Forms install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 1 GB|Increase the memory to 1 GB or more to install the Business Intelligence and Forms install type.|
|Cannot access /usr/sbin/prtconf|Grant execute permission on /usr/sbin/prtconf to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00011" mode="VERIFY" name="Memory for Dev Kit">
<sdp_command type="RDA"><![CDATA[import $MEM
call setHcveResult(cond(\
  not(defined($MEM)),  'Cannot access /usr/sbin/prtconf',\
  expr('>=',$MEM,256), 'Available',\
                       'Need at least 256 MB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough memory to install the Developer Kit install type. The minimum requirement is 256 MB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough memory to install the Developer Kit install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 256|Increase the memory to 256 MB or more to install the Developer Kit install type.|
|Cannot access /usr/sbin/prtconf|Grant execute permission on /usr/sbin/prtconf to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00012" mode="VERIFY" name="Space">
<sdp_command type="RDA"><![CDATA[var $ORACLE_HOME = getEnv('ORACLE_HOME')
var $DF = cond(\
  not($ORACLE_HOME),              'ORACLE_HOME is not set',\
  not(testDir('d',$ORACLE_HOME)), 'Cannot access ORACLE_HOME',\
                                  get_df($ORACLE_HOME))
call setHcveVariable('$DF')
call setHcveResult(cond(isNumber($DF),concat($DF,' KB'),$DF))
]]></sdp_command>
<sdp_description><![CDATA[The rule retrieves the available disk space.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" minimum=" KB$" result="PASSED"><![CDATA[No action is required.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|ORACLE_HOME is not set|Set ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00013" mode="VERIFY" name="Space for Infra">
<sdp_command type="RDA"><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),     $DF,\
  expr('>=',$DF,3930000), 'Available',\
                          'Need at least 3.93 GB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough disk space to install the Infrastructure install type. The minimum requirement is 3.93 GB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough disk space to install the Infrastructure install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 3.93 GB|Increase the available space to 3.93 GB or more to install the Infrastructure install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set the ORACLE_HOME to a valid directory.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00014" mode="VERIFY" name="Space for Infra (10.1.2.0.2)">
<sdp_command type="RDA"><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),     $DF,\
  expr('>=',$DF,3830000), 'Available',\
                          'Need at least 3.83 GB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough disk space to install the 10.1.2.0.2 Infrastructure install type. The minimum requirement is 3.83 GB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough disk space to install the Infrastructure install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 3.83 GB|Increase the available space to 3.83 GB or more to install the Infrastructure install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set the ORACLE_HOME to a valid directory.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00015" mode="VERIFY" name="Space for OIM Only">
<sdp_command type="RDA"><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),     $DF,\
  expr('>=',$DF,1540000), 'Available',\
                          'Need at least 1.54 GB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough disk space to install Oracle Identity Management only install type. The minimum requirement is 1.54 GB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough disk space to install the Oracle Identity Management only install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 1.54 GB|Increase the available space to 1.54 GB or more to install the Oracle Identity Management only install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00016" mode="VERIFY" name="Space for OIM Only (10.1.2.0.2)">
<sdp_command type="RDA"><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),     $DF,\
  expr('>=',$DF,2270000), 'Available',\
                          'Need at least 2.27 GB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough disk space to install 10.1.2.0.2 Oracle Identity Management only install type. The minimum requirement is 2.27 GB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough disk space to install the Oracle Identity Management only install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 2.27 GB|Increase the available space to 2.27 GB or more to install the Oracle Identity Management only install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00017" mode="VERIFY" name="Space for MDR Only">
<sdp_command type="RDA"><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),     $DF,\
  expr('>=',$DF,3930000), 'Available',\
                          'Need at least 3.93 GB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough disk space to install the Metadata Repository only install type. The minimum requirement is 3.93 GB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough disk space to install the Metadata Repository only install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 3.93 GB|Increase the available space to 3.93 GB or more to install the Metadata Repository only install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00018" mode="VERIFY" name="Space for MDR Only (10.1.2.0.2)">
<sdp_command type="RDA"><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),     $DF,\
  expr('>=',$DF,3830000), 'Available',\
                          'Need at least 3.83 GB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough disk space to install the 10.1.2.0.2 Metadata Repository only install type. The minimum requirement is 3.83 GB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough disk space to install the Metadata Repository only install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 3.83 GB|Increase the available space to 3.83 GB or more to install the Metadata Repository only install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00019" mode="VERIFY" name="Space for J2EE">
<sdp_command type="RDA"><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),    $DF,\
  expr('>=',$DF,750000), 'Available',\
                         'Need at least 750 MB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough disk space to install the J2EE and Web Cache install type. The minimum requirement is 750 MB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough disk space to install the J2EE and Web Cache install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 750 MB|Increase the available space to 750 MB or more to install the J2EE and Web Cache install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00020" mode="VERIFY" name="Space for Portal">
<sdp_command type="RDA"><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),     $DF,\
  expr('>=',$DF,1200000), 'Available',\
                          'Need at least 1.2 GB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough disk space to install the Portal and Wireless install type. The minimum requirement is 1.2 GB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough disk space to install the Portal and Wireless install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 1.2 GB|Increase the available space to 1.2 GB or more to install the Portal and Wireless install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00021" mode="VERIFY" name="Space for Portal (10.1.2.0.2)">
<sdp_command type="RDA"><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),     $DF,\
  expr('>=',$DF,1130000), 'Available',\
                          'Need at least 1.13 GB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough disk space to install the 10.1.2.0.2 Portal and Wireless install type. The minimum requirement is 1.13 GB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough disk space to install the Portal and Wireless install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 1.13 GB|Increase the available space to 1.13 GB or more to install the Portal and Wireless install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00022" mode="VERIFY" name="Space for Business Intelligence (10.1.2.0.2)">
<sdp_command type="RDA"><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),     $DF,\
  expr('>=',$DF,1460000), 'Available',\
                          'Need at least 1.46 GB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough disk space to install the 10.1.2.0.2 Business Intelligence and Forms install type. The minimum requirement is 1.46 GB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough disk space to install the Business Intelligence and Forms install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 1.46 GB|Increase the available space to 1.46 GB or more to install the Business Intelligence and Forms install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00023" mode="VERIFY" name="Space for Dev Kit">
<sdp_command type="RDA"><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),    $DF,\
  expr('>=',$DF,520000), 'Available',\
                         'Need at least 520 MB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough disk space to install the Developer Kit install type. The minimum requirement is 520 MB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough disk space to install the Developer Kit install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 520 MB|Increase the available space to 520 MB or more to install the Developer Kit install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00024" mode="VERIFY" name="Space for Dev Kit (10.1.2.0.2)">
<sdp_command type="RDA"><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),    $DF,\
  expr('>=',$DF,875000), 'Available',\
                         'Need at least 875 MB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough disk space to install the 10.1.2.0.2 Developer Kit install type. The minimum requirement is 875 MB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough disk space to install the Developer Kit install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 875 MB|Increase the available space to 875 MB or more to install the Developer Kit install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00025" mode="VERIFY" name="Space in tmp">
<sdp_command type="RDA"><![CDATA[var $TMP = nvl(getEnv('TMP'),getEnv('TMPDIR'),'/tmp')
call setHcveResult(cond(\
  not(testDir('d',$TMP)),         'Cannot access tmp directory',\
  expr('>=',get_df($TMP),250000), 'Available',\
                                  'Need at least 250 MB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough tmp space. Oracle Universal Installer (OUI) initially checks the TMP and TMPDIR environment variables to locate the temporary directory. If these environment variables do not exist, then OUI uses /tmp. The minimum requirements are 250 MB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough tmp space.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 250 MB|Increase the available tmp space to 250 MB or more. You can define TMP or TMPDIR to point to a directory with 250 MB of available space.|
|Cannot access tmp directory|Grant read and write permission on /tmp or directories in TMP or TMPDIR to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00026" mode="VERIFY" name="Space in tmp (10.1.2.0.2)">
<sdp_command type="RDA"><![CDATA[var $TMP = nvl(getEnv('TMP'),getEnv('TMPDIR'),'/tmp')
call setHcveResult(cond(\
  not(testDir('d',$TMP)),         'Cannot access tmp directory',\
  expr('>=',get_df($TMP),256000), 'Available',\
                                  'Need at least 256 MB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough tmp space for 10.1.2.0.2. Oracle Universal Installer (OUI) initially checks the TMP and TMPDIR environment variables to locate the temporary directory. If these environment variables do not exist, then OUI uses /tmp. The minimum requirements are 256 MB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough tmp space.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 256 MB|Increase the available tmp space to 256 MB or more. You can define TMP or TMPDIR to point to a directory with 256 MB of available space.|
|Cannot access tmp directory|Grant read and write permission on /tmp or directories in TMP or TMPDIR to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00027" mode="VERIFY" name="Swap Space">
<sdp_command type="RDA"><![CDATA[if !testFile('x','/usr/sbin/swap')
 return setHcveResult('Cannot access /usr/sbin/swap')
var $siz = field('\s+',10,grepCommand('/usr/sbin/swap -s','.','f'))
call setHcveResult(cond(\
    expr('>=',field('\s+',0,replace($siz,'k',' k ')),1500000),\
      'Available',\
      'Need at least 1.5 GB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough swap space. The minimum requirement is 1.5 GB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough swap space.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 1.5 GB|Increase the swap space to 1.5 GB or more.|
|Cannot access /usr/sbin/swap|Grant execute permission on /usr/sbin/swap to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00028" mode="VERIFY" name="Monitor Colors">
<sdp_command type="RDA"><![CDATA[call loadCommand('/usr/X11R6/bin/xdpyinfo -root 2>&1')
var @dpt = grepLastFile('depth')
call setHcveResult(cond(\
  grep(@dpt,'8','f'),              'Adequate',\
  not(defined(getEnv('DISPLAY'))), 'DISPLAY is not set',\
  grepLastFile('unable','f'),      'Cannot open DISPLAY',\
                                   'Need at least 256 colors'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the monitor has a minimum of 256 colors.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Adequate" result="PASSED"><![CDATA[The monitor has enough colors.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least|Use a display with 256 colors.|
|DISPLAY is not set|Set the DISPLAY environment variable to a valid display.|
|Cannot open DISPLAY|Set the DISPLAY environment variable to a correct display.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00029" mode="VERIFY" name="Operating System">
<sdp_command type="RDA"><![CDATA[import $OS_VER
call setHcveResult(check(\
  $OS_VER,'^2\.([89]|10)$','Certified',\
                           'Not Certified OS'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the operating system is certified. The following operating systems are certified for Oracle Application Server 10g: Solaris 8, 9, and 10.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Certified" result="PASSED"><![CDATA[You are using a certified operating system.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Not Certified OS|You must use one of the listed certified operating systems.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00030" mode="VERIFY" name="Patches">
<sdp_command type="RDA"><![CDATA[import $OS_VER
var @tbl = ()
if !loadCommand('/usr/bin/showrev -p')
 return setHcveResult('NoAccess')
macro check_patch
{var (\@tbl,@pch) = @arg
 loop $pch (@pch)
 {var $pch_num = field('\-',0,$pch)
  if field('\s+',0,field(':',1,grepLastFile($pch_num,'f')))
  {var %srt = ()
   loop $key (grepLastFile(concat('Patch: ',$pch_num)))
    var $srt{$key} = true
   var $pch_rev = field('\s+',1,reverse(keys(%srt)))
   if compare('lt',replace($pch_rev,'\-'),replace($pch,'\-'))
    var @tbl = (@tbl,$pch)
  }
  else
   var @tbl = (@tbl,$pch)
 }
}
if match($OS_VER,'^2\.8$')
 call check_patch(\@tbl,'108652-82','108921-21','108940-62','108773-18',\
                        '111310-01','109147-28','111308-04','112438-03',\
                        '108434-17','108435-17','111111-04','112396-02',\
                        '110386-03','111023-03','111317-05','113648-03',\
                        '115827-01','116602-01','108987-13','108528-29',\
                        '108989-02','108993-36','109326-14','110615-11')
elsif match($OS_VER,'^2\.9$')
 call check_patch(\@tbl,'113096-03','112785-35')
elsif match($OS_VER,'^2\.10$')
 return setHcveResult('No OS patches required')
else
 return setHcveResult('Not Certified OS')
call setHcveResult(cond(\
  scalar(@tbl),concat('Patches [',join(' ',@tbl),'] are missing'),\
               'All patches exist'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the necessary operating system patches (or later) are installed. The required patches are:
For Solaris 8: 108652-82 108921-21 108940-62 108773-18 111310-01 109147-28 111308-04 112438-03 108434-17 108435-17 111111-04 112396-02 110386-03 111023-03 111317-05 113648-03 115827-01 116602-01 108987-13 108528-29 108989-02 108993-36 109326-14 110615-11.
For Solaris 9: 113096-03 112785-35.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="All patches exist|No OS patches required" result="PASSED"><![CDATA[All operating system patches are installed.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Not Certified OS|You must use one of the listed certified operating systems.|
|Patches ... are missing|Install the listed missing patches.|
|NoAccess|You do not have access to /usr/bin/showrev|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00031" mode="VERIFY" name="Packages">
<sdp_command type="RDA"><![CDATA[import $OS_VER
var @tbl = ()
macro check_package
{var (\@tbl,$pkg) = @arg
 call loadCommand(findCommand('pkginfo'))
 var @pkg = ('arc','btool','hea','libm',\
             'libms','sprot','too','xwfnt',\
             'i1cs','i15cs','i1of',$pkg)
 loop $pkg (split('\s',concat('SUNW',join(' SUNW',@pkg))))
 {if not(grepLastFile($pkg,'f'))
   var @tbl = (@tbl,$pkg)
 }
}
call check(\
 $OS_VER,'^2\.10$', check_package(\@tbl),\
                    check_package(\@tbl,'sprox'))
call setHcveResult(cond(\
  scalar(@tbl),concat('Packages [',join(' ',@tbl),'] are missing'),\
               'All packages exist'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the necessary operating system packages are installed. The required packages are: SUNWarc SUNWbtool SUNWhea SUNWlibm SUNWlibms SUNWsprot SUNWsprox SUNWtoo SUNWi1of SUNWxwfnt SUNWi1cs SUNWi15cs.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="All packages exist" result="PASSED"><![CDATA[All operating system packages are installed.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Packages ... are missing|Install the listed missing packages.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00032" mode="VERIFY" name="FD Hard Limit">
<sdp_command type="RDA"><![CDATA[import $OS_VER
if match($OS_VER,'^2\.10$')
 return setHcveResult('Not required')
var ($lmt) = command('ulimit "-Hn"')
if !defined($lmt)
 return setHcveResult('Not found')
call setHcveResult(\
 cond(or(compare('eq',$lmt,'unlimited'),expr('>=',$lmt,65536)),\
      'File descriptors hard limit is greater than 65535',\
      'File descriptors hard limit is lesser than 65536'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks for the hard limit on file descriptors that a single process can have open. It must be greater than 65535.
This setting does not apply to Solaris 10.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" minimum="File descriptors hard limit is greater than 65535|Not required" result="PASSED"><![CDATA[No action required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[Set rlim_fd_max=65536 or higher. ulimit -Hn must return value of 65536 or higher.
This setting does not apply to Solaris 10.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00033" mode="VERIFY" name="Kernel Parameters OK?">
<sdp_command type="RDA"><![CDATA[import $OS_VER
var @tbl = ()
var $SEMMNI_REQD = 100
var $SEMMNS_REQD = 256
var $SEMMSL_REQD = 256
var $SHMMAX_REQD = 4294967295
var $SHMMIN_REQD = 1
var $SHMMNI_REQD = 100
var $SHMSEG_REQD = 10

if !loadCommand('/etc/sysdef')
 return setHcveResult('NoAccess')
var $SEMMNI = field('\s+',0,grepLastFile('SEMMNI','f'))
var $SEMMNS = field('\s+',0,grepLastFile('SEMMNS','f'))
var $SEMMSL = field('\s+',0,grepLastFile('SEMMSL','f'))
var $SHMMAX = field('\s+',0,grepLastFile('SHMMAX','f'))
var $SHMMIN = field('\s+',0,grepLastFile('SHMMIN','f'))
var $SHMMNI = field('\s+',0,grepLastFile('SHMMNI','f'))
var $SHMSEG = field('\s+',0,grepLastFile('SHMSEG','f'))

macro chk_min
{var (\@tbl,$nam,$ref,$val) = @arg
 if !defined($val)
 {var @tbl = (@tbl,concat($nam,'Undef'))
  return
 }
 if expr('<',$val,$ref)
  var @tbl = (@tbl,concat($nam,'TooSmall'))
}
if match($OS_VER,'^2\.8$')
{call chk_min(\@tbl,'SEMMNI',$SEMMNI_REQD,$SEMMNI)
 call chk_min(\@tbl,'SEMMNS',$SEMMNS_REQD,$SEMMNS)
 call chk_min(\@tbl,'SEMMSL',$SEMMSL_REQD,$SEMMSL)
 call chk_min(\@tbl,'SHMMAX',$SHMMAX_REQD,$SHMMAX)
 call chk_min(\@tbl,'SHMMIN',$SHMMIN_REQD,$SHMMIN)
 call chk_min(\@tbl,'SHMMNI',$SHMMNI_REQD,$SHMMNI)
 call chk_min(\@tbl,'SHMSEG',$SHMSEG_REQD,$SHMSEG)
}
elsif match($OS_VER,'^2\.9$')
{call chk_min(\@tbl,'SEMMNI',$SEMMNI_REQD,$SEMMNI)
 call chk_min(\@tbl,'SEMMNS',$SEMMNS_REQD,$SEMMNS)
 call chk_min(\@tbl,'SEMMSL',$SEMMSL_REQD,$SEMMSL)
 call chk_min(\@tbl,'SHMMAX',$SHMMAX_REQD,$SHMMAX)
 call chk_min(\@tbl,'SHMMNI',$SHMMNI_REQD,$SHMMNI)
}
elsif match($OS_VER,'^2\.10$')
 var @tbl = (@tbl,'Not Required')
else
 var @tbl = (@tbl,'Uncertified SunOS')
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 Application Server Installation Guide 10g Release 2 (10.1.2) for Solaris Operating System (SPARC)''.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="KernelOK|Not Required" result="PASSED"><![CDATA[No action required.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[The kernel parameters are not set according to the ''Oracle Application Server Installation Guide 10g Release 2 (10.1.2) for Solaris Operating System (SPARC)''. For the recommended values, see the ''Oracle Application Server Installation Guide 10g Release 2 (10.1.2) for Solaris Operating System (SPARC)''. If they have been set in the /etc/system file, then you may have to add the following to set the parameters at boot time:%BR%
forceload: sys/semsys%BR%
forceload: sys/shmsys%BR%
When you make the changes in the /etc/system file, save the file and reboot to take effect.
|*Return Value*|*Action*|
|SEMMNITooSmall|Increase the kernel parameter SEMMNI to 100|
|SEMMNIUndef|SEMMNI has not been defined and must be set to 100|
|SEMMNSTooSmall|Increase the kernel parameter SEMMNS to at least 1024|

|SEMMNSUndef|SEMMNS has not been defined and must be set to 1024|
|SEMMSLTooSmall|Increase the kernel parameter SEMMSL to at least 256|
|SEMMSLUndef|SEMMSL has not been defined and must be set to 256|
|SHMMAXTooSmall|Increase the kernel parameter SHMMAX to 4294967295|
|SHMMAXUndef|SHMMAX has not been defined and must be set to 4294967295|
|SHMMINTooSmall|Increase the kernel parameter SHMMIN to at least 1. Not required for Solaris 9.|
|SHMMINUndef|SHMMIN has not been defined and must be set to 1 or more. Not required for Solaris 9.|
|SHMMNITooSmall|Increase the kernel parameter SHMMNI to at least 100|
|SHMMNIUndef|SHMMNI has not been defined and must be set to 100 or more|
|SHMSEGTooSmall|Increase the kernel parameter SHMSEG to at least 10. Not required for Solaris 9.|
|SHMSEGUndef|SHMSEG has not been defined and must be set to 10 or more. Not required for Solaris 9.|
|NoAccess|You do not have access to /etc/sysdef|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00034" mode="VERIFY" name="Port 1521">
<sdp_command type="RDA"><![CDATA[var @lst = grepCommand('/bin/netstat -an','LISTEN')
if !grep(@lst,'1521','f')
 return setHcveResult('Free')
call cond(\
 testFile('x','/usr/sbin/lsof'),assign($prc,\
   grepCommand('/usr/sbin/lsof -i TCP:1521','LIST','f')),\
 testFile('x','/usr/bin/lsof'),assign($prc,\
   grepCommand('/usr/bin/lsof -i TCP:1521','LIST','f')),\
 testFile('x','/usr/local/bin/lsof'),assign($prc,\
   grepCommand('/usr/local/bin/lsof -i TCP:1521','LIST','f')))
if !length($prc)
 return setHcveResult('Cannot access lsof')
macro chk_tns
{var ($prc) = @arg
 var @cmd = grepCommand('ps -ef',field('\s+',1,$prc))
 var @ver = command(replace(field(\
    '\s+',8,grep(@cmd,'tnslsnr','f')),'tnslsnr','lsnrctl version'))
 var $ver = field('\s+',4,grep(@ver,'LSNRCTL','f'))
 return cond(compare('older',$ver,'10.1.0.2.0'),\
             concat('TNS Listener version [',$ver,'] is running'),\
             'TNS Listener 10.1.0.2 or later is running')
}
call setHcveResult(cond(not(match(field('\s+',0,$prc),'tnslsnr',true)),\
                        'Port is used by non-oracle program',\
                        chk_tns($prc)))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if port 1521 is free. If an Oracle listener version 10.1.0.2 or later uses port 1521, then the existing database and the Oracle Application Server 10g Metadata Repository will use the existing listener. The installer performs this configuration automatically. If an Oracle listener version earlier than 10.1.0.2 uses port 1521, then the existing listener must be stopped. After the installation is complete, you can configure the new 10.1.0.2 listener to listen to the existing (pre 10.1.0.2) databases. If non Oracle programs use port 1521, then this program must be configured to listen to ports other than 1521. For more information, see the "If Port 1521 is in Use" section of the ''Oracle Application Server Installation Guide 10g Release 2 (10.1.2) for Solaris Operating System (SPARC)''.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="TNS Listener 10.1.0.2 or later is running|Free" result="PASSED"><![CDATA[Port 1521 is not used or is used by TNS*Listener version 10.1.0.2 or later.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|TNS Listener version ... is running|Stop the existing listener.|
|Port is used by non-oracle program|Reconfigure the program to use a different port to 1521.|
|Cannot access lsof|Manually check port 1521.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00035" mode="VERIFY" name="Environment Variables">
<sdp_command type="RDA"><![CDATA[if grepEnv('^(TNS_ADMIN|ORA_NLS|ORA_NLS32|ORA_NLS33|ORACLE_SID)$')
 return setHcveResult('Some variables are set')
loop $fil ('/etc/oratab','/var/opt/oracle/oratab')
{if testFile('e',$fil)
 {if !testFile('r',$fil)
   return setHcveResult('Cannot access oratab')
  var @pth = (split(':',join(':',getEnv('PATH'),\
                                 getEnv('CLASSPATH'),\
                                 getEnv('LD_LIBRARY_PATH'))))
  loop $lin (grepFile($fil,'#|^$','v'))
  {var $pat = concat('^',quote(replace(field(':',1,$lin),'\/+$')),'(\/.*)?$')
   if grep(@pth,$pat)
    return setHcveResult('Variables containing reference to existing \
                          Oracle homes')
  }
 }
}
return setHcveResult('Properly defined')
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the following environment variables are not set: ORACLE_SID, TNS_ADMIN, and all ORA_NLS  related environment variables such as ORA_NLS, ORA_NLS33, and so on. In addition, the following environment variables must not reference to any existing Oracle home, PATH, CLASSPATH, and LD_LIBRARY_PATH.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Properly defined" result="PASSED"><![CDATA[Environment variables do not have any reference to existing Oracle homes.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Variables containing reference to existing Oracle homes|Remove any reference to existing Oracle homes from PATH, CLASSPATH, and LD_LIBRARY_PATH.|
|Some variables are set|Unset ORACLE_SID, TNS_ADMIN, ORA_NLS, ORA_NLS32 and ORA_NLS33.|
|Cannot access oratab|Grant read permission on oratab to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00036" mode="RECORD" name="Domain Name">
<sdp_command type="RDA"><![CDATA[var ($hst) = command('hostname')
var ($nam,$dom) = split('\.',$hst,2)
if testFile('x','/bin/domainname')
 var ($nis) = command('/bin/domainname')
if testFile('r','/etc/resolv.conf')
 var $dns = field('\s+',1,grepFile('/etc/resolv.conf','domain'))
if testFile('x','/usr/sbin/nslookup')
{if $nam
 {var $nsl = field(concat(quote($nam),'\.'),1,\
                  grepCommand(concat('/usr/sbin/nslookup ',$hst),'Name','f'))
 }
 else
 {var $nsl = field(concat(quote($hst),'\.'),1,\
                  grepCommand(concat('/usr/sbin/nslookup ',$hst),'Name','f'))
 }
}
call setHcveResult(cond($dom,$dom,\
                        $nis,$nis,\
                        $dns,$dns,\
                        $nsl,$nsl,\
                             'NotFound'))
]]></sdp_command>
<sdp_description><![CDATA[This rule gets the host domain name.]]></sdp_description>
</sdp_rule>
<sdp_rule id="A00037" mode="VERIFY" name="Host Name Length">
<sdp_command type="RDA"><![CDATA[var $hst = uname('n')
call setHcveResult(cond(\
  expr('>',length($hst),255),'Host name is greater than 255 characters',\
                             'Host name is less than 255 characters'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks that your fully qualified host name is not longer than 255 characters.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" minimum="Host name is less than 255 characters" result="PASSED"><![CDATA[The host name is less than 255 characters. No action required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[Modify your fully qualified host name to less than 255 characters.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00038" mode="RECORD" name="IP address">
<sdp_command type="RDA"><![CDATA[var ($hst) = command('hostname')
var $ip = field('\s+',1,grepCommand(concat('/usr/sbin/ping -a ',$hst),'.','f'))
call setHcveResult(substr($ip,1,expr('-',length($ip),2)))
]]></sdp_command>
<sdp_description><![CDATA[This rule gets the host IP address.]]></sdp_description>
</sdp_rule>
<sdp_rule id="A00039" mode="VERIFY" name="DNS Lookup">
<sdp_dependencies>
<sdp_dependency condition="IS" id="A00038" minimum="RECORD" result="FAILED"><![CDATA[Requires rule 38.]]></sdp_dependency>
</sdp_dependencies>
<sdp_command type="RDA"><![CDATA[var $ip  = "%A00038%"
var $hst = field('\.',0,command('hostname'))
call setHcveResult(cond(\
  not(length($ip)),\
    'Cannot determine IP address',\
  not(testFile('x','/usr/sbin/nslookup')),\
    'Cannot access /usr/sbin/nslookup',\
  and(grepCommand(concat('/usr/sbin/nslookup ',$hst),quote($ip),'f'),\
      grepCommand(concat('/usr/sbin/nslookup ',$ip),quote($hst),'f')),\
    'Host correctly registered in DNS',\
    'Host not correctly registered in DNS'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the host is registered properly in the DNS.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" minimum="Host correctly registered in DNS" result="PASSED"><![CDATA[The host is registered correctly in the DNS.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Host not correctly registered in DNS|Register the host.domain in the DNS.|
|Cannot determine IP address|Fix any problem with the host IP address.|
|Cannot access /usr/sbin/nslookup|Grant execute permission on /usr/sbin/nslookup to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00040" mode="VERIFY" name="/etc/hosts Format">
<sdp_dependencies>
<sdp_dependency condition="IS" id="A00036" minimum="RECORD" result="FAILED"><![CDATA[Requires rule 36.]]></sdp_dependency>
<sdp_dependency condition="IS" id="A00038" minimum="RECORD" result="FAILED"><![CDATA[Requires rule 38.]]></sdp_dependency>
</sdp_dependencies>
<sdp_command type="RDA"><![CDATA[var $dom = "%A00036%"
var $ip  = "%A00038%"
if !testFile('r','/etc/hosts')
 return setHcveResult('Cannot access /etc/hosts')
var $hst = field('\.',0,command('hostname'))
var $fqd = concat($hst,'.',$dom)
var ($lin) = grepFile('/etc/hosts',quote($fqd),'f')
var @fld = split('\s+',$lin,4)
call setHcveResult(cond(\
  compare('eq',join('|',$fld[0],$fld[1]),join('|',$ip,$fqd)),\
    'Contains host.domain',\
    'Missing host.domain'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the /etc/hosts file contains a line with "ip_address fully_qualified_hostname short_hostname".]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" minimum="Contains host.domain" result="PASSED"><![CDATA[The Fuly Qualified Domain name is set correctly.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[The Fully Qualified Host Name is not configured properly.
|*Return Value*|*Action*|
|Missing host.domain|Add the FQDN to the /etc/hosts file.|
|Cannot access /etc/hosts|Grant read permission on /etc/hosts to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00041" mode="VERIFY" name="DHCP Client">
<sdp_command type="RDA"><![CDATA[call setHcveResult(cond(\
 grepCommand('ps -leaf','dhcpagent','f'),'Possible dhcpagent daemon running',\
                                         'dhcpagent daemon not running'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the server is running DHCP client (dhcpagent daemon). DHCP clients are not supported.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" minimum="dhcpagent daemon not running" result="PASSED"><![CDATA[This server is not using a DHCP client. No action required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[DHCP clients are not supported. You must use a static IP address and host name.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00042" mode="VERIFY" name="Oracle Home Length">
<sdp_command type="RDA"><![CDATA[var $ORACLE_HOME = getEnv('ORACLE_HOME')
call setHcveResult(cond(\
  not(defined($ORACLE_HOME)),\
    'ORACLE_HOME is not set',\
  expr('<=',length($ORACLE_HOME),127),\
    'Less than 127 char',\
    'Longer than 127 characters'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks that the path to the Oracle home directory is not longer than 127 characters.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" minimum="Less than 127 char" result="PASSED"><![CDATA[The Oracle home directory is not longer than 127 characters.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Longer than 127 characters|Change ORACLE_HOME to a directory not longer than 127 characters.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00043" mode="VERIFY" name="NLS_LANG">
<sdp_command type="RDA"><![CDATA[var $env = getEnv('NLS_LANG')
call setHcveResult(cond(\
  not(defined($env)),\
    'Not set',\
  match($env,'american_america',true),\
    'Set properly',\
    'Not set properly'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the NLS_LANG environment variable is defined. If it is defined, then it must be set to American_America, otherwise OID Configuration Assistant will fail.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" minimum="Not set|Set properly" result="PASSED"><![CDATA[The NLS_LANG environment variable is set properly or else is not set.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Not set properly|Set the NLS_LANG environment variable to AMERICAN_AMERICA.&lt;characterset&gt;|]]></sdp_action>
</sdp_actions>
</sdp_rule>
</sdp_group>
</sdp_content>
</sdp_diaglet>
