UBUNTU下的oralce10安装配置

UBUNTU下的oralce10安装配置

XE版本下载地址
http://www.oracle.com/technology/products/database/xe/index.html

下载地址
http://www.oracle.com/technology/software/products/database/xe/index.html

下载得到文件
oracle-xe-universal_10.2.0.1-1.0_i386.deb


UBUNTU8.04安装准备
apt-get install libaio bc

报错如下:
apt-get install libaio bc
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libaio is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libaio1
E: Package libaio has no installation candidate

把如上两个依赖分开安装:
命令:
apt-get install libaio1

命令:
apt-get install bc

上传XE安装文件
用如下命令安装:

dpkg -i oracle-xe-universal_10.2.0.1-1.0_i386.deb

安装信息如下:
Selecting previously deselected package oracle-xe-universal.
(Reading database ... 33342 files and directories currently installed.)
Unpacking oracle-xe-universal (from oracle-xe-universal_10.2.0.1-1.0_i386.deb) ...
Setting up oracle-xe-universal (10.2.0.1-1.0) ...
Executing Post-install steps...
-e You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database.


配置数据库
命令:
/etc/init.d/oracle-xe configure
这个脚本将要提示你初始化SYS和SYSTEM的密码。 Oracle监听器的监听端口和Oracle Application Server的端口。大多数情况下你只需要默认设置。

我操作信息如下:
root@kiko804:/usr/tmp# /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]:y

HTTP访问管理接口
http://www.sillycat.com:8080/apex/

我是安装到虚拟机的,所以从以上地址向虚拟机发起访问,访问不了。检查发现估计这个HTTP只监听了127.0.0.1:8080

通过TOAD用用户名sys登陆数据库
执行如下命令:
exec dbms_xdb.setListenerLocalAccess
(l_access => FALSE);

命令说明:
To set HTTP Access to Local only:
exec dbms_xdb.setListenerLocalAccess
(l_access => TRUE);

To set HTTP Access to allow remote connects:
exec dbms_xdb.setListenerLocalAccess
(l_access => FALSE);

执行以上命令后,就可以用http://www.sillycat.com:8080/apex/正常登陆了
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值