oracle创建表空间和用户
一、创建表空间
#mkdir -p /data/oracle
#sqlplus / as sysdba
SQL>conn system/密码 登录system用户
建立ids表空间和临时表空间
SQL>CREATE TABLESPACE ids LOGGING DATAFILE '/data/oracle/ids.dbf' size 100m autoextend on next 32m maxsize 500m extent management local;
SQL>create temporary tablespace ids_temp tempfile '/data/oracle/ids_temp.dbf' size 100m autoextend on next 32m maxsize 500m extent management local;
二、创建用户
SQL>create user ids identified by idsatspring default tablespace ids temporary tablespace ids_temp;
三、用户授权
SQL>grant connect,resource,dba to ids;
SQL>grant create session to ids;
四、删除数据库
SQL>drop tablespace ids including contents and datafiles;
五、删除用户
SQL>drop user ids cascade;