Oracle
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 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 MoreTable Storage Usage by User with dba_segments Tables grow quietly until a tablespace fills. This query lists every table a user owns, largest first, in MB. The query reads the dba_segments view to list all tables owned by a user, sorted by their size in megabytes (MB). Sample SQL Command 1-- List all tables owned by a …
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
Query Object Size from DBA_SEGMENTS Finding how big one object is takes a single query against DBA_SEGMENTS. Sample SQL Command 1col segment_name format a20 2select segment_name 3, bytes "SIZE_BYTES" 4, ceil(bytes / 1024 / 1024) "SIZE_MB" 5from dba_segments 6where segment_name like '&obj_name' 7/ Sample Oracle Output …
Read MoreOracle DBA_OBJECTS: List All Objects Owned by a User
Unveiling Your Database Toolkit: Exploring Objects Owned by a User in Oracle In the intricate world of database management, understanding the landscape of objects is crucial for efficient operation. This blog post empowers you to leverage a specific Oracle Database SQL code snippet to list all objects owned by a …
Read MoreUnveiling the Mystery: Demystifying an Oracle Database Procedure In the realm of relational databases, procedures serve as powerful tools for encapsulating complex sets of instructions and improving code reusability. They act as building blocks, streamlining development and maintenance. Today, we'll delve into the …
Read More