- 浏览: 582817 次
- 性别:
- 来自: 上海
文章分类
- 全部博客 (174)
- JBPM (3)
- WWF (0)
- JavaScript (11)
- J2EE (40)
- OperationSystem (11)
- 数据库 (12)
- CSS (1)
- Ajax (2)
- J2SE (30)
- Tools (10)
- 服务器中间件 (3)
- 异常 (0)
- Flex (5)
- jQuery (11)
- html (9)
- Ejb (1)
- HTML5 Shiv–让该死的IE系列支持HTML5吧 (1)
- Spring (9)
- Quartz (3)
- log4j (1)
- maven (1)
- cpdetector (1)
- JSON (1)
- log4jdbc (1)
- asm (8)
- FusionCharts (1)
- jqplot (1)
- highcharts (1)
- excanvas (1)
- html5 (1)
- jpcap介绍 (1)
- weblogic (3)
- URLURLClassLoader (0)
- URLClassLoader (1)
- ant (2)
- ivy (2)
- nexus (1)
- IT (0)
- LoadRunner (1)
- SCSS (1)
- ruby (1)
- webstorm (1)
- typescript (1)
- Jboss7 (1)
- wildfly (1)
- oracle (5)
- esb (0)
- dubbo (2)
- zookeeper (3)
- eclipse (1)
- Android (2)
- Studio (1)
- Google (1)
- 微信 (1)
- 企业号 (1)
- Linux (13)
- Oracle12c (1)
- Hadoop (1)
- InletexEMC (1)
- Windows (1)
- Netty (3)
- Marshalling (2)
- Protobuf (1)
- gcc (1)
- Git (1)
- GitLab (1)
- shell (2)
- java (3)
- Spring4 (1)
- hibernate4 (1)
- postgresql (1)
- ApacheServer (2)
- Tomcat (2)
- ApacheHttpServer (2)
- realvnc (1)
- redhat (7)
- vncviewer (1)
- LVS (4)
- LVS-DR (1)
- RedHat6.5 (5)
- LVS-NAT (1)
- LVS-IPTUNNEL (2)
- LVS-TUN (1)
- keepalived (2)
- yum (1)
- iso (1)
- VMware (1)
- redhat5 (1)
- ha (1)
- nginx (2)
- proguard (1)
- Mat (1)
- DTFJ (1)
- axis2 (1)
- web service (1)
- centos (1)
- random (1)
- urandom (1)
- apache (1)
- IBM (1)
- cve (1)
- 漏洞 (1)
- JDBC (1)
- DataSource (1)
- jdk (1)
- tuxedo (2)
- wtc (1)
最新评论
-
skying007:
好资料,谢谢分享给啊
FusionCharts在服务器端导出图片(J2EE版) -
cgnnzg:
大神好 可以发一份源码给我学习么 多谢了 978241085 ...
springmvc+dubbo+zookeeper -
jifengjianhao:
求源码:854606899@qq.com
springmvc+dubbo+zookeeper -
wdloyeu:
shihuan8@163.com邮箱网盘在哪,没找到。能给份源 ...
Java Socket长连接示例代码 -
huangshangyuanji:
求代码:45613032@qq.com
springmvc+dubbo+zookeeper
create or replace procedure PC_TB_HTTPTASK_RESULT_TMP IS
v_http_targetalias varchar2(300);
v_http_dns_avgrtt number;
v_http_avgrtt number;
v_http_firstbyte_avgrtt number;
v_http_body_avgrtt number;
v_http_avgspeed number;
v_http_pagesize number;
v_http_opentimertt NUMBER;
CURSOR c_httptask_result IS
SELECT HTTP_TARGETALIAS,
AVG(HTTP_DNS_AVGRTT) HTTP_DNS_AVGRTT,
AVG(HTTP_AVGRTT) HTTP_AVGRTT,
AVG(HTTP_FIRSTBYTE_AVGRTT) HTTP_FIRSTBYTE_AVGRTT,
AVG(HTTP_BODY_AVGRTT) HTTP_BODY_AVGRTT,
AVG(HTTP_AVGSPEED) HTTP_AVGSPEED,
MAX(HTTP_PAGESIZE) HTTP_PAGESIZE
FROM (SELECT OBJECTID,
HTTP_TARGETALIAS,
HTTP_DNS_AVGRTT,
HTTP_AVGRTT,
HTTP_FIRSTBYTE_AVGRTT,
HTTP_BODY_AVGRTT,
HTTP_AVGSPEED,
HTTP_PAGESIZE
FROM TB_HTTPTASK_RESULT
WHERE
TO_CHAR(COLTIME, 'YYYY-MM-DD') = TO_CHAR(SYSDATE-1, 'YYYY-MM-DD')
AND HTTP_TARGETALIAS IS NOT NULL) TB_HTTPTASK_RESULT_CON
WHERE
OBJECTID IN
(SELECT GROUPTASKID
FROM GROUPTASK
WHERE GROUPTASKID IN
(SELECT TASKID
FROM GROUPTASKRELATION
WHERE GROUPID IN
(SELECT PROBEGROUPID
FROM TB_TASK_INFO
WHERE ID IN
(SELECT TASK_ID
FROM TB_TASK_RELATION
WHERE GROUP_ID IN
(SELECT ID
FROM TB_TASK_GROUP
WHERE GROUPNAME = '宽带感知任务')))))
GROUP BY HTTP_TARGETALIAS;
/*
SELECT HTTP_TARGETALIAS,
AVG(HTTP_DNS_AVGRTT) HTTP_DNS_AVGRTT,
AVG(HTTP_AVGRTT) HTTP_AVGRTT,
AVG(HTTP_FIRSTBYTE_AVGRTT) HTTP_FIRSTBYTE_AVGRTT,
AVG(HTTP_BODY_AVGRTT) HTTP_BODY_AVGRTT,
AVG(HTTP_AVGSPEED) HTTP_AVGSPEED,
MAX(HTTP_PAGESIZE) HTTP_PAGESIZE
FROM TB_HTTPTASK_RESULT
WHERE OBJECTID IN
(SELECT GROUPTASKID
FROM GROUPTASK
WHERE GROUPTASKID IN
(SELECT TASKID
FROM GROUPTASKRELATION
WHERE GROUPID IN
(SELECT PROBEGROUPID
FROM TB_TASK_INFO
WHERE ID IN
(SELECT TASK_ID
FROM TB_TASK_RELATION
WHERE GROUP_ID IN
(SELECT ID
FROM TB_TASK_GROUP
WHERE GROUPNAME = '宽带感知任务')))))
AND HTTP_TARGETALIAS IS NOT NULL
AND TO_CHAR(COLTIME, 'YYYY-MM-DD') = TO_CHAR(SYSDATE-1, 'YYYY-MM-DD')
GROUP BY HTTP_TARGETALIAS;
*/
-- SELECT * FROM TB_PERF_METRIC WHERE met_name LIKE 'HTTP_BODY_AVGRTT';
/******************************************************************************
NAME: PC_TB_HTTPTASK_RESULT_TMP
PURPOSE:
REVISIONS:
Ver Date Author Description
--------- ---------- --------------- ------------------------------------
1.0 2010-11-10 1. Created this procedure.
NOTES:
Automatically available Auto Replace Keywords:
Object Name: PC_TB_HTTPTASK_RESULT_TMP
Sysdate: 2010-11-10
Date and Time: 2010-11-10, 10:54:32, and 2010-11-10 10:59:15
Username: (set in TOAD Options, Procedure Editor)
Table Name: (set in the "New PL/SQL Object" dialog)
******************************************************************************/
begin
OPEN c_httptask_result;
LOOP
FETCH c_httptask_result INTO v_http_targetalias,
v_http_dns_avgrtt,
v_http_avgrtt,
v_http_firstbyte_avgrtt,
v_http_body_avgrtt,
v_http_avgspeed,
v_http_pagesize;
EXIT WHEN c_httptask_result%NOTFOUND;
v_http_opentimertt := v_http_dns_avgrtt + v_http_avgrtt + v_http_firstbyte_avgrtt + v_http_body_avgrtt;
-- DELETE FROM TB_HTTPTASK_RESULT_TMP WHERE HTTP_TARGETALIAS = v_http_targetalias;
INSERT INTO TB_HTTPTASK_RESULT_TMP(HTTP_TARGETALIAS,
HTTP_DNS_AVGRTT,
HTTP_AVGRTT,
HTTP_FIRSTBYTE_AVGRTT,
HTTP_BODY_AVGRTT,
HTTP_AVGSPEED,
HTTP_PAGESIZE,
HTTP_OPENTIMERTT,
CREATE_DATE)
VALUES (v_http_targetalias,
v_http_dns_avgrtt,
v_http_avgrtt,
v_http_firstbyte_avgrtt,
v_http_body_avgrtt,
v_http_avgspeed,
v_http_pagesize,
v_http_opentimertt,
TRUNC(SYSDATE));
END LOOP;
COMMIT;
EXCEPTION
WHEN OTHERS THEN
CLOSE c_httptask_result;
dbms_output.put_line(SQLERRM);
IF c_httptask_result%ISOPEN THEN
CLOSE c_httptask_result;
END IF;
end PC_TB_HTTPTASK_RESULT_TMP;
----------------------------------------------------------------------
CREATE OR REPLACE PROCEDURE PC_TB_HTTPTASK_TIME120_RESULT IS
V_SYSDATE DATE DEFAULT SYSDATE;
V_HAS_DATA NUMBER;
V_HTTP_TARGETALIAS VARCHAR2(100);
/******************************************************************************
NAME: PC_TB_HTTPTASK_TIME120_RESULT
PURPOSE:
REVISIONS:
Ver Date Author Description
--------- ---------- --------------- ------------------------------------
1.0 2011-03-03 1. Created this procedure.
NOTES:
Automatically available Auto Replace Keywords:
Object Name: PC_TB_HTTPTASK_TIME120_RESULT
Sysdate: 2011-03-03
Date and Time: 2011-03-03, 14:00:00, and 2011-03-03 14:00:00
Username: (set in TOAD Options, Procedure Editor)
Table Name: (set in the "New PL/SQL Object" dialog)
******************************************************************************/
CURSOR C_HTTP_TARGETALIAS IS
SELECT HTTP_TARGETALIAS_NAME FROM TB_HTTP_TARGETALIAS;
BEGIN
BEGIN
SELECT COUNT(*) INTO V_HAS_DATA FROM (SELECT HTTP_TARGETALIAS, AVG(HTTP_DNS_AVGRTT) HTTP_DNS_AVGRTT,MAX(HTTP_PAGESIZE) HTTP_PAGESIZE FROM TB_HTTPTASK_RESULT WHERE HTTP_TARGETALIAS IS NOT NULL AND COLTIME >= V_SYSDATE - INTERVAL '120' MINUTE AND COLTIME < V_SYSDATE AND OBJECTID IN (SELECT GROUPTASKID FROM GROUPTASK WHERE GROUPTASKID IN (SELECT TASKID FROM GROUPTASKRELATION WHERE GROUPID IN (SELECT PROBEGROUPID FROM TB_TASK_INFO WHERE ID IN (SELECT TASK_ID FROM TB_TASK_RELATION WHERE GROUP_ID IN (SELECT ID FROM TB_TASK_GROUP WHERE GROUPNAME = '宽带感知任务'))))) GROUP BY HTTP_TARGETALIAS) TB_HTTPTASK_RESULT_HAS_DATA;
EXCEPTION
WHEN no_data_found THEN
V_HAS_DATA := 0;
END;
IF V_HAS_DATA=0 THEN
OPEN C_HTTP_TARGETALIAS;
LOOP
FETCH C_HTTP_TARGETALIAS INTO V_HTTP_TARGETALIAS;
EXIT WHEN C_HTTP_TARGETALIAS%NOTFOUND;
INSERT INTO TB_HTTPTASK_WM_RESULT_TMP(HTTP_TARGETALIAS,HTTP_OPENTIMERTT,CREATE_DATE,HTTP_DNS_AVGRTT,HTTP_PAGESIZE) VALUES (V_HTTP_TARGETALIAS, 0, V_SYSDATE, 0, 0);
END LOOP;
ELSE
INSERT INTO TB_HTTPTASK_WM_RESULT_TMP(HTTP_TARGETALIAS,HTTP_OPENTIMERTT,CREATE_DATE,HTTP_DNS_AVGRTT,HTTP_PAGESIZE) SELECT HTTP_TARGETALIAS, AVG(HTTP_DNS_AVGRTT+HTTP_AVGRTT+HTTP_FIRSTBYTE_AVGRTT+HTTP_BODY_AVGRTT) HTTP_OPENTIMERTT, V_SYSDATE, AVG(HTTP_DNS_AVGRTT) HTTP_DNS_AVGRTT, MAX(HTTP_PAGESIZE) HTTP_PAGESIZE FROM TB_HTTPTASK_RESULT WHERE HTTP_TARGETALIAS IS NOT NULL AND COLTIME >= V_SYSDATE - INTERVAL '120' MINUTE AND COLTIME < V_SYSDATE AND OBJECTID IN (SELECT GROUPTASKID FROM GROUPTASK WHERE GROUPTASKID IN (SELECT TASKID FROM GROUPTASKRELATION WHERE GROUPID IN (SELECT PROBEGROUPID FROM TB_TASK_INFO WHERE ID IN (SELECT TASK_ID FROM TB_TASK_RELATION WHERE GROUP_ID IN (SELECT ID FROM TB_TASK_GROUP WHERE GROUPNAME = '宽带感知任务'))))) GROUP BY HTTP_TARGETALIAS;
END IF;
COMMIT;
EXCEPTION
WHEN OTHERS THEN
CLOSE C_HTTP_TARGETALIAS;
DBMS_OUTPUT.PUT_LINE(SQLERRM);
IF C_HTTP_TARGETALIAS%ISOPEN THEN
CLOSE C_HTTP_TARGETALIAS;
END IF;
END PC_TB_HTTPTASK_TIME120_RESULT;
v_http_targetalias varchar2(300);
v_http_dns_avgrtt number;
v_http_avgrtt number;
v_http_firstbyte_avgrtt number;
v_http_body_avgrtt number;
v_http_avgspeed number;
v_http_pagesize number;
v_http_opentimertt NUMBER;
CURSOR c_httptask_result IS
SELECT HTTP_TARGETALIAS,
AVG(HTTP_DNS_AVGRTT) HTTP_DNS_AVGRTT,
AVG(HTTP_AVGRTT) HTTP_AVGRTT,
AVG(HTTP_FIRSTBYTE_AVGRTT) HTTP_FIRSTBYTE_AVGRTT,
AVG(HTTP_BODY_AVGRTT) HTTP_BODY_AVGRTT,
AVG(HTTP_AVGSPEED) HTTP_AVGSPEED,
MAX(HTTP_PAGESIZE) HTTP_PAGESIZE
FROM (SELECT OBJECTID,
HTTP_TARGETALIAS,
HTTP_DNS_AVGRTT,
HTTP_AVGRTT,
HTTP_FIRSTBYTE_AVGRTT,
HTTP_BODY_AVGRTT,
HTTP_AVGSPEED,
HTTP_PAGESIZE
FROM TB_HTTPTASK_RESULT
WHERE
TO_CHAR(COLTIME, 'YYYY-MM-DD') = TO_CHAR(SYSDATE-1, 'YYYY-MM-DD')
AND HTTP_TARGETALIAS IS NOT NULL) TB_HTTPTASK_RESULT_CON
WHERE
OBJECTID IN
(SELECT GROUPTASKID
FROM GROUPTASK
WHERE GROUPTASKID IN
(SELECT TASKID
FROM GROUPTASKRELATION
WHERE GROUPID IN
(SELECT PROBEGROUPID
FROM TB_TASK_INFO
WHERE ID IN
(SELECT TASK_ID
FROM TB_TASK_RELATION
WHERE GROUP_ID IN
(SELECT ID
FROM TB_TASK_GROUP
WHERE GROUPNAME = '宽带感知任务')))))
GROUP BY HTTP_TARGETALIAS;
/*
SELECT HTTP_TARGETALIAS,
AVG(HTTP_DNS_AVGRTT) HTTP_DNS_AVGRTT,
AVG(HTTP_AVGRTT) HTTP_AVGRTT,
AVG(HTTP_FIRSTBYTE_AVGRTT) HTTP_FIRSTBYTE_AVGRTT,
AVG(HTTP_BODY_AVGRTT) HTTP_BODY_AVGRTT,
AVG(HTTP_AVGSPEED) HTTP_AVGSPEED,
MAX(HTTP_PAGESIZE) HTTP_PAGESIZE
FROM TB_HTTPTASK_RESULT
WHERE OBJECTID IN
(SELECT GROUPTASKID
FROM GROUPTASK
WHERE GROUPTASKID IN
(SELECT TASKID
FROM GROUPTASKRELATION
WHERE GROUPID IN
(SELECT PROBEGROUPID
FROM TB_TASK_INFO
WHERE ID IN
(SELECT TASK_ID
FROM TB_TASK_RELATION
WHERE GROUP_ID IN
(SELECT ID
FROM TB_TASK_GROUP
WHERE GROUPNAME = '宽带感知任务')))))
AND HTTP_TARGETALIAS IS NOT NULL
AND TO_CHAR(COLTIME, 'YYYY-MM-DD') = TO_CHAR(SYSDATE-1, 'YYYY-MM-DD')
GROUP BY HTTP_TARGETALIAS;
*/
-- SELECT * FROM TB_PERF_METRIC WHERE met_name LIKE 'HTTP_BODY_AVGRTT';
/******************************************************************************
NAME: PC_TB_HTTPTASK_RESULT_TMP
PURPOSE:
REVISIONS:
Ver Date Author Description
--------- ---------- --------------- ------------------------------------
1.0 2010-11-10 1. Created this procedure.
NOTES:
Automatically available Auto Replace Keywords:
Object Name: PC_TB_HTTPTASK_RESULT_TMP
Sysdate: 2010-11-10
Date and Time: 2010-11-10, 10:54:32, and 2010-11-10 10:59:15
Username: (set in TOAD Options, Procedure Editor)
Table Name: (set in the "New PL/SQL Object" dialog)
******************************************************************************/
begin
OPEN c_httptask_result;
LOOP
FETCH c_httptask_result INTO v_http_targetalias,
v_http_dns_avgrtt,
v_http_avgrtt,
v_http_firstbyte_avgrtt,
v_http_body_avgrtt,
v_http_avgspeed,
v_http_pagesize;
EXIT WHEN c_httptask_result%NOTFOUND;
v_http_opentimertt := v_http_dns_avgrtt + v_http_avgrtt + v_http_firstbyte_avgrtt + v_http_body_avgrtt;
-- DELETE FROM TB_HTTPTASK_RESULT_TMP WHERE HTTP_TARGETALIAS = v_http_targetalias;
INSERT INTO TB_HTTPTASK_RESULT_TMP(HTTP_TARGETALIAS,
HTTP_DNS_AVGRTT,
HTTP_AVGRTT,
HTTP_FIRSTBYTE_AVGRTT,
HTTP_BODY_AVGRTT,
HTTP_AVGSPEED,
HTTP_PAGESIZE,
HTTP_OPENTIMERTT,
CREATE_DATE)
VALUES (v_http_targetalias,
v_http_dns_avgrtt,
v_http_avgrtt,
v_http_firstbyte_avgrtt,
v_http_body_avgrtt,
v_http_avgspeed,
v_http_pagesize,
v_http_opentimertt,
TRUNC(SYSDATE));
END LOOP;
COMMIT;
EXCEPTION
WHEN OTHERS THEN
CLOSE c_httptask_result;
dbms_output.put_line(SQLERRM);
IF c_httptask_result%ISOPEN THEN
CLOSE c_httptask_result;
END IF;
end PC_TB_HTTPTASK_RESULT_TMP;
----------------------------------------------------------------------
CREATE OR REPLACE PROCEDURE PC_TB_HTTPTASK_TIME120_RESULT IS
V_SYSDATE DATE DEFAULT SYSDATE;
V_HAS_DATA NUMBER;
V_HTTP_TARGETALIAS VARCHAR2(100);
/******************************************************************************
NAME: PC_TB_HTTPTASK_TIME120_RESULT
PURPOSE:
REVISIONS:
Ver Date Author Description
--------- ---------- --------------- ------------------------------------
1.0 2011-03-03 1. Created this procedure.
NOTES:
Automatically available Auto Replace Keywords:
Object Name: PC_TB_HTTPTASK_TIME120_RESULT
Sysdate: 2011-03-03
Date and Time: 2011-03-03, 14:00:00, and 2011-03-03 14:00:00
Username: (set in TOAD Options, Procedure Editor)
Table Name: (set in the "New PL/SQL Object" dialog)
******************************************************************************/
CURSOR C_HTTP_TARGETALIAS IS
SELECT HTTP_TARGETALIAS_NAME FROM TB_HTTP_TARGETALIAS;
BEGIN
BEGIN
SELECT COUNT(*) INTO V_HAS_DATA FROM (SELECT HTTP_TARGETALIAS, AVG(HTTP_DNS_AVGRTT) HTTP_DNS_AVGRTT,MAX(HTTP_PAGESIZE) HTTP_PAGESIZE FROM TB_HTTPTASK_RESULT WHERE HTTP_TARGETALIAS IS NOT NULL AND COLTIME >= V_SYSDATE - INTERVAL '120' MINUTE AND COLTIME < V_SYSDATE AND OBJECTID IN (SELECT GROUPTASKID FROM GROUPTASK WHERE GROUPTASKID IN (SELECT TASKID FROM GROUPTASKRELATION WHERE GROUPID IN (SELECT PROBEGROUPID FROM TB_TASK_INFO WHERE ID IN (SELECT TASK_ID FROM TB_TASK_RELATION WHERE GROUP_ID IN (SELECT ID FROM TB_TASK_GROUP WHERE GROUPNAME = '宽带感知任务'))))) GROUP BY HTTP_TARGETALIAS) TB_HTTPTASK_RESULT_HAS_DATA;
EXCEPTION
WHEN no_data_found THEN
V_HAS_DATA := 0;
END;
IF V_HAS_DATA=0 THEN
OPEN C_HTTP_TARGETALIAS;
LOOP
FETCH C_HTTP_TARGETALIAS INTO V_HTTP_TARGETALIAS;
EXIT WHEN C_HTTP_TARGETALIAS%NOTFOUND;
INSERT INTO TB_HTTPTASK_WM_RESULT_TMP(HTTP_TARGETALIAS,HTTP_OPENTIMERTT,CREATE_DATE,HTTP_DNS_AVGRTT,HTTP_PAGESIZE) VALUES (V_HTTP_TARGETALIAS, 0, V_SYSDATE, 0, 0);
END LOOP;
ELSE
INSERT INTO TB_HTTPTASK_WM_RESULT_TMP(HTTP_TARGETALIAS,HTTP_OPENTIMERTT,CREATE_DATE,HTTP_DNS_AVGRTT,HTTP_PAGESIZE) SELECT HTTP_TARGETALIAS, AVG(HTTP_DNS_AVGRTT+HTTP_AVGRTT+HTTP_FIRSTBYTE_AVGRTT+HTTP_BODY_AVGRTT) HTTP_OPENTIMERTT, V_SYSDATE, AVG(HTTP_DNS_AVGRTT) HTTP_DNS_AVGRTT, MAX(HTTP_PAGESIZE) HTTP_PAGESIZE FROM TB_HTTPTASK_RESULT WHERE HTTP_TARGETALIAS IS NOT NULL AND COLTIME >= V_SYSDATE - INTERVAL '120' MINUTE AND COLTIME < V_SYSDATE AND OBJECTID IN (SELECT GROUPTASKID FROM GROUPTASK WHERE GROUPTASKID IN (SELECT TASKID FROM GROUPTASKRELATION WHERE GROUPID IN (SELECT PROBEGROUPID FROM TB_TASK_INFO WHERE ID IN (SELECT TASK_ID FROM TB_TASK_RELATION WHERE GROUP_ID IN (SELECT ID FROM TB_TASK_GROUP WHERE GROUPNAME = '宽带感知任务'))))) GROUP BY HTTP_TARGETALIAS;
END IF;
COMMIT;
EXCEPTION
WHEN OTHERS THEN
CLOSE C_HTTP_TARGETALIAS;
DBMS_OUTPUT.PUT_LINE(SQLERRM);
IF C_HTTP_TARGETALIAS%ISOPEN THEN
CLOSE C_HTTP_TARGETALIAS;
END IF;
END PC_TB_HTTPTASK_TIME120_RESULT;
- Oracle存储过程实例.rar (1.8 KB)
- 下载次数: 2
发表评论
-
Oracle修改内存使用情况
2015-12-15 10:49 966[oracle@pamiddle ~]$ sqlplus / ... -
Oracle12c的相关命令及操作
2015-12-10 09:27 2914[oracle@pacollector ~]$ lsnrctl ... -
RedHat6.4安装Oracle12c 12.1.0.2.0
2015-12-07 16:32 2097[root@pacollector ~]# vi /etc/h ... -
静态方式把oracle实例配置到监听文件里
2015-08-21 21:25 1462本例Oracle的实例名字为parep。 原始的listen ... -
RedHat6.4安装Oracle11g 11.2.0.4
2015-07-25 22:36 2857[root@foglight ~]# vi /etc/host ... -
mysql和Oracle在对clob和blob字段的处理
2012-08-25 18:50 30918一、MySQL与Oracle数据库如何处理Clob,Bl ... -
Oracle Flashback技术
2012-04-14 14:12 1202http://www.cnblogs.com/coohoo/a ... -
Oracle相关资料大礼包
2012-03-08 11:08 1236附件里Oracle学习资料。 -
Oracle自带连接池应用
2011-08-31 13:27 2066依赖ojdbc14.jar包 OraclePooled.ja ... -
Oracle的几个Function实例
2011-03-10 13:50 1952create or replace function str_ ... -
Toad for Oracle 10下载
2010-11-11 21:12 16121Toad Development Suite for Orac ...
相关推荐
学习Oracle PL/SQL,你需要掌握以下几个核心知识点: 1. **基础语法**:包括变量声明、条件语句(IF-THEN-ELSIF, CASE)、循环结构(WHILE, FOR, LOOP)、异常处理(BEGIN-EXCEPTION-END)等。 2. **数据类型**:...
学习Oracle存储过程主要涉及以下几个核心知识点: 1. **定义与结构**:存储过程由一个或多个SQL和PL/INSQL语句组成,包括输入参数、输出参数和过程体。例如,`CREATE OR REPLACE PROCEDURE proc_name (param1 ...
在Oracle SQL中,有以下几个核心知识点: 1. **数据查询**:SQL的SELECT语句是用于从数据库中检索数据的基本工具。例如,`SELECT * FROM table_name` 可以获取表中的所有数据,而 `SELECT column1, column2 FROM ...
根据提供的标题、描述、标签及部分内容,我们可以提炼出Oracle数据库中的几个重要的知识点,这些知识点主要集中在存储过程(Stored Procedure)与函数(Function)的创建与使用上,同时也涉及到了游标(Cursor)的...
在实际项目中,Ibatis与Oracle的结合使用主要体现在以下几个方面: 1. **SQL调优**:Ibatis允许直接编写原生的SQL,便于充分利用Oracle的特性进行性能优化。 2. **事务管理**:Ibatis提供了对数据库事务的控制,...
在语法层面,Oracle存储过程主要由以下几个部分组成: 1. **CREATE PROCEDURE**:创建存储过程的语句,用于定义存储过程的名称和参数。 2. **参数声明**:在存储过程中,可以声明输入参数、输出参数或双向参数,用于...
创建一个Oracle JOB通常涉及以下几个步骤:定义作业(DBMS_SCHEDULER.CREATE_JOB),指定执行时间(DBMS_SCHEDULER.SET_ATTRIBUTE),启动作业(DBMS_SCHEDULER.RUN_JOB),以及监控和管理作业状态(DBMS_SCHEDULER....
本主题将深入探讨Oracle中的几个核心概念:函数、存储过程、游标以及简单的实例,这些都是数据库管理员和开发人员日常工作中不可或缺的部分。 首先,我们来了解**Oracle函数**。函数是预定义的代码块,接受零个或多...
在创建Job时,需要指定几个关键参数: 1. **Job No**: 这是一个由`dbms_job.submit()`过程返回的`BINARY_INTEGER`类型值,用于唯一标识一个Job。 2. **What**: 指将要执行的PL/SQL代码块。 3. **Next Date**: 表示...
我们将主要关注以下几个方面: 1. **Oracle数据库连接**: .NET应用程序通过ADO.NET框架与Oracle数据库进行交互。首先,需要安装Oracle客户端和ODP.NET(Oracle Data Provider for .NET)驱动程序,这是Oracle提供的...
在Oracle存储过程开发中,你需要掌握以下几个关键步骤: 1. 使用文本编辑器(如Notepad)编写存储过程的PL/SQL代码。 2. 在Oracle数据库中创建存储过程,这通常通过发出`CREATE OR REPLACE PROCEDURE` SQL语句来完成...
下面是几个具体的例子: - **临时表空间**: ```sql CREATE TEMPORARY TABLESPACE test_temp TEMPFILE 'C:\oracle\product\10.1.0\oradata\orcl\test_temp01.dbf' SIZE 32M AUTOEXTEND ON NEXT 32M MAXSIZE ...
下面将详细介绍几个具体的存储过程示例及其用途: ##### 1. 创建表 `t_user` ```sql CREATE TABLE t_user ( id NUMBER(4) PRIMARY KEY, uname VARCHAR2(20), age NUMBER(3) ); ``` 此表用于存储用户的基本信息...
Oracle存储过程是构建在Oracle数据库中的一个独立的代码块,能够封装复杂的业务逻辑,让程序逻辑转移到数据库层面执行,从而提高数据处理效率和减少网络传输数据量。Oracle存储过程可以包含SQL语句、PL/SQL块、Java...
例如,你可以创建一个存储过程`CREATE OR REPLACE PROCEDURE my_procedure IS BEGIN ... END;`,并在其中实现复杂的业务逻辑。 3. 视图(View):视图是基于一个或多个表的虚拟表,可以简化复杂查询并提供数据安全...
首先,存储过程有以下几个显著特点: 1. **预编译与优化**:存储过程在创建时会被预编译并存储在SQL内存中,执行时无需再次编译,从而提高了执行效率。 2. **减少网络流量**:过程的代码直接存储在数据库中,客户端...
在给定的文件"oracle汉字转拼音package_获得全拼——拼音首字母_拼音截取等.sql"中,我们可以看到一个自定义的包,这个包可能包含了以下几个功能: 1. 获得全拼:将汉字转换为完整的拼音,包括声母、韵母和声调。 ...
这种方式首先通过`entityManagerFactory`获取`SessionFactory`实例,然后打开一个新的`Session`。由于每次调用后都需要手动关闭`Session`来释放连接,否则当超过连接池的默认大小时,会导致新的数据库操作失败。...