134592 - Import of SAPDBA Role (Sapdba_role.sql)
134592 - Import of SAPDBA Role (Sapdba_role.sql)
Symptom
If database accesses are performed using the database tools BRBACKUP, BRARCHIVE,
BRCONNECT, and BRSPACE, the relevant authorizations are missing.
In relation to table functions, the following errors can occur in SAP Release
7.40 SP10 or above:
Other Terms
1. The SAPDBA role was not created as described in the upgrade guide during an
SAP/Oracle upgrade.
2. You use one of the tools mentioned above in a lower SAP release and the
database authorizations have not been adjusted.
3. The database grants were deleted.
Solution
Please obtain the SQL script for the creation of the SAPDBA role from the
attachment to this SAP Note and execute this script as follows (sapdba_role.sql
in the current directory):
Caution 1
The schema ID is not to be confused with the schema name. Therefore, the
following call is incorrect:
sqlplus /nolog @sapdba_role SAPSR3
Caution 2
For MCOD systems, the script must be executed for all SAP schemas, for example,
for ABAP schemas and Java schemas in a database:
sqlplus /nolog @sapdba_role SR3
sqlplus /nolog @sapdba_role SR3DB
Caution 3
Since non-ABAP systems/schemas (a pure SAP J2EE database, for example) do not
contain all of the tables addressed in the SAPDBA role, the log file will
contain the following error messages, for example:
grant ALL on SAPSR3DB.DBAML to sapdba
*
ERROR at line 1:
ORA-00942: table or view does not exist
Caution 4
The attached SQL script works for Oracle Database Version 10g and above.
Caution 5
The import of the SAPDBA role into an Oracle multitenant database is described
in SAP Note 2333995, point 2.4.4.
Other Components
Component Description
Attachments
sapdba_role.sql 10 application/octet-stream