Scripts
Quick Oracle Database Datafile Health Check with SQL
Quick Oracle Database Datafile Health Check with SQL This post explores a simple yet effective SQL query for a quick health check on your Oracle database's datafiles. We'll delve into the purpose, breakdown, key points, and insights gained from the query, providing valuable information for database administrators and …
Read MoreFind Autoextensible Datafiles in Oracle Database
How to Find Autoextensible Datafiles in Oracle Database (SQL Included) Are you managing an Oracle database and want to identify datafiles configured for automatic extension? This post will guide you through a simple SQL query to achieve that. We'll break down the code, explain its purpose, and offer valuable insights …
Read MoreLocate Your Oracle Database Datafile Directories with SQL
Locate Your Oracle Database Datafile Directories with SQL This handy SQL query that helps you pinpoint the exact directories where your Oracle database stores its datafiles. Understanding datafile locations is crucial for database administrators and anyone involved in managing an Oracle database. We'll explore the …
Read MoreIdentify Indexed Columns in Oracle Database Tables
Mar 19, 2024 / · 9 min read · indexing oracle indexes dba_ind_columns user_ind_columns all_ind_columns dba_indexes dba_ind_expressions ·Identify Indexed Columns in Oracle Database Tables Purpose Which columns does this index cover, and in what order? A developer asks it before adding an index that might already exist. A DBA asks it when a query scans a whole table and the team swears an index is in place. The answer is in the data dictionary, one row …
Read MoreOracle: Identify Large Indexes with SQL and DBA_SEGMENTS
Mar 17, 2024 / · 4 min read · dba_indexes dba_segments storage optimization peformance sql dba_ts_quotas ·Optimizing Your Oracle Database: A Guide to Identifying Large Indexes with SQL Keeping your Oracle Database running smoothly requires constant monitoring and optimization. Indexes, a crucial component for efficient data retrieval, can sometimes grow excessively, impacting performance. This blog post dives into 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 MoreUncovering Table Storage Usage in Oracle Database: A Guide with dba_segments For Oracle Database administrators (DBAs) and developers, managing storage efficiently is critical. Keeping track of table sizes helps identify potential space hogs and optimize resource allocation. This guide delves into a powerful SQL query …
Read MoreOracle DBMS_METADATA.GET_DDL: Extract Object DDL Purpose Oracle 9i introduced the DBMS_METADATA package. It can retrieve object definitions as DDL or as XML. The function GET_DDL turns that ability into a single query. You give it an object type, an object name and a schema. It returns the creation statement as a CLOB. …
Read MoreFind Tables Containing a Specific Column in Oracle Database Purpose Which tables in this database have a column called CUSTOMER_ID? Sooner or later every DBA or developer needs the answer. The DBA_TAB_COLUMNS view lists the columns of every table, view, and cluster in the database. One query against it returns each …
Read MoreUnveiling the Mystery Oracle for Object Size Analysis
Unveiling the Mystery: Demystifying an Oracle SQL Code Snippet for Object Size Analysis In the ever-evolving realm of database management, efficient resource utilization is paramount. Oracle, a widely recognized database management system, offers powerful tools to help optimize storage and performance. This blog post …
Read More