Solved

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

Posted on 2014-12-15
5
392 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
Comment Utility
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)
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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.

Join & Write a Comment

Suggested Solutions

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
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.

772 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

9 Experts available now in Live!

Get 1:1 Help Now