When running Clarity upgrade, an error is thrown on Oracle:
java.sql.BatchUpdateException: error occurred during batching: ORA-01720: grant option does not exist for 'SYS.USER_OBJECT_USAGE'
SQL Text:
CREATE OR REPLACE FORCE
VIEW CMN_INDX_MONITORING_V ( TABLE_NAME, INDEX_NAME, MONITORING, USED, START_MONITORING, END_MONITORING ) AS
SELECT TABLE_NAME,
INDEX_NAME,
MONITORING,
USED,
START_MONITORING,
END_MONTIROING
FROM USER_OBJECT_USAGE
This happens when you have a separate user, such as a read only Clarity user that throws this issue.
Expected Results: The upgrade to complete successfully.
Actual Results: The upgrade fails with error java.sql.BatchUpdateException: error occurred during batching: ORA-01720: grant option does not exist for 'SYS.USER_OBJECT_USAGE' SQL Text: CREATE OR REPLACE FORCE VIEW CMN_INDX_MONITORING_V ( TABLE_NAME, INDEX_NAME, MONITORING, USED, START_MONITORING, END_MONITORING ) AS SELECT TABLE_NAME, INDEX_NAME, MONITORING, USED, START_MONITORING, END_MONTIROING FROM USER_OBJECT_USAGE.
Clarity 16.4.2, 16.4.3 with Oracle
DE207064
Fixed in Clarity 16.5.0 where this permission is no longer required
The workaround may require the view to be dropped as changing permissions whilst the object is already set may not provide them
Workaround:
Drop the existing view
Grant SELECT specifically, as SYS or SYSDBA -- replace Test with exact user name
Restart your Clarity Upgrade.
Once the old view and its conflicting grants are gone the Clarity install will run its CREATE OR REPLACE VIEW statement. It should succeed and then automatically reapply the grants