Oracle creates a new user and authorizes

cmd

sqlplus enter

Enter the system user (the default permission to create users)

create user xxx identified by xxx; (must not be lost;)

The creation is complete, but at this time, the link to the database will report an error that    Oracle created the user ORA-01045: user lacks CREATE SESSION privilege; logon denied..

Because the user is not given permissions

Solution:

法1、grant create session to xxx;

法2、grant connect, resource to xxx;

With these permissions,

grant create any table to xxx;等等

Otherwise, insufficient authority will be reported.

Guess you like

Origin blog.csdn.net/lc547913923/article/details/52934781