Oracle creates tablespaces and grants permissions to users

--Create a tablespace and specify the size of the tablespace
CREATE TABLESPACE stockea_tbs
DATAFILE 'D:\app\Administrator\oracle_database\stockea.dbf' size 500M --Modify
to the location defined by yourself D:\app\Administrator\oracle_database
EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO; --2

. Create user
create user stockea1 identified by stockea
default tablespace stockea_tbs; --3

.
Grant connect, resource to stockea ;



The system user is required to execute the above sql, and the role is sysdba to execute ( That is, the dba user authority can execute the above code)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326438278&siteId=291194637