`
文章列表
<style type="text/css"> html {   filter:grayscale(100%);   -webkit-filter:grayscale(100%);   -moz-filter:grayscale(100%);   -ms-filter:grayscale(100%);   -o-filter:grayscale(100%); filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);   -webkit-filter:grayscale(1) } </ ...

Spring AOP 运用

方法执行后通知(可以理解为方法执行后“增强”)需要实现接口:AfterReturningAdvice AOP实现类: public class BaseModelAfterAdvice implements AfterReturningAdvice {     //新增     private static Method addMethod = null;     //更新     private static Method updateMethod = null;     //删除     private static Method delete = null;     //根据id删除 ...

Spring AOP 运用

基于Spring 的 AOP  MethodBeforeAdvice 拦截增强 实现 方法执行前通知(可以理解为方法执行前“增强”)需要实现接口:MethodBeforeAdvice AOP拦截实现类: public class BaseModelBeforeAdvice implements MethodBeforeAdvice {     private static Method addMethod = null;     private static Method updateMethod = null;     private static Method updateBatc ...
select tablespace_name, file_id, file_name,  round(bytes/(1024*1024),0) total_space   from dba_data_files   where tablespace_name like '%ZMD%' order by tablespace_name; ALTER DATABASE DATAFILE 'E:\ORADATA\ZMD\TIPSZMD_DATA.DBF' RESIZE 8192M;
  --本地库创建目标库dblink create database link DBLINK351   connect to semp identified by semp   using '(DESCRIPTION =(ADDRESS_LIST =(ADDRESS =(PROTOCOL = TCP)(HOST = 192.168.2.167)(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = orcl)))';   --本地库访问目标库连接验证 select * from "USER"@DBLINK351 A wher ...
--以下几个为相关表 SELECT * FROM v$lock; SELECT * FROM v$sqlarea; SELECT * FROM v$session; SELECT * FROM v$process ; SELECT * FROM v$locked_object; SELECT * FROM all_objects; SELECT * FROM v$session_wait; --查看被锁的表 select b.owner,b.object_name,a.session_id,a.locked_mode from v$locked_object a,dba_objects b ...
package com.ejintai.vms.integration.dao.impl; import java.sql.CallableStatement; import java.sql.Connection; import java.sql.SQLException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import oracle.jdbc.internal.OracleTypes; import oracle.sql.AR ...
CREATE OR REPLACE PACKAGE "PKG_SEND_EMS_MAIL" IS   procedure p_splite_str(p_str varchar2, p_splite_flag int default 1);   procedure write_data(p_conn   in out nocopy utl_smtp.connection,                        p_name   in varchar2,                        p_value  in varchar2,               ...
一.查看表空间大小及相关的sql    在解决以上遇到问题的同时,通过整理,以下sql,作为一个管理人员,也应该是必备的。 1、查看表空间的名称及大小 SQl > SELECT t.tablespace_name, round(SUM(bytes / (1024 * 1024)), 0) ts_size FROM dba_tablespaces t, dba_data_files d  WHERE t.tablespace_name = d.tablespace_name  GROUP BY t.tablespace_name; 2、查看表空间物理文件的名称及大小 SQl > ...
java开发自建jdbc链接数据库执行存储过程 package com.peraglobal.rdms.project.utils; import com.peraglobal.pdp.common.utils.StringUtil; import com.peraglobal.pdp.core.utils.AppConfigUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.InitializingBean; import java. ...
--锁表查询SQLSELECT object_name, machine, s.sid, s.serial# FROM gv$locked_object l, dba_objects o, gv$session s WHERE l.object_id = o.object_id AND l.session_id = s.sid; --释放SESSION SQL: --alter system kill session 'sid, serial#'; ALTER system kill session '23, 1647'; --研究表级锁及行级锁 SELECT S.SID ...
数据库字段按照逗号进行分隔组装成临时表查询成表结构展示: create or replace function my_split(piv_str       in varchar2,                                    piv_delimiter in varchar2)--l_piv_str 为字符串,piv_delimiter 为分隔符 return mytype is  j        int := 0;  i        int := 1;  len      int := 0;  len1     int := 0;  str      var ...
declare   -- Non-scalar parameters require additional processing   pi_businessidstypelist acs_app_businessinfo_id_list; begin   pi_businessidstypelist:= acs_app_businessinfo_id_list();   pi_businessidstypelist.extend;   pi_businessidstypelist(1):= new ACS_APP_BUSINESSINFO_ID(111);   -- Call the pr ...
设计模式: 一个设计模式描述了一个被证实可行的方案。这些方案非常普遍,是具有完整定义的最常用的模式。一般模式有4个基本要素:模式名称(pattern name)、问题(problem)、解决方案(solution)、效果(consequences) 常见23 ...
图片页面引入js: <script type="text/javascript" src="javascript/areaselect.js"></script> <script type="text/javascript" src="javascript/artdialog/show-img.js"></script> <s:iterator value="attachmentList" status="i"> ...
Global site tag (gtag.js) - Google Analytics