oracle records user login information

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用户);

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325364763&siteId=291194637