【发布时间】:2019-08-16 21:48:59
【问题描述】:
我正在按照以下步骤在 Ubuntu 上新安装 Oracle XE 数据库:
为 Oracle XE 下载最新的 rpm 文件并运行以下命令来安装数据库:
sudo apt-get install alien
alien oracle-xe-11.2.0-1.0.x86_64.rpm
dpkg -i oracle-xe_11.2.0-2_amd64.deb
然后我确保我拥有 /u01/ 的权限,并且它也在 dba 组下。
现在当我尝试启动数据库时,我遇到了问题:
$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.2.0 Production on Wed Aug 13 15:33:51 2014
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to an idle instance.
SQL> start
SP2-1506: START, @ or @@ command has no arguments
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/app/oracle/product/11.2.0/xe/dbs/initXE.ora'
我发现我没有文件initXE.ora,我只有init.ora,如下所示:
$ ls /u01/app/oracle/product/11.2.0/xe/dbs/
init.ora
更新:
我复制了init.ora 文件并将其重命名为initXE.ora 文件并更新了其中的参数,以便它们指向有效目录,现在当我启动我的数据库时,我收到以下错误:
SQL> startup
ORACLE instance started.
Total System Global Area 1068937216 bytes
Fixed Size 2233344 bytes
Variable Size 616565760 bytes
Database Buffers 444596224 bytes
Redo Buffers 5541888 bytes
ORA-00205: error in identifying control file, check alert log for more info
【问题讨论】:
-
如果你遇到了这个问题,我会告诉你,这会检查 .ctl 文件的权限