收到凌晨邮件告警

Errors in file /opt/oracle/diag/rdbms/xxxx/xxxx2/trace/ixxxx2_j000_5002.trc:
  ORA-12012: error on auto execute of job "SYS"."BSLN_MAINTAIN_STATS_JOB"
  ORA-01950: no privileges on tablespace 'SYSAUX'
  ORA-06512: at "DBSNMP.BSLN_INTERNAL", line 2073
  ORA-06512: at line 1

查看dbsnmp  用户的系统权限

SQL> select grantee,privilege from dba_sys_privs where grantee='DBSNMP';GRANTEE                        PRIVILEGE
------------------------------ ----------------------------------------
DBSNMP                         CREATE PROCEDURE
DBSNMP                         SELECT ANY DICTIONARY
DBSNMP                         CREATE TABLE
ORA-01950: no privileges on tablespace tipsOracle Error Tips by Donald Burleson(S. Karam)The Oracle docs note this on the ora-01950 error:
ORA-01950: no privileges on tablespace "string"Cause: User does not have privileges to allocate an extent in the specified tablespace.
Action: Grant the user the appropriate system privileges or grant the user space resource on the tablespace.On the ITtoolbox Forum, a confrontation concerning ORA-01950 has been posted.   A replier offers information, by asking the user to solve ORA-01950 by either:ALTER USER <username> QUOTA 100M ON <tablespace name> GRANT UNLIMITED TABLESPACE TO <username>
And to also make sure the user has been granted Connect, Resources roles incase the user was not given Create table privileges.
ORA-01950: no privileges on tablespace xxxx案例场景:新建了一个表空间后TBS_MARKET_DAT,希望将归档的数据放置在这个表空间。SQL> CREATE TABLESPACE TBS_MARKET_DAT2  DATAFILE '/u04/oradata/gps/bookt_data_arch_01.dbf'3  SIZE 100M4  AUTOEXTEND ON5  NEXT 10M6  MAXSIZE 4G7  EXTENT MANAGEMENT LOCAL8  SEGMENT SPACE MANAGEMENT AUTO ONLINE ;
用户A(默认表空间为TBS_ODS_DAT)创建表时指定表存储在表空间为TBS_MARKET_DAT时,遭遇ORA-01950: no privileges on tablespace 'TBS_MARKET_DAT'原因分析:如下所示,用户没有权限在指定的表空间分配空间。只需要将表空间的权限授予给该用户即可。[oracle@DB-Server ~]$ oerr ora 01950
01950, 00000, "no privileges on tablespace '%s'"
// *Cause:  User does not have privileges to allocate an extent in the
//          specified tablespace.
// *Action: Grant the user the appropriate system privileges or grant the user
//          space resource on the tablespace.解决方法:方法1: 授予用户对该表空间的UNLIMITED配额SQL> ALTER USER ETL QUOTA UNLIMITED ON TBS_MARKET_DAT;User altered.SQL>方法2: 重新授权resource角色给用户之后,便可以创建表格SQL> GRANT RESOURCE TO ETL;

类似另外案例

Errors in file /wload/test/app/oracle/diag/rdbms/TEST/TEST/trace/TEST_j000_7733378.trc:
ORA-12012: error on auto execute of job “SYS”.”BSLN_MAINTAIN_STATS_JOB”
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at “DBSNMP.BSLN_INTERNAL”, line 2073
ORA-06512: at line 1
Sat Mar 24 23:01:18 2012

Error from trace file

*** 2012-03-24 23:00:13.943
*** SESSION ID:(23.6871) 2012-03-24 23:00:13.943
*** CLIENT ID:() 2012-03-24 23:00:13.943
*** SERVICE NAME:(SYS$USERS) 2012-03-24 23:00:13.943
*** MODULE NAME:(DBMS_SCHEDULER) 2012-03-24 23:00:13.943
*** ACTION NAME:(BSLN_MAINTAIN_STATS_JOB) 2012-03-24 23:00:13.943

ORA-12012: error on auto execute of job “SYS”.”BSLN_MAINTAIN_STATS_JOB”
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at “DBSNMP.BSLN_INTERNAL”, line 2073
ORA-06512: at line 1

Cause

Table DBSNMP.BSLN_BASELINES contains inconsistent information that is causing the job to fail.

Check the job status

SQL> select log_date,status from dba_scheduler_job_run_details where job_name=’BSLN_MAINTAIN_STATS_JOB’;

LOG_DATE STATUS
————————————————————————— ——————————
10-MAR-12 11.00.13.501250 PM +00:00 FAILED
03-MAR-12 11.00.10.603238 PM +00:00 FAILED
17-MAR-12 11.00.14.793987 PM +00:00 FAILED
24-MAR-12 11.00.13.980545 PM +00:00 FAILED

Role of BSLN_MAINTAIN_STATS_JOB

This job runs the BSLN_MAINTAIN_STATS_PROG program on the BSLN_MAINTAIN_STATS_SCHED schedule.  The program BSLN_MAINTAIN_STATS_PROG will keep the default baseline’s statistics up-to-date

Check the DBSNMP.BSLN_BASELINES table

SQL> select * from DBSNMP.BSLN_BASELINES;

DBID INSTANCE_NAME BASELINE_ID BSLN_GUID TI A STATUS LAST_COMP
———- —————- ———– ——————————– — – —————- ———
1166314350 FTEST 0 4AC774574F6C7D60D4ADF390356098C1 NX Y ACTIVE 27-NOV-10
1166314350 TEST 0 CEF9782DC11EE02FCB9E1D821B49FB3F HX Y ACTIVE 27-NOV-10
So on our database we should just have the entry for TEST so we need to delete the entry for FTEST.

Delete the inconsistent entry

SQL> delete from DBSNMP.BSLN_BASELINES where INSTANCE_NAME=’FTEST’;

1 row deleted.
SQL> select * from DBSNMP.BSLN_BASELINES;

DBID INSTANCE_NAME BASELINE_ID BSLN_GUID TI A STATUS LAST_COMP
———- —————- ———– ——————————– — – —————- ———
1166314350 TEST 0 CEF9782DC11EE02FCB9E1D821B49FB3F HX Y ACTIVE 27-NOV-10

Now re-run the job.

SQL> exec dbms_scheduler.run_job(‘BSLN_MAINTAIN_STATS_JOB’,false);

PL/SQL procedure successfully completed.

The job has now successfully run.

SQL> select log_date,status from dba_scheduler_job_run_details where job_name=’BSLN_MAINTAIN_STATS_JOB’;

LOG_DATE STATUS
————————————————————————— ——————————
10-MAR-12 11.00.13.501250 PM +00:00 FAILED
29-MAR-12 01.11.43.054124 PM +01:00 SUCCEEDED
03-MAR-12 11.00.10.603238 PM +00:00 FAILED
17-MAR-12 11.00.14.793987 PM +00:00 FAILED
24-MAR-12 11.00.13.980545 PM +00:00 FAILED

http://t.askmaclean.com/thread-1159-1-1.html

ORA-12012: error on auto execute of job SYS.BSLN_MAINTAIN_STATS_JOB ORA-01950: no privileges on相关推荐

  1. ORA-12012: error on auto execute of job SYS.BSLN_MAINTAIN_STATS_JOB

    一.版本信息 操作系统版本: AIX 6100 数据库版本: 11.2.0.3(psu5) 二.错误描述 在alert 日志中发现如下报错 Sun Sep 28 15:00:22 2014 Error ...

  2. ORA-12012 Error on auto execute of job SYS.ORA$AT_OS_OPT_SY_NN in 12.2.0 Database

    报错如下: ORA-12012: error on auto execute of job "SYS"."ORA$AT_OS_OPT_SY_88" ORA-20 ...

  3. Orace 12.2 ORA-12012: error on auto execute of job SYS.ORA$AT_OS_OPT_SY_21

    一个测试环境的12.2.0.1数据库后台alert不断报出以下错误信息: Errors in file /d12/app/oracle/diag/rdbms/test/test/trace/test_ ...

  4. ORA-12012: error on auto execute of job “SYS“.“ORA$AT_OS_OPT_SY_12062“ ORA-20001: Statistics Advisor

    近期排查oracle日志报错的时候发现: 报错内容为:当前用户的任务名无效.(Invalid task name for the current user) 在网上搜索了一波之后,据oracle给出的 ...

  5. oracle18c报错ORA-12012: error on auto execute of job

    新安装的oracle18c数据库,alert log一直出错: ORA-12012: error on auto execute of job ORA-12012: error on auto exe ...

  6. ORA-12012: error on auto execute of job quot;ORACLE_OCM

    ALERT日志中报错例如以下: Sun Mar 30 06:05:40 2014 Errors in file /oracle/app/oracle/diag/rdbms/zscims/zscims1 ...

  7. ORA-07445 ERROR on auto execute of job 8913

    巡检时出现 Tue Jul 17 22:00:08 2012 Errors in file e:\oracle\product\10.2.0\admin\zsdb\bdump\zsdb_j000_20 ...

  8. ERROR 1370 (42000): execute command denied to user ‘james‘@‘localhost‘ for routine ‘test.coun_add‘

    对于 ERROR 1370 (42000): execute command denied to user 'james'@'localhost' for routine 'test.coun_add ...

  9. clang++ exe error unable to execute command Couldnt execute program文件名或扩展名太长

    在VS中用VisualGDB插件编译安卓工程,莫名其妙突然出现以下报错:clang++.exe: error: unable to execute command: Couldn't execute ...

最新文章

  1. 拼多多成立技术顾问委员会,陆奇将领导相关工作
  2. poj1789(prim)
  3. Java爬取校内论坛新帖
  4. 将Android应用程序打包
  5. WinPcap笔记(1):VisualStudio2015配置WinCap
  6. LeetCode 1708. 长度为 K 的最大子数组
  7. 背不下《道德经》,至少背下这10句精华!
  8. @RunWith@ContextConfiguration进行Spring上下文测试报错
  9. JavaScript高级程序设计学习(二)之基本概念
  10. SAP License:分摊、分配、定期重过账
  11. atitit.短信 验证码  破解  v3 p34  识别 绕过 系统方案规划----业务相关方案 手机验证码  .doc
  12. can总线程序讲解_CAN总线软件编程
  13. 【C语言】下标法 编写数组元素的输入与输出
  14. 轩辕传奇场景优化笔记
  15. NTFS和FAT32的区别和转换
  16. 你是去上大学,别让大学上了你
  17. 网页连接opc服务器,远程连接opc服务器
  18. 如何在论文中画出漂亮的插图
  19. 【数据】2000-2020Landscan Global Population Database(全球人口分布数据集-1km)下载教程
  20. Opencv学习笔记(1)计算机眼中的图像

热门文章

  1. python 量化交易靠谱吗_个人做量化交易靠谱吗?
  2. flutter Positioned绝对定位
  3. 18款迈巴赫S450升级23P智能驾驶辅助系统,提升您的行车安全
  4. 求二叉树深度算法(深度优先、广度优先)
  5. [Egret] 对对碰H5小游戏
  6. Vue中实现pdf文件预览功能
  7. string基本用法
  8. 创维E900V21E_创维E900V21C_创维E900V21D当贝乐家安卓9语音鸿蒙架构固件包刷机教程及救砖rom全网通固件
  9. python 数据挖掘 简书_python 数据挖掘算法简要
  10. Maya(玛雅)功能细讨-Ⅰ|使用MASH 程序效果创建运动图形