ผู้เขียน หัวข้อ: ขอความช่วยเหลือ SQL error Table /hos/opitemrece  (อ่าน 6866 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

ออฟไลน์ chinaga

  • Hero Member
  • *****
  • กระทู้: 715
  • Respect: 0
    • ดูรายละเอียด
ขอความช่วยเหลือ SQL error Table /hos/opitemrece
« เมื่อ: กันยายน 05, 2007, 11:05:26 AM »
0
ขอความช่วยเหลือ SQL error Table /hos/opitemrece
ไม่ทราบต้องแก้ไขตรงไหนครับ
โรงพยาบาลสังขะ สุรินทร์ IBM X3650 Ram 20 G Centos 5.3 Mysql 5.1.47 XtraDB  hosxp 3.55.2.6
user คือผู้เป็นใหญ่ในระบบ
http://www.surinadmin.com/

ออฟไลน์ ไม่เสียสละ ชัยชนะไม่เกิด

  • Hero Member
  • *****
  • กระทู้: 1,267
  • Project Maneger
  • Respect: +2
    • ดูรายละเอียด
Re: ขอความช่วยเหลือ SQL error Table /hos/opitemrece
« ตอบกลับ #1 เมื่อ: กันยายน 05, 2007, 11:17:01 AM »
0
ขอโทษนะครับไม่ทราบว่าขึ้นตอนไหนครับ
ทำไม่ได้ หรือไม่ได้ทำ
 Project Maneger
Bangkok Medical Software Co., Ltd.
2, 2nd Floor, Soi Suksawat 33,
Suksawat Road, Radburana 10140
Thailand

doramon

  • บุคคลทั่วไป
Re: ขอความช่วยเหลือ SQL error Table /hos/opitemrece
« ตอบกลับ #2 เมื่อ: กันยายน 05, 2007, 11:21:25 AM »
0
เป็นทุกหน้าจอที่สั้งยาหรือเปล่าครับ

ถ้ายังไม่หายช่วยบอกด้วยครับ


ออฟไลน์ chinaga

  • Hero Member
  • *****
  • กระทู้: 715
  • Respect: 0
    • ดูรายละเอียด
Re: ขอความช่วยเหลือ SQL error Table /hos/opitemrece
« ตอบกลับ #3 เมื่อ: กันยายน 05, 2007, 13:37:55 PM »
0
ขึ้นตอนจะส่งยา ตอนจะพิมพ์ใบสรุป ขึ้นหลายที่ครับ
โรงพยาบาลสังขะ สุรินทร์ IBM X3650 Ram 20 G Centos 5.3 Mysql 5.1.47 XtraDB  hosxp 3.55.2.6
user คือผู้เป็นใหญ่ในระบบ
http://www.surinadmin.com/

doramon

  • บุคคลทั่วไป
Re: ขอความช่วยเหลือ SQL error Table /hos/opitemrece
« ตอบกลับ #4 เมื่อ: กันยายน 05, 2007, 23:04:19 PM »
0
แล้วสั่งยาที่ OPD เป็นหรือเปล่าครับ

ถ้ายังไม่หาย บอกด้วยครับ


doramon

  • บุคคลทั่วไป
Re: ขอความช่วยเหลือ SQL error Table /hos/opitemrece
« ตอบกลับ #5 เมื่อ: กันยายน 05, 2007, 23:11:50 PM »
0
7.5. myisamchk — MyISAM Table-Maintenance Utility

7.5.1. myisamchk General Options
7.5.2. myisamchk Check Options
7.5.3. myisamchk Repair Options
7.5.4. Other myisamchk Options
7.5.5. myisamchk Memory Usage

The myisamchk utility gets information about your database tables or checks, repairs, or optimizes them. myisamchk works with MyISAM tables (tables that have .MYD and .MYI files for storing data and indexes).
Caution

It is best to make a backup of a table before performing a table repair operation; under some circumstances the operation might cause data loss. Possible causes include but are not limited to filesystem errors.

Invoke myisamchk like this:

shell> myisamchk [options] tbl_name ...

The options specify what you want myisamchk to do. They are described in the following sections. You can also get a list of options by invoking myisamchk --help.

With no options, myisamchk simply checks your table as the default operation. To get more information or to tell myisamchk to take corrective action, specify options as described in the following discussion.

tbl_name is the database table you want to check or repair. If you run myisamchk somewhere other than in the database directory, you must specify the path to the database directory, because myisamchk has no idea where the database is located. In fact, myisamchk doesn't actually care whether the files you are working on are located in a database directory. You can copy the files that correspond to a database table into some other location and perform recovery operations on them there.

You can name several tables on the myisamchk command line if you wish. You can also specify a table by naming its index file (the file with the .MYI suffix). This allows you to specify all tables in a directory by using the pattern *.MYI. For example, if you are in a database directory, you can check all the MyISAM tables in that directory like this:

shell> myisamchk *.MYI

If you are not in the database directory, you can check all the tables there by specifying the path to the directory:

shell> myisamchk /path/to/database_dir/*.MYI

You can even check all tables in all databases by specifying a wildcard with the path to the MySQL data directory:

shell> myisamchk /path/to/datadir/*/*.MYI

The recommended way to quickly check all MyISAM tables is:

shell> myisamchk --silent --fast /path/to/datadir/*/*.MYI

If you want to check all MyISAM tables and repair any that are corrupted, you can use the following command:

shell> myisamchk --silent --force --fast --update-state \
          --key_buffer_size=64M --sort_buffer_size=64M \
          --read_buffer_size=1M --write_buffer_size=1M \
          /path/to/datadir/*/*.MYI

ออฟไลน์ chinaga

  • Hero Member
  • *****
  • กระทู้: 715
  • Respect: 0
    • ดูรายละเอียด
Re: ขอความช่วยเหลือ SQL error Table /hos/opitemrece
« ตอบกลับ #6 เมื่อ: กันยายน 06, 2007, 08:05:18 AM »
0
ขึ้นเหมือนกันครับไม่ทราบว่าเกิดจากสาเหตุอะไรครับ
แล้วจะแก้ไขอย่างไรครับ
โรงพยาบาลสังขะ สุรินทร์ IBM X3650 Ram 20 G Centos 5.3 Mysql 5.1.47 XtraDB  hosxp 3.55.2.6
user คือผู้เป็นใหญ่ในระบบ
http://www.surinadmin.com/

doramon

  • บุคคลทั่วไป
Re: ขอความช่วยเหลือ SQL error Table /hos/opitemrece
« ตอบกลับ #7 เมื่อ: กันยายน 06, 2007, 11:55:10 AM »
0
อาการแบบนี้ที่เคยพบ
คือ
1. ระบบ network ของโรงพยาบาลมีปัญหาหรือเปล่าครับทำให้ ตารางไฟล์เสีย
เกิดไฟฟ้า    ติดๆๆ ดับๆๆ

HUB เก่าหรือใหม่ ครับ   ทดสอบเปลี่ยน port  ของช่องที่เสียบ กับ server ครับ


เปิด hamachi
และ   VNC
« แก้ไขครั้งสุดท้าย: กันยายน 06, 2007, 12:06:13 PM โดย doraemon(saiyok) »

doramon

  • บุคคลทั่วไป
Re: ขอความช่วยเหลือ SQL error Table /hos/opitemrece
« ตอบกลับ #8 เมื่อ: กันยายน 06, 2007, 16:48:00 PM »
0
ไม่ทราบว่าหายหรือยังครับ

วิธีแก้ปัญหานี้ครับ

1.  ช่วยบอกด้วยว่า server   linux หรือ windows 
2.  ตัวตรวจสอบระบบ lan ด้วยครับว่ามีปัญหาหรือเปล่า
3.  ไฟฟ้า ดับบ่อยๆๆ หรือเปล่าครับ



ช่วยแจ้งมาด้วยครับ อาการนี้  ไม่สามารถ ทำงานต่อได้แน่นอน

ออฟไลน์ somnuk

  • Jr. Member
  • **
  • กระทู้: 93
  • Respect: 0
    • ดูรายละเอียด
Re: ขอความช่วยเหลือ SQL error Table /hos/opitemrece
« ตอบกลับ #9 เมื่อ: กันยายน 06, 2007, 18:22:23 PM »
0
ลองเข้าไปที่ mysql (manual)

# mysql -p
Enter password :

mysql > use hos;
mysql > repair table opitemrece;
รพศ.ราชบุรี
เริ่มระบบ : 7 กย. 49 (MN)

ออฟไลน์ nan_it

  • Hero Member
  • *****
  • กระทู้: 578
  • หัวไม่ให้แต่ใจรัก ( อยากเก่งให้มากกว่านี้ )
  • Respect: 0
    • ดูรายละเอียด
    • ramanhospital
Re: ขอความช่วยเหลือ SQL error Table /hos/opitemrece
« ตอบกลับ #10 เมื่อ: มกราคม 09, 2009, 07:47:51 AM »
0
ของผมเกิด error แบบนี้เหมือนกันครับ แต่เป็นตาราง vn_stat ลอง repair แล้ว ก็ยังใช้งานไม่ได้ครับ แนะนำหน่อยครับ ตอนนี้ยังใช้งานไม่ได้เลย
Mr.Anannee Sama ,โรงพยาบาลรามัน อำเภอรามัน จังหวัดยะลา 95140 ( รพ.60 เตียง กำลังจะเป็น รพ.ทั่วไป ครับ)
e-mail : nan_it@hotmail.com
http://www.ramanhospital.com
Server Intel Ram 16 G 
OS CentOS Database Mysql percona xtradb
ขึ้นระบบ กรกฎาคม พ.ศ. 2547
เวอร์ชั่นที่ใช้ 3.54.10.31

ออฟไลน์ manoi

  • Hero Member
  • *****
  • กระทู้: 8,669
  • Respect: +170
    • ดูรายละเอียด
    • HOSxP Community Center
Re: ขอความช่วยเหลือ SQL error Table /hos/opitemrece
« ตอบกลับ #11 เมื่อ: มกราคม 09, 2009, 08:22:54 AM »
0
ของผมเกิด error แบบนี้เหมือนกันครับ แต่เป็นตาราง vn_stat ลอง repair แล้ว ก็ยังใช้งานไม่ได้ครับ แนะนำหน่อยครับ ตอนนี้ยังใช้งานไม่ได้เลย

ลองเปิด Log file ของ MySQL ดูหรือยังครับ ในนั้นจะอธิบายปัญหาได้ละเอียดกว่าครับ
HOSxP Project Manager / Cheif Developer / BMS MD

ออฟไลน์ มนตรี บอยรักยุ้ยคนเดียว

  • Hero Member
  • *****
  • กระทู้: 5,369
  • Respect: +12
    • ดูรายละเอียด
    • โรงพยาบาลชุมชน ด่านมะขามเตี้ย
Re: ขอความช่วยเหลือ SQL error Table /hos/opitemrece
« ตอบกลับ #12 เมื่อ: มกราคม 09, 2009, 18:02:48 PM »
0
ของผมเกิด error แบบนี้เหมือนกันครับ แต่เป็นตาราง vn_stat ลอง repair แล้ว ก็ยังใช้งานไม่ได้ครับ แนะนำหน่อยครับ ตอนนี้ยังใช้งานไม่ได้เลย
หาข้อมูลที่ เป็น newback มาใช้แบบตารางเดียว น่าจะเกิดจากไฟกระชาก ใช้ตารางแบบ myisam
ของผมเคยเป็นแล้ว admin คนเก่าแก้ไม่ได้และปรึกษา...
ผมเลยต้องทำเองไม่สนว่าใครจะใช้อะไรเพราะบางทีเขาให้เราทดลองเหมือนหนูทดลอง
และทำให้ server นิ่งที่สุด
เปิดเครื่อง server มา  1 ปีก็ไม่เป็นอะไรทั้งฐานก็ไม่มีปัญหา
ต้องขอขอบคุณ พี่ขวดกับพี่ ตาน่อย999
ที่ทำให้ผม ทำเครื่อง server ได้นิ่งมาก ๆ และให้ข้อมูลเกี่ยวกับ my.cnf  (วิธีเซ็ต)
สุดยอดท่านอาจารย์ทั้ง 2 ;D ;D ;D ;D
« แก้ไขครั้งสุดท้าย: มกราคม 09, 2009, 21:13:15 PM โดย บอย(ด่านมะขามเตี้ย) »
เริ่ม11พย.2548OPD-Paperlessพร้อมHOSxPลดโลกร้อน
FF-Paperless(รพ.สค.)เริ่ม1ตค2555=100%
IPD-Lesspaper1ตค2560ระบบDmsByNeoNetwork
IPD-Paperless1พ.ค2562ระบบHOSxPXE4
ServerMTOL8.5+MDB-10.4.20,SlaveOL8.5+MDB-10.7.3
LOG=PostgreSQL11,INV=PostgreSQL11

doramon

  • บุคคลทั่วไป
Re: ขอความช่วยเหลือ SQL error Table /hos/opitemrece
« ตอบกลับ #13 เมื่อ: มกราคม 09, 2009, 21:01:11 PM »
0
ลองเปิด Log file ของ MySQL ดูหรือยังครับ ในนั้นจะอธิบายปัญหาได้ละเอียดกว่าครับ 

อธิบาย ปัญหาได้ดีกว่าครับ