Unfortunately this is the case Thomas. The schema is created in repository via hdbschema file. Hence owned by _SYS_REPO. And the PAL views are created directly via SQL on the Sql console in the Catalog. These are owned by SYSTEM user/any logged in user.
But I am unable to grant any roles to _SYS_REPO by logging in as SYSTEM as it does not have grant rights on objects like theview and I get error :
com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [258]: insufficient privilege: Not authorized to grant the privilege on the view:
at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.createException(SQLExceptionSapDB.java:334)
at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.generateDatabaseException(SQLExceptionSapDB.java:174)
at com.sap.db.jdbc.packet.ReplyPacket.buildExceptionChain(ReplyPacket.java:100)
at com.sap.db.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:1141)
at com.sap.db.jdbc.CallableStatementSapDB.sendCommand(CallableStatementSapDB.java:1964)
at com.sap.db.jdbc.StatementSapDB.sendSQL(StatementSapDB.java:978)
at com.sap.db.jdbc.CallableStatementSapDB.doParse(CallableStatementSapDB.java:256)
at com.sap.db.jdbc.CallableStatementSapDB.constructor(CallableStatementSapDB.java:215)
at com.sap.db.jdbc.CallableStatementSapDB.<init>(CallableStatementSapDB.java:125)
at com.sap.db.jdbc.CallableStatementSapDBFinalize.<init>(CallableStatementSapDBFinalize.java:31)
at com.sap.db.jdbc.ConnectionSapDB.prepareStatement(ConnectionSapDB.java:1369)
at com.sap.db.jdbc.trace.Connection.prepareStatement(Connection.java:413)
at com.sap.ndb.studio.jdbc.JDBCConnection.prepareStatement(JDBCConnection.java:514)
at com.sap.ndb.studio.sql.model.accesscontrol.impl.ObjectPrivilegeImpl.deploy(ObjectPrivilegeImpl.java:167)
at com.sap.ndb.studio.sql.model.accesscontrol.impl.PrivilegesImpl.deployModifications(PrivilegesImpl.java:428)
at com.sap.ndb.studio.sql.model.accesscontrol.impl.PrincipalImpl.deployModifications(PrincipalImpl.java:649)
at com.sap.ndb.studio.sql.model.accesscontrol.impl.AuthenticatedUserImpl.deployModifications(AuthenticatedUserImpl.java:899)
at com.sap.ndb.studio.authorization.util.EMFModelExecutor$ChangeCommand.executeCommand(EMFModelExecutor.java:358)
at com.sap.ndb.studio.authorization.util.EMFModelExecutor$EmfExectionCommand.run(EMFModelExecutor.java:267)
at com.sap.ndb.studio.authorization.util.EMFModelExecutor$SqlBackGroundJob$1.call(EMFModelExecutor.java:429)
at com.sap.ndb.studio.authorization.util.EMFModelExecutor$SqlBackGroundJob$1.call(EMFModelExecutor.java:1)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Any pointers?
Regards,
Manjunath