BMS-HOSxP Community
HOSxP => แจ้งข้อผิดพลาดการทำงานของ HOSxP V3 => ข้อความที่เริ่มโดย: doramon ที่ พฤศจิกายน 07, 2006, 01:10:00 AM
-
รวมวิธีแก้ปัญหาที่ขั้น error ไว้ที่เดียวกัน มี่หลายหัวข้อครับ
ผมจะพยายามมาตอบไว้ที่เดียวกันครับ
Bug วิธีแก้ปัญหาแต่ละ version ไว้ที่เดี่ยวกันครับ
ปัญหา : ...............................................
version :..............................................
วิธีแก้ป้ญหา :.........................................
กำลังรวม
-
3.51.11.12 แล้วเกิดข้อความนี้หลังเปลียน version
System Message
SQL Error: Table 'hos.tmp_opitemrece_summary_repl' doesn't exist
select * from opitemrece_summary where vn = '511114131330'
จริงๆๆไม่น่าจะเป็นครับ ทำตามรูปครับ
ชื่อตาราง นำหน้าด้วย tmp_xxxxx_repl
-
mysql แจ้ง error 24
เปิด Script
/etc/init.d/mysql
แล้วเพิ่ม ulimit -n 20000 เข้าไปในส่วนบนของแฟ้มครับ
แล้วแก้ไขแฟ้ม
/etc/security/limits.conf
เพิ่ม 4 บรรทัดดังรูปครับ
เพิ่มบรรทัด
root soft nofile 50000
root hard nofile 50000
mysql soft nofile 50000
mysql hard nofile 50000
-
วิธีแก้ปัญหา LAB แสดงรายชื่อ ว่างๆๆ ด้านบน
(http://hosxp.net/smf/index.php?action=dlattach;topic=5926.0;attach=14606;image)
วิธี ให้รันคำสั่งนี้
1. จำทำให้เวลาสั่งแลบครั้งต่อไป ไม่เกิดแบบนี้อีก
delete from lab_items_sub_group_list where lab_items_code not in(select lab_items_code from lab_items)
2. จำทำให้ประวัติเก่าๆๆ ที่เคยสั่งมา ปกติ
delete from lab_order where lab_items_code not in(select lab_items_code from lab_items)
-
เวลาทำงานแล้วขึ้นข้อความได้ล่างตลอดเวลา
เกิดจากระบบมีปัญหาเลข id ของตารางเก็บข้อมูลที่เป็น pk ย้อนกลับไปน้อยกว่าที่ตารางเก็บไว้
http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=20477.msg174550#new
(http://hosxp.net/smf/index.php?action=dlattach;topic=20477.0;attach=62800;image)
วิธีแก้
1. ตรวจสอบตารางที่เก็บข้อมูล ดูเลข ID
select max(scan_id) from opdscan
2. ดูตารางรวมที่เก็บค่า id สุดท้าย
select * from serial where name="scan_id"
หรือว่าจะใช้
Tool -->misc--->checkdb---> ckeck serial แล้วกดให้มันตรวจสอบให้ทุกตาราง