打开Oracle的DBCA
在windows服务中查看刚才创建的acyx实例
使用PL/SQL Developer登录
弹出如下提示框
启动服务OracleOraDb11g_home1TNSListener
再次尝试使用oracle账号PL/SQL Developer登录,登录成功
新建一个SQL窗口
创建临时表空间
create temporary tablespace acyx_temp tempfile 'D:\oracle\acyx_temp_01_20180502.dbf' size 100m autoextend on next 50m maxsize 200m;
若需要删除表空间使用如下代码(不可直接在磁盘中删除指定的XX.dbf)
drop tablespace acyx_temp_01_20180502.dbf including contents and datafiles;
创建表空间
create tablespace acyx datafile 'D:\oracle\acyx_01_20180502.dbf' size 200m autoextend on next 100m maxsize 400m;
创建用户并赋权
create user cb identified by cb default tablespace acyx temporary tablespace acyx_temp;grant dba to cb;
使用上述的赋权用户cb登录