Determine current role at runtime

If you experience unexpected errors with a role that was granted appropriate access privileges, make sure that the role was enabled during runtime. To obtain this information while you are connected to the database, you can use the onstat -g sql or onstat -g ses command. To see only your own current role, use the CURRENT_ROLE operator of SQL. To see your default role, use the DEFAULT_ROLE operator of SQL.