`
Intrepid2012
  • 浏览: 71045 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
HashSet                 存储原理                         每次存储对象的时候, 调用该对象的hashCode()方法得到哈希值, 在集合中查找是否有哈希值相同的对象.                         如果没有哈希值相同的对象, 直接存入.                         如果有哈希值相同的对象, 则和哈希值相同的对象进行equals()比较.                         比较结果为false直接存入, 结果为true则不存.                 过滤属性相同元素             ...
Step one: download the correspondent instantclient from oracle website: http://www.oracle.com/technetwork/topics/linuxsoft-082809.html for my case: Download instantclient-basic-linux32-10.2.0.3-20061115.zip step two: mkdir -p /home/oracle/10.2.3 chown -R oracle:oinstall /home/oracle/10.2.3 chmod ...
一、使用root用户修改/etc/oratab 文件: $ vi /etc/oratab orcl:/oracle/app/product/10.2.0/db_1:N (我的是orcl:/oracle/app/product/10.2.0:N 这个没关系) 改为: orcl:/oracle/app/product/10.2.0/db_1:Y 也就是将最后的N改为Y(orcl:/oracle/app/product/10.2.0:Y) 二、使用Oracle用户修改$ORACLE_HOME/bin/dbstart文件: # su - oracle $ cd $ORACLE_HOME/bi ...
Tomcat6 fails to deploy a war file Tomcat can get confused. Today I dealt with an issue where Tomcat just wouldn't deploy a war file on one of our webapp servers, so the app was unavailable. The first symptom of the problem was a Tomcat 404 page. type Status report message /mywar/default descripti ...
hibernate,得到POJO,然后set了里面的值.但没有调用update方法。但当事务结束后还是自动更新了这个表。 原因: get一个对象,对象就变成持久性对象,set修改属性值,事务提交后就会自动更新.指定映射文件对应属性update="false"(要被Set修改的属性)
Oracle10g默认的redo log file大小为50m,在使用中经常会发现alter log里存在大量Checkpoint not complete的问题。 这个问题大家应该都清楚是什么,要解决无非就要增加redo log file的大小,但是增加到多少比较合适呢? 其实估测的方法很简单,10g可以使用awr(9i使用statspack)对一个稳定运行周期生成报表,具体周期要看db的使用情况。 Load Profile Per Second Per Transaction Redo size: 173,302.31 470,896.98 根据报表给出的数据,redo siz ...
1.查看当前日志组成员: SQL> select member from v$logfile; MEMBER ------------------------------------------------------ C:\ORACLE\PRODUCT\10.2.0\ORADATA\FYDB\REDO01.LOG C:\ORACLE\PRODUCT\10.2.0\ORADATA\FYDB\REDO02.LOG C:\ORACLE\PRODUCT\10.2.0\ORADATA\FYDB\REDO03.LOG 2.查看当前日志组状态: SQL> select group#,membe ...
nologging和redo size之间的关系分析 2011年01月29日 星期六 下午 12:41 试验环境:oracle 9204 on hp-ux 一、使用CTAS方式建表产生redo大小的分析 首先在noarchive模式下试验: 试验前: SQL> select a.name, b.value from v$statname a, v$sesstat b where a.statistic#=b.statistic# and b.sid=9 and a.name = 'redo size'; NAME                                     ...
How to add a CVS account (example user jsmith): log in to the linux box su - root cd /home (to see list of users) /usr/sbin/useradd jsmith vi /etc/group Find the cvs line and append ,jsmith :wq (save the group file) vi /etc/passwd Find jsmith at the end of the file, change its second number to match ...
When invoking the action, the default configuration (with default interceptor stack) maps the http parameters calling the setter. Ej, if you call http:/..../myAction.action?myval=xx Struts2 will instance your action and call the method setMyval("xx") (if your property is not a string, strut ...
无需在 server.xml 和web.xml里面添加内容 第一: 在项目META-INF下建立文件 context.xml <?xml version="1.0" encoding="UTF-8"?> <Context> <Resource name="jdbc/myoracle" auth="Container" type="oracle.jdbc.pool.OracleDataSource" factory=&q ...
Oracle并发处理技术 一 并发处理 数据库的特点就是数据的集中管理和共享。在通常情况下总是有 若干个事务并发地运行,这些并行的事务可能并发地存取相同的数据。 因此,数据库管理系统的一个重要任务就是要有一种机制去保证这种 并发的存取和修改不破坏数据的完整性,确保这些事务能正确地运行 并取得正确的结果。 我们知道,事务并发执行时若不加控制的话将导致不正确的结果 和数据库的不一致状态。为保证数据库数据正确地反映所有事务的更 新以及在一事务修改数据时其它事务不同时修改这个数据,数据库系 统用锁来控制对数据的并发存取。 二 ORACLE的并发处理机制 无需任何说明,ORACLE ...
第一步: < interceptors> <interceptor name="auditInterceptor" class="com.pulse.ipmanager.interceptor.AuditInterceptor"></interceptor> <interceptor-stack name="auditInterceptorStack"> <interceptor-ref name="auditInterceptor"></in ...
前提, 用struts-jquery-grid 生成的表单,然后导出所选的记录。 第一部分(jsp) < script type="text/javascript"> $.subscribe( 'beforeLink', function(event,data) { var fData =$('#gridmultitable').jqGrid('getGridParam','selarrrow'); $( '#select').attr('value',fData); }); </ script> < ...
Step 1 timeout.js (function($){ $.fn.idleTimeout = function(options) { var defaults = { inactivity: 1500000, //25 Minutes noconfirm: 10000, //10 Seconds sessionAlive: 30000, //10 Minutes redirect_url: '/view/LoginError?errorCode=3', ...
Global site tag (gtag.js) - Google Analytics