Solved

How can I find the logonname of a ora-01017 logon denied?

Posted on 2014-12-15
5
396 Views
Last Modified: 2014-12-15
Hello,

I'm a database admin of a oracle 11g. I have a application without any support and this application give me a ora-01017 (since the new server).
The logon on the oracle database is in background of this application.
Now I need the information which oracle logonname the application use to logon?
Have you any Idea how I can find the logonname of the logon that failed with ora-01017?

Thank you
Reiner
0
Comment
Question by:seffer
5 Comments
 
LVL 34

Expert Comment

by:johnsone
ID: 40500433
You need to look in the listener.log file.  That should have the information you are looking for.

If you want to log this in an ongoing manner, you can create a trigger that will log it to a table.  However, since it seems like this already happened, that isn't going to help you now.
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 40500435
Check the listener.log file.

If that doesn't have it check the OS logs.

If neither of those have the info you'll likely need to turn on auditing to track it.
0
 

Author Comment

by:seffer
ID: 40500459
Thank you, but I don't need the os user. I need the logonname of oracle which the application try to connect and fail with ora-01017

in the listener.log I see only the os user
0
 
LVL 34

Accepted Solution

by:
johnsone earned 300 total points
ID: 40500483
Then I believe your only other option is auditing.  Either Oracle auditing or a custom trigger.

If you decide to go custom, we used to have them.  I pulled this from an old trigger I have.  You want something like this:
create or replace trigger logon_audit
after logon
on database
begin

   if (is_servererror(1017)) then
    --  Insert a record with information into table
    --  sys_context('USERENV', 'SESSION_USER') should give you the attempted username that was trying to be logged into.
  end if;
end;
/

Open in new window

0
 
LVL 13

Assisted Solution

by:Alexander Eßer [Alex140181]
Alexander Eßer [Alex140181] earned 200 total points
ID: 40500502
If you have auditing enabled, maybe you take a look at this one:

select *
  from dba_audit_trail a
 where a.returncode = 1017;

Open in new window

0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Calculating percentages per course - Oracle Query 3 41
Oracle RMAN Database Restore 5 51
grouping on time windows 6 41
Oracle query output question 4 36
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now