首页 文章

ubuntu 12.04上的Oracle 11g XE初始化

提问于
浏览
2

我正在学习本教程:http://sysadminnotebook.blogspot.com/2012/10/installing-oracle-11g-r2-express.html

我成功安装并启动了oracle数据库 . 现在我想从bash连接到那个数据库,所以我找到了这个命令:

sqlplus sys as sysdba

它要求输入密码,在我的情况下是oracle,在我提供之后,我得到:ORA-01031:权限不足

我该怎么办?

EDIT: 我需要添加组dba并将自己添加到该组中 . 但是我现在还有其他问题 . 我想创建用户,所以我做了:

CREATE USER myuser IDENTIFIED BY password
default tablespace users
temporary tablespace temp;

我得到了:ORA-01034:ORACLE不可用 . 我试过:STARTUP但是我得到了:

ORA-01078:处理系统参数失败LRM-00109:无法打开参数文件'/u01/app/oracle/product/11.2.0/xe/dbs/initXE.ora'

我有'/u01/app/oracle/product/11.2.0/xe/dbs/init.ora'文件但不是initXE.ora

2 回答

  • 0

    o / s用户是dba组的成员吗?

  • 2

    如果这是一个新安装的Oracle,并且您没有/u01/app/oracle/product/11.2.0/xe/dbs/中的initXE.ora参数文件,则表示您需要先创建XE DB . 要做到这一点,首先运行/u01/app/oracle/product/11.2.0/xe/bin/createdb.sh脚本 .

相关问题