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. Execution failed for task':app;clean'

    Execution failed for task':app;clean' >Unable to delete directory:f:xxxxxbuild\output\apk当程序出先这个错 ...

  2. Java数据类型+练习

    java基础数据类型: 四类八种: 1, 整数型 byte   2的8次方(取值范围--<-128~127>)--1个字节 short   2的16次方--2个 int   2的32次方- ...

  3. Django学习(五)---模板扩展,开发博客页面

    (一)博客主页面开发 1.模板中可使用for循环,语法格式为: {% for xs in xxs %} HTML语句 {% endfor %} 2.更改app下的views.py, 获取后台model ...

  4. 一个简单的时间轴demo

    一个时间轴的组成 使用一个块级元素包裹内容,并未块级元素设置边框 定义圆形或者菱形等元素标签,子元素设置偏移或者定位元素将图标定位到边框上 使其中的内容不溢出,自动换行,内容自动撑高 英文自动换行:w ...

  5. # .NET切面编程——PostSharp

    目录 概念 实现方式 .Net平台的切面实现 PostSharp示例 概念 Aspect-Oriented Programming(AOP):想想OOP是不是有些熟悉,AOP翻译过来的意思就是面向切面 ...

  6. elasticsearch REST API方式批量插入数据

    elasticsearch REST API方式批量插入数据 1:ES的服务地址  http://127.0.0.1:9600/_bulk 2:请求的数据体,注意数据的最后一行记得加换行 { &quo ...

  7. Scala关于软件的安装

    1.安装JDK 因为很多系统都会预装java,所以我们首先要测试Java版本.这里我们要求要在1.8以上.在终端输入java -version来测试版本 Windows 关于Windows,我们首先要 ...

  8. tomcat内存溢出之PermGen space

    线上一台web服务器不能正常访问了,检查了一下,tomcat进程还在,就是web不能正常访问,重启一下tomcat恢复正常,查询日志,发现提示内存溢出,如下图: java.lang.OutOfMemo ...

  9. (转).tar.gz文件和.rpm文件的区别

    场景:在Linux环境下安装软件时候总是会遇到安装软件格式的选择,以及安装. 1 软件的二进制分发 Linux软件的二进制分发是指事先已经编译好二进制形式的软件包的发布形式, 其优点是安装使用容易,缺 ...

  10. [学习笔记] Splay Tree 从入门到放弃

    前几天由于出行计划没有更博QwQ (其实是因为调试死活调不出来了TAT我好菜啊) 伸展树 伸展树(英语:Splay Tree)是一种二叉查找树,它能在O(log n)内完成插入.查找和删除操作.它是由 ...