操作系統:linux RHEL 7.4
數據庫:Oracle 12c R2
問題現象:生產中某個核心數據庫升級至12cR2后,出現一些“class slave wait”等待事件,且發起用戶是sys和customer user,program是后台進程,感覺很奇怪
問題原因:
查詢MOS得知
APPLIES TO: Oracle Database - Enterprise Edition - Version 11.2.0.2 and later Information in this document applies to any platform. SYMPTOMS User Session shows ACTIVE with event "class slave wait". The session type shows BACKGROUND even though its a user session. SID SERIAL# USERNAME PROGRAM TYPE PID SPID WAIT_TIME STATE ---------- ---------- ------------------------------ ------------------------------------------------ ---------- ------------------------ ---------- ------------------- EVENT ---------------------------------------------------------------- 10 1 user1 oracle@psdprod (O000) BACKGROUND 28 6060 0 WAITING class slave wait CAUSE The session logged on with a custom user (lets say user 'user1') while creating the tablespace on ASM disk, does spawns the asm slave processes o000, o001 etc which inherits the user information from parent's state object(which is the user1 session). Since, user1 session will have 'USER1' as the username, the same user information will appear for the slave processes because the slave processes are spawned by the user1 session. Hence, the slave asm background processes appear with username 'USER1'(logged in user name) in v$session. SOLUTION No action is needed here. What we are seeing is expected behaviour. Bug 8734260 discussed this issue and this is not a code bug.