Use navicat to create a new Oracle user

create tablespace

After connecting to the database, click in navicat 其他, then select 表空间
insert image description here
and select新建表空间
insert image description here

You can refer to the existing table space to create a new one.
insert image description here
The table space types are as follows:

  1. PERMANENT : The permanent table space stores permanent data, such as tables, indexes, etc.

  2. TEMPORARY : The temporary tablespace cannot store permanent objects, and is used to save temporary data generated during database sorting and grouping.

  3. UNDO : The table space saves the mirror image before data modification.

I chose the permanent table space. After filling in the information, click Save in the upper left corner.

create user

Select 用户, and click 新建用户.
insert image description here

insert image description here
insert image description here
Configure Quota Grant
insert image description here
Permissions
insert image description here

insert image description here
Then go to the login test
insert image description here
insert image description here
and the login fails.
Because we did not assign server permissions to this account.
insert image description here
insert image description here
login test
insert image description here

If we need mytoolstablespaces owned by multiple users, wouldn't it be very troublesome to assign permissions to each user, so roles can be used to solve this problem, that is, a user can have this role.

Creating a Role

Select Create Role
insert image description here
and create a new role
insert image description here

Add mytoolsthe user to this role.
insert image description here
The server permissions are consistent with those of the user created above. Then save.
Then modify the user's role.

insert image description here

insert image description here
Then we 服务器权限remove all of
the user's login test

insert image description here

The difference between roles and users

OracleA role ( role) is simply a set of permissions ( privilege) (or the type of access each user needs based on their status and conditions). Users can grant or assign specified permissions to roles, and then assign roles to corresponding users. A user can also directly authorize other users.
oracleUsers, that is user, in layman's terms, are "people" who access the oracle database. In oracle, you can oraclecontrol various security parameters of users to maintain the security of the database. These concepts include mode ( schema), permissions, roles, storage settings, space quotas, access resource restrictions, database auditing, etc. Each user has a password, and the correct user/password can be used to log in to the database for data access.

Difference: A role is a collection of permissions, while a user is a collection of roles and permissions.

Guess you like

Origin blog.csdn.net/qq_44732146/article/details/129874104