Sudden corruption of listener log

10.2.0.4
Linux RedHat 4
Hi gurus.
Sudden corruption of a listener log on one node of a RAC database (still waiting to see other log so cant confirm if its for both logs) means that within the log the data changes from English text to unreadable babble.
The only reason I can think for this is that the log has reached 2.5g in size - is there a limit to the size of a listener log?
Or maybe there are other reasons? I have chekced alert log and nothing obvious has so far revealed itself.
Thanks in advance.

user11981168 wrote:
10.2.0.4
Linux RedHat 4
Hi gurus.
Sudden corruption of a listener log on one node of a RAC database (still waiting to see other log so cant confirm if its for both logs) means that within the log the data changes from English text to unreadable babble.
The only reason I can think for this is that the log has reached 2.5g in size - is there a limit to the size of a listener log?
Or maybe there are other reasons? I have chekced alert log and nothing obvious has so far revealed itself.
Thanks in advance.Just copy that file to another folder and new log file will be created automatically. The size for the log file you've provided is really huge

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

  • I have a new mac book pro (sept 2014) and am suddenly stuck on the log-in screen. Keyboard input not working to enter my password. Already tried a basic restart and a cmmnd/ cntrl/ pwr troubleshoot to no effect.

    I have a new mac book pro (sept 2014) and am suddenly stuck on the log-in screen. Keyboard input is not working to enter my password. Seems to be a log in issue as keyboard works for forced troubleshooting. (And b/c when I first noticed the problem, I was able to enter my log in password but then everything sort of froze. Now, no ability to enter the password.) Already tried a basic restart and a cmmnd/ cntrl/ pwr troubleshoot to no effect.

    Reset PRAM:   http://support.apple.com/kb/PH14222
    Start up in Safe Mode.
    http://support.apple.com/kb/ph14204
    A new Mac is in warranty for 1 year from the date of purchase.
    A new Mac comes with 90 days of free tech support from AppleCare.
    AppleCare: 1-800-275-2273
    Call AppleCare or take it to the Apple store to have it checked out.
    Genius Bar reservation
    http://www.apple.com/retail/geniusbar/
    Best.

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

  • Corruption in a log file

    Problem Description: alter database open
    ERROR at line 1:
    ORA-00368: checksum error in redo log block
    ORA-00353: log corruption near block 75 change 898387731 time 11/07/2009 17:15:29
    ORA-00312: online log 2 thread 1: '/opt/oracle/archivelogs/online_logs/redo02.log'
    Elapsed: 00:00:01.71
    SQL> select CONTROLFILE_CHANGE#, ARCHIVELOG_CHANGE# from v$database;
    CONTROLFILE_CHANGE# ARCHIVELOG_CHANGE#
              898387746          898387674
    Elapsed: 00:00:00.00
    SQL> select distinct checkpoint_change# from v$datafile_header;
    CHECKPOINT_CHANGE#
             898385334
    Elapsed: 00:00:00.01I'm wondering if I should clear the logfile, or restore and recover control file to change# 898385334 or a higher number. Please advise. I filled out a severity 1 request, but I haven't heard back. It has been nearly 3 hours. I'm thinking I need to restore and recover the control file, but I would like some expert advice.
    If it matters:
    Oracle 11.1.0.6.0
    the corruption was caused by a full disk (Oracle completely filled one archivelog destination while another had 600GB+ free)
    the backups were done with RMAN
    a full restore and recover will take considerable time (probably a week or more by the time I get the data off of tape)
    I have all the archivelogs
    I have a recent control file backup
    and I'd be happy to post any other information.

    Flashback is not enabled. I think it was enabled when we were running this on a win32 platform, but it's not anymore.
    I thought the logfiles were duplexed when the database was set up, but Unfortunately, logfiles aren't duplexed. It also turns out that the datafiles are fuzzy. They need recovery from the corrupted online redo log, probably past the corruption point. Once the database is online again, I'll duplex or multiplex the logfiles before letting the customer use it again.
    The database is about 1.3TB. A full backup normally takes two days to complete, plus it would a few days to free up the space on the backup server. However, I have some much faster disk space now.
    Oracle support has gotten back to me, but their support system is suffering from partial outages. We tried applying all the logfiles, then an open resetlogs, but it didn't work, due to datafiles being fuzzy. His recommendation was to do a full restore and recover, but that will probably take more than a week. Most of the data has been archived to tape, and I've been generating 100's of GB (in their bzip2 compressed backup form) of archivelogs working on restoring the database from a previous crash.
    He said we could also try to force the database open, do a full export, create the database again, then import the data, and said it had a pretty good chance of working. Unless I come across some other option, we'll try that first, since by morning, I'll have somewhere around 1.8TB of extra disk space to hold the data.

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

Maybe you are looking for

  • Mac Pro display does not recover from sleep

    Hello, I have a Mac Pro Mid 2010 with two graphics cards (ATI 5770 & nVidia Geoforce GT 120) and three displays.  After intense use of the GPUs with graphics processing jobs, and after the screen goers to sleep, they do not recover.  The computer is

  • Powershell: How to change the header name in a imported CSV file

    HI All, I have a csv file in which I want to change the headers names in powershell. oldnames are name,id newnames I want to give are: company and transit respectively. Following is what I wrote in script:            $a = import-csv .\finalexam\emplo

  • Manual Condition type in Sales Order

    Hi, i need to enter a manual condition type in sales order which should come in % and the value should not come or it should come as zero, Is there any way to make that manual condition value as Zero in sales order. Ragu

  • I can't post or comment on Facebook since updating to IOS 8

    The keyboard comes up, but as soon as I type even one letter the keyboard disappears.

  • Shipment Cost Condition Type

    Dear Gurus, Is there any standard system condition type in the shipment cost who calculate the cost in the below behavior. If product weight is in b/w 1 to 10 tons cost is $10,000. and if weight is more than 10 tons lets say 11tons system calculate t