Chinaunix首页 | 论坛 | 博客
  • 博客访问: 77339
  • 博文数量: 9
  • 博客积分: 133
  • 博客等级: 二等列兵
  • 技术积分: 115
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-08 14:53
文章分类

全部博文(9)

文章存档

2011年(5)

2010年(4)

分类: Oracle

2010-11-11 18:46:09

权且记录下来,以备以后查询
安装的是oracle-xe-univ-10.2.0.1-1.0.i386.rpm 软件包,可以从Oracle官网上下载(需要是注册用户才能下载).

  1. [root@localhost ~]# rpm -ivh oracle-xe-univ-10.2.0.1-1.0.i386.rpm
  2. Preparing... ########################################### [100%]
  3.    1:oracle-xe-univ ########################################### [100%]
  4. Executing Post-install steps...
  5. You must run '/etc/init.d/oracle-xe configure' AS the root user TO
  6. configure the DATABASE.
安装完成之后提示需要配置,配置过程如下
  1. [root@localhost ~]# /etc/init.d/oracle-xe configure

  2. Oracle DATABASE 10g Express Edition Configuration
  3. -------------------------------------------------

  4. This will configure on-boot properties of Oracle DATABASE 10g Express
  5. Edition. The following questions will determine whether the DATABASE should
  6. be starting upon system boot, the ports it will USE, AND the passwords that
  7. will be used FOR DATABASE accounts. Press TO accept the defaults.
  8. Ctrl-C will abort.

  9. Specify the HTTP port that will be used FOR Oracle Application Express [8080]:8081

  10. Specify a port that will be used FOR the DATABASE listener [1521]:

  11. Specify a password TO be used FOR DATABASE accounts. Note that the same
  12. password will be used FOR SYS AND SYSTEM. Oracle recommends the USE of
  13. different passwords FOR each DATABASE account. This can be done after
  14. initial configuration:
  15. Confirm the password:

  16. Do you want Oracle DATABASE 10g Express Edition TO be started ON boot (y/n) [y]:y

  17. Starting Oracle Net Listener...Done
  18. Configuring DATABASE...Done
  19. Starting Oracle DATABASE 10g Express Edition Instance...Done
  20. Installation Completed Successfully.
  21. TO access the DATABASE Home Page go TO ""

以上三处需要配置,分别是web端口,数据库监听端口和system用户密码.
安装完毕之后发现terminal中并没有sqlplus命令,修改环境变量如下

  1. [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) |
给主人留下些什么吧!~~