Listener Log in 11gR2

I have located my listener.log my using lsnrctl stat <listener name>
my particular log is in $ORACLE_HOME/log/diag/tnslsnr/<host name>/<sid>/alert/log.xml
Where is this log file and location actually specified ?
For the same lsnrctl stat command from above, I can see my listener.ora config file. However the above listener log location is not specified in it. In fact LOG_DIRECTORY_<SID> actually points to $ORACLE_HOME/network/admin - however there are absolutely no log files there at all !
The listener.ora does specifiy a listener_ifile.ora, however at 2 bytes in size, this file appears to be empty
Anyone able to make sense of how 11gR2 is now doing this ?
Jim

Try in directory:
$ORACLE_HOME/log/diag/tnslsnr/<host name>/<sid>/traceOr try to use SHOW TRC_DIRECTORY to get listener log directory:
c:\>lsnrctl
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 11-JAN-2012 12:07:07
Copyright (c) 1991, 2010, Oracle.  All rights reserved.
Welcome to LSNRCTL, type "help" for information.
LSNRCTL> set current_listener listener
Current Listener is listener
LSNRCTL> show trc_directory
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
listener parameter "trc_directory" set to c:\app\oracle\diag\tnslsnr\xxx\listener\trace
The command completed successfullyEdited by: P. Forstmann on 11 janv. 2012 12:03

Similar Messages

  • 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

  • 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

  • Advice re best practice for managing the scan listener logs and list logs

    Hi friends,
    I've just started a job as a RAC dba administrator for some big 24*7 systems, I've never worked with clusterware and RAC.
    2 Space problems
    1) Very large listener_scan2.log in /u01/11.2.0/grid/log/diag/tnslsnr/<server name>/listener_scan2/trace folder
    2) Heaps of log_nnn.xml files in /u01/11.2.0/grid/log/diag/tnslsnr/<server name>/listener_scan2/alert folder (4Gb used up)
    Welcome advice on the best way to manage these in the short term (i.e. delete manually) and the recommended practice and safest way (adri maybe not sure how it works with scan listeners)
    Welcome advice and commands that could be used to safely clean these up and put a robust mechanism in place for logfile management in RAC and CLusterware systems.
    Finally should I be checking the log files in /u01/11.2.0/grid/log/diag/tnslsnr/<server name>/listener_scan2/alert regulalrly ?
    My experience with listener logs is that they are only looked at when there are major connectivity issues and on the whole are ignored.
    Thanks for your help,
    Cheers, Rob

    Have you had any issues that require them for investigative purposes? If not, just remove them. Are the logs required for some sort of audit process? If yes, gzip them to a location where you can use your OS tape backup policies to retain them for n-days. Once you remove an active file, it should recreate the file and continue without interruption.

  • TNS-12505 in listener.log when opening SqlDeveloper 2.1 (maybe a bug?)

    Hi I've a strange problem:
    1 download sqldevloper
    2 create a connection using Connection type= TNS. Is select an entry in my tnsnames.ora to connect to an istance X (service_name is specified) on server Y. The first strange thing is that every entry in the tnsnames is displayed two times.
    3 If I test the connection it works..
    4 Close sqldeveloper
    5 When I open sqldeveloper (just open the program without connect to anything) i receive no errors but i see in my listener.log (of the server Y) :
    04-DIC-2009 11:39:31 * (CONNECT_DATA=(SID=null)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=null))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.8.105)(PORT=2285)) * establish * null * 12505
    TNS-12505: TNS: il listener non ha risolto SID indicato nel descrittore di connessione
    192.168.8.105 is my ip address
    I don't understand why it uses SID= instead of SERVICE_NAME=
    If i place the mouse cursor over the connection icon (without click) i see an error TNS-1252 with the connection desripter: Y, 1521,NULL (i think that this null is causing all this problems) .
    Why? When sqldeveloper opens it tries to test the connection?
    Even if it is like this the connection should work: if I try to connect whit that connection everything works fine.
    I do something worng? It is a bug?
    With SqlDeveloper 1.5 everything works fine. Everything is the same so I guess that is a problem of the new version (2.1).
    Oracle client oracle 10.2, SqlDeveloper Version 2.1.0.63, Windows XP Professional Service Pack 3
    Hope someone can help me, if something isn't clear I can post more details (just tell me what you need).
    Thanks, best regards.
    Adriano Aristarco

    Hi Adriano,
    "network alias"
    A network alias that has been found by SQLDeveloper java (as opposed to the jdbc driver) in tnsnames.*.
    "connect identifier"
    Uses oci 'thick' driver i.e. oracle C code find the tnsnames entry for you - requires additional Oracle client side software such as instant client. Without the additional software you get 'no ocijdbc11 in java.library.path'
    Do you have multiple entries due to multiple tnsname.* files (move the inappropriate tnsname.* to a different backup directory). If you picked the 'wrong one' i.e. one with the right name but from an old tnsnames.* file, it might not be able to connect so you get error messages.
    You cannot use "connect identifier" unless you have the additional Oracle client side software (I can test the latest instant client to confirm that works if you want to try this option, I do not have the version numbers for this in easy reach).
    -Turloch

  • Errors in alert log and listener log and "alter database mount exclusive"

    Hello!
    I need a help.
    Database 11R2 works under MS Windows Server.
    Whwn I start it using Services, according alert log it is started by command "alter database mount exclusive".
    Next - alter database open.
    After this, it seams that program, which should put data into database, can not work with it, because I see errors in alert log: ora-12537, 12560, 12535, 12570, 12547.
    What does itmean and what to do?
    This is extract from alert_log
    ORACLE_BASE from environment = C:\Oracle
    Mon Feb 04 14:54:53 2013
    alter database mount exclusive
    Successful mount of redo thread 1, with mount id 1458539517
    Database mounted in Exclusive Mode
    Lost write protection disabled
    Completed: alter database mount exclusive
    alter database open
    Thread 1 opened at log sequence 3105
    Current log# 3 seq# 3105 mem# 0: C:\ORACLE\ORADATA\xxx\REDO03.LOG
    Successful open of redo thread 1
    MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
    SMON: enabling cache recovery
    Successfully onlined Undo Tablespace 2.
    Verifying file header compatibility for 11g tablespace encryption..
    Verifying 11g file header compatibility for tablespace encryption completed
    SMON: enabling tx recovery
    Database Characterset is AL32UTF8
    No Resource Manager plan active
    Mon Feb 04 14:55:04 2013
    replication_dependency_tracking turned off (no async multimaster replication found)
    Starting background process QMNC
    Mon Feb 04 14:55:06 2013
    QMNC started with pid=20, OS id=2860
    Completed: alter database open
    Mon Feb 04 14:55:11 2013
    Starting background process CJQ0
    Mon Feb 04 14:55:11 2013
    CJQ0 started with pid=25, OS id=2000
    Mon Feb 04 14:55:11 2013
    db_recovery_file_dest_size of 4977 MB is 0.00% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.
    Mon Feb 04 15:00:29 2013
    Starting background process SMCO
    Mon Feb 04 15:00:29 2013
    SMCO started with pid=32, OS id=3212
    Edited by: kogotok1 on Feb 4, 2013 4:54 PM

    Thank you.
    But in the same time - when I see in alert log those error messages ora -12560, 12537,12535,12570 and so on - clients programs, whiie try to connect, hang up.
    For sql plus takes 20 minutes to connect.
    lsnrctl status gives the following
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 04-FEB-2013 16:01
    :46
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxx-BD.mosxxx
    .elektra.net)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Produ
    ction
    Start Date 01-FEB-2013 10:22:48
    Uptime 3 days 5 hr. 39 min. 54 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\Oracle\listener.ora
    Listener Log File c:\oracle\diag\tnslsnr\xxx-BD\listener\alert\l
    og.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xxx-BD.mosxxx.elektra.net)
    (PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "XXX" has 2 instance(s).
    Instance "XXX", status UNKNOWN, has 1 handler(s) for this service...
    Instance "xxx", status READY, has 1 handler(s) for this service...
    Service "XXXDB" has 1 instance(s).
    Instance "xxx", status READY, has 1 handler(s) for this service...
    The command completed successfully
    To tell the truth I am confuse - I thought I have only 1 service "XXXDB" and 1 instance - "xxx".
    May be I have wrong entries in tnslsnr.ora?

  • Different listener log file  in RAC system

    we have 4 nodes 11.1.0.7 RAC at redhat 5.1 linux system.
    I just find there are two listener log file (listener.log; listener_nodename.log ) in each node.
    I want to know which difference function is in both listener.log and listener_nodename.log?
    When or which condition does node run( record data) in listener.log?
    When or which condition does node run( record data) in listener_nodename.log
    I saw the 3 node3 listener_nodename.log is wroking on and one node listener.log is workig on.
    why?
    Does some experts explain this point for me?
    Thanks

    I make some clears for this requirements.
    we have a schedule backup and stores in ASM diskgroup in SAN.
    As system admin and policy of SAN disaster recovery, we need to generate backup in a local file system.
    in this case, we only backup database plus archival files in external file system. but I still saw snapshot control file is still put into default linux location.
    I am not able to see this snapshot in external file system.
    For SAN disaster recovery, do we need to save a control file snapshot in external file?
    Can I apply BACKUP CURRENT CONTROLFILE TO DESTINATION "external file path" for SAN disaster recovery?
    Thanks in advance!
    Jin

  • 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 ?

  • BMC Patrol monitoring listener.log in xml not txt format

    Hi !
    Oracle 11g, PatrolAgent V3.9.00.02i, KM 8.11.00
    My company uses BMC Patrol to monitor listener.log. Patrol knows listener.log's path from command:
    lsnrctl status <listener_name>
    and gets path to listener.log in xml fromat: log.xml from 'Listener Log File' field.
    The problem is that when Patrol discovers an error puts last 100 lines from that log into email and sends it to me. Obviously it is in xml format while I prefer txt format.
    Questions:
    1. how can I force listener to show path to listener.log in txt format in 'Listener Log File' field ?
    2. how can I tell Patrol to use different path to listener.log instead of one form 'Listener Log File' field ?
    Thanks in advance.

    I asked on BMC forum also but no helpful either. Does anyone know is it possible to configure listener to show path to listener.log insted of log.xml in status command ?

  • 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).

  • Listener log file

    My database version is 11g Release 11.1.0.6.0.
    I need my listener to write to a specific log file, I've tried different things including setting the following parameters in listener.ora and restrarting the listener:
    LOG_DIRECTORY_LISTENER = /mydesireddirectory
    LOG_FILE_LISTENER =/mydesireddirectory/listener.log
    In spite of whatever I do, it puts the log file in :
    /ORACLE_HOME/log/diag/tnslsnr/hostname/listener/alert/log.xml
    can anyone tell me how to get round this please, I don't want an xml listener log and I don't want it in that directory.
    thank you.

    Hi,
    In Oracle 11g you have
    automatic diagnostic repository
    The automatic diagnostic repository (ADR) is a systemwide tracing and logging central repository. The repository is a file-based hierarchical datastore for depositing diagnostic information, including network tracing and logging information
    DIAG_ADR_ENABLED_listener_name
    The DIAG_ADR_ENABLED_listener_name parameter indicates whether ADR tracing is enabled. By default it is on. So Listener would be writing to the diag folder only.
    Since LOG_DIRECTORY_listener_name and LOG_FILE_listener_name is a non-ADR parameter. They both would be ignored if above parameter is set to on. To disable ADR, use
    DIAG_ADR_ENABLED_listener_name=off and then only non-ADR parameter would be in effect.
    Regards
    Anurag

  • ORA-12535 error but TNSPing Works and listener logs connection

    We recently migrated our firewall and then started seeing this problem for users outside of our own subnet. However, although the user gets this error when launching the application, the workstation is able to TNSPing the server successfully and listener.log does log the connection.
    I was hoping someone might have some ideas or suggestions as to what might be causing the error despite the apparent connectivity to the database.
    Thanks in advance.

    Thanks so much for the suggestions.
    1. telnet <host> 1521 connects
    2. sqlplus <username>/<pwd>@<instance> returns the ORA-12535 error
    Finally, the sqlnet.log on the client side doesn't log anything when launching the application so I have no information as to what exactly is occurring at that point. However, the sqlplus command above logged the following:
    VERSION INFORMATION:
    TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
    Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 9.2.0.1.0 - Production
    Time: 26-JAN-2007 08:43:41
    Tracing not turned on.
    Tns error struct:
    nr err code: 0
    ns main err code: 12535
    TNS-12535: TNS:operation timed out
    ns secondary err code: 12560
    nt main err code: 505
    TNS-00505: Operation timed out
    nt secondary err code: 60
    nt OS err code: 0
    I've been doing more research on this -- please note that I'm not an Oracle dba so I am just getting familiar with lots of things -- and have learned that user connect requests come in through 1521 but are then randomly redirected to other ports. Given the new firewall, I'm wondering if it's an issue that the random ports being selected aren't open for the users outside of our subnet. Does this sound like a plausible explanation? If so, how do administrators generally handle this -- by opening the necessary ports on the firewall? Is there some other standard approach?
    Again, thanks so much for any assistance you can provide.

  • 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 errors

    LISTENER=
    (DESCRIPTION=
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=tcp)(HOST=cccdb)(PORT=9999))
    (ADDRESS=(PROTOCOL=ipc)(KEY=extproc))))
    SID_LIST_LISTENER=
    Hi,
    Iam configuring multiple databases in a listener, while adding the third database I am getting errors:
    (SID_LIST=
    (SID_DESC=
    #(GLOBAL_DBNAME= )
    (ORACLE_HOME=D:\oracle\product\10.2.0\db_1)
    (SID_NAME=secbadccc))
    (SID_DESC=
    (SID_NAME=mushccc)
    (ORACLE_HOME=D:\oracle\product\10.2.0\db_1)
    (PROGRAM=extproc)))
    (SID_DESC=
    (SID_NAME=bhubccc)
    (ORACLE_HOME=D:\oracle\product\10.2.0\db_1)
    (PROGRAM=extproc)))
    Errors in listener log:
    TNS-01155: Incorrectly specified SID_LIST_LISTENER parameter in LISTENER.ORA
    NL-00303: syntax error in NV string
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=cccdb)(PORT=9999)))
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\extprocipc)))
    I am giving the listner details. please tell me where did it went wrong.
    thank you very much.
    satyanag

    Hi,
    (PROGRAM=extproc)))There is an extra closing bracket at the last fifth line of listner.ora
    Regards

  • Listener.log size limit on Linux 64-bit

    Hi!
    We have listener.log file growing very fast because of very active database. Every month or two I truncate that file to free up disk space but this time I forgot to truncate it for some time.
    File grew to 4294967352 bytes and stopped there on that size. Everything is working as it should with listener service - only listener.log file isn't updating.
    I've tried to search for more informations about listener.log size limit but haven't found answer that satisfies me.
    Where can I find more information why my listner.log file is limited to 4294967352 bytes?
    I suppose that this is some OS limit but how can I check this?
    It is Linux 64-bit OS with Oracle 10.2.0.4.
    Thanks for possible answers and best regards,
    Marko Sutic

    Ah, yes... thanks Sybrand for reminder, my brain just stopped working :)
    Just resolved my problem:
    LSNRCTL> set current_listener LISTENER_DB
    Current Listener is LISTENER_DB
    LSNRCTL> set log_file listener_db1
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.2.10.40)(PORT=1521)))
    LISTENER_DB parameter "log_file" set to listener_db1.log
    The command completed successfully
    LSNRCTL> set log_file listener_db
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.2.10.40)(PORT=1521)))
    LISTENER_DB parameter "log_file" set to listener_db.log
    The command completed successfully
    LSNRCTL>
    Regards,
    Marko

Maybe you are looking for