xolbm 发表于 2006-5-9 19:28:32

[求助]ISQL不能连接数据库

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"><span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;"></span></font></span>&nbsp;</p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"><span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;">系统平台为WINDOWS SEVER 2003,SYBASE是12.5.1,用isql -Usa -Ppassword -Ssystem</span></font></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"><span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;">连接</span><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">数据库时,提示:</span></font></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">CS-LIBRARY error:</font></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>ct_init(): network packet layer: internal net library error: Failed to open Net-Library localization file&nbsp; </font></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt;"><span lang="EN-US"></span><span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;">Attempting to obtain a localized error message failed.</span></p><p><span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;"><span lang="EN-US"><font face="Times New Roman"><span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;">我是一个初学者,恳请各位大虾帮忙看看<span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;">这是什么原因!上面的提示是啥意思呀?谢谢先.</span></span></font></span></span></p>

ehxz 发表于 2006-5-9 20:01:22

是不是服务没有启动啊?给SYBASE打上最新补丁再试试看。

xolbm 发表于 2006-5-9 20:41:51

ehxz,谢谢你解答,我是菜鸟问题有点多和低级哈!<br/>你说的是哪个服务没启动呀?我的应用程序能正常使用,但在服务管理那里有Sybase BCKServer&nbsp; Sybase MONServer Sybase SQLServer Sybase XPServer四个服务不能被启动,提示:错误1067,进程意外终止。我本想通过ISQL命令检查和备份数据库并启动以上服务,能不能实现呀?<br/>打补丁会不会损坏数据库呀?我的数据库较重要,没有备过份呀。<br/>

flybean 发表于 2006-5-10 09:03:21

服务没启动,怎么可能用ISQL?<br/>贴错误日志<br/>

xolbm 发表于 2006-5-10 11:12:22

00:00000:00000:2006/05/09 08:47:29.04 kernel&nbsp; Checked out license ASE_SBE<br/>00:00000:00000:2006/05/09 08:47:29.07 kernel&nbsp; Adaptive Server Small Business Edition<br/>00:00000:00000:2006/05/09 08:47:29.42 kernel&nbsp; Using config area from primary master device.<br/>00:00000:00000:2006/05/09 08:47:29.50 kernel&nbsp; Warning: Using default file 'C:\sybase\JYFYZJ.cfg' since a configuration file was not specified. Specify a configuration file name in the RUNSERVER file to avoid this message.<br/>00:00000:00000:2006/05/09 08:47:29.71 kernel&nbsp; Using 100000 file descriptors.<br/>00:00000:00000:2006/05/09 08:47:29.78 kernel&nbsp; Adaptive Server Enterprise/12.5.0.1/SWR 10291 IR/P/NT (IX86)/OS 4.0/rel12501/1778/32-bit/OPT/Fri May 17 00:59:18 2002<br/>00:00000:00000:2006/05/09 08:47:29.78 kernel&nbsp; Confidential property of Sybase, Inc.<br/>00:00000:00000:2006/05/09 08:47:29.78 kernel&nbsp; Copyright 1987, 2002<br/>00:00000:00000:2006/05/09 08:47:29.78 kernel&nbsp; Sybase, Inc.&nbsp; All rights reserved.<br/>00:00000:00000:2006/05/09 08:47:29.78 kernel&nbsp; Unpublished rights reserved under U.S. copyright laws.<br/>00:00000:00000:2006/05/09 08:47:29.78 kernel&nbsp; <br/>00:00000:00000:2006/05/09 08:47:29.78 kernel&nbsp; This software contains confidential and trade secret information of Sybase,<br/>00:00000:00000:2006/05/09 08:47:29.78 kernel&nbsp; Inc.&nbsp;&nbsp; Use,&nbsp; duplication or disclosure of the software and documentation by<br/>00:00000:00000:2006/05/09 08:47:29.78 kernel&nbsp; the&nbsp; U.S.&nbsp; Government&nbsp; is&nbsp; subject&nbsp; to&nbsp; restrictions set forth in a license<br/>00:00000:00000:2006/05/09 08:47:29.78 kernel&nbsp; agreement&nbsp; between&nbsp; the&nbsp; Government&nbsp; and&nbsp; Sybase,&nbsp; Inc.&nbsp; or&nbsp; other&nbsp; written<br/>00:00000:00000:2006/05/09 08:47:29.78 kernel&nbsp; agreement&nbsp; specifying&nbsp; the&nbsp; Government's rights to use the software and any<br/>00:00000:00000:2006/05/09 08:47:29.78 kernel&nbsp; applicable FAR provisions, for example, FAR 52.227-19.<br/>00:00000:00000:2006/05/09 08:47:29.78 kernel&nbsp; Sybase, Inc. 5000 Hacienda Drive, Dublin, CA 94568, USA<br/>00:00000:00000:2006/05/09 08:47:29.78 kernel&nbsp; Using 'C:\sybase\JYFYZJ.cfg' for configuration information.<br/>00:00000:00000:2006/05/09 08:47:29.78 kernel&nbsp; Logging ASE messages in file 'C:\sybase\ASE-12_5\install\errorlog'.<br/>00:00000:00000:2006/05/09 08:47:29.81 kernel&nbsp; Initializing MSDTC Connection<br/>00:00000:00000:2006/05/09 08:47:31.92 kernel&nbsp; MSDTC Initialization succeeded<br/>00:00000:00000:2006/05/09 08:47:31.92 kernel&nbsp; kdcl_sess_open: connectivity library supports master/query syntax.<br/>00:00000:00000:2006/05/09 08:47:31.93 kernel&nbsp; Directory Control Layer (DCL) using directory driver: InterfacesDriver<br/>00:00000:00000:2006/05/09 08:47:31.93 kernel&nbsp; *** WARNING ******************<br/>00:00000:00000:2006/05/09 08:47:31.93 kernel&nbsp; Operating system may favor the system cache when memory is at a premium.<br/>&nbsp;To disable this warning, set the registry parameter 'LargeSystemCache' to 0 in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management.<br/>00:00000:00000:2006/05/09 08:47:31.93 kernel&nbsp; SQL Server NT process id is 0x7e4.<br/>00:00000:00000:2006/05/09 08:47:31.93 kernel&nbsp; SQL Server was started as a Service.<br/>00:00000:00000:2006/05/09 08:47:31.95 kernel&nbsp; SSL Plus v3.0.9 security modules loaded successfully.<br/>00:00000:00000:2006/05/09 08:47:31.95 kernel&nbsp; Network and device connection limit is 99992.<br/>00:00000:00000:2006/05/09 08:47:32.18 server&nbsp; Number of blocks left for proc headers: 3232.<br/>00:00000:00000:2006/05/09 08:47:32.18 server&nbsp; Proc header memory allocated 1616 pages for each per engine cache<br/>00:00000:00000:2006/05/09 08:47:32.20 server&nbsp; Memory allocated for the default data cache cachelet 1: 8192 Kb<br/>00:00000:00000:2006/05/09 08:47:32.20 server&nbsp; Size of the 2K memory pool: 8192 Kb<br/>00:00000:00000:2006/05/09 08:47:32.20 kernel&nbsp; Initializing virtual device 0, 'C:\sybase\data\master.dat' with dsync 'on'.<br/>00:00000:00000:2006/05/09 08:47:32.20 kernel&nbsp; Virtual device 0 started using asynchronous i/o.<br/>00:00000:00000:2006/05/09 08:47:32.20 kernel&nbsp; Worker Thread Manager is not enabled for use in SQL Server.<br/>00:00000:00000:2006/05/09 08:47:32.20 kernel&nbsp; Either the config parameter 'use security services' is set to 0, or ASE does not support use of external security mechanisms on this platform. The Security Control Layer will not be initialized. No external security mechanisms will be supported.<br/>00:00000:00000:2006/05/09 08:47:32.21 kernel&nbsp; engine 0, os pid 1788&nbsp; online<br/>00:00000:00000:2006/05/09 08:47:32.25 server&nbsp; No active traceflags<br/>00:00000:00001:2006/05/09 08:47:32.42 kernel&nbsp; libomni1 - Component Integration Services loaded; version 'libomni1 - Component Integration Services/12.5.0.1/SWR 10291 IR/P/NT (IX86)/OS 4.0/rel12501/1778/32-bit/OPT/Fri May 17 00:59:18 2002'.<br/>00:00000:00001:2006/05/09 08:47:32.42 kernel&nbsp; libomni1 - Component Integration Services: using 'Sybase Client-Library/12.5/P-EBF9966/PC Intel/BUILD125-011/OPT/Mon Dec 03 14:56:19 2001'<br/>00:00000:00001:2006/05/09 08:47:32.42 server&nbsp; Opening Master Database ...<br/>00:00000:00001:2006/05/09 08:47:32.65 server&nbsp; Loading SQL Server's default sort order and character set<br/>00:00000:00001:2006/05/09 08:47:32.65 server&nbsp; Loaded default Unilib conversion handle.<br/>00:00000:00001:2006/05/09 08:47:32.71 server&nbsp; Recovering database 'master'.<br/>00:00000:00001:2006/05/09 08:47:32.92 server&nbsp; Redo pass of recovery has processed 403 committed and 0 aborted transactions.<br/>00:00000:00001:2006/05/09 08:47:33.09 server&nbsp; Checking external objects.<br/>00:00000:00001:2006/05/09 08:47:33.18 server&nbsp; Database 'master' is now online.<br/>00:00000:00001:2006/05/09 08:47:33.18 server&nbsp; The transaction log in the database 'master' will use I/O size of 2 Kb.<br/>00:00000:00001:2006/05/09 08:47:33.20 server&nbsp; Warning: ASE_HA has no valid license and therefore is not initialized.<br/>00:00000:00001:2006/05/09 08:47:33.21 server&nbsp; server is unnamed<br/>00:00000:00001:2006/05/09 08:47:33.21 server&nbsp; Activating disk 'erm' of size 1996488704 bytes.<br/>00:00000:00001:2006/05/09 08:47:33.21 kernel&nbsp; Initializing virtual device 2, 'd:\erm_data\erm.dat' with dsync 'on'.<br/>00:00000:00001:2006/05/09 08:47:33.21 kernel&nbsp; Virtual device 2 started using asynchronous i/o.<br/>00:00000:00001:2006/05/09 08:47:33.21 server&nbsp; Activating disk 'ermlog' of size 2089779200 bytes.<br/>00:00000:00001:2006/05/09 08:47:33.21 kernel&nbsp; Initializing virtual device 3, 'd:\erm_data\ermlog.dat' with dsync 'on'.<br/>00:00000:00001:2006/05/09 08:47:33.21 kernel&nbsp; Virtual device 3 started using asynchronous i/o.<br/>00:00000:00001:2006/05/09 08:47:33.21 server&nbsp; Activating disk 'sysprocsdev' of size 125829120 bytes.<br/>00:00000:00001:2006/05/09 08:47:33.21 kernel&nbsp; Initializing virtual device 1, 'C:\sybase\data\sybprocs.dat' with dsync 'on'.<br/>00:00000:00001:2006/05/09 08:47:33.21 kernel&nbsp; Virtual device 1 started using asynchronous i/o.<br/>00:00000:00001:2006/05/09 08:47:33.45 server&nbsp; Recovering database 'sybsystemdb'.<br/>00:00000:00001:2006/05/09 08:47:33.46 server&nbsp; Redo pass of recovery has processed 0 committed and 1 aborted transactions.<br/>00:00000:00001:2006/05/09 08:47:33.56 server&nbsp; Boot Count: 12<br/>00:00000:00001:2006/05/09 08:47:33.62 server&nbsp; Checking external objects.<br/>00:00000:00001:2006/05/09 08:47:33.62 server&nbsp; The transaction log in the database 'sybsystemdb' will use I/O size of 2 Kb.<br/>00:00000:00001:2006/05/09 08:47:33.64 server&nbsp; Database 'sybsystemdb' is now online.<br/>00:00000:00001:2006/05/09 08:47:33.67 server&nbsp; Recovering database 'model'.<br/>00:00000:00001:2006/05/09 08:47:33.71 server&nbsp; Checking external objects.<br/>00:00000:00001:2006/05/09 08:47:33.73 server&nbsp; The transaction log in the database 'model' will use I/O size of 2 Kb.<br/>00:00000:00001:2006/05/09 08:47:33.73 server&nbsp; Database 'model' is now online.<br/>00:00000:00001:2006/05/09 08:47:33.73 server&nbsp; The logical pagesize of the server is 2 Kb.<br/>00:00000:00001:2006/05/09 08:47:33.73 server&nbsp; 0 dump conditions detected at boot time<br/>00:00000:00001:2006/05/09 08:47:33.75 server&nbsp; Resident Node id: de9567164c55<br/>00:00000:00001:2006/05/09 08:47:33.75 server&nbsp; Transaction coordinator initialized.<br/>00:00000:00001:2006/05/09 08:47:33.75 server&nbsp; Clearing temp db <br/>00:00000:00001:2006/05/09 08:47:34.84 server&nbsp; The transaction log in the database 'tempdb' will use I/O size of 2 Kb.<br/>00:00000:00001:2006/05/09 08:47:34.85 server&nbsp; Database 'tempdb' is now online.<br/>00:00000:00001:2006/05/09 08:47:34.89 server&nbsp; Recovering database 'sybsystemprocs'.<br/>00:00000:00001:2006/05/09 08:47:35.18 server&nbsp; Checking external objects.<br/>00:00000:00001:2006/05/09 08:47:35.20 server&nbsp; The transaction log in the database 'sybsystemprocs' will use I/O size of 2 Kb.<br/>00:00000:00001:2006/05/09 08:47:35.20 server&nbsp; Database 'sybsystemprocs' is now online.<br/>00:00000:00002:2006/05/09 08:47:35.21 kernel&nbsp; network name 192.168.0.60, type ether, port 5000, filter NONE<br/>00:00000:00001:2006/05/09 08:47:35.34 server&nbsp; Recovering database 'erm'.<br/>00:00000:00001:2006/05/09 08:47:35.50 server&nbsp; Redo pass of recovery has processed 46 committed and 2 aborted transactions.<br/>00:00000:00001:2006/05/09 08:47:36.48 server&nbsp; Checking external objects.<br/>00:00000:00001:2006/05/09 08:47:36.48 server&nbsp; The transaction log in the database 'erm' will use I/O size of 2 Kb.<br/>00:00000:00001:2006/05/09 08:47:36.51 server&nbsp; Database 'erm' is now online.<br/>00:00000:00001:2006/05/09 08:47:36.53 server&nbsp; Recovery complete.<br/>00:00000:00001:2006/05/09 08:47:36.53 server&nbsp; SQL Server's default unicode sort order is 'binary'.<br/>00:00000:00001:2006/05/09 08:47:36.53 server&nbsp; SQL Server's default sort order is:<br/>00:00000:00001:2006/05/09 08:47:36.53 server&nbsp; &nbsp;'bin_cp850' (ID = 50)<br/>00:00000:00001:2006/05/09 08:47:36.53 server&nbsp; on top of default character set:<br/>00:00000:00001:2006/05/09 08:47:36.53 server&nbsp; &nbsp;'cp850' (ID = 2).<br/>00:00000:00001:2006/05/09 08:47:36.53 server&nbsp; Master device size: 30 megabytes, or 15360 virtual pages. (A virtual page is 2048 bytes.)<br/>

flybean 发表于 2006-5-10 11:28:21

服务已经启动,用DSEDIT ping 一下。检查环境变量<br/>

xolbm 发表于 2006-5-10 11:29:32

日志已贴上楼,谢谢flybean,ehxz等各位大大帮忙看看,谢谢!

xolbm 发表于 2006-5-10 11:56:39

<p>我运行DSEDIT后,里面的SERVER等栏咋都是空的呀??:(</p><p></p>

xolbm 发表于 2006-5-10 12:00:22

<p>我运行DSEDIT后,里面的SERVER,path,attributes等栏咋都是空的呀??:(</p>

flybean 发表于 2006-5-10 12:16:42

检查 interfaces 文件,WINDOWS下是%SYBASE%/sql/sql.ini,UNIX下为$SYBASE/interfaces<br/>

xolbm 发表于 2006-5-10 16:15:15

<p>在sybase/ini下找到sql.ini文件,其内容为:</p><p></p><p>master=NLWNSCK,192.168.0.60,5000</p><p>query=NLWNSCK,192.168.0.60,5000</p><p></p><p>master=NLWNSCK,192.168.0.60,6000</p><p>query=NLWNSCK,192.168.0.60,6000</p><p></p><p>master=NLWNSCK,192.168.0.60,4000</p><p>query=NLWNSCK,192.168.0.60,4000</p><p></p><p>master=NLWNSCK,192.168.0.60,4000</p><p>query=NLWNSCK,192.168.0.60,4000</p><p></p><p>这个文件有问题吗?</p>

flybean 发表于 2006-5-10 17:09:31

没有问题,检查sybase环境变量<br/>
页: [1] 2
查看完整版本: [求助]ISQL不能连接数据库

免责声明:
本站所发布的一切破解补丁、注册机和注册信息及软件的解密分析文章仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容。如果您喜欢该程序,请支持正版软件,购买注册,得到更好的正版服务。如有侵权请邮件与我们联系处理。

Mail To:Admin@SybaseBbs.com