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
Similar Messages
-
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 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 SuticAh, 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 -
Listener.log not been updated
I am on linux x86 OEL4.
using 10.2.0.3.
My listener.log is not been updated since the 30 May.
Weird.
/opt/oracle/app/oracle/product/10.2.0/db_1/network/log
[oracle@juk-prod log]$ ll
total 4203424
-rw-r--r-- 1 oracle oinstall 4294967428 May 30 21:49 listener.log
-rw-r--r-- 1 oracle oinstall 5123274 Sep 16 12:29 sqlnet.log
if i do status in lsnrctl:
Listener Parameter File /opt/oracle/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /opt/oracle/app/oracle/product/10.2.0/db_1/network/log/listener.log
everything seems fine.
This database gets lots of connection per minute.
whats going on?i fix the problem by doing:
SET LOG_FILE list.log
now i get information in list.log
any idea why it would stop logging info once the log was at 4gig? -
Need to Create a New Listener Log file 9i
Hi, I have a issue with a oracle 9i database.
First the listener.log file is 1.2G not good on a 25G server..
How do you create and delete the listener file? Windows 2000 OS...
Second I also have an issue with the archive log files... I have about 150 file 102M each...Again Not good...
Need HELP drowning in a sea of oracle... Given the Shrink command....
At least the Listener issue first then the archive log problem..
Thank you...carlo_sc wrote:
yes, we normally do a full daily backup and the archive logs are then deleted..But the Job didn't finish
last night. Also we had big Network issue yesterday and I believe that caused the issue with this server
causing an excessive amount of log files to be created...
So with simply thing with lister is just too:
1) stop listener service
2) delete Log file.... (that won't mess anything up on restart ) I'm very skittish about manually deleting stuff from oracle..
Got burned in Sept of last year big timeIt's just a log file. It's for your own use if needed. oracle doesn't use it or require it. You even have an option in the listener to not even write to it in the first place.
3) restart listener service
The archive logs : What if I move some of the files to another location then perform the a full daily backup will the that
solve my archive log issues....
Thanks for all the quick responses
Edited by: carlo_sc on Jan 15, 2010 10:09 AMYou say you already have a backup job that gets the archivelogs and deletes them after backup? And the only real problem here is that it failed? Fix the failure and run it again. You can, in a pinch, manually move the archivelogs, but then YOU are responsible for keeping up with them.
Edited by: EdStevens on Jan 15, 2010 9:32 AM -
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 -
ERROR-Logging of Stored Procedure (Stop / Going on after error + logging)
Hi @all,
I am using a Stored Procedure which is very simple:
=>The stored procedure is selecting many tousands of records from table1 + table2.
=> Some values (records) will be summarized (aggregated/group by).
=>After this selection and summarizing, this records will be deleted from table3 (if they exist in table3).
=>Then the selected records will be inserted in table3.
Now I want to do the following:
Is there a way to log the errors of the stored procedure?
For example, the stored procedure is copying many thousands of records.
If there is a problem on copying/ inserting a record to table3, then I want a error-log in a loggin_table.
Is there a way to write the error-logs from a stored procedure to a special table in database?
I want to do this in 2 ways:
1) On error the error is logged and the stored procedure is stopped.
2) On error the error is logged and the stored procedure is going on to insert/summarize the next record.
I don't know how I can get these errors of a stored procedure. Maybe it isn't possible? Or is it better to use a function?
Hope anyone can give me a hint?
Thanks a lot.
Best regards,
TimHi
option one:
as i know you can have another table without primer key (log table).
then before you insert into table, select the record count using primary key. if it is duplicate then put those record into the table.
option two:
write the log into file.
declare
f utl_file.file_type;
s varchar2(200);
begin
f := utl_file.fopen('SAMPLEDATA','sample1.txt','R');
loop
utl_file.get_line(f,s);
dbms_output.put_line(s);
end loop;
exception
when NO_DATA_FOUND then
utl_file.fclose(f);
end;
refer : http://www.psoug.org/reference/OLD/utl_file.html
regards
upul.
Edited by: Upul Indika on Apr 9, 2009 12:45 PM -
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 AristarcoHi 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 PMThank 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?
ThanksI 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 -
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 -
How to write the listener.ora and tnsnames.ora
Hi, there
I store my oracle database in the machine A. In the machine B,
it only install the oracle without create database. How should
I write the
listener.ora and tnsnames.ora? So that the machine B could
acces the database which store in the machines A.
Could you give me a simple example and with some description.
Thanks you very much!!
nullwrjih (guest) wrote:
: Hi, there
: I store my oracle database in the machine A. In the machine B,
: it only install the oracle without create database. How should
: I write the
: listener.ora and tnsnames.ora? So that the machine B could
: acces the database which store in the machines A.
: Could you give me a simple example and with some description.
: Thanks you very much!!
1 - you can simply copy the files from the server to the client.
If they are correct, it must work fine
2 - Follow the examples inside the
$ORACLE_HOME/network/admin/samples
3 - Follow my examples:
I will try to make it simple:
The server must have the listener.ora. The client does not need
it if you don't have a database there.
I cannot tell you what is mandatory in the file, and what is not.
The listener.ora has the interface (addr or name)
to listen, the port/proto, and some info about your database
($ORACLE_HOME and Name).
#--- Listener.ora -- my minimal settings ---
LISTENER =
(ADDRESS_LIST =
(ADDRESS=(PROTOCOL= TCP)(Host=Server)(Port= 1521))
(ADDRESS=(PROTOCOL= IPC)(KEY = ORCL))
STARTUP_WAIT_TIME_LISTENER = 1
CONNECT_TIMEOUT_LISTENER = 10
TRACE_LEVEL_LISTENER = OFF
TRACE_LEVEL_CLIENT=OFF
SID_LIST_LISTENER =
(SID_LIST=(SID_DESC=
(SID_NAME = SACS)
(ORACLE_HOME=/oracle/805)))
#---- end of listener.ora ---
Both machines can, and should have similar TNSNAMES.ORA:
tnsnames.ora has the address or name of the server, and the Name
of the database you wish to connect to.
#--- tnsnames.ora --- minimal.
ORCL = (DESCRIPTION =
(ADDRESS_LIST=(ADDRESS = (PROTOCOL = TCP)(Host=Server)(Port =
1521)))
(CONNECT_DATA = (SID = SACS)))
#--- end of tnsnames.ora ---
And finally sqlnet.ora, that is very usefull for setting secure
networks or
just logging for looking for errors. You can also set your
keepalive timeout.
#--- sqlnet.ora
TRACE_LEVEL_CLIENT = OFF
names.directory_path = (TNSNAMES)
SQLNET.EXPIRE_TIME = 10
#-- end of sqlnet.ora --
null -
Turning off listener.log?
I have a huge listener.log file (around 9GB) and it is causing storage issues. Is it safe to turn the logging off in the lstnctl? Another alternative is to turn it off, rename the listener.log file and then turn back on and archive the old listener file?
Also, having a file this big on a Unix system, is it possible that turning the logging off will increase system performance?
Thanks,You can 'rotate' the listener log file by using a script, like
#!/usr/bin/sh
#set -vx
msg_exit()
sts=$1
shift
echo "$@" >&2
exit $sts
TNS_ADMIN=${TNS_ADMIN:-${ORACLE_HOME}/network/admin}
LISTENERORA=$TNS_ADMIN/listener.ora
[[ ! -f "$LISTENERORA" ]] && msg_exit 1 "${LISTENERORA} not found. exiting"
# bepaal de naam van de listener
lsnr_name="`awk '/^LISTENER/{print $1}' $LISTENERORA | tr [A-Z] [a-z] `"
echo $lsnr_name
# bepaal de naam van de log file
logfil="`awk '/LOG_FILE/ {print $NF}' $LISTENERORA`"
logfil=${logfil:-listener.log} # defaults to listener.log when not set
# bepaal de naam van de log directory
logdir="`awk '/LOG_DIRECTORY/ {print $NF}' $LISTENERORA`"
logdir=${logdir:-${ORACLE_HOME}/network/log} # defaults to $ORACLE_HOME/network/log when not set
TIMEST="`date +%Y%m%d%H%M%S`"
# bepaal of de listener draait
if (ps -ef | grep "\"tnslsnr $lsnr_name\"" | grep -v $$ >/dev/null)
then
# listener draait
echo "$lsnr_name $logdir/$logfil"
echo "now stopping ${lsnr_name}"
lsnrctl stop $lsnr_name
echo "mv ${logdir}/$logfil} ${logdir}/${logfil}.${TIMEST}"
mv $logdir/$logfil ${logdir}/${logfil}.${TIMEST}
touch ${logdir}/${logfil}
echo "Now starting listener $lsnr_name"
lsnrctl start $lsnr_name
fi
Sybrand Bakker
Senior Oracle DBA -
My listener log is getting big
hi Buddies;
I got two DBs and two listeners. Right now, one of the listener is getting big. I'm trying to solve the problem executing the next instruction.
lsnrctl set log_status off
mv listener.log listener_old.log
lsnrctl set log_status on
But that , works for one of them.
The continue increasing it's size.
So, I tried this:
lsnrctl set log_status listener_name off;
But when I executed that command , I got this error message:
NL-00857: wrong number (0 - 1 needed) of arguments to "log_status"
How can I do to stop and start this specific listener?
Thanks for your help.
AlCan you please post the actual execution of these commands so we can see what's happening?
Please enclose the data in \ tags. -
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
FabriceYou'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.
Maybe you are looking for
-
How to import many large graphic images to fit into column width?
I have a 2-column layout and about 150 large graphic images which must be imported so that they fit exactly into the column width. These are bitmaps which have all the same dimensions. All of them will need a border (stroke). And they should be inlin
-
Problem checking a blank field
i added a when-validate-item to a text item however it is not firing. Is the following code correct. Because the following does not work. if :users.empid = ' ' then message('The employeeID can not be blank'); raise form_trigger_fa
-
HELP - Daylight Savings not observed in INDIANA
AFter the time change last weekend, I noticed that my computer was an hour early. I looked into my date and time function and realized that I had myself set to Chicago as my nearest city. Okay, so I changed to Indianapolis hoping this would fix the p
-
How do i show icloud in the Finder window?
I've read tricks on how to show iCloud as a virtual folder to store files. They all say to show the hidden Library and find "Moblile Documents" But i don't have this. What am i doing wrong? I want to be able to create a document in word on my mac,
-
How do I imbed a MathType Equation in a sentence within a textbox?
When I try to "insert MathType Equation" in a textbox it just randomly inserts it anywhere on the page instead of at the insertion point where I have the cursor setting when I click on "insert MathType Equation". It works fine in Pages, but just doe