MSCA logs, debugging and server details

Logs, Debugging and server details

Debugging -

  • The Class - oracle.apps.inv.utilities.server.UtilFns gives us the feature to be able to debug the custom code by printing logs at various levels.
  • The usage of the class UtilFns with various functions like log, trace, error, warning, etc.. helps us to print the log at those levels.
  • The various levels of logs are as follows and their way of usage in the code -

    • UtilFns.trace("#########Trace Level Logs#########");
    • UtilFns.log("#########Log level logs#########");
    • UtilFns.error("#########Error level logs#########");
    • UtilFns.fatal("#########Fatal level logs#########");
    • UtilFns.Warning("#########Warning level logs#########");

Log File Location -   

  • Log will be available in $LOG_HOME directory 
  • Port_number.INV.log --> This file will have the debugging information of all the  mentioned log statement like trace, log, error, warning etc are written.
  • Port_number.system.log --> This will have the logging information of java api, oracle api, Lov sql statement failure that are used in the custom java page of MSCA.
  • tail -f Port_number.INV.log  is the command to see the current session log

Server side actions-

 MWA Configuration Files -
  • mwa.cfg - This file has the below information for the MSCA
    • Database configuration - DBC file location
    • Log directory path and log types (i.e. trace,log,etc)
    • Telnet Port details- MSCA server port number, Timeout session details, server name.
  • default_key.ini - This file has the mapping of the keys to the function it will do in the MSCA?MWA Screen. we can customize this file as per the need.
    • following some of the keys and their functions
    • F3 - Back one page
    • Page down - CTRL+C
    • About page - CTRL+X
    • Main menu - CTRL+N
  •  deviceIP.ini  - This is device key configuration mapping file.
    • this file has two sections
      • Device- Maps the device to the key config file.
      • Map- Maps the IP address of the device to the key config file. 

Start or Stop the server -

  • mwactl.sh -  
    • This file is used to start/stop the MWA listener on specific port.  
    • When we set the classpath we need to take bounce of the server and that is also done using this file.
    • command to start - mwactl.sh start
    • command to stop - mwactl.sh -login stop/stop_force port_number 

Comments