Monday, June 4, 2012

Selective tracing for Oracle SOA Suite


Selective tracing for Oracle SOA Suite:

In a production system, setting the trace at a fine-grained level can result in a large amount of output that must be diagnosed. You can alternately use selective tracing that provides a way to get a detailed, on-disk trace selectively (for example, by user name, thereby eliminating trace output for other users).

In Oracle SOA Suite 11g:

Activate the selective tracing:

  • Right-click the domain under WebLogic Domain and choose Logs > Selective Tracing.


  • From the Option Name list, choose the type of selective trace (for example, based on user name or Client Host)
  • For Level, select a logging level
  • For Duration, enter the number of minutes that you want the selective trace to run.
  • In the Loggers section, by default, all loggers are selected. You can select specific loggers that you want to trace. To find particular loggers, you can enter a string in the field above the table and click the Return key. For example, to find all loggers that begin with oracle.security, enter oracle.security.Then, in the table, select the loggers in the Enable on All Servers column.Click Apply for the Loggers Change.

  •  Click Start Tracing.

 Viewing Selective Traces Using Fusion Middleware Control:         

You can view the selective traces that are currently active and the history of selective traces.
  • From the Selective Tracing page, select the Active Traces and Tracing History tab.
  • The tab shows a table with the active traces and a table with the tracing history, as shown in the following figure:

  • To view a trace, select it from the appropriate table.


Disabling Selective Tracing Using Fusion Middleware Control:

  • From the Selective Tracing page, select the Active Traces and Tracing History tab.
  • In the Active Traces table, select the trace and click Disable.


In Oracle SOA Suite 12c:

Activate the selective tracing:

  • Click on Target Navigation - Weblogic Domain - Domain Name
  • Click on WebLogic Domain and choose Logs > Selective Tracing.
oracle_soasuite_12c_selective_tracing

oracle_soasuite_12c_selective_tracing

  • Select the Application Name or Add the Fields based on that the selective tracing should be enabled 
oracle_soasuite_12c_selective_tracing

oracle_soasuite_12c_selective_tracing_options

oracle_soasuite_12c_selective_tracing_options


  • For Level, select a logging level
  • For Duration, enter the number of minutes that you want the selective trace to run.
  • ODL and DMS logging is enabled by default - Disabled if the tracking is not required.
  • In the Loggers section, by default, all loggers are selected. You can select specific loggers that you want to trace. To find particular loggers, you can enter a string in the field above the table and click the Return key. For example, to find all loggers that begin with oracle.security, enter oracle.security.Then, in the table, select the loggers in the Enable on All Servers column.Click Apply for the Loggers Change.
oracle_soasuite_12c_selective_tracing_options

  •  Click Start Tracing.
oracle_soasuite_12c_selective_tracing_options

 Viewing Selective Traces Using Fusion Middleware Control:         

You can view the selective traces that are currently active and the history of selective traces.
  • From the Selective Tracing page, select the Active Traces and Tracing History tab.
  • The tab shows a table with the active traces and a table with the tracing history, as shown in the following figure:
oracle_soasuite_12c_selective_tracing_options

  • To view a trace, select it from the appropriate table.
oracle_soasuite_12c_selective_tracing_options



Disabling Selective Tracing Using Fusion Middleware Control:

  • From the Selective Tracing page, select the Active Traces and Tracing History tab.
  • In the Active Traces table, select the trace and click Disable.
oracle_soasuite_12c_disable_selective_tracing

Tracing History list all the previous traces

oracle_soasuite_12c_history_selective_tracing




No comments:

Post a Comment