If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Unable to delete log file error reported db2diag

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-14-08, 16:38
sundaram sundaram is offline
Registered User
 
Join Date: Mar 2006
Posts: 104
Unable to delete log file error reported db2diag

Hi

We use db2 8.2.6 on windows 2000.

We got following error in our production DB
-------------------------------------------------
2008-02-14-23.40.16.168000+600 E1934574H468 LEVEL: Error
PID : 4016 TID : 4476 PROC : db2syscs.exe
INSTANCE: AXISPROD NODE : 000 DB : AXISRTDL
FUNCTION: DB2 UDB, data protection, sqlpgOrphanLogFile, probe:900
MESSAGE : ADM1510W A file sharing violation has occurred while accessing log
file "S0004103.LOG". Another process may be using this file. DB2
will try to delete it later.

2008-02-14-23.40.16.168000+600 I1935044H444 LEVEL: Error
PID : 4016 TID : 4476 PROC : db2syscs.exe
INSTANCE: AXISPROD NODE : 000 DB : AXISRTDL
FUNCTION: DB2 UDB, data protection, sqlpgRenameLogFile, probe:1120
RETCODE : ZRC=0x870F0016=-2029060074=SQLO_SHAR "File sharing violation."
DIA8519C A file sharing violation has occurred, filename was
"S0004103.LOG".
-------------------------------------------

The DB is working OK and the error has not happened again so far.


Any explanation as to why this has happened? Any thing can be done proactively to prevent this from happening?

Thanks

Harikumar
Reply With Quote
  #2 (permalink)  
Old 02-15-08, 07:42
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
are you archiving the log ? to disk - tsm ?
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #3 (permalink)  
Old 02-17-08, 16:45
sundaram sundaram is offline
Registered User
 
Join Date: Mar 2006
Posts: 104
No we do not use tsm.

Any suggestions as to the reasons for this error and how to avoid this. Bit wrorried as it is our productio database.


Regards

Harikumar
Reply With Quote
  #4 (permalink)  
Old 08-18-08, 15:11
dharmaraj_ganesan dharmaraj_ganesan is offline
Registered User
 
Join Date: Aug 2008
Posts: 23
Hi Hari...

is ur problem resolved?? am also facing the same problem..

i will let you know my scenario...

last week my db2diag.log file was showing the below message.

MESSAGE : ADM1510W A file sharing violation has occurred while accessing log file "S0073564.LOG". Another process may be using this file. DB2
will try to delete it later.


Eventhough log file was archived and moved to archive log location, the file was existing in active log location.

We had a downtime last week and after instance restart we got the below message in db2diag.log file

MESSAGE : Deleting old log file S0073564.LOG

After restart the log file was deleted from the active log path

Again today morning i got file sharing violation message on another log file.

Let me know if you have any input on this?

Thanks,
Dharma.G
Reply With Quote
  #5 (permalink)  
Old 08-18-08, 18:29
sundaram sundaram is offline
Registered User
 
Join Date: Mar 2006
Posts: 104
Hi Dharma,

No updates on this. We have not got this error for last few months. If you happen to get a solution let me know.


Hari Kumar
Reply With Quote
  #6 (permalink)  
Old 08-18-08, 22:45
rangupt rangupt is offline
Registered User
 
Join Date: Jan 2008
Posts: 96
We had a similar problem sometime back and figured that some other process is locking the files needed by DB2. Some of the typical causes are virus scans and OS file system backups. If you have any of these running, they should not be accessing DB2 files. You need to exclude all DB2 related files when running such utilities. You might want to find out if this happens during a certain timeframe and see what all OS utilities are being run during that time. Hope this helps.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On