BRCONNECT, ORA-01031: Insufficient Privileges

Symptom

BR0301E SQL error -1031 at location BrDbdiffRead-1, SQL statement:
'PREPARE stmt_5 FROM'
'SELECT OBJNAME FROM "SAPSR3".DBDIFF WHERE DBSYS IN ('ORACLE', ' ') AND OBJTYPE = 'TABL' AND DIFFKIND IN ('02', '61', '99') ORDER BY OBJNAME'
ORA-01031: insufficient privileges

Solution

1. Ensure BRTOOLS is having a correct permission and ownership. Refer to SAP Note 113747 for details. Alternatively, execute saproot.sh to reread and correcting the ownership and permission of BRTOOLS.

./saproot.sh SID

2. Execute the following command. Guidelines as per SAP Note 134592 and 834917

sqlplus /nolog @sapconn_role SR3
sqlplus /nolog @sapdba_role SR3

For dual stack (JAVA), execute additional command as per below

sqlplus /nolog @sapdba_role SR3DB

3. If the error is recurred, you can manually execute below command to grant the authorizations accordingly. This example is for SAPSR3 schema.

grant ALL on SAPSR3.SDBAH to sapdba;
grant ALL on SAPSR3.SDBAD to sapdba;
grant ALL on SAPSR3.DBAML to sapdba;
grant ALL on SAPSR3.DBARCL to sapdba;
grant ALL on SAPSR3.DBAFID to sapdba;
grant ALL on SAPSR3.DBAEXTL to sapdba;
grant ALL on SAPSR3.DBAREOL to sapdba;
grant ALL on SAPSR3.DBABARL to sapdba;
grant ALL on SAPSR3.DBADFL to sapdba;
grant ALL on SAPSR3.DBAOPTL to sapdba;
grant ALL on SAPSR3.DBASPAL to sapdba;
grant ALL on SAPSR3.DBABD to sapdba;
grant ALL on SAPSR3.DBABL to sapdba;
grant ALL on SAPSR3.DBATL to sapdba;
grant ALL on SAPSR3.DBAOBJL to sapdba;
grant ALL on SAPSR3.DBAPHAL to sapdba;
grant ALL on SAPSR3.DBAGRP to sapdba;
grant ALL on SAPSR3.DBAERR to sapdba;
grant ALL on SAPSR3.DBATRIAL to sapdba;
grant ALL on SAPSR3.DBSTATC to sapdba;
grant ALL on SAPSR3.DBSTATTORA to sapdba;
grant ALL on SAPSR3.DBSTATIORA to sapdba;
grant ALL on SAPSR3.DBSTATHORA to sapdba;
grant ALL on SAPSR3.DBSTAIHORA to sapdba;
grant ALL on SAPSR3.DBMSGORA to sapdba;
grant ALL on SAPSR3.DBCHECKORA to sapdba;
grant ALL on SAPSR3.MLICHECK to sapdba;
grant SELECT on SAPSR3.TGORA to sapdba;
grant SELECT on SAPSR3.IGORA to sapdba;
grant SELECT on SAPSR3.TSORA to sapdba;
grant SELECT on SAPSR3.TAORA to sapdba;
grant SELECT on SAPSR3.IAORA to sapdba;
grant SELECT on SAPSR3.SVERS to sapdba;
grant SELECT on SAPSR3.CVERS to sapdba;
grant SELECT on SAPSR3.DD02L to sapdba;
grant SELECT on SAPSR3.DD09L to sapdba;
grant SELECT on SAPSR3.DDNTT to sapdba;
grant SELECT on SAPSR3.DDART to sapdba;
grant SELECT on SAPSR3.DARTT to sapdba;
grant SELECT on SAPSR3.DBCHK to sapdba;
grant SELECT on SAPSR3.DBDIFF to sapdba;
grant ALL on SAPSR3.SAPLIKEY to sapdba;
grant SELECT on SAPSR3.RSNSPACE to sapdba;
grant SELECT on SAPSR3.RSPSPACE to sapdba;

You May Also Like

1 Comment

Leave a Reply?