Triggers for DBA’s

1. LOGON trigger to restrict user connections filtering USERNAME and HOST: 2. LOGON trigger to enable session tracing: 3. Trigger to capture DDL statements: 4. Trigger to capture on SERVERERROR: 5. Trigger on server shutdown: Hope these examples will help you to build triggers based on your project requirements

Configure password to Listener

Let us see how to set the listener password step wise. 1. Check the current status of the listener. 2. Security is ON but for Local OS Authentication. Now let us check the listener.ora file: 3. Now Stop the listener and configure password to the listener. 4. Let us verify the listener functionality with password: […]

Flashback a table in oracle database

Oracle strongly recommends that you run your database in automatic undo mode by leavingthe UNDO_MANAGEMENT initialization parameter set to AUTO, which is the default. In addition,set the UNDO_RETENTION initialization parameter to an interval large enough to include theoldest data you anticipate needing. For more information refer to the documentation on the UNDO_MANAGEMENT and UNDO_RETENTIONinitialization parameters […]

Blocking Sessions in Oracle

There are multiple ways to capture blocking sessions in oracle database. 1. A full query to get list of blocking sessions with BLOCKER, WAITER and OBJECT being blocked:It works on Single Instance and RAC set-up as well. 2. A simple query to find out blocking in the database: 3. To get limited information on blocking […]