Create a trigger to query user information from the v$session dynamic view, but the compilation fails. The reason is that the user has insufficient query rights to the dynamic view. The solution is as follows:
1. Use the dba user to log in to the database server
2、grant select on sys.v_$session to username(oralce用户);