您的位置:首页 > 数据库 > Oracle

oracle创建用户和表空间

2008-12-26 11:40 393 查看
创建用户

create user V7HQS
identified by "password"
default tablespace USERS
temporary tablespace TEMP
profile DEFAULT;
-- Grant/Revoke role privileges
grant aq_administrator_role to V7HQS with admin option;
grant connect to V7HQS with admin option;
grant dba to V7HQS with admin option;
grant resource to V7HQS with admin option;
-- Grant/Revoke system privileges
grant create any table to V7HQS with admin option;
grant unlimited tablespace to V7HQS with admin option;

connect v7hqs/rezin@orcl
/

创建表空间

CREATE TABLESPACE TSDIC
DATAFILE 'e:/TSDIC.dbf' size 200M
EXTENT MANAGEMENT local;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: