Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
Showing results for 
Search instead for 
Did you mean: 
Former Member

SSFS Implementation for Oracle Database

Author(s): Nitesh Jain

Target readers

SAP Basis


SAPUSER, ops$-User, ops$-Connect, SSFS, data protection, secure storage, Secure Connect

1.    Introduction –

Prior to SSFS, the connection between the SAP system (AS ABAP) and the SAP tools that use the ABAP database interface (R3trans, R3load etc.) to the database via SQLNet (using the database alias name, for like configured in TNS) worked in such a way that an OPS$ connection (with the database user OPS$<SID>ADM) that was authorized by the operating system user sidadm was created first ( via "connect /@TNS").  With this approach access to the table OPS$<SID>ADM.SAPUSER, and to this table was only allowed. It contains the encrypted password for the actual database connection of the SAP database user (default name Schema User).

As of Oracle Release 11g, OPS$ remote connect (using the TNS alias name) is no longer supported by future Oracle versions. As of SAP Kernel release 7.20, SAP has now introduced a new method of securely storing the database password and for connecting to the database with mechanism called Secure Storage in File System (SSFS). The encrypted password for the SAP database user is then no longer stored in the database, but in the file system. With the implementation of Kernel 7.20 as a downward-compatible kernel, the new method is available in all SAP 7.x systems. Therefore it is recommended to use the new method for security reasons. For backwards compatibility, the conventional connect method continues to be supported up to Oracle version 11.2 for all SAP systems. All SAP systems as of Kernel 7.20, which use future Oracle versions after 11g, can be operated with the new method only.

The connect to the Oracle database using the OPS$ method contains a vulnerability that makes it possible for a malicious user to log on to the database as an OPS$ user without entering a password unless relevant measures are taken into consideration.

This document describes step by step procedure for implementation of SSFS (Secure Storage on File System) for Oracle Database with IBM AIX environment.

I hereby confirm that the Images/screenshots are created by me during the installation and there is no IP violation in this document.

2.    Pre-Requisites –

·         Following user accounts should exists:

User Accounts

Generic name

Operating system account with login
(for Unix  “su” command functionality)


Operating system account with root / admin privileges UNIX : without login


SAP admin account :


Oracle DBA account :


SAP Administrator account :


·         Minimum kernel ( 7.20 EXT with PL210)

·         Above kernel requires OS AIX 6.1 ( required for Kernel 7.20 PL300 compatibility)

·         Take a backup of the env scripts of sidadm, and the Default & Instance profiles.

Download Directory: /download

3.    Installation Procedure –


Check the minimum disk space in /tmp

  1. K unixacc

df -g /tmp

At least 5 MB free space


Checking the OS version (Metalink 169706.1)

  1. K unixacc

oslevel –s

At least : 6100-07-03-1207


Check Java version (Metalink 169706.1)

  1. K unixacc

lslpp -l| grep -i java

Java version 6 installed :



Check the Oracle Version

  1. K orasid

sqlplus / as sysdba

Oracle version should be atleast


Check the Kernel Version

  1. K sidadm


Kernel version should be atleast 720_EXT(300)


Backup the database

  1. K orasid

brbackup -u / -c force -t online -m all -p -a -c force -p –sd


Stop SAP and database and SMD agents and CCMS agents

  1. K sidadm on psiddi00

stopsap ASCS00 psidcs00

stopsap DVEBMGS01 psiddi00

  1. K sidadm on psiddi01

stopsap D01 psiddi01

  1. K daaadm on psiddi00

stopsap SMDA97 psiddi00

  1. K daaadm on psiddi01

stopsap SMDA97 psiddi01

  1. K sidadm on psiddi00

sapccm4x –stop pf=SID_DVEBMGS00_psiddi00

  1. K sidadm on psiddi01

sapccm4x –stop pf=SID_D01_psiddi01


Create necessary directories

  1. K sidadm

cd /usr/sap/SID/SYS/global

mkdir /usr/sap/SID/SYS/global/security

mkdir /usr/sap/SID/SYS/global/security/rsecssfs

mkdir /usr/sap/SID/SYS/global/security/rsecssfs/data

mkdir /usr/sap/SID/SYS/global/security/rsecssfs/key


Set authorizations on Directories

  1. sidadm

cd /usr/sap/SID/SYS/global

chmod 700 security

chmod 700 security/rsecssfs

chmod 700 security/rsecssfs/data

chmod 700 security/rsecssfs/key

ls -alR security/rsecssfs | grep -E 'data$|key$'


Set Profile parameters

  1. Administrator / RZ10

****Take backup of DEFAULT.PFL****

In the default profile, add following parameter :

rsec/ssfs_datapath = $(DIR_GLOBAL)$(DIR_SEP)security$(DIR_SEP)rsecssfs$(DIR_SEP)data

rsec/ssfs_keypath  = $(DIR_GLOBAL)$(DIR_SEP)security$(DIR_SEP)rsecssfs$(DIR_SEP)key

rsdb/ssfs_connect = 1


Set environement Variables

  1. sidadm

rm .*_p*.*sh

**** Take backup of and .sapenv.csh ****


At the end of the file add lines :

export RSEC_SSFS_DATAPATH=/usr/sap/$SAPSYSTEMNAME/SYS/global/security/rsecssfs/data

export RSEC_SSFS_KEYPATH=/usr/sap/$SAPSYSTEMNAME/SYS/global/security/rsecssfs/key


vi .sapenv.csh

At the end of the file add lines :

setenv RSEC_SSFS_DATAPATH /usr/sap/$SAPSYSTEMNAME/SYS/global/security/rsecssfs/data

setenv RSEC_SSFS_KEYPATH /usr/sap/$SAPSYSTEMNAME/SYS/global/security/rsecssfs/key

setenv rsdb_ssfs_connect 1

Logoff and logon again and check if parameters are activated


Setting up SSFS storage

  1. sidadm




Check SSFS storage

  1. sidadm

rsecssfx list


| Record Key                     | Status             | Timestamp of last Update  |


| DB_CONNECT/DEFAULT_DB_PASSWORD | Encrypted          | 2012-11-21  14:16:08  UTC |

| DB_CONNECT/DEFAULT_DB_USER     | Plaintext          | 2012-11-21  14:15:33  UTC |



Active Records    : 2 (Encrypted : 1, Plain : 1, Wrong Key : 0, Error : 0)

Datafile Location : /usr/sap/SID/SYS/global/security/rsecssfs/data/SSFS_SID.DAT (when existing)

Keyfile Location  : /usr/sap/SID/SYS/global/security/rsecssfs/key/SSFS_SID.KEY (when existing)


Set and check authorizations of the SSFS storage

  1. sidadm

cd /usr/sap/SID/SYS/global/security/rsecssfs/data

chmod 600 SSFS_SID.DAT


Start Database and Oracle listener

  1. K orasid

lsnrctl start

sqlplus / as sysdba

SQL> startup


Check connection

  1. sidadm

R3trans -d

R3trans finished (0000).

grep -E 'ssfs.*DBSL' trans.log

Result : read_con_info_ssfs(): DBSL supports extended connect protocol


Exclude the standard SAP connect method

  1. orasid

sqlplus system/****

drop table ops$sidadm.sapuser;


Exclude the oracle remote OPS$ connect

  1. orasid

sqlplus / as sysdba

alter system reset remote_os_authent scope=spfile;


Shutdown Database to reflect oracle parameter set in step 18

  1. K orasid

sqlplus / as sysdba

SQL> startup


Start SAP and database and SMD agents and CCMS agents

  1. K sidadm

startsap ASCS00 psidcd00

startsap DVEBMGS01 psiddi00

  1. K sidadm on psiddi01

stopsap D01 psiddi01

  1. K daaadm on psiddi00

startsap SMDA97 psiddi00

  1. K daaadm on psiddi01

startsap SMDA97 psiddi01

  1. K sidadm on psiddi00
  2. Fsapccm4x –DCMS pf=SID_DVEBMGS01_psiddi00
  3. K sidadm on psiddi01
  4. Fsapccm4x –DCMS pf=SID_D01_psiddi01


Check the connection method

  1. Administrator -> tcode SM50

Select DIA process and see the display trace file and search for ssfs

Connection method checked in SM51

read_con_info_ssfs(): DBSL supports extended connect protocol

  ==> connect info for default DB will be read from ssfs


Backup the database

  1. K orasid

brbackup -u / -c force -t online -m all -p -a -c force -p –sd

5.    References

1611877                Support for ABAP SSFS during database connect

1622837                New connect method of AS ABAP to Oracle via SSFS

1623922                Connect to Oracle database

1639578                SSFS as password storage for primary database connect

1678336                RSecSSFs: UTF8 conversion failed with returncode 1

Labels in this area