当前位置:网站首页>Database advanced learning notes - system package
Database advanced learning notes - system package
2022-07-28 11:37:00 【Pingguo stuffed with rice cakes】
1.dbms_output package
effect : Mainly used for debugging pl/sql Program , Or in sql*plus The information in the command (displaying message) And reports
-- Pay attention to knowledge points :
1.1 enable: stay serveroutput on Under the circumstances , Used to make dbms_output take effect ( Open by default )
1.2 disable: stay serveroutput on Under the circumstances , Used to make dbms_output invalid
1.3 put: Write content to memory , wait until put_line Output together
1.4 put_line: Needless to say , The output characters
1.5 new_line: As the end of a line , It can be understood as writing buffer Line break at
2.dbms_job package --oracle Timing task
1. establish
grammar :
variable jobno number;
dbms_job.submit(:jobno,'your_procedure;',next_date,'interval');
Syntax description :
jobno--job Number The system will automatically assign a task number jobno.
your_procedure -- Stored procedures executed , ';' Don't omit
next_date -- Next execution time
interval -- Every time interval ,interval In days
2. Operation instructions
2.1 Delete job dbms_job.remove(jobno);
2.2 Modify the action to be performed job:dbms_job.what(jobno,what);
2.3 Modify the time to execute dbms_job.next_date(jobno,next_date);
2.4 Modification interval dbms_job.interval(jobno, interval);
2.4 start-up dbms_job.run(jobno);
2.5 stop it dbms.broken(jobno, broken, nextdate); –broken by boolean value
-- Stop paying attention : First query job Number , know job Can't stop until the th .broken by true The execution stops . After stopping, you can use
select job, next_date, next_sec, failures, broken from user_jobs; When broken by y when , Has successfully stopped
边栏推荐
- WPF dependent attribute (WPF dependent attribute)
- What is WordPress
- Localization, low latency, green and low carbon: Alibaba cloud officially launched Fuzhou data center
- 1331. 数组序号转换
- 【MySQL】Got an error reading communication packets
- Technology sharing | quick intercom integrated dispatching system
- Database advanced learning notes -- object type
- Refresh your understanding of redis cluster
- CVPR2021 行人重识别/Person Re-identification 论文+开源代码汇总
- 「学习笔记」树状数组
猜你喜欢

什么样的知识付费系统功能,更有利于平台与讲师发展?

一种比读写锁更快的锁,还不赶紧认识一下

好用到爆!IDEA 版 Postman 面世了,功能真心强大

DHCP experiment demonstration (Huawei switch device configuration)

2022-2023 年十大应用程序发展趋势

Router firmware decryption idea

Function of interface test

Two dimensional prefix and

Good use explosion! The idea version of postman has been released, and its functions are really powerful

五面阿里技术专家岗,已拿offer,这些面试题你能答出多少
随机推荐
Leetcode:981. time based key value storage [trap of iteration for: on]
迭代法求行列式(线性代数公式)
2022-2023 年十大应用程序发展趋势
A lock faster than read-write lock. Don't get to know it quickly
在生产环境中每天Oracle监控到的无效对象一般怎么去处理?
go status. Go status code definition
WPF dependent attribute (WPF dependent attribute)
WinForm generates random verification code
大三下学期总结
[JS advanced] JS functions, overloads, anonymous functions, scopes and scope chains_ 03
Server online speed measurement system source code
Three methods of using unity mouse to drive objects
Two point, three point, 01 point plan [bullet I]
What is WordPress
Good use explosion! The idea version of postman has been released, and its functions are really powerful
How to use JWT for authentication and authorization
一文看懂设备指纹如何防篡改、防劫持
Digital twin rail transit: "intelligent" monitoring to clear the pain points of urban operation
Outlook suddenly becomes very slow and too laggy. How to solve it
DHCP experiment demonstration (Huawei switch device configuration)