Scripts
Oracle Clusterware ocrcheck: Verify OCR Health
Feb 10, 2024 / · 2 min read · oracle database cluster administration Oracle CRS Oracle Clusterware Managing oracheck ·Overview Of ocrcheck Command The ocrcheck command is a valuable tool for managing the Oracle Cluster Registry (OCR) within Oracle Clusterware Retrive OCR (Oracle Cluster Registry) information Sample SQL Command 1ocrcheck Purpose: ocrcheck is a command-line utility used to verify the health and consistency of the Oracle …
Read MorePreventing a Database Startup at Boot Time: srvctl disable database This command, commonly used in Oracle environments, instructs Oracle Clusterware to prevent a specific database from automatically starting when the operating system boots. Understanding its purpose, breakdown, and key points can help you manage your …
Read MoreOracle oifcfg getif: Identify Cluster Interconnect Subnet
Feb 8, 2024 / · 2 min read · oracle database cluster administration Oracle CRS Oracle Clusterware managing oifcfg ·Understanding oifcfg getif for Oracle Cluster Interconnect Subnet Change The Oracle Clustware command oifcfg getif is a crucial utility for managing Oracle Clusterware and its private interconnect subnet. Below is breakdown of its purpose, usage, and key points: Change the private interconnect subnet. First find the …
Read MoreUnderstanding oifcfg for Changing Oracle Cluster Interconnect Subnet The oifcfg Oracle Clusterware commands presented involve modifying the Oracle Clusterware private interconnect subnet.What follows is a breakdown of their purpose, usage, and key points: Make a note of the interface name (eth1 in the following …
Read MoreOracle Tablespaces Needing More Space: SQL Script
Feb 6, 2024 / · 3 min read · database administration resource optimization performance monitoring data management tablespace datafiles dba_data_files dba_tablespaces dba_free_space ·Description of Oracle Database SQL code for Identifying Tablespaces Needing Space This code helps identify tablespaces requiring additional space to maintain an 80% utilization threshold in your Oracle database. Below is a breakdown of its purpose, components, and key points: Sample SQL Command 1set pages 999 lines 100 …
Read MoreListing 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 every segment 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
Feb 3, 2024 / · 7 min read · Tablespace Management Temporary Tablespace database_properties dba_users dba_tablespaces dba_temp_files ·Setting a Default Temporary Tablespace in Oracle Database Purpose Every Oracle database needs one answer to a plain question: where does temporary work go for a user who has no temporary tablespace of their own? The database default temporary tablespace is that answer. A new installation creates a single temporary …
Read MoreOracle Segments Nearing Max Extents via dba_segments
Identify Oracle Database Segments Nearing Their Maximum Extent Limit Oracle ignores the MAXEXTENTS storage parameter for objects in a locally managed tablespace, unless the tablespace has ALLOCATION_TYPE set to USER. That one rule decides whether the query below is useful on your database. It is a real early warning in …
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 More