---Modify tablespace size
alter database datafile 'D:\app\TableSpace\QNS_SPACE.dbf' resize 20480m;
---qns
create temporary tablespace qns2_temp
tempfile 'E:\app\TableSpace\qns2_temp_space.dbf'
size 32m
autoextend on
next 32m maxsize 2048m
extent management local;
--qns data tablespace
create tablespace gqns_space
logging
datafile 'E:\app\TableSpace\gqns_space.dbf'
size 32m
autoextend on
next 32m maxsize 2048m
extent management local; --create
user And make a tablespace
create user qns2 identified by qns2
default tablespace gqns_space -- specify the data tablespace user
temporary tablespace qns2_temp; -- specify the temporary tablespace user
--Grant permissions to users
grant connect, resource, dba to qns2; --Delete
users, including tables, views, stored procedures, etc. associated with the user.
drop user SQM cascade
//After logging in as this user, any database objects created belong to the test_temp and test_data tablespaces, so there is no need to assign a tablespace to each object created.
//User password is locked, SQL unlock
alter user srmdev account unlock
//Modify user password
alter user sqm identified by sqm
Oracle create tablespace and temporary tablespace create user
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326184148&siteId=291194637
Recommended
Ranking