Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Oracle > Instance terminating due to error 221

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-24-03, 12:20
bhsieh bhsieh is offline
Registered User
 
Join Date: Feb 2002
Posts: 9
Instance terminating due to error 221

Instance terminating due to error 221

Hello all,

I am receving the following error periodically:

ORA-00206: error in writing (block 3, # blocks 1) of controlfile
ORA-00202: controlfile: 'E:\NEW\CONTROL02.CTL'
ORA-27072: skgdisp: I/O error
OSD-04008: WriteFile() failure, unable to write to file
O/S-Error: (OS 33) The process cannot access the file because another process has locked a portion of the file.

ORA-00221: error on write to controlfile
ORA-00206: error in writing (block 3, # blocks 1) of controlfile
ORA-00202: controlfile: 'E:\NEW\CONTROL02.CTL'
ORA-27072: skgdisp: I/O error
OSD-04008: WriteFile() failure, unable to write to file
O/S-Error: (OS 33) The process cannot access the file because another process has locked a portion of the file.

CKPT: terminating instance due to error 221
Instance terminated by CKPT, pid = 3504


This problem seems to happen just before the database files are backed up by Veritas Netbackup. However, the Oracle agent is configured for this database, and this problem happens sporadically. In addition, the database is bounced prior to the Veritas backup.

I have disabled Norton Antivirus from scanning the control files of the database during our nightly scans. How can I tell what is locking the control file??

Thanks!
Reply With Quote
  #2 (permalink)  
Old 04-25-03, 02:37
Hings Hings is offline
Oracle/UNIX
 
Join Date: Apr 2003
Location: Minneapolis, MN
Posts: 273
Dear bhsieh,

I guess you can resolve this problem By ..

Recreating the CONTROLFILE followed by recovery.

Hope this will help you out.

Thanks

Hings,

==========

Still learning...
Reply With Quote
  #3 (permalink)  
Old 04-26-03, 05:57
yumi_rama yumi_rama is offline
Registered User
 
Join Date: May 2002
Location: Thailand
Posts: 12
Is the control file in a network drive, if it is move it to local disk and try again.
__________________
OCP DBA
Reply With Quote
  #4 (permalink)  
Old 04-29-03, 15:57
clio_usa clio_usa is offline
Registered User
 
Join Date: Apr 2002
Location: California, USA
Posts: 482
Thumbs up

To see which process is using which files, install a small Windows program called - handle. Here is the URL - http://www.sysinternals.com/ntw2k/freeware/handle.shtml

For control file locking you have to check the NetBackup setup. It shouldn't lock the control files, unless you are doing something wronf during the backup. BTW, are you using RMAN & NetBackup?



Hope that helps,

clio_usa - OCP - DBA

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

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