Oracle 创建 Schema
时间:2021-07-01 10:21:17
帮助过:217人阅读
--
创建临时
CREATE USER gzmpc IDENTIFIED BY PASSWORD;
--
授权
GRANT CREATE SESSION TO gzmpc;
CREATE TABLESPACE gzmoc_wk DATAFILE ‘gzmoc_wk.dat‘ SIZE 10M AUTOEXTEND ON;
CREATE TEMPORARY TABLESPACE gzmoc_wk_tablespace_temp TEMPFILE ‘gzmoc_tabspace_temp.dat‘ SIZE 5M AUTOEXTEND ON;
DROP USER gzmpc;
--
开始创建数据库
CREATE USER gzmpc
IDENTIFIED BY PASSWORD
DEFAULT TABLESPACE gzmoc_wk
TEMPORARY TABLESPACE gzmoc_wk_tablespace_temp;
--
授权
grant create session to gzmpc;
grant create table to gzmpc;
grant unlimited tablespace to gzmpc;
--
最后修改一下密码
ALTER USER gzmpc IDENTIFIED BY gzmpc;
Oracle 创建 Schema
标签:grant dba pre rac pass ace tabs 数据库 alt