Enabling non-DBSA users to view SQL statements in an active session
You can enable non-database server administrator (DBSA) users to view SQL statements in an active session.
By default, the onstat commands that show the
SQL statement text from an active session are restricted to DBSA users.
To remove this restriction, set the UNSECURE_ONSTAT configuration
parameter to 1
. The onstat commands
that show SQL statements include onstat -g his, onstat
-g ses, onstat -g stm, onstat
-g ssc, and onstat -g sql.
The UNSECURE_ONSTAT configuration parameter takes effect when the database server is shut down and restarted.