計算機專業(yè)外文翻譯[共14頁]

上傳人:gfy****yf 文檔編號:41401154 上傳時間:2021-11-20 格式:DOC 頁數(shù):14 大?。?3KB
收藏 版權(quán)申訴 舉報 下載
計算機專業(yè)外文翻譯[共14頁]_第1頁
第1頁 / 共14頁
計算機專業(yè)外文翻譯[共14頁]_第2頁
第2頁 / 共14頁
計算機專業(yè)外文翻譯[共14頁]_第3頁
第3頁 / 共14頁

下載文檔到電腦,查找使用更方便

12 積分

下載資源

還剩頁未讀,繼續(xù)閱讀

資源描述:

《計算機專業(yè)外文翻譯[共14頁]》由會員分享,可在線閱讀,更多相關(guān)《計算機專業(yè)外文翻譯[共14頁](14頁珍藏版)》請在裝配圖網(wǎng)上搜索。

1、 How to troubleshoot connectivity issues in SQL Server 2000 Chris Tull, Microsoft Help and Support This article can help you to resolve connectivity problems with Microsoft SQL Server 2000. This article contains descriptions of common connectivity problems and the steps that you can take to help

2、resolve your connectivity problems. SQL Server 2000 supports several methods of communication between the instance of SQL Server and the client applications. If your client application and the instance of SQL Server reside on the same computer, Microsoft Windows interprocess communication (IPC) co

3、mponents, such as local named pipes or the Shared Memory protocol, are used to communicate. However, when the client application and the instance of SQL Server reside on different computers, a network IPC, such as TCP/IP or named pipes, is used to communicate. SQL Server 2000 uses Net-Library, a DL

4、L, to communicate with a particular network protocol. A matching pair of Net-Libraries must be active on the client computer and the server computer to support the network protocol that you want to use. For example, if you want to enable a client application to communicate with a specific instance o

5、f SQL Server across TCP/IP, the client TCP/IP Sockets Net-Library (Dbnetlib.dll) must be configured to connect to the server on the client computer. Likewise, the server TCP/IP Sockets Net-Library (Ssnetlib.dll) must listen on the server computer. In this scenario, the TCP/IP protocol stack must be

6、installed on both the client computer and the server computer. After you install SQL Server 2000, you can configure the properties of the client Net-Libraries by using Client Network Utility. You can configure the properties of the server Net-Libraries by using Server Network Utility (Svrnetcn.exe)

7、. The server Net-Libraries are installed during the installation of the server tools in SQL Server Setup. However, some of the server Net-Libraries may not be active. By default, SQL Server 2000 enables and listens on TCP/IP, named pipes, and Shared Memory. Therefore, for a client to connect to a se

8、rver computer, the client must connect by using a client Net-Library that matches one of the server Net-Libraries that is currently being used by the instance of SQL Server. For additional information about SQL Server communication components and Net-Libraries, see the following topics in SQL Serve

9、r Books Online: ? Communication Components ? Client and Server Net-Libraries ? Managing Clients Troubleshoot connectivity issues Most of the connectivity issues that you may notice in SQL Server 2000 occur because of problems with TCP/IP, Windows authentication, or a combination of TCP/IP and

10、Windows authentication. Important Before you start to troubleshoot connectivity issues in SQL Server 2000, make sure that the MSSQLServer service is started on the computer that is running SQL Server. Verify your DNS settings The name resolution process in Domain Name System (DNS) is used to r

11、esolve the IP address to the name of the instance of SQL Server. If the name resolution process does not work correctly, the instance of SQL Server is not reachable, and you may receive one or more of the following error messages: SQL Server does not exist or access denied General Network Error

12、Cannot Generate SSPI Context To verify that the name resolution process is resolving the correct server, you can ping the server by using the server name and the IP address of the server. To do so, follow these steps: 1. Click Start, and then click Run. 2. In the Run dialog box, type cmd in the

13、Open box, and then click OK. 3. At the command prompt, run the following command: ping <Server Name> Note the IP address that is returned. 4. At the command prompt, run the following command (where IP address is the IP address that you noted in step 3): ping –a <IP address> Verify

14、that the command resolves to the correct server name. If either of the specified commands are not successful, time out, or do not return the correct values, the DNS lookup is not working correctly or the problem occurs because of other networking or routing issues. To see your current DNS settings,

15、run the following command at a command prompt: ipconfig /all To work around this problem, add an entry for the server to the %systemroot%\system32\drivers\etc\hosts file on the client computer. You can also work around the problem by connecting to the server by using the Named Pipes Net-library.

16、Verify the enabled protocols and aliases Connectivity problems may occur if the alias on the client computer is set incorrectly. You can view the aliases by using Client Network Utility. To do so, follow these steps: 1. Start Client Network Utility. If the SQL Server client tools are installed on

17、 the computer that is running the client application, follow these steps to start Client Network Utility: a. Click Start, and then point to Programs. b. Point to Microsoft SQL Server, and then click Client Network Utility. If the SQL Server client tools are not installed on the client computer

18、, follow these steps to start Client Network Utility: a. Click Start, and then click Run. b. In the Run dialog box, type cliconfg in the Open box, and then click OK. 2. In the SQL Server Client Network Utility window, click the General tab, and then enable all the protocols that you want to us

19、e. Note You must at least enable the TCP/IP protocol and the named pipes protocol. 3. Click the Alias tab, and then verify the aliases that are configured for the instance of SQL Server. 4. Verify the properties of the aliases to make sure that the server name or IP address and the protocol are

20、configured correctly. You can create a new alias to test the connectivity by using the server name, the IP address, or even by using a different protocol. Note Earlier versions of Microsoft Data Access Components (MDAC) have a different user interface for Client Network Utility. Therefore, if you

21、do not see the options that are listed in this article, install a later version of MDAC on the computer that is running the client application. Verify that the instance of SQL Server is listening correctly To verify that the instance of SQL Server is listening on named pipes, TCP/IP, or another pr

22、otocol that you are using at the client application, open the current SQL Server error log file. The SQL Server error log file may contain entries that are similar to the following: 2003-11-06 09:49:36.17 server SQL server listening on TCP, Shared Memory, Named Pipes. 2003-11-06 09:49:36.17 server

23、SQL server listening on 192.168.1.5:1433, 127.0.0.1:1433. If you analyze the entries in the SQL Server error log file, you can verify that the instance of SQL Server is listening on the correct IP address and on the correct port. By default, a default instance of SQL Server listens on the port 1433

24、. You can also use Server Network Utility to verify the protocol settings for SQL Server and to change the properties in SQL Server, including the protocols that can connect to SQL Server and the ports that can be used. For more information about using Server Network Utility, see the "SQL Serve

25、r Network Utility" topic in SQL Server Books Online. Sometimes, SQL Server 2000 may not bind to port 1433 or any other specified port. This problem may occur if the port is being used by another application or if you are trying to connect by using an IP address that is not correct. Therefore,

26、 the TCP/IP connections to SQL Server may not be successful and you may receive the following error message in the SQL Server error log file: 2001-11-14 15:49:14.12 server SuperSocket Info: Bind failed on TCP port 1433. If you cannot connect to the instance of SQL Server by using a TCP/IP connect

27、ion, try to use the named pipes protocol or the Shared Memory protocol. Run the following command at a command prompt to obtain information about the ports that are in use: NETSTAT –an You can also use the Portqry command-line utility to obtain more information about the ports that are in use. No

28、te For named instances of SQL Server, SQL Server dynamically determines the port and listens on the determined port. Therefore, when you start the named instance of SQL Server, SQL Server tries to listen on the port that was previously being used. If SQL Server cannot bind to that port, the named in

29、stance may dynamically bind to a different port. In that situation, make sure that the client application is also set to determine the port dynamically. Alternatively, you can also specify a static port for the named instance to bind to and to listen on by using Client Network Utility. Troubleshoot

30、 MDAC Issues Connectivity problems may also occur because of problems with MDAC. For example, a software installation may overwrite some of the MDAC files or change the permissions that you must have to access the MDAC files. You can run the MDAC Component Checker to verify the MDAC installation on

31、 your computer. Note If you are connecting to a named instance of SQL Server, make sure that you are running MDAC 2.6 or later on your computer. Earlier versions of MDAC do not recognize named instances of SQL Server. Therefore, connections to named instances may not be successful. You can use the

32、 Odbcping.exe utility to verify connections through the SQL Server ODBC driver. You can also test connectivity to the instance of SQL Server by using a .udl file. Troubleshoot firewall issues If firewall exists between the client computer and the computer that is running SQL Server, make sure tha

33、t the ports that are required to communicate through the firewall are open. If you use the TCP/IP protocol to connect to the instance of SQL Server, make sure that you can use the Telnet program to connect to the port where SQL Server is listening. To use the Telnet program, run the following comma

34、nd at a command prompt: Telnet <IP Address> <Port Number> If the Telnet program is not successful and you receive an error message, resolve the error and then try to connect again. Note Because of issues that were caused by the Slammer virus, the User Datagram Protocol (UDP) port 143

35、4 may be blocked on your firewall. Troubleshoot authentication and security issues Connections to SQL Server may not be successful because of authentication failures. If the authentication fails, you may receive one of the following error messages: Login failed for user '<username>'

36、 Login failed for user 'NTAUTHORITY\ANONYMOUS LOGON' Login failed for user 'null' If you receive an error message because of an authentication failure and the error message does not mention a specific SQL Server login name, troubleshoot the problem with Windows authentication. You

37、 may receive the following error message because of problems with Windows authentication: Cannot generate SSPI Context The following problems may cause authentication and security issues: ? Problems occur with NTLM authentication or with Kerberos authentication. ? The domain controller cannot

38、be contacted because of connectivity issues. ? Problems occur with trust relationships across domains. For more information about possible causes, see the event logs on the computer. To work around connectivity problems with Windows authentication, you can use SQL Server Authentication to connect

39、to the instance of SQL Server. If the connection is not successful when you use SQL Server Authentication, you receive the following error message: Login failed for user '<username>' . Not associated with a trusted connection To troubleshoot this problem, follow these steps. War

40、ning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk. 1. Make sure that th

41、e instance of SQL Server is configured to use Windows authentication and SQL Server Authentication. To do so, make sure that the following registry keys are on the computer that is running SQL Server. For the default instance of SQL Server: HKEY_LOCAL_MACHINE\Software\Microsoft\MSSQLServer\MSSQLSe

42、rver\LoginMode For the named instance of SQL Server: HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft SQL Server\<Instance Name>\MSSQLServer\LoginMode Make sure that the following registry key values are set: Authentication type Value Windows authentication only 1 Mixed mode (SQL Server

43、Authentication and Windows authentication) 2 Note If you make any changes to the registry, you must stop and then restart the instance of SQL Server for the changes to take effect. 2. Try to connect to the instance of SQL Server by using different Windows accounts or SQL Server login accounts. Thi

44、s can help determine if the connection is not successful because of problems with a particular login account. For example, the password of the login account may have been changed. 3. Try to connect to the instance of SQL Server by using different protocols. For example, the connections that use the

45、 TCP/IP protocol with Windows authentication may not be successful, but connections that use the named pipes protocol with Windows authentication may be successful. If you are using certificates, you may receive a Secure Sockets Layer (SSL) security error message when you try to connect to the inst

46、ance of SQL Server. Troubleshoot stress on TCP/IP sockets When you use the SQL Server ODBC driver, the Microsoft OLE DB Provider for SQL Server, or the System.Data.SqlClient managed provider, you can disable connection pooling by using the appropriate application programming interfaces (APIs). Wh

47、en you disable connection pooling and your application frequently opens and closes connections, the stress on the underlying SQL Server network library may increase. Sometimes, the Web servers and the JDBC drivers may also try to connect to the instance of SQL Server. Therefore, the increase in conn

48、ection requests to SQL Server may be more than SQL Server can handle. This may stress the TCP/IP sockets, and you may receive the following error message in the SQL Server error log file: 2003-08-07 20:46:21.11 server Error: 17832, Severity: 20, State: 6 2003-08-07 20:46:21.11 server Connection

49、opened but invalid login packet(s) sent. Connection closed. For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base: 154628 ( INF: SQL logs 17832 with multiple TCP\IP connection requests 328476 ( TCP/IP settings for SQL Server drivers

50、 when pooling is disabled Note You may not notice the stress on TCP/IP sockets if you are running SQL Server 2000 SP3 or SQL Server 2000 SP3a because a limit on the number of login packets was added. The 17832 error occurs when you use third-party drivers to connect to the instance of SQL Server.

51、To resolve this problem, contact the third-party vendor and obtain drivers that have been tested to work with SQL Server 2000 SP3 and SQL Server 2000 SP3a. See if the instance of SQL Server is started in single-user mode If the instance of SQL Server that you are trying to connect to is started in

52、 single-user mode, only one connection can be established with SQL Server. If you have software running on your computer that automatically connects to SQL Server, the software can easily use the only connection. For example, the following software can automatically connect to the instance of SQL Se

53、rver: ? SQL Server Agent ? Third-party backup software ? Third-party monitoring software ? Third-party virus software ? Microsoft Internet Information Services (IIS) ? SQL Server Enterprise Manager The client application that is trying to connect to the instance of SQL Server receives the f

54、ollowing error message: SQL Server does not exist or Access Denied This error generally occurs during SQL Cluster Setup and service pack setup when the setup process starts the instance of SQL Server in single-user mode. The specified applications may automatically connect to the instance of SQL

55、Server using the only available connection, and setup is not successful. To determine if the instance of SQL Server has been started in single-user mode, check to see if the SQL Server error log file has an entry that is similar to following: 2003-07-31 11:26:43.79 spid3 Warning *****************

56、* 2003-07-31 11:26:43.80 spid3 SQL Server started in single user mode. Updates allowed to system catalogs. Verify named pipes connectivity to SQL Server If you cannot connect to the instance of SQL Server by using named pipes, make sure that the instance of SQL Server is configured to accept nam

57、ed pipes connections. Troubleshoot connections that time out during the recovery process Every time that you start an instance of SQL Server, SQL Server recovers each database. During this recovery process, SQL Server rolls back the transactions that are not committed. SQL Server also rolls forwa

58、rd the transactions that are committed and the changes that were not written to the hard disk when the instance of SQL Server was stopped. When the recovery process is complete, SQL Server logs the following message in the SQL Server error log file: Recovery Complete During the recovery process,

59、SQL Server may not accept connections. Clients that try to connect to the instance of SQL Server during that time may receive an error message that is similar to the following: Timeout Expired The SQL Server Agent service may not start because it waits for SQL Server to recover the databases. The

60、refore, when you receive the following message in the SQL Server error log file, the connections will no longer fail with a timeout error: Recovery Complete If the recovery process takes a long time, you may have to additionally troubleshoot the recovery process. Test different ways to connect t

61、o the instance of SQL Server If you experience connectivity problems when you connect to the instance of SQL Server, you can use one or more of the following methods to work around the connectivity problem. ? Test the connectivity to the instance of SQL Server by using both SQL Server Authenticat

62、ion and Windows authentication. ? Test the connectivity to the instance of SQL Server from other data sources, such as an ODBC DSN, a .udl file, SQL Query Analyzer, SQL Server Enterprise Manager, the isql utility, or the osql utility. ? Test the connectivity to the instance of SQL Server by using

63、different protocols. You can specify different protocols by creating a new alias for the instance of SQL Server using that protocol. You can also specify the protocol in your connection string by adding tcp:, np:, lpc:, or rpc: to the beginning of the name of the instance of SQL Server. For example,

64、 if TCP/IP connections are not successful, named pipes connections succeed. ? Test the connectivity by using a different login account to help you determine if the problem is associated with a particular login account. ? Try to add an entry that corresponds to the IP address of the computer that i

65、s running the instance of SQL Server to the %systemroot%\system32\drivers\etc\hosts file. ? Try to connect to the instance of SQL Server from the computer that is running SQL Server and from the client. ? If you are connecting from the computer that is running SQL Server, you can specify ".&q

66、uot; or "(local)" (without the quotation marks) instead of the server name and then connect. ? Try to connect to the instance of SQL Server by using the IP address instead of the server name. ? Try to specify the specific port that the instance of SQL Server is listening on, either by creating an alias or by adding a port number to the connection string (MyServer\MyInstance, 1433, for example). Capture network monitor traces If the connectivity problem is not resolved by the steps that are mentioned in "T

展開閱讀全文
溫馨提示:
1: 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
2: 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
3.本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
5. 裝配圖網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

相關(guān)資源

更多
正為您匹配相似的精品文檔
關(guān)于我們 - 網(wǎng)站聲明 - 網(wǎng)站地圖 - 資源地圖 - 友情鏈接 - 網(wǎng)站客服 - 聯(lián)系我們

copyright@ 2023-2025  zhuangpeitu.com 裝配圖網(wǎng)版權(quán)所有   聯(lián)系電話:18123376007

備案號:ICP2024067431-1 川公網(wǎng)安備51140202000466號


本站為文檔C2C交易模式,即用戶上傳的文檔直接被用戶下載,本站只是中間服務(wù)平臺,本站所有文檔下載所得的收益歸上傳人(含作者)所有。裝配圖網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對上載內(nèi)容本身不做任何修改或編輯。若文檔所含內(nèi)容侵犯了您的版權(quán)或隱私,請立即通知裝配圖網(wǎng),我們立即給予刪除!