当前位置:网站首页>数据库高级学习笔记--系统包
数据库高级学习笔记--系统包
2022-07-28 09:06:00 【萍果馅是年糕】
1.dbms_output包
作用:主要用于调试pl/sql程序,或者在sql*plus命令中显示信息(displaying message)和报表
--注意知识点:
1.1 enable:在serveroutput on的情况下,用来使dbms_output生效(默认即打开)
1.2 disable:在serveroutput on的情况下,用来使dbms_output失效
1.3 put:将内容写到内存,等到put_line时一起输出
1.4 put_line:不用多说了,输出字符
1.5 new_line:作为一行的结束,可以理解为写入buffer时的换行符
2.dbms_job包 --oracle定时任务
1.创建
语法:
variable jobno number;
dbms_job.submit(:jobno,'your_procedure;',next_date,'interval');
语法说明:
jobno--job号 系统会自动分配一个任务号jobno。
your_procedure --执行的存储过程, ';'不能省略
next_date --下次执行时间
interval --每次间隔时间,interval以天为单位
2.操作说明
2.1删除job dbms_job.remove(jobno);
2.2修改要执行的操作 job:dbms_job.what(jobno,what);
2.3修改要执行的时间 dbms_job.next_date(jobno,next_date);
2.4 修改间隔时间 dbms_job.interval(jobno, interval);
2.4启动 dbms_job.run(jobno);
2.5停止 dbms.broken(jobno, broken, nextdate); –broken为boolean值
--停止注意点:先要查询job号,知道job号之后才能停止。broken为true时执行停止。停止之后可以使用
select job, next_date, next_sec, failures, broken from user_jobs; 当broken为y时,已经成功停止
边栏推荐
- 2022 high voltage electrician examination simulated 100 questions and simulated examination
- Rgb-t tracking: [multimodal fusion] visible thermal UAV tracking: a large scale benchmark and new baseline
- 19c sysaux tablespace sqlobj$plan table is too large. How to clean it up
- 可以伸缩的搜索栏,模仿华为应用市场
- 《我的Vivado实战—单周期CPU指令分析》
- IJCAI 2022 | 图结构学习最新综述:研究进展与未来展望
- JDBC连接数据库
- [Guangxi University] information sharing of postgraduate entrance examination and re examination
- Oracle-11gr2 default system job
- Pytorch deep learning practice lesson 9 multi classification problems (handwritten numeral MNIST)
猜你喜欢

Salted fish esp32 instance - mqtt lit LED

What is cross domain? How to solve the cross domain problem?

LeetCode - 哈希表专题
![[Download] several tools for brute force cracking and dictionary generation are recommended](/img/c6/f4a9c566ff21a8e133a8a991108201.png)
[Download] several tools for brute force cracking and dictionary generation are recommended

2022 safety officer-c certificate special operation certificate examination question bank and answers
![ASP.NET Core 6框架揭秘实例演示[29]:搭建文件服务器](/img/90/40869d7c03f09010beb989af07e2f0.png)
ASP.NET Core 6框架揭秘实例演示[29]:搭建文件服务器
![[high number] high number plane solid geometry](/img/fc/da6aefed48f4adbaf58995b5e8fa46.png)
[high number] high number plane solid geometry

Regular expressions for positive and negative values

Basic operation of MATLAB

ShardingSphere之分库分表概念介绍(二)
随机推荐
View事件分发机制源码解析
对话MySQL之父:代码一次性完成才是优秀程序员
数据库那么多概念性的东西怎么学?求方法
Face warp - hand tear code
LeetCode(剑指 Offer)- 50. 第一个只出现一次的字符
Arouter source code analysis (II)
Window source code analysis (II): the adding mechanism of window
Source code analysis of activityrouter
21天学习挑战赛-《Autosar从入门到精通-实战篇》
ActivityRouter源码解析
[multithreading] the underlying principle of println method
[autosar-rte] - 3-runnable and its task mapping mapping
376. Swing sequence [greedy, dynamic planning -----]
MQTT.js 入门教程:学习笔记
Changes in the relationship between data and application in IT industry
Activiti startup error: cannot create poolableconnectionfactory (could not create connection to database server
LeetCode_ 406_ Rebuild the queue based on height
MATLAB的符号运算
[multithreading] non atomic agreement of long and double
Detailed explanation of various types of files in MySQL