今天在給客戶服務器Microsoft SQL Server2008數(shù)據(jù)庫服務器添加維護計劃時報錯:
創(chuàng)建維護計劃失敗。
------------------------------
其他信息:
從 IClassFactory 為 CLSID 為 {17BCA6E8-A95D-497E-B2F9-AF6AA475916F} 的 COM 組件創(chuàng)建實例失敗,原因是出現(xiàn)以下錯誤: c001f011。 (Microsoft.SqlServer.ManagedDTS)
------------------------------
從 IClassFactory 為 CLSID 為 {17BCA6E8-A95D-497E-B2F9-AF6AA475916F} 的 COM 組件創(chuàng)建實例失敗,原因是出現(xiàn)以下錯誤: c001f011。 (Microsoft.SqlServer.ManagedDTS)
解決方法:
C:\Documents and Settings\Administrator>regsvr32 "C:\Program Files\Microsoft SQL Server\100\DTS\Binn\DTS.dll",
(或者
C:\Documents and Settings\Administrator>regsvr32 "C:\Program Files(x86)\Microsoft SQL Server\100\DTS\Binn\DTS.dll")
posted @
2017-01-17 13:17 Glorin 閱讀(1654) |
評論 (0) |
編輯 收藏
1、shutdown normal
正常方式關閉數(shù)據(jù)庫。
2、shutdown immediate
立即方式關閉數(shù)據(jù)庫。
在SVRMGRL中執(zhí)行shutdown immediate,數(shù)據(jù)庫并不立即關閉,
而是在Oracle執(zhí)行某些清除工作后才關閉(終止會話、釋放會話資源),
當使用shutdown不能關閉數(shù)據(jù)庫時,shutdown immediate可以完成數(shù)據(jù)庫關閉的操作。
3、shutdown abort
直接關閉數(shù)據(jù)庫,正在訪問數(shù)據(jù)庫的會話會被突然終止,
如果數(shù)據(jù)庫中有大量操作正在執(zhí)行,這時執(zhí)行shutdown abort后,重新啟動數(shù)據(jù)庫需要很長時間
--------------------------------------------------------
shutdown abort 的時候,跟kill 進程是一樣的效果
數(shù)據(jù)庫立即關閉,這個時候文件狀態(tài)可能不一致
因為正常關閉數(shù)據(jù)庫會同步校驗各文件,使得重新啟動的時候文件時間點一致并且不用進行崩潰恢復
若檢查點信息一致,則做崩潰恢復
若檢查點信息不一致(正好在更新文件頭)則需要做介質恢復
這些問題都好處理,最怕的問題是這個時候系統(tǒng)有大量IO,結果這樣造成寫的突然中斷,碰巧造成文件塊的邏輯壞塊,那麻煩比較大一些,尤其是系統(tǒng)表空間的block損壞
雖然shutdown abort 出錯的幾率很小,1000個人可能只有一個人碰到,但是我們還是要小心。
正確的處理流程是,shutdown immediate ,若數(shù)據(jù)庫遲遲不能down下來,在os上觀察IO狀況,幾乎沒有io的時候,另開一窗口shutdown abort ,幾乎不會出問題了
--------------------------------------------------------
http://www.itpub.net/showthread.php?threadid=180315&pagenumber=
先用IMMEDIATE來DOWN,實在不行了,看一下數(shù)據(jù)庫文件上沒IO了,再用ABORT
------------------------------------------------------------------------------
你可以嘗試先在系統(tǒng)級殺掉非后臺Oracle進程,在連接shutdown immediate就安全多了
在Oracle8i里,當數(shù)據(jù)庫失去響應以后,你在操作系統(tǒng)上殺掉用戶進程后,一般數(shù)據(jù)庫就可以恢復正常了
-------------------------------------------------------------------------------
先 shutdown immediate 應該是首選
然后不行再重新shutdown abort
其實起不來也是因為os的緣故,在文件正在寫的時候出現(xiàn)問題導致文件不一致或者損壞……
posted @
2015-11-02 15:04 Glorin 閱讀(162) |
評論 (0) |
編輯 收藏
在給mysql數(shù)據(jù)庫備份時,報錯:mysqldump: Got error: 145: Table './jxzhtopenfire/ofoffline' is marked as crashed and should be repaired when using LOCK TABLES。
如上錯誤的解決方法如下:
1、進入數(shù)據(jù)庫對該表進行檢測:
mysql> check tables ofoffline;
+-------------------------+-------+----------+-------------------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+-------------------------+-------+----------+-------------------------------------------------------+
| jxzhtopenfire.ofoffline | check | warning | Table is marked as crashed |
| jxzhtopenfire.ofoffline | check | warning | 1 client is using or hasn't closed the table properly |
| jxzhtopenfire.ofoffline | check | error | Record at pos: 1175720 is not remove-marked |
| jxzhtopenfire.ofoffline | check | error | record delete-link-chain corrupted |
| jxzhtopenfire.ofoffline | check | error | Corrupt |
+-------------------------+-------+----------+-------------------------------------------------------+
5 rows in set
2、使用repair解決方法:
mysql> repair table ofoffline;
+-------------------------+--------+----------+------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+-------------------------+--------+----------+------------------------------------------+
| jxzhtopenfire.ofoffline | repair | warning | Number of rows changed from 2349 to 2451 |
| jxzhtopenfire.ofoffline | repair | status | OK |
+-------------------------+--------+----------+------------------------------------------+
再次進行dump備份就可以了。
備份mysql數(shù)據(jù)庫時報錯:mysqldump: Got error: 145: Table './jxzhtopenfire/ofoffline' is marked as crashed and should be repaired when using LOCK TABLES。
這樣的錯誤。
搜索了一下,發(fā)現(xiàn)只要在mysqldump的時候加上--lock-tables=false就可以解決問題。
mysqldump -u root -pMyPassword DbName --lock-tables=false > data.sql
posted @
2015-09-30 09:56 Glorin 閱讀(2048) |
評論 (0) |
編輯 收藏