数据库创建表空间,用户、密码,授权

数据库创建表空间,用户、密码,授权
C:Userswangfg>sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Produc

Copyright (c) 1982, 2005, Oracle. Al

SQL> connect sys/wangfg as sysdba
已连接。
SQL> create tablespace tos2016 datafile 'F:oracleproduct10.2.0oradataorcl os2016.dbf' size 20M autoextend on next 20m;

备注:orcl为数据库实例名。

表空间已创建。

SQL> create user tos2016 identified by ehl1234 default tablespace tos2016 temporary tablespace temp;

用户已创建。

SQL> grant connect to tos2016 ;


授权成功。

SQL> grant dba to tos2016 ;

SQL> exit

删除库

drop user tos2014 cascade;
drop tablespace tos2014 including contents and datafiles;

原文地址:https://www.cnblogs.com/wangfg/p/5112391.html