create tablespace
After connecting to the database, click in navicat 其他
, then select 表空间
and select新建表空间
You can refer to the existing table space to create a new one.
The table space types are as follows:
-
PERMANENT : The permanent table space stores permanent data, such as tables, indexes, etc.
-
TEMPORARY : The temporary tablespace cannot store permanent objects, and is used to save temporary data generated during database sorting and grouping.
-
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 新建用户
.
Configure Quota Grant
Permissions
Then go to the login test
and the login fails.
Because we did not assign server permissions to this account.
login test
If we need mytools
tablespaces 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
and create a new role
Add mytools
the user to this role.
The server permissions are consistent with those of the user created above. Then save.
Then modify the user's role.
Then we 服务器权限
remove all of
the user's login test
The difference between roles and users
Oracle
A 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.
oracle
Users, that is user
, in layman's terms, are "people" who access the oracle database. In oracle
, you can oracle
control 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.