`
zealotds
  • 浏览: 122368 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论

Oracle 11gr2 XE on Linux64

阅读更多
XE is free to download and use for development. Currently, it only provides Linux64 version (x86_64) or Win32.

Firstly, you need a Oracle account to download the RPM package from Oracle official website, of course. In this tutorial, I have oracle-xe-11.2.0-1.0.x86_64.rpm downloaded. And I used RHEL 5.0, which is officially supported by this version of Oracle. Corresponding CentOS5 should work well too.

Another very important package is rlwrap-0.37-1.el5.i386.rpm, if you want to use SqlPlus in Linux shell, check "Try SqlPlus" section.


1. Installation: Official Doc
# a. download
# b. install
sudo rpm -ivh downloads/oracle-xe-11.2.0-1.0.x86_64.rpm


2. Configuration

# add oracle variables to your personal profile (i.e. ~/.bashrc)
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe


# a. start the configure process
# for the last question "Whether you want the database to starts
# automatically when the computer starts (next reboot)?"
# please choose YES because this will create and configure the default
# database instance for you automatically and you can disable db auto-start later
# by sudo /etc/init.d/oracle-xe disable
sudo /etc/init.d/oracle-xe configure

# b. reboot (suggested)
sudo reboot

# c. check Oracle status, and it should print messages like:
#
# LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 19-MAR-2013 16:18:37
# 
# Copyright (c) 1991, 2011, Oracle.  All rights reserved.
# 
# Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
# STATUS of the LISTENER
# ------------------------
# Alias                     LISTENER
# Version                   TNSLSNR for Linux: Version 11.2.0.2.0 - Production
# Start Date                19-MAR-2013 15:54:18
# Uptime                    0 days 0 hr. 24 min. 19 sec
# Trace Level               off
# Security                  ON: Local OS Authentication
# SNMP                      OFF
# Default Service           XE
# Listener Parameter File   /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
# Listener Log File         /u01/app/oracle/product/11.2.0/xe/log/diag/tnslsnr/XIS3TM04/listener/alert/log.xml
# Listening Endpoints Summary...
#   (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
#   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=XIS3TM04.spss.com)(PORT=1521)))
#   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=XIS3TM04.spss.com)(PORT=8080))(Presentation=HTTP)(Session=RAW))
# Services Summary...
# Service "PLSExtProc" has 1 instance(s).
#   Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
# Service "XE" has 1 instance(s).
#   Instance "XE", status READY, has 1 handler(s) for this service...
# Service "XEXDB" has 1 instance(s).
#   Instance "XE", status READY, has 1 handler(s) for this service...
# The command completed successfully

# if not, check the deinstalltion section

sudo /etc/init.d/orace-xe status

# d. if not, try to restart the oracle by yourself
sudo /etc/init.d/oracle-xe stop
sudo /etc/init.d/oracle-xe start


3. Try SqlPlus

# to use command history feature in sqlplus, you need rlwrap:
# http://stackoverflow.com/questions/3456024/sqlplus-history-under-linux
sudo rpm -ivh rlwrap-0.37-1.el5.i386.rpm

# add oracle executable to your personal profile (i.e. ~/.bashrc)
export PATH=$ORACLE_HOME/bin:$PATH

# add following lines to your .bashrc to ease the sqlplus login
alias sqll="sqlplus SYSTEM/<pwd_provided_in_2.a> @XE"
alias sqlwrap="rlwrap sqlplus SYSTEM/<pwd_provided_in_2.a>@XE"
# or
alias sqll="sqlplus SYS/<pwd_provided_in_2.a> @XE AS SYSDBA"
alias sqlwrap="rlwrap sqlplus SYS/<pwd_provided_in_2.a> @XE AS SYSDBA"


# create a login.sql in your working directory, this script will be
# executed automatically when you start sqlplus

# source your profile and simply type 'sqlwrap' in bash to login SqlPlus
. .bashrc
sqlwrap

# to exectue sql script file without login
echo exit | sqlplus user/pass@connect @scriptname




4. Deinstallatin & Diagnostic: Official Doc

# b. in addition of steps above, if you are re-installing
#    also clean the dir '/var/temp/.oracle'
# c. check if user 'oracle' is functional
# log in and check environment variable like above
su - oracle



分享到:
评论

相关推荐

    Linux系统对应64位的oracle11gr2数据库

    Red Hat系列,CentOS系列,Ubuntu系列的Linux系统都可以安装该数据库。该数据库是从官网下载回来的,绝对可靠。

    Oracle11gR2 (p10404530_112030_Linux-x86-64_1of7.part2.rar)

    Oracle11gR2 (p10404530_112030_Linux-x86-64_2of7.zip)文件分割成 2个压缩包: https://download.csdn.net/download/weixin_43800734/72501554 https://download.csdn.net/download/weixin_43800734/72510520 ...

    ORACLE11GR2_RAC_linux安装

    oracle linux 6.4上安装部署 oracle RAC 11G R2,oracle linux上安装oracle是最简便的。

    linux64oracle11gR2bbed

    linux64_oracle11gR2_bbed工具需要的文件。

    Linux oracle 11gR2依赖包全套

    在Linux环境下部署Oracle 11gR2,需要一系列特定的依赖包来确保系统的稳定运行和功能完整。这个“Linux oracle 11gR2依赖包全套”包含了所有必要的组件,帮助用户顺利完成安装过程。 首先,让我们了解一下Oracle 11...

    Oracle11gR2 (p10404530_112030_Linux-x86-64_3of7.zip)

    Oracle11gR2 (p10404530_112030_Linux-x86-64_2of7.zip)文件分割成 2个压缩包: https://download.csdn.net/download/weixin_43800734/72501554 https://download.csdn.net/download/weixin_43800734/72510520 ...

    Oracle 11gR2官方rpm依赖包

    Oracle 11gR2是Oracle数据库的一个重要版本,它为用户提供了一套全面的企业级数据库解决方案。在安装Oracle 11gR2之前,确保系统满足所有必要的依赖性是至关重要的。这些依赖包通常以RPM(Red Hat Package Manager)...

    Oracle 11gR1 RAC On Linux Using NFS

    总之,Oracle 11gR1 RAC on Linux using NFS是一种高效、高可用的数据库解决方案,涉及多个领域的专业知识,包括数据库管理、操作系统、网络和存储。理解和掌握这些知识点对于成功部署和管理这样的系统至关重要。

    linux.x64_11gR2.part1.rar

    oracle 11g R2软件: linux.x64_11gR2_client.zip、 ...linux.x64_11gR2_database_2of2.zip 适用于linux 64位系统,文件分割成 5个 压缩包,必须集齐5个 文件后才能一起解压一起使用: linux.x64_11gR2.part5.rar ...

    Oracle11gR2官网下载地址

    2. **第二个安装包**:`http://download.oracle.com/otn/nt/oracle11g/112010/win32_11gR2_database_2of2.zip` 这两个链接分别提供了 Oracle 11g R2 数据库软件的两个安装部分。用户需要同时下载这两个文件,并解压...

    oracle11gR2 linux6 64,32全套依赖包

    "oracle11gR2 linux6 64,32全套依赖包"这个标题表明,这个压缩包包含了在64位和32位Linux系统上安装Oracle 11g R2所需的全部依赖软件包。 描述中的"redhat6 centos6 oracle11gr2安装所需全套(32,64)依赖包...

    oracle linux 11gR2 x86-64 instant client with sqplus sqlldr imp exp工具

    Oracle Linux 11gR2 x86-64 Instant Client是Oracle公司为Linux平台提供的一款轻量级数据库连接工具,专为那些不需要完整数据库服务器安装但需要与Oracle数据库进行交互的应用程序设计。这个版本特别适用于开发人员...

    Oracle11gR2 (p13390677_112040_Linux-x86-64_6of7.zip)

    Oracle11gR2 Linux版本linux_x86_64_oracle11.2.0.4 文件分割成7个压缩包,必须集齐7个文件后才能一起解压一起使用: p13390677_112040_Linux-x86-64_7of7.zip下载地址: ... p13390677_112040_Linux-x86-64_6of7.zip...

    Oracle11gR2 CentOS7 静默安装

    - 下载Oracle11g Linux安装文件:**linux.x64_11gR2_database_1of2.zip** 和 **linux.x64_11gR2_database_2of2.zip**。 - 使用Xmanager Xftp工具将这两个文件上传至虚拟机的**/tmp**目录中。 #### 二、操作系统准备...

    Oracle11gR2 (p10404530_112030_Linux-x86-64_7of7.zip)

    Oracle11gR2 (p10404530_112030_Linux-x86-64_2of7.zip)文件分割成 2个压缩包: https://download.csdn.net/download/weixin_43800734/72501554 https://download.csdn.net/download/weixin_43800734/72510520 ...

    linux.x64_11gR2.part3.rar

    oracle 11g R2软件: linux.x64_11gR2_client.zip、 ...linux.x64_11gR2_database_2of2.zip 适用于linux 64位系统,文件分割成 5个 压缩包,必须集齐5个 文件后才能一起解压一起使用: linux.x64_11gR2.part5.rar ...

    Oracle11gR2 (p10404530_112030_Linux-x86-64_6of7.zip)

    Oracle11gR2 (p10404530_112030_Linux-x86-64_2of7.zip)文件分割成 2个压缩包: https://download.csdn.net/download/weixin_43800734/72501554 https://download.csdn.net/download/weixin_43800734/72510520 ...

    Oracle11gR2 for Linux 静默安装

    Oracle11gR2 for Linux 静默安装;Oracle11gR2 for Linux 静默安装;Oracle11gR2 for Linux 静默安装;

    Oracle_11gR2_win64bit 百度云下载

    Oracle 11g是甲骨文公司推出的最新数据库软件,Oracle 11g有400多项功能,经过了1500多个小时的测试,开发工作量达到了3.6万人/月,相当于1000名员工连续研发3年。Oracle 11g提供了高性能、伸展性、可用性和安全性,...

Global site tag (gtag.js) - Google Analytics