Fedora 安装 Oracle XE Database

Fedora 20Oracle XeOracle VM VirtualBoxFedora 安装oracle 数据库

环境:

Oracle VM VirtualBox 虚拟机4.3.6

Server : Fedora-Live-Desktop-x86_64-20-1.iso

Oracle Database:oracle-xe-11.2.0-1.0.x86_64

虛擬機的硬盤最好設置大一點:可以通過gparted-live-0.17.0-4-amd64這個工具來調整硬盤容量。

虛擬機的swap交換空間至少是2G: 可以通過創建文件的方式來改變swap的大小

1、下载合适的数据库版本:

http://www.oracle.com/technetwork/database/database-technologies/express-edition/downloads/index.html

username/password:oraclesuperuser@jiushiwo.com/Supersteve1234

(请不要修改用户密码)

2、将安装包拷贝至虚拟机以下目录:

/usr/local/share

3、解压缩zip文档

[steve@localhost share]$ sudo unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip

解压完毕后会产生Disk1目录

4、进入Disk1目录,并安装oracle rpm包

[steve@localhost share]$ cd Disk1

[steve@localhost share]$ sudo rpm -ivh oracle-xe-11.2.0-1.0.x86_64.rpm

将会出现以下信息:

准备中... ################################# [100%]

正在升级/安装...

1:oracle-xe-11.2.0-1.0 ################################# [100%]

Executing post-install steps...

You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database.

5、Oracle 配置

[steve@localhost Disk1]$ sudo /etc/init.d/oracle-xe configure

将会出现以下信息:

Oracle Database 11g Express Edition Configuration


This will configure on-boot properties of Oracle Database 11g 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]:

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 11g Express Edition to be started on boot (y/n) [y]:n

Starting Oracle Net Listener...Done

Configuring database...Done

Starting Oracle Database 11g Express Edition instance...Done

Installation completed successfully.

说明安装成功。可以通过命令查看监听:

[steve@localhost Disk1]$ lsnrctl status

PS: 执行该命令前先修改profile文件:

[steve@localhost ~]$ sudo vi ~/.bash_profile

然后添加(在下面#所提示的那一行后面添加):

# User specific environment and startup programs

. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh

保存退出后,执行以下命令,以便让配置生效:

[steve@localhost ~]$ source ~/.bash_profile

6、登陆,并创建用户 stevesys,密码为password

[steve@localhost Disk1]$ sqlplus sys/刚才输入的密码@//localhost/XE as sysdba

SQL*Plus: Release 11.2.0.2.0 Production on 星期四 1月 9 15:27:10 2014

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

连接到:

Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production

SQL> create user stevesys identified by password default tablespace users;

用户已创建。

SQL> grant dba to stevesys;

授权成功。

SQL> grant create table to stevesys;

授权成功。

SQL> grant create trigger to stevesys;

授权成功。

SQL> quit

7、测试新用户stevesys

[steve@localhost Disk1]$ sqlplus stevesys/password@XE

SQL*Plus: Release 11.2.0.2.0 Production on 星期四 1月 9 15:30:46 2014

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

连接到:

Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production

至此,数据库安装成功!

命令:

查看监听:lsnrctl status

启动监听:lsnrctl start

启动oracle:sudo /etc/init.d/oracle-xe start

tnsnames.ora的目录:/u01/app/oracle/product/11.2.0/xe/network/admin/tnsnames.ora

listener.ora的目录:/u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora

PS:

1、如果想要重新配置oracle, 删除以下文件即可:

/etc/sysconfig/oracle-xe

2、如果是手动启动oracle服务,启动顺序为:

启动监听 -〉启动oracle

3、如果从其他客户端远程访问该数据库,需要开放端口:请移步至:

http://ironurbane.iteye.com/blog/2002387

Linux(Fedora) 安装 Oracle XE Database的更多相关文章

  1. 百度文库,linux下安装oracle客户端

    linux单独安装oracle client(oracle客户端) 更新:2013-10-17 18:30 | 标签:linux oracle   1.要远程使用oracle,先下载下面三个文件,注意 ...

  2. DBA_在Linux上安装Oracle Database11g数据库(案例)

    2014-08-08 Created By BaoXinjian

  3. 解决在Linux下安装Oracle时的中文乱码问题

    本帖最后由 TsengYia 于 2012-2-22 17:06 编辑 解决在Linux下安装Oracle时的中文乱码问题 操作系统:Red Hat Enterprise Linux 6.1数据库:O ...

  4. linux 手动安装 oracle(转)

    Linux下安装Oracle 11 此为参照CU论坛上的高人写的文章并结合自身环境增加了点细节性的东西 操作系统 CentOS 4.2 2.6.11.8内核 安装准备 下载Oracle11安装包 内存 ...

  5. CentOS Linux 系统 安装oracle 11g

    CentOS Linux 系统 安装oracle 11g 在Linux系统上安装oracle是比较麻烦,需要配置各种变量啥的,o(︶︿︶)o ,但是没办法,有些东西你总的去接触,而且接触理解的越早越深 ...

  6. linux下安装Oracle时交换空间不足的解决方法

    摘:linux下安装Oracle时交换空间不足的解决方法 linux上安装Oracle时交换空间不足的解决办法 增加交换空间有两种方法: 严格的说,在系统安装完后只有一种方法可以增加swap,那就是本 ...

  7. linux下安装oracle及weblogic

    安装weblogic 下载weblogic http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-for-dev-17 ...

  8. Ubuntu Linux下安装Oracle JDK

    from://http://blog.csdn.net/gobitan/article/details/24322561 Ubuntu Linux下安装Oracle JDK Dennis Hu 201 ...

  9. linux上安装oracle

    Linux上安装Oracle 10g:  http://69520.blog.51cto.com/59520/91156

随机推荐

  1. JavaService实现Windows服务

    下载JavaService.exe文件 下载地址:http://pan.baidu.com/s/1boWk1uJ(支持Windows 7 64位) 创建server文件目录 在D盘新建一个文件夹如:D ...

  2. CJOJ 2482 【POI2000】促销活动

    CJOJ 2482 [POI2000]促销活动(STL优先队列,大根堆,小根堆) Description 促销活动遵守以下规则: 一个消费者 -- 想参加促销活动的消费者,在账单下记下他自己所付的费用 ...

  3. Android事件分发理解

    Android事件分发机制是个难点和重点,结合下各家,写点自己的理解.. 首先抛出一个小问题,写一个button的点击事件 button.setOnClickListener(new OnClickL ...

  4. 3,Spring Boot热部署

    问题的提出: 在编写代码的时候,你会发现我们只是简单把打印信息改变了,就需要重新部署,如果是这样的编码方式,那么我们估计一天下来就真的是打几个Hello World就下班了.那么如何解决热部署的问题呢 ...

  5. sleep() 和 wait() 有什么区别?

    sleep()方法是使线程停止一段时间的方法.在sleep 时间间隔期满后,线程不一定立即恢复执行.这是因为在那个时刻,其它线程可能正在运行而且没有被调度为放弃执行,除非"醒来"的 ...

  6. CentOS7 搭建Ambari-Server,安装Hadoop集群(一)

    2017-07-05:修正几处拼写错误,之前没发现,抱歉! 第一次在cnblogs上发表文章,效果肯定不会好,希望各位多包涵. 编写这个文档的背景是月中的时候,部门老大希望我们能够抽时间学习一下Had ...

  7. Git 使用问题 - win7 git bash下git pull失败

    win7 旗舰版,从github上pull代码时,git bash命令出现错误 Administrator@rust-PC /g/rust_proj/cardslib (master) $ git - ...

  8. java多态加深

    当超类对象引用变量引用子类对象时,被引用对象的类型而不是引用变量的类型决定了调用谁的成员方法,但是这个被调用的方法必须是在超类中定义过的,也就是说被子类覆盖的方法. public class Dtai ...

  9. UWP:使用Behavior实现Button点击动态效果

    废话不多说,先上效果 没有做成安卓那种圆形的原因是...人家真的不会嘛... 好了下面是正文: 首先在工程中引入Behavior的库,我们使用Nuget. 在项目->引用上点击右键,点击管理Nu ...

  10. (转)Spring注解完成Bean的定义

    使用Spring注解完成Bean的定义 2010-04-21 16:48:54|  分类: spring|举报|字号 订阅     下载LOFTER客户端     通过@Autowired或@Reso ...