权且记录下来,以备以后查询
安装的是oracle-xe-univ-10.2.0.1-1.0.i386.rpm 软件包,可以从Oracle官网上下载(需要是注册用户才能下载).
- [root@localhost ~]# rpm -ivh oracle-xe-univ-10.2.0.1-1.0.i386.rpm
- Preparing... ########################################### [100%]
- 1:oracle-xe-univ ########################################### [100%]
- Executing Post-install steps...
- You must run '/etc/init.d/oracle-xe configure' AS the root user TO
- configure the DATABASE.
安装完成之后提示需要配置,配置过程如下
- [root@localhost ~]# /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 TO accept the defaults.
- Ctrl-C will abort.
- Specify the HTTP port that will be used FOR Oracle Application Express [8080]:8081
- 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
- 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 ""
以上三处需要配置,分别是web端口,数据库监听端口和system用户密码.
安装完毕之后发现terminal中并没有sqlplus命令,修改环境变量如下
- [root@localhost XE]# vim /etc/bashrc
#在末尾增加如下语句
export ORACLE_SID=XE
export ORACLE_OWNER=oracle
export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
export PATH=$PATH:$ORACLE_HOME/bin:/sbin
#source一下生效
[root@localhost XE]# source /etc/bashrc
阅读(3651) | 评论(0) | 转发(0) |