Database Security For Oracle
Database Security For Oracle
February 2006
SAP AG
Neurottstraße 16
69190 Walldorf
Germany
T +49/18 05/34 34 24
F +49/18 05/34 34 20
www.sap.com
© Copyright 2006 SAP AG. All rights reserved. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver and
other SAP products and services mentioned herein as well as their
No part of this publication may be reproduced or transmitted in any respective logos are trademarks or registered trademarks of SAP AG
form or for any purpose without the express permission of SAP AG. in Germany and in several other countries all over the world. All other
The information contained herein may be changed without prior product and service names mentioned are the trademarks of their
notice. respective companies. Data contained in this document serves
informational purposes only. National product specifications may
Some software products marketed by SAP AG and its distributors vary.
contain proprietary software components of other software vendors.
These materials are subject to change without notice. These materials
Microsoft, Windows, Outlook, and PowerPoint are registered are provided by SAP AG and it affiliated companies ("SAP Group")
trademarks of Microsoft Corporation. for informational purposes only, without representation or warranty of
any kind, and SAP Group shall not be liable for errors or omisions
IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex, with respect to the materials.
MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400, iSeries, pSeries,
xSeries, zSeries, z/OS, AFP, Intelligent Miner, WebSphere, Netfinity, The only warranties for SAP Group products and services are those
Tivoli, and Informix are trademarks of IBM Corp. in USA and/or other that are set forth in the express warranty statements accompanying
countries. such products and services, if any. Nothing herein should be construed
as constituting an additional warranty.
Oracle is a registered trademark of Oracle Corporation.
UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Disclaimer
Open Group. Some components of this product are based on Java™. Any code
change in these components may cause unpredictable and severe
Citrix, ICA, Program Neighborhood , MetaFrame, WinFrame, malfunctions and is therefore expressively prohibited, as is any
VideoFrame, MultiWin are trademarks or registered trademarks of decompilation of these components.
Citrix Systems, Inc.
Any Java™ Source Code delivered with this product is only to be used
HTML, XML, XHTML and W3C are trademarks or registered by SAP’s Support Services and may not be modified or altered in any
®
trademarks of W3C , World Wide Web Consortium, Massachusetts way.
Institute of Technology.
Java is a registered trademark of Sun Microsystems, Inc. Documentation in the SAP Service Marketplace
You can find this documentation at the following address:
JavaScript is a registered trademark of Sun Microsystems, Inc., used http://service.sap.com/dbaora
Contents
Introduction........................................................................................................... 5
Requirements of the DBA Tools ........................................................................... 5
Database User OPS$<SID>ADM........................................................................................... 5
BRBACKUP and BRARCHIVE .............................................................................................. 5
BRRECOVER and BRSPACE................................................................................................ 5
Requirements for Backups Using RMAN ............................................................. 5
The OPS$ Mechanism ........................................................................................... 6
Examples of User Configurations (UNIX)............................................................. 8
Additional Information ........................................................................................ 11
SAP Library .........................................................................................................................11
SAP Notes ...........................................................................................................................11
February 2006 4
Database Security for Oracle
Introduction
The security issues in the two-user concept (ora<sid>, <sid>adm (UNIX) or <SID>ADM,
SAPSERVICE<SID> (Windows)) made it necessary to consider a global solution in the area of
database security. This document is intended to explain the overall context and the improvements
made in this area.
February 2006 5
Database Security for Oracle
UNIX
Windows
February 2006 6
Database Security for Oracle
Logon Context
OS user
logon
OS> brarchive -u /
OS> brbackup -u /
DB Role
February 2006 7
Database Security for Oracle
User Configuration 1
Logon Context
OS user
logon
Configuration
February 2006 8
Database Security for Oracle
User Configuration 2
Logon Context
OS user
logon
Configuration
BRCONNECT belongs to ora<sid>, but can be called by any user. Due to the set s-bit,
BRCONNECT runs with the authorizations of the user ora<sid>.
The operator logs on as the user <sid>adm. This user belongs to the group oper. This allows the
user to start up and shut down the database. This does not fully correspond to the standard
configuration for SAP, since <sid>adm does not belong to the dba group. The user <sid>adm has a
corresponding OPS$ database user as standard (OPS$<sid>adm). This OPS$ user is granted the
SAPDBA role on the database and can, therefore, read the Oracle Dictionary tables and write in the
DBA log tables in the database.
The OPS$ mechanism is activated automatically for the standard user <sid>adm during installation.
You can use the OPS$ mechanism by calling BRCONNECT with the option -u /.
brconnect -u / -f check
brbackup -u / -q
The operator then has full administration authorization for the SAP System (but not for the
database). If you do not want this, then you must set up a separate OS user with the
operator authorizations described above (see “Configuration 3” below).
If the standard password is changed from user SYSTEM and the OPS$ Mechanism is not
used, then you must call BRCONNECT, BRBACKUP, and so on, with the option -u.
February 2006 9
Database Security for Oracle
User Configuration 3
Logon Context
OS user
logon
Configuration
BRBACKUP belongs to ora<sid>, but can be called by any user <employee>. Due to the set bit,
BRBACKUP runs with the authorizations of the user ora<sid>.
You can start BRBACKUP with brbackup -u /, and therefore work with the user OPS$ora<sid>,
to perform backups. To use this mechanism, the user OPS$ora<sid> with the SAPDBA role granted
has to be defined on the database.
February 2006 10
Database Security for Oracle
Additional Information
SAP Library
You can find more information on Oracle database administration in the SAP Library from any of the
following:
You can find extracts from the SAP Library in the SAP Service Marketplace at:
service.sap.com/dbaora → General
However, we recommend you to use the SAP Library as described above, because not all
links function correctly in these extracts.
SAP Notes
You can find SAP Notes in the SAP Service Marketplace at:
service.sap.com/notes
February 2006 11