473,390 Members | 1,413 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,390 software developers and data experts.

cannot read block 432382 of audit: Success

Hi


How would I fix an error below:


server.log file :



2010-03-07 15:46:40,220 DEBUG [ucs.instore.ejb.debtors.AccountSessionBean] getNcaHpAccountEvents query =
SELECT hp_tran.cus_acno, hp_tran.hp_sub_acno,date(audit.aud_doc_ts) as aud_doc_ts, sum(hptran_amt) as amount, audit.act_typ FROM hp_doc JOIN hp_tran on hp_tran.hpdoc_id = hp_doc.hpdoc_id JOIN audit USING (aud_id) JOIN audmth USING (aud_id) WHERE hpdoc_is_fin is true AND audit.act_typ not in ( 4276, 4275, 4776 , 4775) GROUP BY hp_tran.cus_acno, hp_tran.hp_sub_acno,date(audit.aud_doc_ts), audit.act_typ ORDER BY hp_tran.cus_acno, hp_tran.hp_sub_acno,date(audit.aud_doc_ts)
2010-03-07 15:48:49,626 INFO [ucs.instore.ejb.debtors.AccountSessionBean] EJBERROR - Cause null
2010-03-07 15:48:49,664 INFO [ucs.instore.ejb.debtors.AccountSessionBean] - File QueryExecutor.java
2010-03-07 15:48:49,664 INFO [ucs.instore.ejb.debtors.AccountSessionBean] - Class org.postgresql.core.QueryExecutor
2010-03-07 15:48:49,664 INFO [ucs.instore.ejb.debtors.AccountSessionBean] - Method execute
2010-03-07 15:48:49,665 INFO [ucs.instore.ejb.debtors.AccountSessionBean] - Line 131
2010-03-07 15:48:49,665 INFO [ucs.instore.ejb.debtors.AccountSessionBean] - Native false
2010-03-07 15:48:49,665 ERROR [ucs.instore.ejb.debtors.AccountSessionBean] EJB ERROR Info :
java.sql.SQLException: ERROR: cannot read block 432382 of audit: Success



There is table called audit. This tables keeps all the transaction numbers generated by the system. It looks like there is 4 audits that got corrupted, see below:


db0305=# SELECT * from audit where aud_id = 3283031;
ERROR: cannot read block 432382 of audit: Success
db0305=# SELECT * from audit where aud_id = 3283032;
ERROR: cannot read block 432382 of audit: Success
db0305=# SELECT * from audit where aud_id = 3283033;
ERROR: cannot read block 432382 of audit: Success
db0305=#
db0305=#
db0305=#
db0305=# SELECT * from audit where aud_id = 3283034;
ERROR: cannot read block 432382 of audit: Success
db0305=# SELECT * from audit where aud_id = 3283035;




This machine is running on PostgreSQL7.3.4 in CentOS version




Please assist, please explain it in simple terms or you can refer me to a relevent document
Mar 8 '10 #1
8 3399
rski
700 Expert 512MB
ERROR: cannot read block 432382
did you have any problems with disk? Did you check disk for bad blocks?
Mar 15 '10 #2
No, the disc didn't have problems, like dmessages didn't give any errors. we ended up restoring from the back up, of which it's not what we want because it takes a long time because you have copy a dump file from a backup machine which is far away from the affected server.
Mar 15 '10 #3
rski
700 Expert 512MB
Do you have any indexes on that table if so try to delete them and recreate.

And run fsck to check the disk
Mar 15 '10 #4
Many Thanks, I will try that.
Mar 15 '10 #5
Hi Kanga,

If you find out how to fix this, I have found the same problem with another branch. Please give me a call.
Apr 15 '10 #6
Try to REINDEX the table affected and also try to reindex the whole database.... I didn't find the solution in my previous problem I had. we restored the database from the back up server.
Apr 15 '10 #7
Ok thanks. Perhaps I'll just assign the log to DB services.

By the way, are there any Nik Naks in the vending machine?
Apr 15 '10 #8
there are Nik Naks james in vending machine, u might as well help yourself
Apr 15 '10 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Zlatko Matiæ | last post by:
Hello. I tried to implement audit trail, by making an audit trail table with the following fileds: TableName,FieldName,OldValue,NewValue,UpdateDate,type,UserName. Triggers on each table were...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
1
by: Byrocat | last post by:
We're going to be enabling the audit facility on some of our DB2 servers in the future, and I need some basic information on how large I can expect the log to grow. I've already been warning NOT...
22
by: Smutny30 | last post by:
Hello, I am preparing a database that will store 10 n * GBs - 100 n * GBs of data. I calculated to have 1,2 GB of bufferpools. I run the DB2 v. 8.2.1 alone on 4 GB box. I obtain : ...
0
by: JohnO | last post by:
Thanks to Serge and MarkB for recent tips and suggestions. Ive rolled together a few stored procedures to assist with creating audit triggers automagically. Hope someone finds this as useful as...
0
by: Santiago Cassina | last post by:
Hi list. I just want to send to you an sql file containing tools for audit the UPDATE and DELETE statements in a database by saving all the modifications made by a network/system/database user. I...
26
by: Martin Jørgensen | last post by:
Hi, I don't understand these errors I get: g++ Persort.cpp Persort.cpp: In function 'int main()': Persort.cpp:43: error: name lookup of 'j' changed for new ISO 'for' scoping Persort.cpp:37:...
2
by: dmateer | last post by:
I have the following code in an asp.net page: System.Data.OleDb.OleDbConnection cn = new System.Data.OleDb.OleDbConnection(); cn.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data...
0
by: phplasma | last post by:
Hey, I am currently attempting to implement a multi-threaded C# socket, using SSL (.pem file/certification/private key combo) server using Visual Studio C# Express. I have successfully made...
7
by: alexandre_irrthum | last post by:
Hi there, I am trying to use pyserial to read data from a temperature logger device (T-logger). T-logger is based on the DS1615 temperature recorder chip (Dallas Semiconductor). According to the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.