首页  >  文章  >  数据库  >  ORACLE 笔记

ORACLE 笔记

WBOY
WBOY原创
2016-06-07 15:21:011050浏览

1、创建临时表空间 CREATE TEMPORARY TABLESPACE test_temp TEMPFILE '/u01/app/oracle/oradata/ORCL/mpr_temp_01.dbf' SIZE 32M AUTOEXTEND ON NEXT 32M MAXSIZE 2048M EXTENT MANAGEMENT LOCAL; 2、创建表空间 CREATE TABLESPACE test_da ta LOGGING DATAF

1、创建临时表空间

CREATE TEMPORARY TABLESPACE test_temp
TEMPFILE '/u01/app/oracle/oradata/ORCL/mpr_temp_01.dbf'
SIZE 32M
AUTOEXTEND ON
NEXT 32M MAXSIZE 2048M
EXTENT MANAGEMENT LOCAL;

2、创建表空间

CREATE TABLESPACE test_data
ORACLE 笔记LOGGING
ORACLE 笔记DATAFILE '/u01/app/oracle/oradata/ORCL/mpr_data_01.DBF'
ORACLE 笔记SIZE 32M
ORACLE 笔记AUTOEXTEND ON
ORACLE 笔记NEXT 32M MAXSIZE 2048M
ORACLE 笔记EXTENT MANAGEMENT LOCAL;

3、创建用户

create user mpr_mcrs_dev
  identified by mpr_mcrs_dev
default tablespace mpr_data_01 temporary tablespace mpr_temp_01;

4、给权限

grant connect,resource,create any table,drop any table,create sequence,
      select any table, create any index, drop any index,
      alter any trigger, create any trigger, drop any trigger,
      alter any type, create any type, drop any type,debug connect session,debug any procedure,
      create any view, drop any view, create any directory,
      create procedure, query rewrite, create session to mpr_mcrs_dev;

5、

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn