Problem:
--------------
Service does not start
oramkk@dogan:/home/oracle$ srvctl start service -s NECOSRV -d NECODB
PRCD-1084 : Failed to start service NECOSRV
PRCR-1079 : Failed to start resource ora.necodb.necosrv.svc
CRS-5017: The resource action "ora.necodb.necosrv.svc start" encountered the following error:
ORA-00904: "TABLE_FAMILY_ID": invalid identifier
. For details refer to "(:CLSN00107:)" in "/u01/app/oracle/diag/crs/dogan/crs/trace/ohasd_oraagent_oracle.trc".
From the trace I see that srvctl couldn't create service,but add service command completed successfully.I thing the problem is our grid version 19.3 but database version is 12.2.
Solution:
-------------
Create service and start from the database.
SQL> exec dbms_service.create_service('NECOSRV','NECOSRV');
PL/SQL procedure successfully completed.
oracle@dogan:/home/oramkk$ srvctl status service -s NECOSRV -d NECODB
Service NECOSRV is not running.
SQL> BEGIN
2 DBMS_SERVICE.start_service(
3 service_name => 'NECOSRV'
4 );
5 END;
6 /
PL/SQL procedure successfully completed.
oracle@dogan:/home/oracle$ srvctl status service -s NECOSRV -d NECODB
Service NECOSRV is running.