error message: "Database error: file IO failed"

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

Liu
Posts: 90
Joined: Tue Jun 08, 2010 6:22 am

error message: "Database error: file IO failed"

Postby Liu » Wed Apr 10, 2013 12:14 pm

Hi, I have experienced a strange error message when I was trying to update a local eviews database.

It says:

"Database Error: file IO failed" (see attached screenshot)
Does anyone know what's the cause of this error? is it because writing to a database was interrupted before and corrupted the db files?
I tried to use proc=>repair the database, but it didn't work by saying: Database Error: "Allocation information inconsistant. Rebuild file immediately!"

Many thanks!
Attachments
error.png
error.png (33.3 KiB) Viewed 4145 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: error message: "Database error: file IO failed"

Postby EViews Gareth » Wed Apr 10, 2013 12:34 pm

Yep, looks like it was corrupted. You should rebuild it. Use:

Code: Select all

dbrebuild y:\database\bond.edb y:\database\newbond.edb
which will rebuild the old database into a new one called newbond. You can then use that new one instead.

Liu
Posts: 90
Joined: Tue Jun 08, 2010 6:22 am

Re: error message: "Database error: file IO failed"

Postby Liu » Fri Apr 12, 2013 12:18 pm

just tried it and it works. Thanks!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests