How to create a table space in ORACLE, create a table space user, and authorize it

-- Create a table space (weixinDemo is the table space name. D:\app\Administrator\product\11.2.0\dbhome_1\database\weixinDemo.ora represents the path where the table space is stored)

create tablespace weixinDemo datafile 'D:\app\Administrator\product\11.2.0\dbhome_1\database\weixinDemo.ora' size 1000m

-- Add users to the table space (the first weixin is the user name, the second weixin is the password, and weixinDemo is the table space)
create user weixin identified by weixin default tablespace weixinDemo quota 500m on users;

-- Authorize this user (weixin means authorized user)

grant all privileges to weixin;

Guess you like

Origin blog.csdn.net/tiehou/article/details/54092062