摘要: 报如下错误:ORA-00119: invalid specification for system parameter LOCAL_LISTENERORA-00132: syntax error or unresolved network name 'LISTENER_ORCL'解决方案:修改tnsnames.ora文件,添加下面的语句LISTENER_ORCL =(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))然后在SQLPLUS里面startup搞定了 阅读全文
posted @ 2013-05-17 16:41 BicycleBoy 阅读(143) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using WIA;using System.IO;using System.Net;using System.Threading;using System.Drawing.Imaging;using System.Text.RegularExpressions;namespace 阅读全文
posted @ 2013-05-17 16:39 BicycleBoy 阅读(351) 评论(0) 推荐(0) 编辑
摘要: name--->comment:Option ExplicitValidationMode = TrueInteractiveMode = im_BatchDim mdl 'the current model'get the current active modelSet mdl = ActiveModelIf (mdl Is Nothing) ThenMsgBox "There is no current Model"ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) ThenMsgBox "The curre 阅读全文
posted @ 2013-05-17 16:25 BicycleBoy 阅读(300) 评论(0) 推荐(0) 编辑
摘要: asp.net开发中,经常遇到“从客户端检测到有潜在危险的Request.Form 值”错误提示,很多人给出的解决方案是:1、web.config文档<system.web>后面加入这一句: <pages validaterequest="false"/>示例:< ?xml version="1.0" encoding="gb2312" ?>< configuration>< system.web>< pages validaterequest="false& 阅读全文
posted @ 2013-05-17 16:23 BicycleBoy 阅读(1684) 评论(0) 推荐(0) 编辑
摘要: <asp:TextBoxiv="l_10_n"id="txtOutfitAmount" runat="server" Width="200px"></asp:TextBox>JS代码:$(function () {$("input[iv]").blur(function () {var typevalue = $(this).attr("iv");var tvs = typevalue.split("_");if (tvs[0] = 阅读全文
posted @ 2013-05-17 16:19 BicycleBoy 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 1、 定义游标:declare cursor_name cursorFor select 语句;2、 打开游标:open cursor_name3、 循环访问游标中的每一行数据:Fetch next from cursor_name into @参数列表4、 游标的状态:@@fetch_status,用于判断游标fetch的状态,当为0时正常,不为一时异常5、关闭并释放资源例:declare@whcIdnchar(5),@whcint;declarewhc_cursorcursorforselectCustomerID,EmployeeIDfromdbo.Ordersopenwhc_curso 阅读全文
posted @ 2013-05-17 16:17 BicycleBoy 阅读(156) 评论(0) 推荐(0) 编辑
摘要: CREATE PROCEDURE p25 (OUT return_val INT)BEGINDECLARE a,b INT;DECLARE cur_1 CURSOR FOR SELECT s1 FROM t;DECLARE CONTINUE HANDLER FOR NOT FOUNDSET b = 1;OPEN cur_1;REPEATFETCH cur_1 INTO a;UNTIL b = 1END REPEAT;CLOSE cur_1;SET return_val = a;END; 阅读全文
posted @ 2013-05-17 16:15 BicycleBoy 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 1.首先去官网下载安装包,下载地址:http://www.ibm.com/developerworks/cn/downloads/im/udbexp/,到了最终下载页只下载db2_v101_win_expc这个安装包就行了2.将安装包减压进行安装,记下安装过程的用户名和密码,以及数据库名称,安装结束时会有一个提示,执行提示里的文件,最后安装安成后会提示第一步创建概要文件,单击左边按钮创建即可。3.配置节点和数据库目录--注册节点catalog tcpip node [节点名] remote [IP] server 50000;--注册数据库catalog database [数据库名] at. 阅读全文
posted @ 2013-05-17 16:13 BicycleBoy 阅读(2238) 评论(0) 推荐(0) 编辑
摘要: db2创建存储过程有两种方式,a56爆大奖在线娱乐是在数据库管理工具中创建,二是在命令行下创建在数据库管理工具data studio中创建存储过程:一、首先去DB2官网下载以下安装包:版本号:DB2 v10.1.0.872DB2 Express-Cdb2_v101_win_expc.exe(425MB)Data Studio Administration Clientibm_data_studio_standalone_win_V311.zip(336MB)下载地址:点击前往DB2下载地址下载解压安装完成后,连接到DB2数据库,如果在连接过程中用户名和密码都确定是正确的,却无法连接数据库,将主机中的参数loc 阅读全文
posted @ 2013-05-17 16:12 BicycleBoy 阅读(3653) 评论(0) 推荐(0) 编辑
摘要: 读取:XmlDocument xmlDoc = new XmlDocument();xmlDoc.Load(@ConfigurationManager.AppSettings["SitePath"] + "iwms.config");XmlNodeList ndlist = xmlDoc.getElementsByTagName_r("mssql");string temp = string.Empty;foreach (XmlNode xl in ndlist){temp = "server=" + xl.Chi 阅读全文
posted @ 2013-05-17 16:08 BicycleBoy 阅读(274) 评论(0) 推荐(0) 编辑
摘要: mysql 1045 access denied for user 解决方法命令行中修改密码:mysql -u rootmysql> use mysql;mysql> UPDATE user SET Password = PASSWORD('newpass') WHERE user = 'root'... 阅读全文
posted @ 2013-05-17 16:06 BicycleBoy 阅读(210) 评论(0) 推荐(0) 编辑
摘要: private static void GetFirstPageInfo(string pagedata) { MatchCollection mc = Regex.Matches(pagedata, @everyArray[1]);//(.*?) if (mc.Count > 0) { sonpagecount = mc.Count; threads = new Thread[sonpagecount]; string[] pagestr = new string[8]; for (int i... 阅读全文
posted @ 2013-05-17 16:05 BicycleBoy 阅读(1231) 评论(0) 推荐(0) 编辑
摘要: Java代码publicclassImportThreadextendsThread{privatestaticListrunningThreads=newArrayList();publicImportThread(){}@Overridepublicvoidrun(){regist(this);//线程开始时注册System.out.println(Thread.currentThread().getName()+"开始...");//打印开始标记//做一些事情......unRegist(this);//线程结束时取消注册System.out.println(Thre 阅读全文
posted @ 2013-05-17 15:56 BicycleBoy 阅读(805) 评论(0) 推荐(0) 编辑
摘要: 创建存储过程:CREATEPROCEDURE '存储过程名'(_field varchar(400),_table varchar(50),_whe varchar(200),_begin int,_amount int)BEGINdeclare sSqlvarchar(4000);set sSql=concat('select ',_field,' from ',_table,' where ',_whe,' limit ',_begin,',',_amount);set @qstr=sSql;p 阅读全文
posted @ 2013-05-17 15:50 BicycleBoy 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 首先到官网下载软件包官方下载地址:http://www.mongodb.org/downloads接着配置Mongo服务端:打开一个新的命令窗口输入如下命令:>d:>cd mongoDB\bin>mongod --dbpath d:mongoDB\data[集合路径]如果没有出现错误提示,服务器就算启动成功了MongoDB基本使用成功启动MongoDB后,再打开一个命令行窗口输入mongo,就可以进行数据库的一些操作。输入help可以看到基本操作命令:show dbs:显示数据库列表show collections:显示当前数据库中的集合(类似关系数据库中的表)show us 阅读全文
posted @ 2013-05-17 15:48 BicycleBoy 阅读(148) 评论(0) 推荐(0) 编辑