In this tutorial, I will explain how to capture ip address of the users trying to connect to database.
We can do this task using enabling the auditing in database. By enabling the auditing, we can trace ip
address of all the users having successful or unsuccessful login attempt. Below is the step by step procedure to enable auditing in oracle database.
Step 1: login to database
set
the value of audit_trail parameter
to DB.
Step2: bounce the database to make the above changes
effective in database.
Step 3: audit the create session by executing below
commands.
Step 4: now auditing has been enabled.
Now its time to see all successful/unsuccessful login
attempts made by users.
See the view sys.aud$ table which shows all the details of
users made attempt to connect to database.
Select * from sys.aud$;
In this view , returncode
column specifies the successful/unsuccessful login .
if any row contains value 1017 for column returncode then the user in that row
has specified
incorrect username/password , in other word user has attempted unsuccessful login attempt.
0 comments:
Post a Comment