Advanced Search
Search Results
74 total results found
SQL Monitor report
When to use it For a statement that is running right now for a long time, or ran recently, when you want to see where the time goes step by step. Needs the Tuning Pack. Run this Starter query written for this guide: SET LONG 1000000 LONGCHUNKSIZE 1000000 LINES...
Memory: PGA per session
When to use it When the server is short of memory, when you see ORA-04036 (PGA limit exceeded), or to find a session using an unusual amount of memory. Run this Script: 01_analyze_pga_usage.sql. Full version in Performance › Performance monitoring › Memory mo...
When to escalate
Escalating early with good information is part of the job, not a failure. Use this page to decide and to prepare. Escalate at once The database or a PDB is down, or will not start. The archiver is stuck or the recovery area is full. A backup failed and there i...
A tablespace is full
When to use it An application fails with ORA-01653, ORA-01654, ORA-01688 or ORA-30036, or the daily check shows a tablespace close to 100 percent. Run this Start with the facts for that tablespace. Script: 03_quick_tablespace_check.sql. Full version in Admini...
The application is frozen
Use this playbook when several users report that screens do not respond. Work through it in order and stop at the first step that explains the problem. Can you connect? If not, go to "TNS-12520: cannot connect". Is the archiver stuck? Look at the last lines of...
TNS-12520: cannot connect
When to use it New connections fail with TNS-12520 or ORA-12520 (listener could not find available handler), while existing sessions keep working. Run this Connect locally on the server, which does not go through the listener, and check the limits: sqlplus / a...
Checkpoint not complete
When to use it The alert log repeats "Checkpoint not complete" or "cannot allocate new log", and users notice short freezes during heavy activity. Run this Starter query written for this guide: -- State of the redo groups SELECT group#, thread#, ROUND(bytes / ...
TEMP is full
When to use it Queries fail with ORA-01652 (unable to extend temp segment), usually reports or batch jobs with large sorts. Run this First see who is using the space. Script: 05_monitor_temp_usage.sql. Full version in Administration › Storage management › Tab...
The database does not start
When to use it A STARTUP fails, most often right after a parameter change, with errors such as ORA-01078, ORA-00093 or ORA-27037. Run this Read the exact error first. Do not retry the startup in a loop. sqlplus / as sysdba STARTUP NOMOUNT; -- If this fails, t...
Daily, weekly and monthly checklists
Daily Instance and PDBs are open. Processes and sessions are below the warning level. No tablespace above the warning level; growth since yesterday looks normal. Last backup cycle completed. No new invalid objects. No failed scheduler jobs overnight. No blocki...
Glossary
Term Meaning Alert log The main log file of an instance. Startups, shutdowns, errors and log switches are written here. Archive log A saved copy of a redo log file. Needed to recover the database to a point in time. ASH Active Session History. Samples of what ...
Searching logs with grep
Everyday grep one-liners to find ERROR, ORA-, OutOfMemory and Java exceptions in a WildFly server.log for a given day and time window, count errors per hour, and filter /var/log/messages. This page is a collection of commands. Copy and run them one at a time; ...
Keeping long jobs alive with screen
Quick reference for creating, detaching, reattaching and closing screen sessions and windows. Used to keep long-running jobs (exports, RMAN, patching) alive across SSH disconnections. Create and use screen Opens a new session screen -S session_name Creates a n...
Disk full but nothing to delete: deleted files still open
lsof one-liners to list deleted-but-open files, sort them by size, total the space they hold per process, and generate truncate commands to release it. Used when df shows a full filesystem that du cannot explain. This page is a collection of commands. Copy and...
Copying large files with rsync
Wrapper around rsync -av with named modes for a plain copy, resuming a stalled transfer, skipping existing files, size-only comparison and in-place writes. Used to copy or resume large dump and backup files between servers. Usage ./rsync_transfer.sh --resume /...
Daily backup check: quick guide
The scripts search for the literal messages written by the backup job, Finalizado com successo (finished successfully) and Finalizado com ERRO (finished with error). Adjust the patterns if your backup logs use different wording. FILES INCLUDED check_daily_ba...
Daily backup check: full alias instructions
SCRIPT INSTALLATION 1. Copy the script to the server: # Create the directory if it does not exist mkdir -p /home/oracle/dba/backup_check # Copy the script scp check_daily_backup.sh oracle@dbserver01:/home/oracle/dba/backup_check/ # Or via FTP/SFTP 2. Grant exe...
Lab 1: Install Oracle 19c on Linux
A hands-on lab to train a junior DBA. Each participant installs and configures an Oracle 19c database on Linux from scratch, then uses the scripts from this guide to understand what is running. By the end, everyone has a working environment of their own to kee...