Plsql
Write Text Files from Oracle PLSQL with UTL_FILE Example
May 2, 2026 / · 5 min read · Oracle Database PLSQL UTL_FILE File IO Oracle DBA Database Programming Directory Object Stored Procedures ·Write Text Files from Oracle PL/SQL with UTL_FILE Example Purpose UTL_FILE is the built-in Oracle PL/SQL package for reading and writing operating-system files from inside the database. The procedure below — taken straight from the shutdownabort.com DBA Quick Guides (Andrew Barry, 2007–2013, preserved via the Wayback …
Read MoreOracle CREATE DIRECTORY Command Explained
Apr 12, 2026 / · 6 min read · Oracle DBA SQL DataPump Directory Database Administration PLSQL Oracle Scripts all_directories dba_directories ·Oracle CREATE DIRECTORY Command Explained The Oracle CREATE DIRECTORY command creates a directory object — a logical alias inside the Oracle database that points to a real folder on the server's file system. This is one of the most used setup steps for Oracle Data Pump exports and imports, UTL_FILE file operations, …
Read MoreOracle DBMS_FLASHBACK.ENABLE_AT_TIME: Session Flashback
Mar 12, 2026 / · 5 min read · Oracle Flashback DBMS_FLASHBACK Undo Management PLSQL DBA Scripts Point-in-Time Recovery Database Administration ·Oracle DBMS_FLASHBACK Enable At Time: Session Flashback Guide Oracle's DBMS_FLASHBACK.ENABLE_AT_TIME is a powerful procedure that lets you travel back in time within your database session — letting you query data exactly as it existed at a specific past moment, without needing a full database restore. What This Code …
Read MoreOracle: Disable Flashback with DBMS_FLASHBACK.DISABLE
Mar 11, 2026 / · 5 min read · Oracle Flashback PLSQL DBA Database Administration Oracle Scripts Backup Recovery Admin Guide ·Overview When working with Oracle Database, there are times when you need to look at data from the past — like rewinding a video to see what happened earlier. Oracle gives you a tool called Flashback to do this. But once you are done looking at past data, you must turn Flashback off. The command to do that is: 1EXEC …
Read MoreOracle: Enable or Disable GATHER_STATS_JOB
Oct 1, 2025 / · 4 min read · oracle database dbms scheduler statistics gathering performance tuning database administration plsql optimizer statistics maintenance tasks dbms_scheduler ·Enable or Disable Oracle GATHER_STATS_JOB for Automatic Statistics Collection The GATHER_STATS_JOB is a critical Oracle Database scheduled job that automatically collects optimizer statistics to ensure the database query optimizer generates efficient execution plans. This job is enabled by default when creating a new …
Read MoreHow to Remove an Oracle AWR Baseline Using DROP_BASELINE
Sep 30, 2025 / · 4 min read · Oracle AWR Database Performance DBA PLSQL Performance Tuning Baseline Management Workload Repository dba_hist_baseline dba_hist_snapshot ·How to Remove an Oracle AWR Baseline Using DROP_BASELINE Purpose The DROP_BASELINE procedure removes a previously-defined AWR (Automatic Workload Repository) baseline from an Oracle database. This command is essential for database administrators who need to conserve storage space by deleting unused or outdated …
Read MoreOracle AWR Baseline with DBMS_WORKLOAD_REPOSITORY
Sep 29, 2025 / · 6 min read · Oracle Database AWR Performance Tuning Database Monitoring PLSQL DBA Scripts Baseline Management Performance Analysis DBMS_WORKLOAD_REPOSITORY dba_hist_baseline ·Oracle AWR Create Baseline for Performance Monitoring DBMS_WORKLOAD_REPOSITORY.CREATE_BASELINE What is Oracle AWR Create Baseline The DBMS_WORKLOAD_REPOSITORY.CREATE_BASELINE procedure creates a baseline by preserving a specific range of AWR snapshots for future performance comparisons. A baseline protects performance …
Read MoreOracle AWR Manual Snapshot: DBMS_WORKLOAD_REPOSITORY
Sep 27, 2025 / · 5 min read · Oracle Database AWR Performance Tuning Database Administration PLSQL Monitoring Troubleshooting Database Optimization dbms_workload_repository dba_hist_snapshot ·How to Manually Take an AWR Snapshot in Oracle Database with dbms_workload_repository.create_snapshot What is Oracle AWR Snapshot Creation? Creating a manual AWR snapshot in Oracle Database allows database administrators to capture performance statistics at specific points in time, providing precise data for …
Read MoreOracle AWR: Change Retention Period to 14 Days
How to Change Oracle AWR Retention Period to 14 Days using dbms_workload_repository.modify_snapshot_settings Purpose The Oracle code changes the Automatic Workload Repository (AWR) retention period from the default 8 days to 14 days (two weeks). This allows database administrators to store performance snapshots for a …
Read MoreStruggling with compilation errors and warnings in Oracle Database? For those working with Oracle Database, ensuring code compiles smoothly is paramount. Compilation errors can derail stored procedures, functions, packages, and triggers, leading to unexpected behavior. This guide equips you with the knowledge to …
Read More