Visualizing Disk Groups in Oracle ASM with SQL
Jan 6, 2024 / · 2 min read · disk space analysis oracle storage capacity monitoring asm disk utilization asm ·Visualizing Disk Groups in Oracle ASM with SQL Note: A group number of zero his indicates that a disk is available but hasn't yet been assigned to a disk group. SQL Code 1set lines 100 2col name format a10 3col path format a30 4select name 5, group_number 6, disk_number 7, mount_status 8, state 9, path 10from …
Read MoreChecking Cluster Health with crsctl check cssd SQL Command 1crsctl check cssd Purpose: To verify the status and health of the Cluster Synchronization Services (CSS) daemon (cssd), a crucial component of Oracle Clusterware. It's typically used in Oracle Real Application Clusters (RAC) and Oracle Automatic Storage …
Read MoreExamining Role Table Privileges in Oracle Using role_tab_privs
Examining Role Table Privileges in Oracle Using role_tab_privs This page delves into an Oracle SQL code snippet that investigates table privileges granted to a specific role. SQL Code 1select owner || '.' || table_name "TABLE" 2, column_name 3, privilege 4, grantable 5from role_tab_privs 6where role like '&role' 7/ …
Read MoreFind an Oracle role using the view dba_roles This page explores an Oracle SQL code snippet that retrieves information about database roles based on user-provided search criteria. SQL Code 1select * 2from dba_roles 3where role like '&role' 4/ Purpose: This code retrieves information about a specific database role, based …
Read MoreRetrieving User Role Privileges in Oracle using the view dba_role_privs This page examines an Oracle SQL code snippet that fetches granted roles and their associated admin options for a specified user. SQL Code 1select grantee 2, granted_role 3, admin_option 4from dba_role_privs 5where grantee like upper('&username') …
Read MoreList all the Oracle Users Account Information for the Oracle Database using dba_users A detailed overview of user accounts in the Oracle database, including their status, creation date, tablespaces, and more SQL Code 1set pages 999 lines 100 2col username format a20 3col status format a8 4col tablespace format a20 5col …
Read MoreLock or Unlock an Oracle User in the Database A brief guide on locking user accounts using the alter user <username> account lock; command, including its purpose, key points, and best practices. Lock User SQL Code 1alter user <username> account lock; 2/ Unlock User SQL Code 1alter user <username> account unlock; 2/ …
Read MoreShow all Active SQL for Sessions using v$session and v$sqlarea Gain real-time insights into currently active user sessions and the SQL statements they are executing to troubleshoot performance issues and optimize resources SQL Code 1set feedback off 2set serveroutput on size 9999 3column username format a20 4column …
Read MoreDisplay Oracle v$session_longops sessions Gain visibility into recently completed long-running operations for monitoring performance and resource usage SQL Code 1set lines 100 pages 999 2col username format a15 3col message format a40 4col remaining format 9999 5select username 6, to_char(start_time, 'hh24:mi:ss …
Read MoreDisplay the Oracle database chararter set information Explore language and locale configurations that shape data interpretation and presentation for globalized applications and accurate data handling. SQL Code 1select * from nls_database_parameters 2/ Sample Oracle Output 11 22SQL> Purpose: To retrieve and display all …
Read More