易截截图软件、单文件、免安装、纯绿色、仅160KB

Oracle 分页

<!-- 
@Name:分类统计明细
@Time:2010.01.05
@author JZP
--->
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%@ page language="java" import="wfc.service.database.DB"%>
<%@ page import="java.sql.Connection"%>
<%@ page import="java.sql.ResultSet"%>
<%@ page import="java.sql.Statement"%>
<%@ include file="./../include/stat_common_head.inc"%>
<% 
 //分页开始
 String strKey=session.getId();
 
 String beginTime=(String)session.getAttribute(strKey+"beginTime");
 String endTime=(String)session.getAttribute(strKey+"endTime");
  
 String staType = request.getParameter("staType");//统计类型:颁发、注销、作废、恢复注销、遗失
 String passTarget = request.getParameter("passTarget");//证件类型
 
 String selectSql="select P.ST_PASS_CODE gb1,P.ST_NAME gb2,(select ST_NAME_SHORT from T_PASS_ISSUE_DEPT where ST_PASS_ISSUE_DEPT_CODE = P.ST_ISSUE_DEPT_ID) gb3,to_char(P.DT_ISSUE,'yyyy-MM-dd') gb4,to_char(P.DT_EXPIRE,'yyyy-MM-dd') gb5,to_char(P.DT_NULLIFY,'yyyy-MM-dd') gb6,p.ST_COMMENT gb7";
 String fromSql=" from T_PASS P";
 
 String whereSql=" where P.DT_ISSUE >= to_date('" + beginTime + "', 'yyyy-MM-dd') and P.DT_ISSUE <= to_date('" + endTime + "', 'yyyy-MM-dd') and P.ST_ISSUE_DEPT_ID = '24'";
 
 if(staType.equals("颁发")){
   whereSql += " and P.ST_PASS_TYPE='" + passTarget + "'";
 }else if(staType.equals("注销")){
   whereSql=" where P.DT_NULLIFY >= to_date('" + beginTime + "', 'yyyy-MM-dd') and P.DT_NULLIFY <= to_date('" + endTime + "', 'yyyy-MM-dd') and P.ST_ISSUE_DEPT_ID = '24'";
   whereSql += " and P.ST_PASS_TYPE='" + passTarget + "' and P.ST_STATE ='注销'";
 }else{
  whereSql=" where P.DT_NULLIFY >= to_date('" + beginTime + "', 'yyyy-MM-dd') and P.DT_NULLIFY <= to_date('" + endTime + "', 'yyyy-MM-dd') and P.ST_I


相关文档:

oracle重载操作符的例子

转自:http://download.oracle.com/docs/cd/B13789_01/server.101/b10759/statements_6004.htm
Creating User-Defined Operators: Example
This example creates a very simple functional implementation of equality and then creates an operator that uses the function:
CREATE FUNCTION eq_f(a VARCHAR2, b VARCHA ......

oracle补丁下载地址

oracle补丁下载地址
DB   2009-10-28 18:00   阅读56   评论0  
字号: 大大  中中  小小
Oracle 11g 11.1.0.7
ftp://updates.oracle.com/6890831/p6890831_111070_AIX5L_1of2.zip
ftp://updates.oracle.com/6890831/p6890831_111070_AIX5L_2of2.zip
ftp://upda ......

Oracle JOB 用法小结

一、设置初始化参数 job_queue_processes
 
sql> alter system set job_queue_processes=n;(n>0)
job_queue_processes最大值为1000
 
查看该值 show parameter processes
 
查看job queue 后台进程
sql>select name,description from v$bgprocess;
 
二,dbms_job package 用法介 ......

notes oracle undeploy

crsctl stop crs
killall init.crsd
cd /etc/init.d
rm -rf init.crs init.crsd init.cssd init.evmd
rm -rf /tmp/.oracle/
rm -rf /var/tmp/
rm -rf /var/tmp/.oracle/
cd /etc
rm -rf oraInst.loc oracle/ oratab
rm -rf $ORACLE_BASE
dd if=/dev/zero of=/dev/raw/raw_voting_disks bs=1024k
dd if=/dev/zero ......

Oracle的Window服务启动时并不启动实例

在window服务启动时并不启动实例的两种方法:
  (1)通过oradim startup 参数设定,如下:
  a.查看oradim帮助
C:Documents and SettingsAdministrator>oradim help
DIM-00002: 有效的命令包括: -DELETE, -EDIT, -NEW, -STARTUP 和 -SHUTDOWN
  请输入以下命令之一:
  通过指定以下参数创建例程:
-NEW - ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号