Configure Oracle database to display a warning banner [message #656600] |
Wed, 12 October 2016 08:48  |
youngb912
Messages: 56 Registered: October 2007 Location: New York
|
Member |
|
|
I need to have our databases display warning messages whenever a user connect. This should be applicable whether the connection is from SQLPlus, or other tools such as SQL Developer. Is this possible? The message will be something like this -
This system contains proprietory information.
- Users' actions are monitored and audited.
- Unauthorized use of the system is prohibited.
Versions:
11.2.0.4
Redhat Linux and Windows 2008

[mod-edit: message inserted into message body by bb]
[Updated on: Wed, 12 October 2016 15:12] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Re: Configure Oracle database to display a warning banner [message #656663 is a reply to message #656657] |
Thu, 13 October 2016 14:00   |
 |
Michel Cadot
Messages: 68757 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Thanks, this is indeed something interesting which works well in SQL*Plus.
I added these 2 lines to sqlnet.ora:
SEC_USER_AUDIT_ACTION_BANNER=C:\SEC_USER_AUDIT_ACTION_BANNER.txt
SEC_USER_UNAUTHORIZED_ACCESS_BANNER=C:\SEC_USER_UNAUTHORIZED_ACCESS_BANNER.txt
Each file contains only one line:
This is from <parameter name>.
Then I restart the database and:
SQL> connect michel/michel
This is from SEC_USER_UNAUTHORIZED_ACCESS_BANNER.
This is from SEC_USER_AUDIT_ACTION_BANNER.
Connected.
SQL>
For the moment I didn't see how to do it with JDBC programs.
[Updated on: Thu, 13 October 2016 14:24] Report message to a moderator
|
|
|
|
|
|
|
|