当前位置:网站首页>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
边栏推荐
- 105. constructing binary trees from preorder and inorder traversal sequences
- Try to use renderdoc to view the shader code of UE
- Uploading and retrieving stored images in localstorage
- Fe of mL: introduction to vintage curve /vintage analysis, calculation logic and detailed introduction to case application
- RT thread simulator lvgl control: switch switch button control
- 线程池中的 工作线程如何被回收
- 【騰訊阿裏最全面試題集錦】(四面:3輪技術+1輪HR)
- 【云原生 | Kubernetes篇】Kubernetes 配置
- 10 Honest Facts I Want To Share With All Junior Developers
- [Tencent Alibaba's most comprehensive collection of test questions] (four sides: three rounds of technology +1 round of HR)
猜你喜欢

Implementation of fruit mall wholesale platform based on SSM

髋关节MR详细图谱(转载)

How to seize the bonus of social e-commerce through brand play to achieve growth and profit?

如何使用望友DFM软件进行冷板分析

Test development programmers, are you still confused? You can't define yourself as a yard farmer

简单了解C语言基本语

Detailed description of drawing ridge plot, overlapping densities of overlapping kernel density estimation curve, facetgrid object and function sns Kdeplot, function facetgrid map

Ffmpeg compressed video.

Gold jewelry enterprise operation mode, beautiful tiantians business solution

Normalizing y-axis in histograms in R ggplot to proportion
随机推荐
[cloud native | kubernetes] kubernetes configuration
RT thread simulator lvgl control: button button style
The new business outlet of beautiful Tiantian second mode will be popular in the Internet e-commerce market
通过函数seaborn.cubehelix_palette生成顺序调色板
Department store center supply chain management system
Differences between SQL and NoSQL of mongodb series
Jinglianwen Technology: current situation and solutions of data annotation industry
Ffmpeg compressed video.
【腾讯阿里最全面试题集锦】(四面:3轮技术+1轮HR)
Implementation of fruit mall wholesale platform based on SSM
Recently, the popular social e-commerce marketing model, blind box e-commerce, how beautiful every second is accurately drained
10 Honest Facts I Want To Share With All Junior Developers
Micro isolation (MSG)
[weak transient signal detection] matlab simulation of SVM detection method for weak transient signal under chaotic background
Raspberry school advanced development - "writing of IO port driver code" includes bus address, physical \u virtual address and bcm2835 chip manual knowledge
树莓派高级开发——“IO口驱动代码的编写“ 包含总线地址、物理_虚拟地址、BCM2835芯片手册知识
号称下一代监控系统 来看看它有多牛逼
Upper computer development (software test of firmware download software)
尝试使用RenderDoc查看UE的Shader代码
How to seize the bonus of social e-commerce through brand play to achieve growth and profit?
