Prior to the Oracle 8i release, the internal user was used to perform the database startup and shutdown, as well as create database operations; Oracle has been phasing out internal users since the 8i version, Users who are granted the SYSDBA or Sysoper roles can perform operations such as starting and shutting down the database, and still retain internal users and SVRMGRL in the 8i, but have no use for SVRMGRL tools and internal users at all. The latest release of Oracle 9i has completely eliminated SVRMGRL tools and internal users. Because of the large user rights with role SYSDBA, you can perform operations such as starting and shutting down the database, so you need to monitor users with these roles
In ORACLE database products on UNIX platforms, each time a user logs into a database with SYSDBA privileges, the system automatically creates a file named Ora_.aud, which defaults to the $oracle_home/rdbms/audit directory. The automatic creation of this file does not require the system to turn on auditing at all. In this file, the connected user, the name of the terminal machine and the login time are recorded. Based on this information, we can easily monitor who is logged into the database with SYSDBA privileges. Here is an example:
1. First connect the database server in the client Sqlplus with SYSDBA:
Sql> Conn SYS@GS1 as Sysdba
Please enter password: ********
is connected.
2. View the contents of the latest Ora_.aud file in the server-side $oracle_home/rdbms/audit directory:
Nbtax1> Cat Ora_589980.aud Audit File/ora1/oracle/app/product/8.1.6/rdbms/audit/ora_589980.aud Oracle8i Enterprise Edition Release 8.1.6.3.0-production With the partitioning and Parallel Server options Jserver Release 8.1.6.3.0-production Oracle_home =/ora1/oracle/app/product/8.1.6 System NAME:OSF1-Systems Name Node Name:nbtax1--nodes name release:v5.1--Operating system version number version:732 Machine:alpha--Server name Instance NAME:NBGS1--Instance Name Redo thread mounted by this instance:1 Oracle Process number:247-Oracle Progress number Unix process pid:589980, Image:oracle@nbtax1 (TNS v1-v3) Fri Sep 21 10:26:57 2001--Landing time Action: ' Connect internal ' ospriv:dba--doing what Client User:administrator--Clients user name Client Terminal:xiaofeishi--Clients terminal name |
As we can see from the above file, the file details the login time, the operation performed, the name of the client user, and the name of the login server terminal machine. Based on this information it is easy to determine who has logged on to the database server with SYSDBA privileges. Note that the interpretation of Chinese characters in the Ora_589980.aud file is added by the author and not automatically generated by the system.