标签:xtend 数据 log ORC pfile extent body port logging
一、创建两个数据库的文件(monitor.dbf 和monitor_temp.dbf 两个文件)
CREATE TABLESPACE monitor LOGGING DATAFILE ‘E:\app\owner\oradata\orcl\monitor.dbf‘ SIZE 100M AUTOEXTEND ON NEXT 32M MAXSIZE 500M EXTENT MANAGEMENT LOCAL; create temporary tablespace monitor_temp tempfile ‘E:\app\owner\oradata\orcl\monitor_temp.dbf‘ size 100m autoextend on next 32m maxsize 500m extent management local;
二、创建用户与上面创建的文件形成映射关系(用户名为monitor,密码为monitor)
CREATE USER monitor IDENTIFIED BY monitor DEFAULT TABLESPACE monitor TEMPORARY TABLESPACE monitor_temp;
三、添加权限
grant connect,resource,dba to monitor; grant create session to monitor;
有时候也会用到删除数据库和删除用户的操作,这里也给出删除的语句
四、删除数据库
DROP TABLESPACE monitor INCLUDING CONTENTS AND DATAFILES;
五、删除用户
drop user monitor cascade;
标签:xtend 数据 log ORC pfile extent body port logging
原文地址:https://www.cnblogs.com/jijm123/p/12636092.html