# DConet.cfg: Collects Oracle Net Information # $Id: DConet.cfg,v 1.5 2013/11/05 17:35:54 RDA Exp $ # ARCS: $Header: /home/cvs/cvs/RDA_8/src/scripting/lib/collect/OS/DConet.cfg,v 1.5 2013/11/05 17:35:54 RDA Exp $ # # Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. # # Change history # 20131105 MSC Improve code consistency. ############################################################################### # Collect the Oracle Net setup information ############################################################################### #------------------------------------------------------------------------------ # Module definition #------------------------------------------------------------------------------ col=${B_IN_USE} dsc='Collects Oracle Net Information' pre=RDA:DCbegin var=B_IN_USE # Flow:in_use exe=sdcl { "if ${PRF.B_TESTS} " var @{AUX.var} = ('in_use') } #------------------------------------------------------------------------------ # Setting definitions #------------------------------------------------------------------------------ [in_use] typ=B dft=true dsc='Is Oracle Net information requested?' nam=B_IN_USE var=W_PREF,N_LOG_SIZE,R_TRACE_AGE,R_TRACE_SIZE,B_EXTRA_TNSADMIN [B_IN_USE] typ=B dft=${AUX.B_SELECTED} dsc='Is Oracle Net information requested?' inp='Do you want RDA to collect Oracle Net information (Y/N)?' var=true:W_PREF,N_LOG_SIZE,R_TRACE_AGE,R_TRACE_SIZE,B_EXTRA_TNSADMIN [W_PREF] typ=M dft=${PRF.W_PREF:cond(${ENV.TNS_ADMIN},'tns','ora')} dsc='Indicate the preference for listener.ora detection' err='A valid entry is a number from the list presented above' inp='Indicate your choice' itm=(1 => 'Using TNS_ADMIN',\ 2 => 'Using the Oracle home',\ 3 => 'Using the ASM home',\ 4 => 'Specify the listener.ora location') lvl=6 mnu=cond(${ENV.TNS_ADMIN},list('1','2','3','4'),list('2','3','4')) rsp=(1 => 'tns',2 => 'ora',3 => 'asm',4 => 'set') val=E var=tns:set_listener_ora:\ set:F_LISTENER_ORA [set_listener_ora] typ=F dft=(catFile(${ENV.TNS_ADMIN},'listener.ora'),\ ${F_LISTENER_ORA}) dsc='listener.ora location' nam=F_LISTENER_ORA [F_LISTENER_ORA] typ=F dft=(catFile(${ENV.TNS_ADMIN},'listener.ora'),\ catFile(${SET.RDA.BEGIN.D_ORACLE_HOME},'network','admin','listener.ora')) dsc='listener.ora location' inp='Enter the location of the listener.ora file (including the directory and \ file name' lvl=6 val=W [N_LOG_SIZE] typ=N dft=1048576 dsc='Size of the listener log section to analyze' err='The number of bytes must be an integer greater than zero' inp='Enter the size (in bytes) of the listener log section to analyze' lvl=9 ref='I]0,[' val=F [R_TRACE_AGE] typ=N dft=15 dsc='Age limit (in days) of the trace files to be collected' err='The number of days must be a positive number' inp='Enter the age limit (in days) for the trace files to be collected' lvl=6 ref='R[0,[' val=F [R_TRACE_SIZE] typ=N dft=10 dsc='Total size limit (in MiB) for collected traces' err='The number of MiB must be a positive number' inp='Enter the total size limit (in MiB) for collected traces' lvl=6 ref='R[0,[' val=F [B_EXTRA_TNSADMIN] typ=B dft=false dsc='Do you want to collect information from extra TNS_ADMIN directories?' inp='Do you want RDA to collect information from extra TNS_ADMIN directories \ (Y/N)?' lvl=6 var=D_EXTRA_TNSADMIN [D_EXTRA_TNSADMIN] typ=D dsc='List of extra TNS_ADMIN directories' end='.' err='The path is not absolute or the directory does not exist' inp="Enter the absolute path of an extra TNS_ADMIN directory or a period \ (${AUX.end}) to terminate the list" lvl=6 man='RDA repeats the question until you enter a period (.) to terminate \ the list. RDA considers existing directories only.' ref='ADR' val=E