create temporary tablespace liyy_space_tmp  tempfile 'D:\2020_oracle_space\liyy_space_tmp.dbf',现在小编就来说说关于oraclesql语句怎么设置变量?下面内容希望能帮助到你,我们来一起看看吧!

oraclesql语句怎么设置变量(oracle建立表空间设置用户名和密码设置权限一键执行sql脚本)

oraclesql语句怎么设置变量

-----创建临时表空间--可用数据回滚--紧急抢救--数据暂存区

create temporary tablespace liyy_space_tmp

  tempfile 'D:\2020_oracle_space\liyy_space_tmp.dbf'

  size 50m

  autoextend on

  next 50m maxsize 20480m

  extent management local;

---创建表空间--时间存储数据的空间

create tablespace liyy_space

  logging

  datafile 'D:\2020_oracle_space\liyy_space.db'

  size 50m

  autoextend on

  next 50m maxsize 20480m

  extent management local;

----设置用户名和密码 --设置用户名密码的临时区和数据保存区

create user liyy identified by liyy

  default tablespace liyy_space

  temporary tablespace liyy_space_tmp;

----设置用户名密码的权限--一般设置最大--生成环境--安装需求最小权限授权

grant connect,resource,dba to liyy;

,