0% found this document useful (0 votes)
24 views

134592 - Import of SAPDBA Role (Sapdba_role.sql)

This document addresses the issue of missing authorizations when using database tools like BRBACKUP, resulting in errors due to insufficient privileges. It provides a solution by offering an SQL script to create the SAPDBA role, which must be executed with the appropriate SAP schema ID. The document also includes cautions regarding the execution of the script in different system configurations and references related SAP notes for further information.

Uploaded by

vaibhav595996
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

134592 - Import of SAPDBA Role (Sapdba_role.sql)

This document addresses the issue of missing authorizations when using database tools like BRBACKUP, resulting in errors due to insufficient privileges. It provides a solution by offering an SQL script to create the SAPDBA role, which must be executed with the appropriate SAP schema ID. The document also includes cautions regarding the execution of the script in different system configurations and references related SAP notes for further information.

Uploaded by

vaibhav595996
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

2021-11-30 134592

134592 - Import of SAPDBA role (sapdba_role.sql)


Version 46 Type SAP Note
Language English Master Language German
Priority Recommendations / Additional Info Category Workaround of missing functionality
Release Status Released for Customer Released On 15.01.2021
Component BC-DB-ORA-DBA ( Database Administration )

Please find the original document at https://launchpad.support.sap.com/#/notes/ 134592

Symptom

If database accesses are performed using the database tools BRBACKUP, BRARCHIVE,
BRCONNECT, and BRSPACE, the relevant authorizations are missing.

BRBACKUP fails with the following error messages, for example:


BR0051I BRBACKUP 7.00 (20)
BR0055I Start of database backup: bddzbuxf.ant 2009-11-10 10.12.35
BR0280I Time stamp 2009-11-10 10.12.36
BR0301W SQL error -1031 at location BrLicCheck-7
ORA-01031: insufficient privileges
BR0301W SQL error -942 at location BrbDbLogOpen-1
ORA-00942: table or view does not exist
BR0324W Insertion of database log header failed
BR0280I Time stamp 2009-11-10 10.12.37
BR0301E SQL error -1031 at location BrCntrlCopy-1
ORA-01031: insufficient privileges
BR0320E Copying of control file to ... failed
BR0314E Collection of information on database files failed
BR0056I End of database backup: bddzbuxf.ant 2009-11-10 10.12.37
BR0280I Time stamp 2009-11-10 10.12.37
BR0054I BRBACKUP terminated with errors

In relation to table functions, the following errors can occur in SAP Release
7.40 SP10 or above:

BR0301E SQL error -1031 at location stats_tfun_update-2, SQL statement:


'BEGIN SAP091.UCONRFC_ATTRG (0, 1); END;'
ORA-01031: insufficient privileges
ORA-06512: at "SAP091.UCONRFC_ATTRG", line 1
ORA-06512: at line 1
BR1867E Updating statistics failed for table function SAP091.UCONRFC_ATTR

Other Terms

SAPDBA role, BR*Tools

Reason and Prerequisites

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

© 2021 SAP SE or an SAP affiliate company. All rights reserved 1 of 4


2021-11-30 134592

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):

sqlplus /nolog @sapdba_role <SAPSCHEMA_ID>

Where <SAPSCHEMA_ID> is the schema ID of the SAP database user:


- for User SAPR3: R3
- For the user SAPSR3: SR3
- for User SAP<SID>: <SID>
- for User SAP<SID>DB: <SID>DB

Sample call for a standard installation with the schema SAPSR3:

sqlplus /nolog @sapdba_role SR3

and with the schema SAPR3:

sqlplus /nolog @sapdba_role R3

The log file sapdba_role.log is created 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

You can ignore these error messages.

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

© 2021 SAP SE or an SAP affiliate company. All rights reserved 2 of 4


2021-11-30 134592
BC-DB-ORA-CCM (CCMS) Database Monitors

This document refers to

SAP Note/KBA Title

834917 Implementation of SAPCONN role (sapconn_role.sql)

717677 BRCONNECT call of SAPInst fails with ORA-01017

700548 FAQ: Oracle authorizations

662644 Composite SAP Note: ORA-00942

662219 Add. info. on upgrading to SAP Web AS 6.40 ORACLE

651452 DB13: No action log found for this action

437648 DB13: External program terminated with exit code 1/2

403704 BRCONNECT - enhanced function for Oracle DBA

400241 Problems with ops$ or sapr3 connect to Oracle

361641 Creating OPS$ users on UNIX

143288 SAPDBA: Super collective note

12741 Current versions of BR*Tools

1139623 Using transaction RZ20 to monitor remote Oracle databases

104215 DB13-DB24: CPIC communication error

This document is referenced by

SAP Note/KBA Title

2657740 BR0301E SQL error -1031 during update table statistics

2602281 BR0301E SQL error -1031 at location BrSapTspGet-8

12741 Current versions of BR*Tools

700548 FAQ: Oracle authorizations

403704 BRCONNECT - enhanced function for Oracle DBA

1139623 Using transaction RZ20 to monitor remote Oracle databases

© 2021 SAP SE or an SAP affiliate company. All rights reserved 3 of 4


2021-11-30 134592
717677 BRCONNECT call of SAPInst fails with ORA-01017

834917 Implementation of SAPCONN role (sapconn_role.sql)

662219 Add. info. on upgrading to SAP Web AS 6.40 ORACLE

361641 Creating OPS$ users on UNIX

50088 Creating OPS$ users on Windows NT/Oracle

651452 DB13: No action log found for this action

437648 DB13: External program terminated with exit code 1/2

662644 Composite SAP Note: ORA-00942

104215 DB13-DB24: CPIC communication error

143288 SAPDBA: Super collective note

Attachments

File Name File Size Mime Type

sapdba_role.sql 10 application/octet-stream

Terms of use | Copyright | Trademark | Legal Disclosure | Privacy

© 2021 SAP SE or an SAP affiliate company. All rights reserved 4 of 4

You might also like