Trying to create this job:
1
2
3
4
5
6
7
8
9
10
11
12
13
|
begin -- Test statements here
DBMS_SCHEDULER.CREATE_JOB (
job_name => 'JOB_1',
job_type => 'STORED_PROCEDURE',
job_action => 'BEGIN USER.PROCEDURE; END;',
start_date => sysdate,
repeat_interval => 'FREQ=MINUTELY; INTERVAL=5;',
-- end_date => NULL,
enabled => TRUE,
comments => 'Get data from api');
commit;
end; |
But i got this error: ORA-27452: %s is an invalid name for a database object
Found out that:
1) the action you are defineing, must be valid (duh)
2) if you are using the action as i am, the type is NOT STORED_PROCEDURE, its PLSQL_BLOCK
so changed it to:
1
2
3
4
5
6
7
8
9
10
11
12
13
|
begin -- Test statements here
DBMS_SCHEDULER.CREATE_JOB (
job_name => 'JOB_1',
job_type => 'PLSQL_BLOCK',
job_action => 'BEGIN USER.PROCEDURE; END;',
start_date => sysdate,
repeat_interval => 'FREQ=MINUTELY; INTERVAL=5;',
-- end_date => NULL,
enabled => TRUE,
comments => 'Get data from api');
commit;
end; |
相关推荐
ora-01033:oracle initialization or shutdown in progress 解决方法 ora-01033:oracle initialization or shutdown in progress 解决方法 ora-01033:oracle initialization or shutdown in progress 解决方法 ora-...
在运行查询SELECT * FROM V$SESSION 会出现ORA-29275:部分多字节字符的错误,这是什么原因开始我不得其解,网上也没有介绍什么好办法。本文给出答案。
ORA-32001:write to spfile requested but no spfile is in use请求写入spfile,但没有使用spfile的解决方法 在输入以下语句中报了这样的错误: SQL>alter system set control_files=’/u01/app/oracle/oradata/prod/...
ORA-12154: TNS: 无法解析指定的连接标识符的解决方法
ORA-00031:标记要终止的会话解决方案; ORA-00031:标记要终止的会话解决方案;
调整参数后引起,ORA-00838: Specified value of MEMORY_TARGET is too small, needs to be at least 3 2768M 的解决方案
ORA-01036:非法的变量名/编号 oracle特有的错误
oracle12c程序连接时异常: ORA-01017: 用户名/口令无效; 登录被拒绝 的解决方案。
oracle 12 c ORA-01017: 用户名/口令无效; 登录被拒绝
-- 解决ORA-00904: "WMSYS"."WM_CONCAT": 标识符无效 的文件包....... -- 解决ORA-00904: "WMSYS"."WM_CONCAT": 标识符无效 的文件包....... -- 解决ORA-00904: "WMSYS"."WM_CONCAT": 标识符无效 的文件包....... ...
oracle报错ora-12541:TNS无监听程序
NULL 博文链接:https://3w1h.iteye.com/blog/1211779
oracle19c缺少的函数
解决ORACLE TNS: 无法解析指定的连接标识符; 里面有步骤
最近在工作中遇到了一个问题,错误是Oracle dbca时报错:ORA-12547: TNS:lost contact,通过查找相关的资料终于找到了解决的方法,下面分享给大家,话不多说了,来一起看看详细的介绍吧。 环境: OS:RHEL6.5 x86-...
错误描述:oracle远程连接服务器出现 ORA-12170 TNS:连接超时 错误检查:有很多是oracle自身安装的问题,但是我这里服务器配置正常,监听正常,服务正常,远程可以ping通服务器。 这里主要是防火墙问题,解决办法: ...
This only affects Oracle Real Application Clusters and can be reported in ASM as well as database instances. The issue was introduced in Oracle 10.2.0.4 so earlier versions are not affected Possible ...
ora-12514:TNS:监听程序当前无法识别连接描述符中请求的服务bug,解决文档.
今天在项目中,使用Mybatis对oracle数据库进行操作的时候,报出ORA-00911: invalid character的错误,检查了一下SQL,发现都书写正确啊,复制到plsql上执行也都没问题,这什么原因呢? 注意:这里说的是用navicat...
CLOB字段类型报错 ORA-01704:文字字符串过长的解决