标签:creat name manage gem 映射 datafile AC nec def
创建数据库文件
CREATE TABLESPACE MyDataBase LOGGING DATAFILE ‘D:\Oracle\database\MyDataBase.dbf‘ SIZE 100M AUTOEXTEND ON NEXT 32M MAXSIZE 500M EXTENT MANAGEMENT LOCAL;
MyDataBase:数据库名称
D:\Oracle\database\MyDataBase.dbf:数据库文件目录
创建数据库临时文件
create temporary TABLESPACE MyDataBase_temp tempfile ‘D:\Oracle\database\MyDataBase_temp.dbf‘ SIZE 100M AUTOEXTEND ON NEXT 32M MAXSIZE 500M EXTENT MANAGEMENT LOCAL;
MyDataBase_temp:数据库临时文件名称
D:\Oracle\database\MyDataBase_temp.dbf:数据库临时文件目录
CREATE USER username IDENTIFIED BY password DEFAULT TABLESPACE MyDataBase TEMPORARY TABLESPACE MyDataBase_temp;
username:用户名
password:密码
MyDataBase:映射的数据库名称
MyDataBase_temp:映射的数据库临时文件名称
grant connect,resource,dba to username;
grant create session to username;
conn sys/dwh as sysdba;
drop tablespace MyDataBase including contents and datafiles;
drop tablespace MyDataBase_temp including contents and datafiles;
drop user username cascade;
标签:creat name manage gem 映射 datafile AC nec def
原文地址:https://www.cnblogs.com/GUOq/p/8761383.html