oracle建库,建数据库表

--创建本地工作空间
create tablespace tms datafile 'D:\app\product\11.2.0\dbhome_2\tms_data.dbf' size 500M;
--创建用户名、初始化密码
--格式: create user 用户名 identified by 密码 default tablespace 表空间表;
create user tms identified by tms default tablespace tms;
--授权
grant connect,resource to tms; --表示把 connect,resource权限授予news用户

grant dba to tms; --表示把 dba权限授予给news用户

posted @ 2018-12-16 14:02  菜菜鸟驿站  阅读(897)  评论(0编辑  收藏  举报