- 浏览: 70779 次
- 性别:
- 来自: 北京
-
文章列表
第三章 封锁和并行性
3.1 锁定
1.锁定是一种机制,它用来管理对一个共享资源的并行访问。应用于数据库中的锁定,允许对这些共享资源并行访问,但同时,提供数据的完整性和一致性支持。
2.当多个用户访问并更改数据或数据结构时,至关重要的是,以适当的机制来防止对相同的信息段进行并行修改。这就是锁定的目的。
3.在Oracle中,应该知道:
1)事务处理是数据库的全部工作,它们是好的事务。
2)只要必须,就应该推迟提交。不应该迅速地提交而给系统重压。其规则是:在必须提交是提交,而不是在必须提交之前提交。事务应该只是和商务逻辑规定的大小一样。
3)只要需要,就应该保持对数据的锁定。它们是可供使用的工具, ...
forword与redirect的区别
- 博客分类:
- 日常积累
forward是服务器内部重定向,程序收到请求后重新定向到另一个程序,客户机并不知道;redirect则是服务器收到请求后发送一个状态头给客户,客户将再请求一次,这里多了两次网络通信的来往。当然 forward也有缺点,就是forward的页面的路径如果是相对路径就会有些问题了。
forward 会将 request state , bean 等等信息带往下一个 jsp
redirect 是送到 client 端后再一次 request , 所以资料不被保留.
使用 forward 你就可以用 getAttribute() 来取的前一个 jsp 所放入的 bean 等等资料
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 ...
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: ...
创建表时ORA-00904:标识符无效
- 博客分类:
- Oracle
某个列名非法,比如:PASSWORD、trigger。。。换其他的就好了
第二章 体系结构[align=center][/align]
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, suc ...
第二章 体系结构[align=center][/align]
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 acccessibl ...
第二章 体系结构[align=center][/align]
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中保存一个大规模排序操作的中间结 ...
第二章 体系结构[/align]
2.2 The files[align=center]
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, index ...
第二章 体系结构[/align]
2.2 The files[align=center]
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 oth ...
"ContentType" (描述内容类型的字符串。该字符串通常被格式化为类型/子类型,其中类型是常规内容范畴而子类为特定内容类型)
一句话总结就是,服务器响应客户端是以"ContentType" 的类型来响应的。这个很容易理解,但是在百度百科里面看了一下发现问题了,在contenttype里面有一个属性是charset 指定编码的,而pagEncoding也是编码的,这两个编码有什么区别呢?
查阅了资料之后有了深刻的了解!
pageEncoding是jsp文件本身的编码
contentType的charset是指服务器发送给客户端 ...
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页面中加如下代码
<base target=& ...
showModalDialog
- 博客分类:
- 日常积累
showModalDialog 是打一个模式窗口,模式窗口的意思是不关闭后打开的窗口就操作不了前一个窗口,比如打开IE,再点Internet选项一样,Internet就是一个模式窗口。window.showModalDialog(URL,dialogArgments.features) 打开一个新窗口(IE4、IE5、IE6支持,在IE7中没有window.showModalDialog这个方法,所以取不到该值 。你可以实现有其它方法来实现这个)。dialogArgments为设定好传递给新视窗网页的参数,可以为任意数据类型。 调用格式为featureName1:featureValue1:(分 ...
第二章 体系结构
Oracle体系结构的3个主要的组件:
文件——组成数据和实例的5个文件,参数文件、数据文件、临时数据文件、重做日志文件和控制文件。
系统全局区域(System Global Area,SGA)
物理进程和线程——服务器进程 ...
SQL in Oracle
- 博客分类:
- Oracle
1.update wftransition t
set t.transitioncondition=
chr(91) || 'BeanShell_Direct' ||chr(93) || 'fffffffffffffffffffffffffffffffffff'
where t.transitionid='f8d04253220f4025161542a041315a4c'