疑難排解程序(原文:TroubleShooting Procedures)


Summary

在信息技術領域中,疑難排解程序是每位使用者必備的技能之一。這篇文章深入探討了如何系統化地面對各種技術挑戰,以及這些技巧如何提升我們日常工作中的效率與信心。 Key Points:

  • 掌握基本的疑難排解步驟,如重啟設備、檢查連接和更新軟體,這三個簡單動作往往能迅速解決大多數問題。
  • 利用社群資源,例如論壇和技術支持網站,可以獲得他人分享的經驗與解決方案,讓你的疑難排解過程更有效率。
  • 記錄每次遇到的問題及其解決方法,不僅能幫助自己未來快速應對類似情況,還可以成為有價值的知識庫,幫助他人。
學會有效的疑難排解技巧,不僅能提高工作效率,更能增強我們面對技術挑戰時的自信心。

原文

The most common problems experienced occur immediately after installation as a result of an incorrectly installed database or Data Source Name (DSN). A Data Source Name is used by ODBC (Open Database Connectivity) drivers, which connect a program to a database. This works much like a printer driver, which connects a program to a printer. If ODBC errors are reported by the program, then the following steps should be taken to verify that the DSN for your program is correctly configured.

Determine the DSN for your program. See Configuration Settings for this information.
Click on tart?and then un? A dialog box should open up which will allow you to enter a command to execute. In the space provided, type dbcad32?(without the quote marks) and press Enter.
The ODBC Data Source Administrator should appear. The screen should look similar to this:


Figure 1: ODBC Data Source Administrator
If the DSN you found in Step 1 shows up in this list, then click on it and then click on onfigure? If you do not see it in this list, click on the ystem DSN? tab. If the DSN you found in Stop 1 shows up in this list, then click on it and then click on onfigure? If you still have not found the DSN you found in Step 1, then click on this link: Adding a New Data Source Name. Otherwise, a configuration screen should show up, looking similar to this:

Figure 2: ODBC Microsoft Access Setup
The path and name of the database that your program expects to open and use appears in this screen immediately above the button, elect? If the path specified in this field is incorrect, click on elect? which will open up a elect Database?dialog. This will look similar to this:

Figure 3: Select Database
Using the provided controls, navigate to the location (on your computer or on your network) where the database was installed. Refer to Configuration Settings for the name of the database file used by your product. You should find the file at this location. If you do, click on the file and then K?
The previous screen, DBC Microsoft Access Setup?will appear. Click OK.
The previous screen, DBC Data Source Administrator?will appear. Click OK.


Try running your program again. If you were experiencing a problem caused by an incorrectly configured Data Source, then the program should work normally. If you experience more ODBC errors, then do the following:

Referring to Configuration Settings, locate the name and location of the INI file for your program.
Using Windows Explorer, navigate to the location on your computer where INI files and edit the INI file for your program. You can use notepad.exe for this task.
Referring to Configuration Settings, locate the main section header for your program. This section will appear in the INI file, which should now be open in an editor.
You may find a setting value that appears this way: audit= If the setting doesnî–¹ appear in the INI file, add it, making sure that you add it to the main section.


Example where the main section header is earning and Working Styles?

[Learning and Working Styles]
DatabaseName=VLSI Database
DatabaseUser=
DatabasePassword=
Proprietary=C:\VLSI
VideoVersion=No
Audit=
Now, add c:\audit.txt after Audit=


[Learning and Working Styles]
DatabaseName=VLSI Database
DatabaseUser=
DatabasePassword=
Proprietary=C:\VLSI
VideoVersion=No
Audit=c:\audit.txt


Save the updated file and close the notepad editor window.
Run your program and perform the tasks that you did before when the ODBC error occurred. When the errors happen, detailed information will be saved in the file, C:\audit.txt? Send this file, either by disk or by email, to Piney Mountain Press, Inc. where it can be analyzed to determine the exact nature and cause of the problem. If further information or action is needed, Piney Mountain Press will contact you.
When the problem has been solved and a fix determined, you will be contacted by Piney Mountain Press with either instructions or an update (as appropriate) to fix your problem.

中文

最常見的問題通常會在安裝後立刻出現,其原因多半在於資料庫或資料來源名稱(DSN)安裝不正確。資料來源名稱是由 ODBC(開放資料庫連接)驅動程式所使用,用來將程式與資料庫連結,其運作方式就像印表機驅動程式,後者則是用來將程式與印表機連接。如果程式回報了 ODBC 錯誤,請依下列步驟確認您程式所用的 DSN 是否已正確設定。
1. 確認程式的 DSN
請參考「設定參數」取得相關資訊。
2. 啟動 ODBC 資料來源管理員
點選「開始」然後「執行」,此時應該會開啟一個對話方塊,讓您可以輸入指令。
在提供的空格中輸入 dbcad32(請勿包含引號),然後按 Enter 鍵。
接著,ODBC 資料來源管理員的畫面會出現,其畫面大致如下所示:
圖 1:ODBC 資料來源管理員
3. 檢查 DSN 是否列在清單中
o 如果您在第一步中確認的 DSN 有出現在清單中,請點選該 DSN,再點選「設定」。
o 如果該 DSN 沒有出現在清單中,請點選「系統 DSN」頁籤,檢查該 DSN 是否存在。若在「系統 DSN」頁籤中發現,請點選該 DSN,然後點選「設定」。
o 若仍未找到您在第一步中查詢到的 DSN,請點擊此連結:新增資料來源名稱。
否則,系統會顯示一個設定畫面,畫面大致如下:
圖 2:ODBC Microsoft Access 設定
4. 確認資料庫的路徑與名稱
在設定畫面中,您程式預期開啟及使用的資料庫路徑與名稱會顯示在「選擇」按鈕正上方。
若此欄位中指定的路徑不正確,請點選「選擇」,系統會開啟一個「選擇資料庫」的對話方塊,畫面大致如下:
圖 3:選擇資料庫
5. 選擇正確的資料庫檔案
利用對話方塊中的控制項,瀏覽至資料庫安裝的位置(可能位於您電腦或網路上)。
請參考「設定參數」中所列的資料庫檔案名稱,並確認該檔案是否位於該位置。
找到後,點選該檔案,再點選「確定」。
6. 完成設定並關閉對話方塊
接著會出現先前的畫面「DBC Microsoft Access 設定」,請點選「確定」。
然後會回到「DBC 資料來源管理員」的畫面,再按一次「確定」。
7. 測試程式運行
請再次執行您的程式。如果先前的問題正是由於資料來源設定不正確所引起,程式應可正常運作。
若仍然出現 ODBC 錯誤,請依下列步驟進行後續處理:
a. 根據「設定參數」,找出您程式所用的 INI 檔案名稱與其存放位置。
b. 使用 Windows 資源管理器,瀏覽至存放 INI 檔案的目錄,並編輯該檔案(可使用 notepad.exe 進行編輯)。
c. 根據「設定參數」,找出 INI 檔案中的主要區段標頭。此區段應出現在您已開啟的檔案中。
d. 您可能會看到類似如下的設定:
audit=
若該設定在 INI 檔案中不存在,請手動新增,並確保新增在主要區段中。
例如:若主要區段標頭為「學習與工作風格」,內容如下:
[Learning and Working Styles]
DatabaseName=VLSI Database
DatabaseUser=
DatabasePassword=
Proprietary=C:\VLSI
VideoVersion=No
Audit=
現在,請在 Audit= 後面新增 c:\audit.txt,使其變為:
ini
[Learning and Working Styles]

DatabaseName=VLSI Database
DatabaseUser=
DatabasePassword=
Proprietary=C:\VLSI
VideoVersion=No
Audit=c:\audit.txt
e. 請將更新後的檔案儲存(從「檔案」選單中選擇「儲存」),然後關閉 notepad 編輯器。
f. 重新執行您的程式,並進行先前在 ODBC 錯誤發生時所進行的操作。當錯誤再次出現時,詳細資訊將會被儲存在檔案 c:\audit.txt 中。
請將此檔案(可透過磁碟或電子郵件方式)傳送給 Piney Mountain Press, Inc.,以便他們能夠進一步分析問題的具體性質及成因。
若需要進一步的資訊或採取行動,Piney Mountain Press 將會與您聯繫。
8. 問題解決後的後續處理
當問題獲得解決且確定了解決方案後,Piney Mountain Press 將會聯絡您,並提供相應的指示或更新(視情況而定),以修復您的問題。
Extended Perspectives Comparison:
步驟說明
確認DSN檢查程式所用的資料來源名稱是否正確配置,參考設定參數。
啟動ODBC管理員點選開始然後執行,輸入 `dbcad32` 來開啟ODBC資料來源管理員。
檢查清單在ODBC管理員中確認DSN是否列在清單中,如無則查看系統DSN頁籤。
確認資料庫路徑確保顯示的資料庫路徑和名稱正確,若不正確請選擇正確的資料庫檔案。
編輯INI檔案如仍有ODBC錯誤,編輯相應程式的INI檔案並新增audit=設定以便追蹤錯誤。

Reference Articles

針對程序進行疑難排解- Visual Basic

下列範例會定義兩個程序,這些程序會依值採用陣列變數,並在其元素上運作。 程序 increase 只會將一個陣列新增至每個元素。 程序 replace 會將新的陣列指派 ...

Source: Learn Microsoft

針對DNS 相關啟用問題進行疑難排解的指導方針

如果用戶端找不到您現有的KMS 主機,請使用下列程式針對您的路由組態進行疑難排解。 這些程序會從最簡單到最複雜的方式排列。 確認DNS 伺服器的基本IP 連線 ...

Source: Learn Microsoft

疑難排解BPEL 程序的執行作業

本主題僅適用於IBM Business Automation Workflow Advanced 配置。 疑難排解BPEL 程序的執行作業. 線上編輯. 這說明BPEL 程序執行一般問題的解決方案。

Source: IBM

錯誤訊息:此Thunderbolt™應用程式不再使用,且可安全卸載

解決方法. 在首次推出Thunderbolt 3系統時發佈的Intel® Thunderbolt™控制器驅動程式是基於不同的驅動程式/應用程式模型。 若要解決錯誤訊息/問題,請按照以下步驟操作.

Source: Intel

疑難排解Business Process Choreographer Explorer 或 ...

使用此資訊來解決與Business Process Choreographer Explorer 或Business Process Archive Explorer 相關的問題。

Source: IBM

Session Manager 疑難排解 - AWS Documentation

此錯誤通常表示執行的Session Manager 工作者程序太多,且基礎作業系統已達到限制。有兩個選項可用來解決此問題。 解決方案A:提高作業系統 ...

疑難排解

請使用此處提供的指標來疑難排解您在安裝和使用Trident 時可能遇到的問題。 一般疑難排解. 如果Trident pod無法正常啟動(例如、當Trident pod卡 ...

Source: NetApp

ePSA、PSA 錯誤代碼和故障診斷參考表(2000-4NNN 系列)

疑難排解 系統時,最常見的工作之一是更新系統基本輸入/輸出系統(BIOS),也稱為系統設定。 強烈建議您在執行診斷程式之前,先將BIOS 更新為可用的最新版本。如需更多 ...

Source: Dell

pineymountain

Expert

Related Discussions