Fedora 安装 Oracle XE Database

环境:

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文档

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

解压完毕后会产生Disk1目录


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

[SuperKKig@localhost share]$ cd Disk1

[SuperKKig@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 配置

[SuperKKig@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.


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

[SuperKKig@localhost Disk1]$ lsnrctl status
[color=red]PS: 执行该命令前先修改profile文件:
[SuperKKig@localhost ~]$ sudo vi ~/.bash_profile
然后添加:
# User specific environment and startup programs
. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh
保存退出后,执行以下命令,以便让配置生效:
[SuperKKig@localhost ~]$ source ~/.bash_profile[/color]

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

[SuperKKig@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

[SuperKKig@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、如果从其他客户端远程访问该数据库,需要开放端口:请移步至:

[url]http://ironurbane.iteye.com/blog/2002387[/url]

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
本系统的研发具有重大的意义,在安全性方面,用户使用浏览器访问网站时,采用注册和密码等相关的保护措施,提高系统的可靠性,维护用户的个人信息和财产的安全。在方便性方面,促进了校园失物招领网站的信息化建设,极大的方便了相关的工作人员对校园失物招领网站信息进行管理。 本系统主要通过使用Java语言编码设计系统功能,MySQL数据库管理数据,AJAX技术设计简洁的、友好的网址页面,然后在IDEA开发平台中,编写相关的Java代码文件,接着通过连接语言完成与数据库的搭建工作,再通过平台提供的Tomcat插件完成信息的交互,最后在浏览器中打开系统网址便可使用本系统。本系统的使用角色可以被分为用户和管理员,用户具有注册、查看信息、留言信息等功能,管理员具有修改用户信息,发布寻物启事等功能。 管理员可以选择任一浏览器打开网址,输入信息无误后,以管理员的身份行使相关的管理权限。管理员可以通过选择失物招领管理,管理相关的失物招领信息记录,比如进行查看失物招领信息标题,修改失物招领信息来源等操作。管理员可以通过选择公告管理,管理相关的公告信息记录,比如进行查看公告详情,删除错误的公告信息,发布公告等操作。管理员可以通过选择公告类型管理,管理相关的公告类型信息,比如查看所有公告类型,删除无用公告类型,修改公告类型,添加公告类型等操作。寻物启事管理页面,此页面提供给管理员的功能有:新增寻物启事,修改寻物启事,删除寻物启事。物品类型管理页面,此页面提供给管理员的功能有:新增物品类型,修改物品类型,删除物品类型。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

SuperKKig

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值