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 / · 5 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 dbms_flashback ·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 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 dbms_workload_repository ·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
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 MoreOracle PL/SQL: SHOW ERRORS and dba_errors Explained
Mar 16, 2024 / · 9 min read · oracle plsql dba_errors user_errors all_errors all_plsql_object_settings dbms_warning ·Oracle PL/SQL: SHOW ERRORS and dba_errors Explained Purpose DBA_ERRORS is the data dictionary view that holds the current compilation errors for every stored object in the database. It is the first place to look when a procedure, function, package or trigger is created but does not work. The view describes the current …
Read More