当前位置:网站首页>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
边栏推荐
- [Tencent Alibaba's most comprehensive collection of test questions] (four sides: three rounds of technology +1 round of HR)
- The innovative public platoon mode team invites users to split, beautiful every second, and links the 2+1 new business model
- SDN基本概述
- Detailed description of drawing ridge plot, overlapping densities of overlapping kernel density estimation curve, facetgrid object and function sns Kdeplot, function facetgrid map
- 1154. day of the year
- Smart finance is upgraded again, and jinglianwen technology provides data collection and labeling services
- 15、 IO stream (I)
- Detailed Mr Atlas of hip joint (Reprinted)
- 简单了解C语言基本语
- json. Stringify() and json The difference between parse () and json Usage of stringify()
猜你喜欢

微隔离(MSG)

2022-06-12:在N*N的正方形棋盘中,有N*N个棋子,那么每个格子正好可以拥有一个棋子。 但是现在有些棋子聚集到一个格子上了,比如: 2 0 3 0 1 0 3 0 0 如上的二维数组代表,一

Tidb index optimization

15、 IO stream (I)

Continuous management design

Smart finance is upgraded again, and jinglianwen technology provides data collection and labeling services

Host computer development (Architecture Design of firmware download software)

【马尔科夫链-蒙特卡罗】马尔科夫链-蒙特卡罗方法对先验分布进行抽样

16、 IO stream (II)

Jinglianwen Technology: current situation and solutions of data annotation industry
随机推荐
微隔离(MSG)
Unable to find method 'org gradle. api. artifacts. result. ComponentSelectionReason. getDesc
同花顺可以开股票账户吗?安全吗?
Jinglianwen Technology: current situation and solutions of data acquisition and labeling industry
Br tool backup recovery
Is it safe to open an account online in Hangzhou?
Byte (nine)
JS case Xiaomi second kill countdown New Year Countdown
Department store center supply chain management system
105. constructing binary trees from preorder and inorder traversal sequences
测试开发程序员,你还在迷茫吗?不能把自己定义为码农......
That is, after the negative impact of gcat advertising e-commerce, is there no stable advertising e-commerce platform?
Continuous management design
Evolution in the digital age
汇编语言基础:寄存器和寻址方式
【转】FPGA面试题
Can flush open a stock account? Is it safe?
The new retail market has set off blind box e-commerce. Can the new blind box marketing model bring dividends to businesses?
Try to use renderdoc to view the shader code of UE
FSM state machine
