Database Architect,Core DBA ,APPSDBA,Mysql DBA,MongoDB,PostgreSQL,MariaDB,Installations,Upgrades on all Flavors of UNIX (LINUX,SOLARIS,HP(AIX)). Oracle E-Business Suite R12 (Upgrades,Patching,Cloning) AWS upgrades and implementation expert. OCI (Oracle Cloud Infrastructure) Architect, Exadata (Oracle Database Exadata Cloud at Customer(Exacc)),Superclusters ,Autonomous Databases, AWS RDS Customs , Sql Tuning Expert. ***Never Stop sharing,Learning and Growing***
Sunday, July 7, 2024
ASM QUERIES
Tuesday, November 9, 2021
ASM - Query to find the size of Databases on an ASM diskgroup
Query to find the size of Databases on an ASM diskgroup
OUTPUT
Friday, July 9, 2021
DBCA Does Not Display ASM Disk Groups
DBCA Does Not Display ASM Disk Groups
When DBCA is launched by the oracle user OS account, the process gets to the screen to select the ASM disk groups but no Disk Groups are available.
If we launch DBCA from Grid user account , the disk groups are available.
I get this problem when trying to create a database with a different user than grid user ie oracle
I’ve installed Grid infrastructure with user grid, and I was trying to create a database with user oracle (who’s the owner of oracle rdbms). But during this installation I wasn’t able to see any of my ASM disk.
Cause
File permissions in <Grid_home>/bin/oracle executable not set properly.
Solution
As root, change the file permissions of the oracle executable under Grid_Home/bin to 6751:
# cd <Grid_Home>/bin
# chmod 6751 oracle
# ls -l oracle
-rwsr-s–x 1 grid oinstall 173515905 May 21 17:04 oracle
This is the setuid bit, and this must be set in order for users, other than “Grid” user to have it work.
Oracle Notes
ASM Diskgroup Can Not Be Shown When Creating Database With DBCA (Doc ID 1269734.1)
DBCA Does Not Display ASM Disk Groups In 11.2 (Doc ID 1177483.1)
Dbca Does Not Show ASM Diskgroup Information (Doc ID 1286434.1)
Monday, May 24, 2021
ASM Diskgroups not mounting ORA-15040
ORA-15032 , ORA-15017 , ORA- 15040 , ASM Disk-group not found
ERROR: diskgroup ASM_DATA was not mountedORA-15032: not all alterations performedORA-15017: diskgroup "DATA" cannot be mountedORA-15040: diskgroup is incomplete
when ASM restarted ORA-15032 , ORA-15017 , ORA- 15040
so running kfod again /u01/app/grid/product/12.2.0/grid/bin/kfod status=TRUE asm_diskstring='/dev/oracleasm/disks/*' disks=ALL-------------------------------------------------------------------------------- Disk Size Header Path User Group================================================================================ 1: 102400 MB MEMBER /dev/oracleasm/disks/DATA_01 grid oinstall 2: 102400 MB MEMBER /dev/oracleasm/disks/DATA_02 grid oinstall 3: 102400 MB MEMBER /dev/oracleasm/disks/DATA_03 grid oinstall 4: 102400 MB MEMBER /dev/oracleasm/disks/DATA_04 grid oinstall 5: 102400 MB MEMBER /dev/oracleasm/disks/DATA_05 grid oinstall 6: 102400 MB MEMBER /dev/oracleasm/disks/FRA_01 grid oinstall 7: 102400 MB MEMBER /dev/oracleasm/disks/FRA_02 grid oinstall 8: 102400 MB MEMBER /dev/oracleasm/disks/FRA_03 grid oinstall 9: 102400 MB MEMBER /dev/oracleasm/disks/FRA_04 grid oinstall--------------------------------------------------------------------------------ORACLE_SID ORACLE_HOME================================================================================ +ASM /u01/app/grid/product/12.2.0/gridthis display the correct disks so we need to change the diskstring to /dev/oracleasm/disks/*
Log in to the ASM instance as sysasm and set the asm_diskstring to what it was:
SQL> alter system set asm_diskstring='/dev/oracleasm/disks/*' scope=memory;SQL> select name, state from v$asm_diskgroup;
NAME STATE
------------------------------ -----------
DATA DISMOUNTED
FRA DISMOUNTED
SQL> alter diskgroup DATA mount;
Diskgroup altered.
SQL> alter diskgroup FRA mount;
Diskgroup altered.
SYS@+ASM> select name, state from v$asm_diskgroup;
NAME STATE
------------------------------ -----------
DATA MOUNTED
FRA MOUNTED
Stop and restart HAS
crsctl stop hasCRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'a04978'CRS-2673: Attempting to stop 'ora.ASM_FRA.dg' on 'a04978'CRS-2673: Attempting to stop 'ora.ASM_DATA.dg' on 'a04978'CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'a04978'CRS-2677: Stop of 'ora.ASM_FRA.dg' on 'a04978' succeededCRS-2677: Stop of 'ora.ASM_DATA.dg' on 'a04978' succeededCRS-2673: Attempting to stop 'ora.evmd' on 'a04978'CRS-2673: Attempting to stop 'ora.asm' on 'a04978'CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'a04978' succeededCRS-2677: Stop of 'ora.evmd' on 'a04978' succeededCRS-2677: Stop of 'ora.asm' on 'a04978' succeededCRS-2673: Attempting to stop 'ora.cssd' on 'a04978'CRS-2677: Stop of 'ora.cssd' on 'a04978' succeededCRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'a04978' has completedCRS-4133: Oracle High Availability Services has been stopped.
Start HAS
$ crsctl start hasCRS-4123: Oracle High Availability Services has been started.
Now restart the database and check disks are visible