일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- 디스크
- v7000
- yum
- CentOS
- AIX
- centos8
- db
- HP
- oracle
- 리눅스
- IBM
- ibm 스토리지
- ibm v7000
- c3850
- #AIX
- Update
- EMC
- iptv 스캔
- Windows
- Linux
- 오라클
- TV
- ssh
- ibm storage
- centos 8 EOS
- 스크립트
- VMware
- 오류
- 파일시스템 확장
- tv 스캔
- Today
- Total
현재에최선을
[oracle] ora-12012 error on auto execute of job "SYS"."ORA$AT_OS_OPT_SY_ 본문
[oracle] ora-12012 error on auto execute of job "SYS"."ORA$AT_OS_OPT_SY_
현재에최선을 2021. 4. 26. 17:51- oracle alert 파일에 아래과 같이 에러가 나타남
ORA-12012: error on auto execute of job "SYS"."ORA$AT_OS_OPT_SY_118773"
ORA-20001: Statistics Advisor: Invalid task name for the current user
ORA-06512: at "SYS.DBMS_STATS", line 47214
ORA-06512: at "SYS.DBMS_STATS_ADVISOR", line 882
ORA-06512: at "SYS.DBMS_STATS_INTERNAL", line 20059
ORA-06512: at "SYS.DBMS_STATS_INTERNAL", line 22201
ORA-06512: at "SYS.DBMS_STATS", line 47204
trace 파일 확인
같은 메시지 확인
- 오라클 DOC 문서 확인
ORA-2012 Error on auto execute of job "SYS"."ORA$AT_OS_OPT_SY_<NN> in 12.2.0 Database version or higher release (like 18c) (문서 ID 2127675.1)
- 원인
Seed database was most likely not created right by package dbms_stats.init_package not being ran.
시드 DB가 실행되지 않은 "dbms_stats.init_package"패키지에 의해 생생되었을 수도 있다.
Dbms_stats.init_package creates statistics advisor. This procedure is executed during database creation. If something went wrong during database creation,(for example, init_package is not called for some reason), this kind of errors may be seen in alert log when auto job tries to execute.
- 해결
dbms_stats.init_package() 를 실행
1. $ sqlplus "/as sysdba"
SQL> EXEC DBMS_STATS.INIT_PACKAGE();
PL/SQL procedure successfully completed.
2. 확인
sql> col name format A35
sql> set linesize 120
select name, ctime, how_created from sys.wri$_adv_tasks where owner_name = 'SYS' and name in ('AUTO_STATS_ADVISOR_TASK','INDIVIDUAL_STATS_ADVISOR_TASK');
=== 결과 ===
NAME CTIME HOW_CREATED
----------------------------------- ------------------ ------------------------------
AUTO_STATS_ADVISOR_TASK 26-MAY-21 CMD
INDIVIDUAL_STATS_ADVISOR_TASK 26-MAY-21 CMD
'[오라클]' 카테고리의 다른 글
[oracle] ASM 테이블스페이스 확장 (0) | 2021.04.27 |
---|---|
[oracle] $':\r': command not found 뜰 때 (0) | 2021.04.27 |
[oracle] alert 파일 위치 및 관리 (0) | 2021.04.26 |
[oracle] asmcmd 사용한 ASM 디스크 조회 (0) | 2020.04.21 |
[oracle] rman으로 archive log 정리 스크립트 (0) | 2020.04.21 |