To create a database using DBCA is, select the ASM disk, but cannot discover the ASM disk Group
Because there are two scripts that need to be executed when the grid is installed, one of the scripts is/u01/app/orainventory/orainstroot.sh, which modifies permissions, which I think may be a matter of permissions.
My side asmcmd can view the ASM disk Group
[Grid@rac22 ~]$ Asmcmd
Asmcmd> ls
data/
data1/
data2/
Online See the following statement:
After installing the grid infrastructure and database, the owner of the installation directory may become root, reinstall or upgrade, and so on without modifying the owner of the installation directory or modifying the permissions on the directory and its files. If you modify the owner, for example, after you modify the owner of the directory from Root:oinstall to Grid:oinstall, or if you modify the read and write permissions for the directory and its files to 777, you may cause DBCA to create the database without finding the ASM disk group that was previously created
[Root@rhel1 bin]# Su–grid
[Grid@rhel1 ~]$ CD $GRID _home/bin
[Grid@rhel1 bin] $chmod +s Oracle
Chmod+s Meaning:
In order to facilitate ordinary users to execute some privileged commands, the Suid/sgid program allows ordinary users to temporarily execute the program as root and restore identity after execution. chmod +s is to give SUID permissions to a program or script.