Oracle-XE安装问题

系统安装、升级讨论
回复
ghostbb
帖子: 11
注册时间: 2007-12-31 15:21
送出感谢: 0
接收感谢: 0

Oracle-XE安装问题

#1

帖子 ghostbb » 2008-10-20 14:50

如题,我在Ubuntu Server 8.04 server下安装OracleXe版本
1. 安装过程出错,信息如下:

代码: 全选

root@ubuntu-server:/home/jetty# dpkg -i oracle-xe-universal_10.2.0.1-1.0_i386.deb
Selecting previously deselected package oracle-xe-universal.
(Reading database ... 15328 files and directories currently installed.)
Unpacking oracle-xe-universal (from oracle-xe-universal_10.2.0.1-1.0_i386.deb) ...
/var/lib/dpkg/tmp.ci/preinst: 119: bc: not found
/var/lib/dpkg/tmp.ci/preinst: 119: bc: not found
/var/lib/dpkg/tmp.ci/preinst: 119: bc: not found
test: 119: 0: unexpected operator
Setting up oracle-xe-universal (10.2.0.1-1.0) ...
Executing Post-install steps...

/var/lib/dpkg/info/oracle-xe-universal.postinst: 100: bc: not found
/var/lib/dpkg/info/oracle-xe-universal.postinst: 100: bc: not found
/var/lib/dpkg/info/oracle-xe-universal.postinst: 100: bc: not found
/var/lib/dpkg/info/oracle-xe-universal.postinst: 100: bc: not found
/var/lib/dpkg/info/oracle-xe-universal.postinst: 100: bc: not found
/var/lib/dpkg/info/oracle-xe-universal.postinst: 100: bc: not found
/var/lib/dpkg/info/oracle-xe-universal.postinst: 100: bc: not found
/var/lib/dpkg/info/oracle-xe-universal.postinst: 100: bc: not found
test: 100: 0: unexpected operator
/var/lib/dpkg/info/oracle-xe-universal.postinst: 100: bc: not found
test: 100: 0: unexpected operator
/var/lib/dpkg/info/oracle-xe-universal.postinst: 100: bc: not found
-e You must run \'/etc/init.d/oracle-xe configure\' as the root user to configure the database.


root@ubuntu-server:/home/jetty#
root@ubuntu-server:/home/jetty# /etc/init.d/oracle-xe configure

Oracle Database 10g Express Edition Configuration
-------------------------------------------------
This will configure on-boot properties of Oracle Database 10g Express
Edition.  The following questions will determine whether the database should
be starting upon system boot, the ports it will use, and the passwords that
will be used for database accounts.  Press <Enter> to accept the defaults.
Ctrl-C will abort.

Specify the HTTP port that will be used for Oracle Application Express [8080]:

Specify a port that will be used for the database listener [1521]:

Specify a password to be used for database accounts.  Note that the same
password will be used for SYS and SYSTEM.  Oracle recommends the use of
different passwords for each database account.  This can be done after
initial configuration:
Confirm the password:

Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:

Starting Oracle Net Listener...Done
Configuring Database...Done
Starting Oracle Database 10g Express Edition Instance...Done
Installation Completed Successfully.
To access the Database Home Page go to "http://127.0.0.1:8080/apex"
root@ubuntu-server:/home/jetty# ps ax|grep oracle
4377 ?        Ss     0:00 /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/tnslsnr LISTENER -inherit
4422 pts/0    R+     0:00 grep oracle

进入oracle用户,sqlplus / as sysdba 登录后出现如下错误,无法启动数据库:

oracle@ubuntu-server:~$ ./app/oracle/product/10.2.0/client/bin/oracle_env.sh
oracle@ubuntu-server:~$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on Thu Oct 16 17:17:12 2008

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/initXE.ora'
SQL> startup
ORACLE instance started.

Total System Global Area   96468992 bytes
Fixed Size                  1257356 bytes
Variable Size              88080500 bytes
Database Buffers            4194304 bytes
Redo Buffers                2936832 bytes
ORA-00205: error in identifying control file, check alert log for more info


SQL>

请问该如何处理?
:em20
头像
oneleaf
论坛管理员
帖子: 10234
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04
送出感谢: 7 次
接收感谢: 106 次

Re: Oracle-XE安装问题

#2

帖子 oneleaf » 2008-10-20 15:03

使用这个 http://127.0.0.1:8080/apex 先检查一下oracle有没有安装好。
ghostbb
帖子: 11
注册时间: 2007-12-31 15:21
送出感谢: 0
接收感谢: 0

Re: Oracle-XE安装问题

#3

帖子 ghostbb » 2008-10-20 22:49

谢谢斑竹回帖啊!问题已经解决

sudo apt-get install bc

即可! :em06
回复

回到 “系统安装和升级”