Oracle Scripts
Listing Objects in an Oracle Tablespace
Feb 5, 2024 / · 3 min read · Oracle Database Administration SQL Tutorial database administration resource optimization performance monitoring data management tablespace dba_segments ·SQL lists all objects within a specific tablespace in an Oracle database A detailed explanation of Oracle Database SQL code used to list objects within a tablespace, including purpose, breakdown, key points, and insights. Sample SQL Command 1set pages 999 2col owner format a15 3col segment_name format a40 4col …
Read MoreIdentifying User Tablespaces and Space Usage in Oracle
Feb 4, 2024 / · 10 min read · Oracle DBA DBA_EXTENTS Tablespace Usage User Space Storage Reporting Oracle Administration Space Management Data Dictionary Views ·Query to Display All Tablespaces Used by A Specified User and The Total Space Occupied (rounded to MB) A schema audit before a migration, a quota review before approving more space, or a tablespace consolidation project all start with the same question: which tablespaces does a specific Oracle user actually touch, and …
Read MoreSetting a Default Temporary Tablespace in Oracle Database
Alters The Default Temporary Tablespace for the Entire Database to "temp" Sample SQL Command 1alter database default temporary tablespace temp 2/ Purpose: To specify the preferred location where temporary data should be stored for all user sessions within the database. This provides centralized management and …
Read MoreOracle Segments Nearing Max Extents via dba_segments
Identify Oracle Database Segments Nearing Their Maximum Extent Limit This guide explains an Oracle Database SQL code snippet that identifies segments approaching their maximum extent limit, its purpose, key points, and insights Sample SQL Command 1col segment_name format a40 2select owner 3, segment_type 4, …
Read MoreAdjusting Segment Growth with MAXEXTENTS in Oracle Database
Alters The MAXEXTENTS Parameter For A Specific Database Segment Sample SQL Command 1alter <segment_type> <segment_name> storage(maxextents 150); 2/ Purpose: To define the maximum number of extents the segment can occupy, controlling its potential growth and space allocation behavior. Breakdown: alter <segment_type> …
Read MoreMonitoring Temporary Tablespace Usage in Oracle Database
Jan 31, 2024 / · 3 min read · oracle sql-queries database-administration tablespace segments dba_segments dba_tablespaces v$session v$sort_usage ·Lists the Contents of the Temporary Tablespace(s), Including Details About Each Temporary Object and Its Associated Session Sample SQL Command 1set pages 999 lines 100 2col username format a15 3col mb format 999,999 4select su.username 5, ses.sid 6, ses.serial# 7, su.tablespace 8, ceil((su.blocks * dt.block_size) / …
Read MoreOracle Clusterware: Modify VIP Address and Network Interface
Jan 28, 2024 / · 3 min read · start stop modify srvctl administration Oracle CRS Oracle Clusterware Oracle Managing RAC ·Modifying VIP Address, Subnet Mask, or Interface in Oracle Clusterware Learn how to change the Virtual IP (VIP) address, subnet mask, or network interface for clustered nodes in an Oracle environment. This step-by-step guide includes commands, explanations, and key points to ensure a smooth and successful configuration …
Read MoreOracle srvctl config nodeapps Command in Clusterware
Jan 27, 2024 / · 3 min read · srvctl start stop administration Oracle CRS Oracle Clusterware Oracle Managing RAC ·Understanding the srvctl config nodeapps Command in Oracle Clusterware Check the VIP config 1srvctl config nodeapps -n <node> -a -g -s -l Sample Oracle Output 1 2no rows selected 3SQL> Description of the Oracle Database SQL code Purpose: The srvctl config nodeapps -n <node> -a -g -s -l command is not directly related …
Read MoreStarting and Stopping Oracle Database Instances with SRVCTL
Jan 26, 2024 / · 2 min read · srvctl start stop administration Oracle CRS Oracle Clusterware Oracle Managing RAC ·Start and stops a specific Oracle Database instance with the Server Control Utility (SRVCTL) SQL Code Start Database (Specific Node or Instance) 1srvctl start instance -d <database name> -i <instance name> Stop Database (Specific Node or Instance) 1srvctl stop instance -d <database name> -i <instance name> Sample …
Read MoreOracle srvctl Start and Stop Database in Clusterware
Jan 25, 2024 / · 2 min read · start stop administration Oracle CRS Oracle Clusterware Oracle Managing RAC ·Demystifying Database Start/Stop in Oracle Clusterware with srvctl SQL Code Start Database (All Nodes) 1srvctl start database -d <database name> Stop Database (All Nodes) 1srvctl stop database -d <database name> Demystifying Database Start/Stop in Oracle Clusterware with srvctl These commands, srvctl start database and …
Read More