进入oracle用户后获取DBA权限运行.sql文件
sqlplus / as sysdba @create_user.sql
以下是.sql文件命令,主要是用来创建表空间和用户的。
------------------------创建表空间---------------------------
CREATE TABLESPACE ids DATAFILE '/u01/oradata/orcl/ids.dbf' SIZE 200m AUTOEXTEND ON NEXT 300M MAXSIZE UNLIMITED;
-------------------------创建用户----------------------------
CREATE user ids identified by ids default tablespace ids temporary tablespace TEMP profile DEFAULT;
----------------------给用户分配权限-------------------------
Grant dba to ids;
--------------------------提交-------------------------------
commit;
运行.sql文件后报错。
Connected to an idle instance.
CREATE TABLESPACE ids DATAFILE '/u01/oradata/orcl/ids.dbf' SIZE 200m AUTOEXTEND ON NEXT 300M MAXSIZE UNLIMITED
*
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
CREATE user ids identified by ids default tablespace ids temporary tablespace TEMP profile DEFAULT
*
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
Grant dba to ids
*
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
commit
*
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
是缺少什么?
求大神解答!
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。