ODA: After Apply ODA 12.2.1.2.0 Patch, Unable to Create TableSpace Due to [ORA-15001: diskgroup "DATA" does not exist or is not mounted | ORA-15040: diskgroup is incomplete] (Doc ID 2375553.1)
ODA: After Apply ODA 12.2.1.2.0 Patch, Unable to Create TableSpace Due to [ORA-15001: diskgroup "DATA" does not exist or is not mounted | ORA-15040: diskgroup is incomplete] (Doc ID 2375553.1)
APPLIES TO:
Oracle Database Appliance Software - Version 12.1.2.10 to 12.1.2.12 [Release 12.1]
Oracle Database - Enterprise Edition - Version 12.2.0.1 to 12.2.0.1 [Release 12.2]
Information in this document applies to any platform.
SYMPTOMS
After ODA upgrade to 12.2.1.2.0 release, tableSpaces cannot be created from 12.1 database in the ASM diskgroups due to the next errors:
将ODA升级到12.2.1.2.0版本后,由于以下错误,无法从ASM磁盘组中的12.1数据库创建表空间
***************** STATUS : OPEN DB_UNIQUE_NAME : CLOUDDB OPEN_MODE : READ WRITE LOG_MODE : ARCHIVELOG DATABASE_ROLE : PRIMARY FLASHBACK_ON : YES FORCE_LOGGING : YES VERSION : 12.1.0.2.0 CDB Enabled : NO ************************************* oracle@asmclouddb:/home/oracle/ [CLOUDDB] sqh SQL*Plus: Release 12.1.0.2.0 Production on Mon Mar 12 17:33:23 2018 Copyright (c) 1982, 2014, Oracle. All rights reserved. Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production With the Partitioning, Real Application Clusters, OLAP, Advanced Analytics and Real Application Testing options SQL> create tablespace testrecodg datafile '+RECO' size 1000M; create tablespace testrecodg datafile '+RECO' size 1000M * ERROR at line 1: ORA-01119: error in creating database file '+RECO' ORA-17502: ksfdcre:4 Failed to create file +RECO ORA-15001: diskgroup "RECO" does not exist or is not mounted ORA-15040: diskgroup is incomplete SQL> create tablespace testredodg datafile '+REDO' size 1000M; create tablespace testredodg datafile '+REDO' size 1000M * ERROR at line 1: ORA-01119: error in creating database file '+REDO' ORA-17502: ksfdcre:4 Failed to create file +REDO ORA-15001: diskgroup "REDO" does not exist or is not mounted ORA-15040: diskgroup is incomplete SQL> create tablespace testredodg datafile '+DATA' size 1000M; create tablespace testredodg datafile '+DATA' size 1000M * ERROR at line 1: ORA-01119: error in creating database file '+DATA' ORA-17502: ksfdcre:4 Failed to create file +DATA ORA-15001: diskgroup "DATA" does not exist or is not mounted ORA-15040: diskgroup is incomplete SQL> create tablespace testredodg datafile '+FLASH' size 1000M; create tablespace testredodg datafile '+FLASH' size 1000M * ERROR at line 1: ORA-01119: error in creating database file '+FLASH' ORA-17502: ksfdcre:4 Failed to create file +FLASH ORA-15001: diskgroup "FLASH" does not exist or is not mounted ORA-15040: diskgroup is incomplete SQL> exit Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production With the Partitioning, Real Application Clusters, OLAP, Advanced Analytics and Real Application Testing options oracle@asmclouddb:/home/oracle/ [CLOUDDB]
CAUSE
The OS group in the oracle RDBMS Oracle Home binary is not correct, it should be asmadmin instead of oinstall:
oracle RDBMS Oracle Home二进制文件中的OS组不正确,它应该是asmadmin而不是oinstall
[root@ ~]# ls -l /u01/app/oracle/product/12.1.0.2/dbhome_1/bin/oracle -rwsr-s--x 1 oracle oinstall 328120913 Feb 24 02:47 /u01/app/oracle/product/12.1.0.2/dbhome_1/bin/oracle
SOLUTION
a) Please execute the next steps as grid OS user: 请以grid OS用户身份执行以下步骤
$> setasmgidwrap o=/u01/app/oracle/product/12.1.0.2/dbhome_1/bin/oracle $> chgrp asmadmin /u01/app/oracle/product/12.1.0.2/dbhome_1/bin/oracle $> ls -l /u01/app/oracle/product/12.1.0.2/dbhome_1/bin/oracle
b) Then confirm the TableSpaces can be created: 然后确认可以创建TableSpaces
SQL*Plus: Release 12.1.0.2.0 Production on Fri Mar 16 10:04:45 2018 Copyright (c) 1982, 2014, Oracle. All rights reserved. Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production With the Partitioning, Real Application Clusters, OLAP, Advanced Analytics and Real Application Testing options SQL> create tablespace test1 datafile '+RECO' size 1000M; Tablespace created. SQL> create tablespace test2 datafile '+DATA' size 100M; Tablespace created. SQL> create tablespace test3 datafile '+REDO' size 100M; Tablespace created. SQL> create tablespace test4 datafile '+FLASH' size 100M; Tablespace created.
REFERENCES
NOTE:470211.1 - How To Gather & Backup ASM/ACFS Metadata In A Formatted Manner version 10.1, 10.2, 11.1, 11.2, 12.1 and 12.2?NOTE:888888.1 - Oracle Database Appliance - 18.1, 12.X, and 2.X Supported ODA Versions & Known Issues