Advanced Search
Search Results
74 total results found
Scheduler jobs running now
When to use it During the daily check, and when someone asks if a batch job is still running. Run this Script: 02_show_running_jobs.sql. Full version in Administration › Scheduler management › Scheduler status. SET LINESIZE 150 SET PAGESIZE 50 COLUMN OWNER FO...
Who is connected
When to use it When the number of sessions is high, when you need to know which application user holds the connections, or before maintenance. Run this Script: 03_count_sessions_by_user.sql. Full version in Administration › Session management › Session status...
Finding blocking locks
When to use it When users say the application is frozen, a screen never returns, or a batch job stopped making progress. Run this Script: 02_query_blocking_locks.sql. Full version in Administration › Session management › Session locking. -- ==================...
Killing a session safely
When to use it Only after you have identified the session, understood what it is doing, and received confirmation from the application owner or a senior DBA. Run this This script does not kill anything. It writes the kill commands for the inactive sessions of ...
Tablespaces and datafiles
When to use it When a tablespace is filling up and you need to see its files, sizes and whether they can grow. Run this Script: 07_show_tablespace_overview.sql. Full version in Administration › Storage management › Tablespaces. -------------------------------...
TEMP usage
When to use it When a query fails with ORA-01652 (unable to extend temp segment), or when you want to see which sessions are using temporary space. Run this Script: 05_monitor_temp_usage.sql. Full version in Administration › Storage management › Tablespaces. ...
Redo logs
When to use it When the alert log shows "Checkpoint not complete", when commits are slow, or when you are getting to know a new database. Run this Script: 02_analyze_redo_groups.sql. Full version in Administration › Storage management › Redo logs. -- ========...
Archive log generation
When to use it To learn the normal rhythm of a database, and when the archive destination or the recovery area is filling faster than usual. Run this Script: 01_count_archive_logs.sql. Full version in Administration › Database monitoring › Archive logs. set l...
Users, status and profiles
When to use it When a user cannot log in, when you are asked whether an account exists, or during an access review. Run this Starter query written for this guide: SELECT username, account_status, profile, TO_CHAR(created, 'YYYY-MM-DD') AS created, ...
Extracting user DDL and grants
When to use it When you need to recreate a user in another environment, document its access, or keep a copy before a change. Run this Script: user_ddl.sql. Full version in Security › Users and privileges › Users and grants. -- Configurações para limpar a saíd...
Basic auditing
When to use it When you are asked who logged in, who failed to log in, or who changed an object. Run this Script: audit_queries.sql. Full version in Security › Audit trails › Audit queries. 1. Check Which Auditing Is Enabled SELECT value FROM v$option WHERE p...
Listing backups with RMAN
When to use it When you need to confirm from RMAN itself what backups exist, for example before maintenance or when someone asks "can we restore to yesterday?". Run this Script: rman_list_backups.sh. Full version in Administration › Utility scripts › Startup,...
Archival errors
When to use it When the alert log shows an archiver error, sessions hang with ORA-00257, or the database seems frozen for every user at once. Run this Script: DIAGNOSE_ARCHIVAL_ERROR.sql. Full version in Administration › Utility scripts › Archival errors. -- ...
Job run history
When to use it Every morning to see whether jobs failed overnight, and when someone asks if and when a job ran. Run this Script: 03_show_job_details.sql. Full version in Administration › Scheduler management › Scheduler status. ACCEPT JOB_NAME PROMPT 'Enter j...
Disabling and reactivating jobs
When to use it Before maintenance, a refresh or a migration, when jobs of one schema must not run; and afterwards, to turn them back on. Run this Script: 04_disable_all_owner_jobs.sql. Full version in Administration › Scheduler management › Scheduler jobs. --...
Before you start: licenses
Several performance features need extra licenses on Enterprise Edition. Using them without the license is a compliance problem, even if the query works. Diagnostics Pack: AWR, ASH and every dba_hist_ view. Tuning Pack: SQL Monitor reports, SQL Tuning Advisor ...
Finding the SQL_ID
When to use it When someone reports a slow screen or report and you need to find the statement behind it. Almost every performance tool asks for a SQL_ID. Run this If you know the session: SELECT inst_id, sid, serial#, username, status, sql_id, prev_sql_id, ev...
Seeing the execution plan
When to use it Once you have a SQL_ID and want to see how the database is running that statement. Run this Starter query written for this guide: -- Plan currently in memory SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY_CURSOR('<SQL_ID>', NULL, 'TYPICAL')); -- Plans k...