ammayjxf的博客
ammayjxf · 共 54 篇文章
第三章 封锁和并行性
第三章 封锁和并行性 3.1 锁定 1.锁定是一种机制,它用来管理对一个共享资源的并行访问。应用于数据库中的锁定,允许对这些共享资源并行访问,但同时,提供数据的完整性和一致性支持。 2.当多个用户访问并更改数据或数据结构时,至关重要的是,以适当的机制来防止对相同的信息段进行并行修改。这就是锁定的目的。 3.在Oracle中,应该知道: 1)事务处理是数据库的全部工作,它们是好的事务。 2)只要必须,就应该推迟提交。不应该迅速地提交而给系统重压。其规则是:在必须提交是提交,而不是在必须提交之前提交。事务应该只是和商务逻辑规定的大小一样。 3)只要需要,就应该保持对数据的锁定。它们是可供使用的工…
2011-09-06 09:24 · Expert_One-on-One Oracle · 评论(0)
forword与redirect的区别
forward是服务器内部重定向,程序收到请求后重新定向到另一个程序,客户机并不知道;redirect则是服务器收到请求后发送一个状态头给客户,客户将再请求一次,这里多了两次网络通信的来往。当然 forward也有缺点,就是forward的页面的路径如果是相对路径就会有些问题了。 forward 会将 request state , bean 等等信息带往下一个 jsp redirect 是送到 client 端后再一次 request , 所以资料不被保留. 使用 forward 你就可以用 getAttribute() 来取的前一个 jsp 所放入的 bean 等等资料
2011-09-02 15:53 · 日常积累 · 评论(0)
异常java.lang.UnsupportedClassVersionError: Bad version number in .class file
java.lang.UnsupportedClassVersionError: Bad version number in .class file 造成这种过错的原由是ni的支撑Tomcat运行的JDK版本与支撑application运行的JDK版本不一致导致的. 那么如何解决上面的问题呢? 措施显而易见:把它们的JDK版本改成一致. 步骤如下: 1.Window --> Preferences -->Java --> compiler中的compiler compliance level对应的下拉菜单中选择JDK版本. 2.Window --> Preferences -->MyEclip…
2011-08-30 14:51 · java · 评论(0)
Oracle建表时为什么提示“ORA-00972:标识符过长
ORA-00972 identifier is too long Cause: The name of a schema object exceeds 30 characters. Schema objects are tables, clusters, views, indexes, synonyms, tablespaces, and usernames. Action: Shorten the name to 30 characters or less. 1.Names must be from 1 to 30 bytes long with these exceptions: ◦Na…
2011-08-29 14:00 · Oracle · 评论(0)
第二章 体系结构
第二章 体系结构 2.4The process 1.There are three classess of processes in an Oracle instance: Server Processes - These perform work based on a client's request. Background Proocesses - These are the processes that start up with the database, and perform various maintaenance tasks, such as writng blocks to…
2011-08-26 18:04 · Expert_One-on-One Oracle · 评论(0)
第二章 体系结构
第二章 体系结构 2.3The Memory Structures SGA,System Global Area--This is a large, shared memory segment that virtually all Oracle processes will access at one point or another PGA,Process Global Area--This is memory, which is private to a single process or thread, and is not acccessible from other process…
2011-08-24 18:10 · Expert_One-on-One Oracle · 评论(0)
第二章 体系结构
第二章 体系结构 2.2.3Temp Files 1.Oracle will use temporary files to store the intermediate results of a large sort operation, or result set,when there is insufficient memory to hold it all in RAM. 当内存不足以在RAM中保存一个大规模排序操作的中间结果或结果集,Oracle使用临时文件来存储它们。 2.Permanent data objects, such as a table or an index, wi…
2011-08-23 09:39 · Expert_One-on-One Oracle · 评论(0)
第二章 体系结构
第二章 体系结构 2.2 The files 1.The files associated with an instance are simply: Parameter files--These files tell the Oracle instance where to find the control files. 2.The files that make up the database are: 1)Data files--For the database(these hold your tables, indexes and all other segments) 2)Redo …
2011-08-22 17:33 · Expert_One-on-One Oracle · 评论(0)
第二章 体系结构
第二章 体系结构 2.2 The files 1.The files associated with an instance are simply: Parameter files--These files tell the Oracle instance where to find the control files. 2.The files that make up the database are: 1)Data files--For the database(these hold your tables, indexes and all other segments) 2)Redo …
2011-08-22 09:28 · Expert_One-on-One Oracle · 评论(0)
【转】JSP contentType的charset和pageEncoding区别
"ContentType" (描述内容类型的字符串。该字符串通常被格式化为类型/子类型,其中类型是常规内容范畴而子类为特定内容类型) 一句话总结就是,服务器响应客户端是以"ContentType" 的类型来响应的。这个很容易理解,但是在百度百科里面看了一下发现问题了,在contenttype里面有一个属性是charset 指定编码的,而pagEncoding也是编码的,这两个编码有什么区别呢? 查阅了资料之后有了深刻的了解! pageEncoding是jsp文件本身的编码 contentType的charset是指服务器发送给客户端时的内容编码 JSP要经过两次的"编码",第一阶段会用pag…
2011-08-11 16:57 · 日常积累 · 评论(0)
用showModalDialog打开的新窗口自动关闭并刷新父窗口
1、父窗口文件index.php 介入如下代码 function OpenDetail(Id) { window.showModalDialog("pop.php?id="+Id,"","dialogwidth=550px;dialogheight=450px;status=no;help:no;scroll:yes;resizable:yes"); window.open(this.location,'_self','');//革新本页面,也可以用返回值行动 } 2、pop页面中加如下代码 这个页面中对数据库操纵后。 在生涯数据库后代 码如下:
2011-08-11 16:25 · 日常积累 · 评论(0)
showModalDialog
showModalDialog 是打一个模式窗口,模式窗口的意思是不关闭后打开的窗口就操作不了前一个窗口,比如打开IE,再点Internet选项一样,Internet就是一个模式窗口。window.showModalDialog(URL,dialogArgments.features) 打开一个新窗口(IE4、IE5、IE6支持,在IE7中没有window.showModalDialog这个方法,所以取不到该值 。你可以实现有其它方法来实现这个)。dialogArgments为设定好传递给新视窗网页的参数,可以为任意数据类型。 调用格式为featureName1:featureValue1:…
2011-08-11 16:24 · 日常积累 · 评论(0)
第二章 体系结构
第二章 体系结构 Oracle体系结构的3个主要的组件: 文件——组成数据和实例的5个文件,参数文件、数据文件、临时数据文件、重做日志文件和控制文件。 系统全局区域(System Global Area,SGA) 物理进程和线程——服务器进程、后台进程和从属进程 2.1 服务器 1.数据库——物理操作系统文件的集合 实例——一组Oracle进程和SGA 2.一个数据可以被多个实例安装和打开。在任何时候,实例可以及时地装载并打开一个单独的数据库。被实例打开并安装的数据库在启动时不必相同。 3.实例简单来说是一组操作系统进程和一些内存。它们在数据库上运行,数据库仅是一些文件的集合。 4.实例,指…
2011-08-10 10:05 · Expert_One-on-One Oracle · 评论(0)
SQL in Oracle
1.update wftransition t set t.transitioncondition= chr(91) || 'BeanShell_Direct' ||chr(93) || 'fffffffffffffffffffffffffffffffffff' where t.transitionid='f8d04253220f4025161542a041315a4c'
2011-08-10 09:28 · Oracle · 评论(0)