Specify the table space file name, you can specify the specific location, such as:'d:/xxx.dbf' defaults to this directory: c:\oracle\product\10.2.0\db_1\database
size initial size
The hard disk space occupied by the table space at the beginning, the unit can be K or M
autoextend on
If the initial size specified above is used up, automatic expansion is turned on
Delete all the contents and physical files in the table space
-- 删除space2表空间,同时删除内容和文件droptablespace space2 including contents and datafiles;
2. Create users and give user permissions
Create user:
create user username
identified by
Specify password
default tablespace
Specify the table space used by the current user, if not specified, the USERS table space is used by default
-- 创建用户user1,密码orcl,指定默认表空间为space1createuser user1 identified by orcl defaulttablespace space1;
Granted permission:
grant role to username
-- 进入 system 用户下给用户user1赋予 dba权限grant dba to user1;
Three roles in Oracle: connect, resource, dba
DBA role: Has all privileges and is the highest authority of the system. Only the DBA can create the database structure, and the system authority also needs to be granted by the DBA, and the DBA user can operate any base table of all users, including deletion. Such as: system