当前位置:网站首页>Related operations under Oracle Database
Related operations under Oracle Database
2022-06-13 07:03:00 【AndroidOrCSharp】
Catalog
1. Create stored procedure
CREATE OR REPLACE PROCEDURE "CHECK_EXPORT_OF_CXH" -- ********************************************************************************** -- SYSTEM: -- SUBSYS: Check the reverse file export of the city commercial bank -- PROGRAM: CHECK_EXPORT_OF_CXH -- RELATED TAB: -- SUBPROG: -- REFERENCE: -- DESCRIPTION: Check the reverse file export of the city commercial bank , Send email reminder not exported , Called by a scheduled task -- INPUT: -- RETURN: -- AUTHOR: ZZF -- CREATE DATE: 2020-10-22 -- EDIT HISTORY: -- VERSION: V1.0 -- ********************************************************************************** as count_of_noexport VARCHAR2(20);-- Temporary variable Information VARCHAR2(30); PO_SID VARCHAR2(200); PO_RETCODE VARCHAR2(200); -- Return code PO_RETMSG VARCHAR2(200); -- Return information begin SELECT COUNT(*) into count_of_noexport FROM V_HQ_GETCSHNXFILE WHERE STATUS=' Not exported '; IF count_of_noexport>0 --IF THEN END IF Usage of ; THEN Information:=' The reverse documents of the city commercial bank also include '||count_of_noexport||' Home not exported '; -- Temporary variable assignment , String concatenation || clweb_send_mail(null,newid(),Information,null,'[email protected]ichfund.com',PO_SID,PO_RETCODE,PO_RETMSG);-- Call another stored procedure , We need to pay attention to OUT Parameters are declared and passed where they are called , To receive the return value log_p_write_exec_time_log('CHECK_EXPORT_OF_CXH','CHECK_EXPORT_OF_CXH_SendMail',null,null); END IF; -- exception handling COMMIT; EXCEPTION WHEN OTHERS THEN ROLLBACK; end ;
2. Create timing JOB
PLSQL Create a new one JOB Options
Interval Several common ways of writing :
1: Every minute
Interval => TRUNC(sysdate,'mi') + 1/ (24*60)
or
Inter
val => sysdate+1/1440
2: Regular execution every day
for example : Every morning 1 Point to perform
Interval => TRUNC(sysdate) + 1 +1/ (24)
3: Weekly scheduled execution
for example : Every Monday morning 1 Point to perform
Interval => TRUNC(next_day(sysdate,' Monday '))+1/24
4: Regular monthly execution
for example : monthly 1 Early morning 1 Point to perform
Interval =>TRUNC(LAST_DAY(SYSDATE))+1+1/24
5: Regular implementation every quarter
For example, in the early morning of the first day of each quarter 1 Point to perform
Interval => TRUNC(ADD_MONTHS(SYSDATE,3),'Q') + 1/24
6: Regular implementation every half a year
for example : Every year, 7 month 1 Day and 1 month 1 Early morning 1 spot
Interval => ADD_MONTHS(trunc(sysdate,'yyyy'),6)+1/24
7: Regular execution every year
for example : Every year, 1 month 1 Early morning 1 Point to perform
Interval =>ADD_MONTHS(trunc(sysdate,'yyyy'),12)+1/24
边栏推荐
- Lightning breakpoint continuation
- 【马尔科夫链-蒙特卡罗】马尔科夫链-蒙特卡罗方法对先验分布进行抽样
- Tidb execution plan -- II
- 检测循环数“142857“
- Do you want to carry out rapid steel mesh design and ensure the quality of steel mesh? Look here
- 面试必刷算法TOP101之单调栈 TOP31
- [RS-422 and RS-485] RS-422 and RS-485 serial interface standard
- Tidb implementation plan -- I
- 2022-06-12:在N*N的正方形棋盘中,有N*N个棋子,那么每个格子正好可以拥有一个棋子。 但是现在有些棋子聚集到一个格子上了,比如: 2 0 3 0 1 0 3 0 0 如上的二维数组代表,一
- Detailed Mr Atlas of hip joint (Reprinted)
猜你喜欢

Intelligent entertainment has developed steadily, and jinglianwen technology provides data collection and labeling services

Br backup test

Try to use renderdoc to view the shader code of UE

景联文科技:数据标注行业现状及解决方案

MySQL系列之分库分表学习笔记

Gold jewelry enterprise operation mode, beautiful tiantians business solution
![[cloud native | kubernetes] kubernetes configuration](/img/cb/20595d34a9e203b83dd086cc27037d.png)
[cloud native | kubernetes] kubernetes configuration

Br tool backup recovery

ML之FE:Vintage曲线/Vintage分析的简介、计算逻辑、案例应用之详细攻略

The causes of font and style enlargement when the applet is horizontal have been solved
随机推荐
[Markov chain Monte Carlo] Markov chain Monte Carlo method sampling prior distribution
Network planning common interview knowledge (I)
Tidb execution plan -- II
基于SSM实现水果商城批发平台
Learning notes of MySQL series by database and table
How to make a development board from scratch? Illustrated and illustrated, step by step operation for you to see.
Yolov5 analysis | parameters and performance indicators
16、 IO stream (II)
Tidb statistics
Jinglianwen Technology: current situation and solutions of data acquisition and labeling industry
How to quickly support the team leader to attract new fission users in the business marketing mode of group rebate?
我的理财产品显示清算中是什么意思?
号称下一代监控系统 来看看它有多牛逼
[RS-422 and RS-485] RS-422 and RS-485 serial interface standard
在 localStorage 中上传和检索存储图像
如何从头自己制作开发板?图文并茂,一步步操作给你看。
2022 - 06 - 12: dans un échiquier carré n * N, il y a n * n pièces, donc chaque pièce peut avoir exactement une pièce. Mais maintenant quelques pièces sont rassemblées sur une grille, par exemple: 2 0
RT-Thread 模拟器 simulator LVGL控件:switch 开关按钮控件
同花顺可以开股票账户吗?安全吗?
JS method of extracting numbers from strings
