This BRCONNECT command option defines the user name and password used by the SAP tool to log on to the database.
Input syntax: -u|-user [<user>[/<password>]]
Default value: system/<default_password>
If you only enter -u , an interactive query of the user name and the password is performed by the SAP tool. You can enter the user name and the password separately (only enter the user name or the option -u <user> ). The tool then prompts entry of the password. In this case, the password is not displayed during entry, and does not appear in the process list.
These measures are taken to protect the DBA password.
In shell scripts, you can structure the call as follows:
brconnect -c -u -f stats
<<END
<user>/<password>
END
However, use this command only if the option -c is active.
If you are working with an OPS$ user, use the following call:
brconnect -u / -c -f stats –t all
In this case, BRCONNECT tries to log on to the database as OPS$ user (see Oracle documentation and information in the SAP Service Marketplace). The OPS$ user must be defined in the database and have at least SYSOPER authorization and SAPDBA role. With this method, it is not necessary to specify the password when calling BRCONNECT.