- create user mcc identified by manager; 这里注意密码不要用单引号扩起来。
- drop user mcc cascade ;直接删掉用户
- create user mcc identified by manager default tablespace mcc01 temporary tablespace tmp;创建用户并制定默认表空间。
- create tablespace mcc01 datafile ‘/data/gps01.dbf‘ size 200M uniform size 128k;只创建表空间
- alter user mcc default tablespace mcc01;更改用户的表空间。
- drop tablespace mcc01 including contents and datafiles;删掉表空间
- alter database datafile ‘/data/gps01.dbf‘ autoextend on;更改用户表空间为自动扩展。
- select * from dba_data_files where tablespace_name=‘mcc01‘;
- alter tablespace MCC01 add datafile ‘/data/gps02.dbf‘ size 100M autoextend on next 5M maxsize 200M;
时间: 2024-10-22 12:32:51