Trace in the listener.log

Hello,
Can we monitor failed connctions (ORA-01017: invalid username/password; logon denied) to trace the listener.log
Does exist an option to do that ?
Thanks for your answer
Fabrice

You've already been provided hints on using Database Audit.
However, to answer your question : The reason why listener.log cannot log such errors is that the Listener does NOT do any authentication. It does not validate username/password pairs at all. When a connection request comes in to the listener, it just verifies if the request is for a valid SID / SERVICE and redirects the request to the database instance , having forked a server process. It is the server process in the database instance that does the authentication.

Similar Messages

  • Windows bactch job to trim the Listener log

    Hi All ,
    Can you help me to write a Windows batch job to trim the listener.log on periodically.
    I have the below steps, which i do manually but i won't which needs to be put in batch.
    copy listener.log listener_<today>.log
    lsnrctl set log_file listener_new.log
    del listener.log
    lsnrctl set log_file listener.log
    lsnrctl reload
    del listener_new.log
    Appriciate the Help.
    Thanks in Advance.

    Have a look here:
    http://www.wikihow.com/Write-a-Batch-File
    You have the commands, so you only need the batch file around it
    HTH
    FJFranken

  • XE is not registering with the listener

    hi forum,
    i installed oracle xe on an empty xp box. everything went smoothly but - like for so many others - my db homepage is not showing (http://127.0.0.1:8080/apex). but thats a different story.
    i can connect with sqlplus, i can create, insert into and select from tables. tnsping is resolving localhost, xe, puss (my xp host name), 127.0.0.1 as well as the host ip (192.168.1.102).
    my problem is that the db instance doesn't seem to register with the listener, so that when i do a sqlplus andy/passwd@XE i get the german version of what would be ORA-12514: TNS: Listener can't resolve service listed in connect discriptor
    when i do a lsnrctl status i get the following:
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 01-AUG-2010 11:53:26
    Copyright (c) 1991, 2005, Oracle.  All rights reserved.
    Anmeldung bei (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS des LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
    ction
    Startdatum                31-JUL-2010 22:52:37
    Uptime                    0 Tage 13 Std. 0 Min. 48 Sek.
    Trace-Ebene               off
    Sicherheit                ON: Local OS Authentication
    SNMP                      OFF
    Standard-Service           XE
    Parameterdatei des Listener C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
    Log-Datei des Listener    C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
    Zusammenfassung Listening-Endpunkte...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=puss)(PORT=1521)))
    Services Übersicht...
    Dienst "CLRExtProc" hat 1 Instance(s).
      Instance "CLRExtProc", Status UNKNOWN, hat 1 Handler für diesen Dienst...
    Dienst "PLSExtProc" hat 1 Instance(s).
      Instance "PLSExtProc", Status UNKNOWN, hat 1 Handler für diesen Dienst...
    Der Befehl wurde erfolgreich ausgeführt.the german msgs say that everything is in order basically, but what is certainly not in order is that there is no XE listed.
    show parameter local_listener; revealed: no local listener set.
    alter system set local_listener=XE; or
    alter system set local_listener='(address=(protocol=tcp)(host=puss)(port=1521))'; and then
    alter system register; didn't make the instance show in listener status
    i would at least expect to see the attempt to register in the listener.log but nothing.
    when i added the host to SID_LIST in listener.ora the instance was listed in the listener status, but status remained unknown, what ever i tried.
    i know that there are other threads dealing with the same issue, but none of the solutions provided worked for me.
    i am in a home network with two other macs connected via wlan. my firewall is turned off. i've tryed every combination of tnsnames.ora and listener.ora settings but nothing worked. after 13 hours of trail and error, reading a lot, wiping the whole box and reinstalling everything from scratch, sitting in front of my vanilla xp plus oracle xe installation, i'm tyred. i need your help.
    Andy
    tnsnames.ora
    XE =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = puss)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    listener.ora
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
          (PROGRAM = extproc)
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
          (PROGRAM = extproc)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
          (ADDRESS = (PROTOCOL = TCP)(HOST = puss)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    sqlnet.ora
    SQLNET.AUTHENTICATION_SERVICES = (NTS)

    It turned out that the failing http://127.0.0.1:8080/apex actually was related.
    After cutting the network connection and restarting the listener and the db everything worked fine, even the web admin interface.

  • Is it safe to compress Listener logs while system is running ???

    Hi there,
    I am new to RAC and am working on 24*7 databases in a RAC CLuster.
    There is a very large listener_scan2.log in the /u01/11.2.0/grid/log/diag/tnslsnr/<server name>/listener_scan2/trace folder, the file is about 2.8 G.
    I have done some research and have seen that compress -f has been recommended via crontab, this has the advantage of being something that can be automated and run monthly
    e.g.
    ## listener log aging
    17 0 * * 0 /usr/bin/compress -f /u01/app/grid/diag/tnslsnr/node1/listener/trace/listener.log
    17 0 * * 0 /usr/bin/compress -f /u01/app/11.2.0/grid/log/diag/tnslsnr/node1/listener_scan1/trace/*log
    17 0 * * 0 /usr/bin/compress -f /u01/app/11.2.0/grid/log/diag/tnslsnr/node1/listener_scan2/trace/*log
    17 0 * * 0 /usr/bin/compress -f /u01/app/11.2.0/grid/log/diag/tnslsnr/node1/listener_scan3/trace/*log
    Is this safe to run these while the system and listener are up and running, will the listener create a new listener.log file if the old one is compressed even if listener is not restarted.
    Other blogs suggest using lsnrctl and changing the listener log location and then renaming/compress/delete the old log file and then set the listener log location back again ...
    Has anyone used this in a Production system ?
    I welcome your feedback.
    many thanks,
    Rob

    http://danthedba.blogspot.in/2009/11/manage-listener-log-files-in-11g.html
    http://msutic.blogspot.in/2009/06/truncating-rotating-flushing.html
    https://kkempf.wordpress.com/2011/06/10/rotating-listener-logs-without-bouncing-the-listener/

  • Does listener log file need to be purged in Oracle 11g DB

    We have the Oracle 11g database setup. I have a query as to if it is required to purge the listener log file in Oracle 11g database. I believe that the size of the listener log file is infinite and we need to manually purge the listener log file or is there an automatic log rotation of the listener log file?
    I hope my query is clear that if it is required to manually purge the listener log file or is there an automatic log rotation for this file.
    Please revert with the reply to my query.
    Regards

    972145 wrote:
    Thanks for your answer but does it mean that there is no automatic log rotation for the listener log file in Oracle 11g database?
    Regardshttp://uhesse.com/2011/06/01/adrci-a-survival-guide-for-the-dba/
    set the listener home inside adrci and do
    purge -age 2880 -type tracepurges all tracefiles older than 2 days I did not tried this but above link used same for alertlog trace file.

  • Listener.log archiving

    What is the suggested technique for archiving the listener.log contents in 11g?
    I've been rolling out old listener.log files since oracle 7 with the following logic:
    set log_file new_file_name
    mv old_file_name to archive_file_name
    set log_file listener.log
    In 11g I get a tns-1251 with the set log_file lsnrctl cmd,
    01251, 00000, "Cannot set trace/log directory under ADR"
    // *Cause: ADR trace and log directories cannot be set by the user.
    // *Action: None.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    As the error message indicates 11g introduced a new diagnosability system,the Automatic Diagnostic Repository (ADR).
    Concerning the listener,now you have additionally to listener.log a corresponding xml-file. See these 2 metalink notes, how to deal with ADR:
    Using and Disabling the Automatic Diagnostic Repository (ADR) with Oracle Net for 11g Doc ID: Note:454927.1
    11g Diagnosability: Frequently Asked Questions Doc ID: Note:453125.1
    Werner

  • Stop to write to listener.log !! why ???

    Hi,
    Since the listener.log grows so quick and becomes large (~10M) , i zip it and create
    another blank listener.log in the same location. However, the server stops to write to the log!!!!!!!
    Could anybody tell me why ???
    (ps. i set the same permission as before and
    the owner is the dbadm)
    Thanks a lot
    Regards
    Stephen

    what do you mean by 'create another blank listener.log'? this file is automatically generated by the server, so if you ziped it, a new "listener.log" will be created next time the listener is started or stopped.
    try to stop/start your listener see what happend.
    hope this will help
    James
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by stephen cheng:
    Hi,
    Since the listener.log grows so quick and becomes large (~10M) , i zip it and create
    another blank listener.log in the same location. However, the server stops to write to the log!!!!!!!
    Could anybody tell me why ???
    (ps. i set the same permission as before and
    the owner is the dbadm)
    Thanks a lot
    Regards
    Stephen<HR></BLOCKQUOTE>
    null

  • Listener name in the listener.ora file is getting change from GPROD to %s_

    Dear Experts,
    Please note that after doing the R12.1 upgrade, When i bounce the database i have noted that my database listener name in the listener.ora file is getting change from GPROD to %s_db_listener%. Again every time after changeing the listener log file i am able to start the listener.
    Please advise.
    [oracle@upgrade 11.2.2]$ lsnrctl start GPROD
    LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 07-OCT-2011 10:07:33
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Starting /u04/d01/tech_st/11.2.2/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 11.2.0.2.0 - Production
    System parameter file is /u04/d01/tech_st/11.2.2/network/admin/GPROD_upgrade/listener.ora
    Log messages written to /u04/d01/tech_st/11.2.2/log/diag/tnslsnr/upgrade/gprod/alert/log.xml
    TNS-01151: Missing listener name, GPROD, in LISTENER.ORA
    Listener failed to start. See the error message(s) above...
    [oracle@upgrade 11.2.2]$ vi /u04/d01/tech_st/11.2.2/log/diag/tnslsnr/upgrade/gprod/alert/log.xml
    [oracle@upgrade 11.2.2]$ cd network/admin/GPROD_upgrade/
    [oracle@upgrade GPROD_upgrade]$ ls
    listener_ifile.ora listener.ora listener.ora_bkpaug2911 sqlnet_ifile.ora sqlnet.ora tnsnames.ora
    [oracle@upgrade GPROD_upgrade]$ vi listener.ora
    (SID_DESC =
    (ORACLE_HOME= /u04/d01/tech_st/11.2.2)
    (SID_NAME = GPROD)
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u04/d01/tech_st/11.2.2)
    (PROGRAM = extproc)
    STARTUP_WAIT_TIME_%s_db_listener% = 0
    CONNECT_TIMEOUT_%s_db_listener% = 10
    TRACE_LEVEL_%s_db_listener% = OFF
    LOG_DIRECTORY_%s_db_listener% = /u04/d01/tech_st/11.2.2/network/admin
    LOG_FILE_%s_db_listener% = %s_db_listener%
    TRACE_DIRECTORY_%s_db_listener% = /u04/d01/tech_st/11.2.2/network/admin
    TRACE_FILE_%s_db_listener% = %s_db_listener%
    ADMIN_RESTRICTIONS_%s_db_listener% = OFF
    IFILE=/u04/d01/tech_st/11.2.2/network/admin/GPROD_upgrade/listener_ifile.ora

    Step 1- Run the autoconfig on the db tier.
    Step -2 Automatically it is changing the setting in the database listener log file and it is showing 4 database listeners are up .
    [oracle@upgrade 11.2.2]$ ps -ef |grep inh
    oracle 756 1 0 11:01 ? 00:00:00 /u04/d01/tech_st/11.2.2/bin/tnslsnr GPROD -inherit
    oracle 757 756 0 11:01 ? 00:00:00 /u04/d01/tech_st/11.2.2/bin/tnslsnr GPROD -inherit
    oracle 758 757 0 11:01 ? 00:00:00 /u04/d01/tech_st/11.2.2/bin/tnslsnr GPROD -inherit
    oracle 759 757 0 11:01 ? 00:00:00 /u04/d01/tech_st/11.2.2/bin/tnslsnr GPROD -inherit
    oracle 1721 31038 0 11:02 pts/2 00:00:00 grep inh
    applmgr 31380 1 0 10:53 ? 00:00:00 /u04/d02/apps/tech_st/10.1.2/bin/tnslsnr APPS_GPROD -inherit
    Step - 3
    Again down the apps tier services.
    Step -4
    Reset the listener.ora file in the database tier
    Please advise.
    Regards
    Mohammed.

  • Information listener.log on database

    Good afternoon,
    I got problem to get from what souce that connect to oracle.
    my question :
    does oracle save the information about the listener.log in database ?
    I can see in listener.log there are information about source program that connect
    to oracle, example EXCEL.EXE
    I want to use it to create logon trigger and not allowed user to connect using ms excel.
    If I use v$session field program, it seem I could not get it.
    example :
    if the user used shortcut in screen then the information exel.exe is not there.
    Thanks

    Thank you very much for replaying.
    If the user using the shortcut, it doesn't show the excel.exe or access.exe,
    (actually if v$session on field program show it, it's ok for me, because if they rename the name acess.exe become my.exe, I will validate in my trigger logon, only sqlplusw.exe or ifrun60.exe are allowed to connect to the oracle, so another products are not allowed).
    my testing :
    1. open microsoft Access then open connect to oracle
    SQL> select program from v$session
    PROGRAM
    ORACLE.EXE
    ORACLE.EXE
    ORACLE.EXE
    ORACLE.EXE
    ORACLE.EXE
    ORACLE.EXE
    C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE
    SQLPLUSW.EXE
    C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE
    11 rows selected.
    2. create shortcut for Ms Access file on desktop then open it (double click) then connect to oracle
    SQL> r
    1* select program from v$session
    PROGRAM
    ORACLE.EXE
    ORACLE.EXE
    ORACLE.EXE
    ORACLE.EXE
    ORACLE.EXE
    ORACLE.EXE
    C:\Documents and Settings\Administrator.USR1\Desktop\Shortcut to
    SQLPLUSW.EXE
    C:\Documents and Settings\Administrator.USR1\Desktop\Shortcut to
    11 rows selected.
    test no.2 didn't show up the MSACESS.EXT, but
    C:\Documents and Settings\Administrator.USR1\Desktop\Shortcut to
    and I guess it was cut because the length field program on V$session only 64 char.
    I think PRODUCT_USER_PROFILE is basing on user, I have never tried it yet, but if base on user, I don't think I can use it. I need to protect base on computer / terminal.
    any suggestion ?

  • Slow database connections due to large listener.log

    hi gurus
    A 9.2.0.8 database running on AIX system,it took nearly 1 seconds to make a connection to the database. I cleared the listener.log which is around 1.2g and restart the listener and the problem solved.
    I want to why this happed?Does large listener.log will degrade the performace of listener?
    Thanks in advance!

    Hi,
    Yes, i also faced the same issue and after trimming the listener log, problem got resolved. As far my knowledge as big the log file is it takes time to write in log file (its a general concept if you have notepad file of 100MB and want to write something end of the file then it takes time to load in memory or moving cursor to last position for writing, same concept is here).

  • PORT  in listener.log

    In the listener LOG file...
    Is the PORT information refering to the port on the oracle server ... or is this the port on the client machine from which the connection request was made?
    This PORT info comes right after the IP of the client machine.

    No, I'm talking about connection confirmation strings, like this:
    02-DEC-2005 09:42:30 * (CONNECT_DATA=(SERVICE_NAME=csds.soa-db01.xxx.state.tx.us)(CID=(PROGRAM=f:\cognos\cer3\bin\databuild.exe)(HOST=XXXC0SRV09)(USER=cognos_svs))) * (ADDRESS=(PROTOCOL=tcp)(HOST=111.40.15.125)(PORT=2433)) * establish * csds.soa-db01.xxx.state.tx.us * 0
    What is PORT=2433?
    I am certain that the referenced HOST is the client box.

  • Listener.log error notification

    How can i get a notification when an error arise in the listener.log?
    I was able to setup the alert.log notification and when an error arise there i receive a mail.
    But i dont know how to set this up for the listener.ora.
    I have sometimes TNS- error and i have to manualy search the listener.log to see it.
    Im using oem grid control 10.2.0.1 and my target oracle databases are on 10.2.0.3.
    all running on linux x86.

    Im having those 2 tns errors sometimes:
    TNS-12519: TNS:no appropriate service handler found
    TNS-12516: TNS:listener could not find available handler with matching protocol stack
    On metalink, it says to Increase the value for PROCESSES.
    I increased it from 250 to 350. This problem is happening less frequently since.
    But once in a while, it happens. I need to be notified when it's happen.
    If u use a user defined metric for this, what do i do? I issue a linux command on my listener.log file? If so which command?

  • Enable Trace for the Session Loggied in..

    Hi All,
    How to enable trace for the session logged in with out db bounce.
    after enable how to stop and how to get the trace file in readable format.
    Please suggest
    Thanks
    Mano

    Trace a session.
    1)Logout all sessions from the database
    2)Login to application (ensure that only one session is available)
    3)sqlplus trace/trace
    Schema which has privilege to trace the session
    4)check the sid and serial# of the session from v$session
    Use the following query
    SQL> select username,to_char(logon_time,'DD-MON-YYYY HH:MI:SS') from v$session where username='<db username>' order by logon_time;
    SQL>exec sys.dbms_system.set_sql_trace_in_session(sid,serial#,TRUE);
    5)now execute the report/transaction.
    6)once the activity is over
    SQL>exec sys.dbms_system.set_sql_trace_in_session(sid,serial,FALSE);
    7)Now the trace file will be available in the udump folder of the database ip
    Userid/password: trace/trace
    The trace wil be available in /oracle/admin/orcl/udump
    8)To find the name of the trace file use the below query
    select spid from v$process where addr=(select paddr from v$session where sid=<enter the SID>);
    This will give the name of the file
    If you are not able to identify the trace file then please remove all files in udump before starting trace.
    9) ftp the trace fil to ur local pc and issue the tkprof command
    TKPROF <trace file (like D:\orcl_8853.trc)> D:\trace.txt explain=Oracle username/password (application user) sort=(prsela,exeela,fchela)
    This will give trace file in readable format(you need to have 10g client on your pc for tkprof to work)

  • Regarding listener.log file

    Hi,
    The listener.log file is showing the following code snippet.But when I put this code to my source file (Automation Plugin), it is giving error as 'FullPathToAlias' unrecognised symbol.
    // Move this to the top of the routine!
    Handle aliasValue = NULL;
    FullPathToAlias("C:\Test.jpg", aliasValue);
    Do I have to include any header file? Does any one have any idea? I am just wanting to dispaly an image preview on dialog box(Automation plugin).
    Please give any idea how can I get the image referrence for the first time from the Hard Disk?
    Can anyone help me out.....................?
    Thanks and Regards

    Mmh, so you're trying to do something like a file-preview?
    I don't know if this is possible, mainly because at the moment
    I can see no way getting any image data before you've loaded
    the image in photosphop (with just using the sdk and not any
    mac/win api)
    If you're developing only for windows targets, you might want to
    try to develop a mfc type plugin like the "mfcplugin" from the filter-
    plugin examples. It does give a preview of the result of an filter
    applied to an image, so I'd guess you can change this with the help of the win-api to preview some picture file. For MFC there are also some
    nice solutions on codeproject you could easily integrate in your plugin:
    a thumbnail control:
    http://www.codeproject.com/miscctrl/thumbnailctrl.asp
    and a picture control:
    http://www.codeproject.com/cs/miscctrl/ScalablePictureBox.asp
    Otherwise the "dissolve"-plugin from the filters example is for mac and win os's and offers also a preview (of a filter application), maybe this will give you some more insight.

  • Listener log file trimming

    Hi all,
    I have a production database on HP-UX server. and in my /oracle directory, i have the listener.log and sqlnet.log files.
    as the size of the the oracle directory increased, i have trimmed the listener.log and sqlnet.log files. those are trimmed but,
    the percent used in the oracle drive has increased instead of decrease.
    i used this command to trim
    listener.log
    sqlnet.logtotal used free
    /dev/vgdb/lvol1 76808192 19619397 53615115 27% /oracle -- before trimming
    /dev/vgdb/lvol1 76808192 22306731 51095739 30% /oracle -- after trimming
    pls. advice me in this regard.

    hi,
    thanks for the reply.
    i trim the listener.log file, after trimming it is writing in the file. but, my used space in mount point is increased. what would be the possible reason for increase ?? . I checked the other files, but i didnot see any increase in size.
    pls. suggest me in this regard.
    thanks and regards.

Maybe you are looking for