- 浏览: 3470602 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
wanglf1207:
EJB的确是个不错的产品,只是因为用起来有点门槛,招来太多人吐 ...
weblogic-ejb-jar.xml的元素解析 -
qwfys200:
总结的不错。
Spring Web Flow 2.0 入门 -
u011577913:
u011577913 写道也能给我发一份翻译文档? 邮件437 ...
Hazelcast 参考文档-4 -
u011577913:
也能给我发一份翻译文档?
Hazelcast 参考文档-4 -
songzj001:
DbUnit入门实战
在debian上安装oracle 10g express
若是要安装oracle10G,可能要麻烦些,但若是安装oracle 10g express的话,那就很简单:
1、修改/etc/apt/source.list,添加oracle的源:
deb http://oss.oracle.com/debian unstable main non-free
2、进行更新和安装
aptitude update
aptitude install oracle-xe-universal
3、进行初始的密码设置
/etc/init.d/oracle-xe configure
若服务器无GUI,可以这样远程管理
ssh -L 8080:localhost:8080 user@IP_of_your_server
firefox http://localhost:8080/apex/
Install Oracle 10g Express Edition on Debian
Oracle Database Express Edition Installation Guide
10g Release 2 (10.2) for Linux
http://download.huihoo.com/database/oracle/
下载 Oracle Database 10g Express Edition for Linux x86
- Available for Debian, Mandriva, Novell, Red Hat and Ubuntu
文件 Oracle Database 10g Express Edition (Universal)
oracle-xe-universal_10.2.0.1-1.0_i386.deb (262,440,214 bytes) (cksum 3404538446) *Debian package
安装 debian:/home/huihoo/database/oracle# dpkg -i oracle-xe-universal_10.2.0.1-1.0_i3 86.deb
(Reading database ... 76128 files and directories currently installed.)
Unpacking oracle-xe-universal (from oracle-xe-universal_10.2.0.1-1.0_i386.deb) . ..
This system does not meet the minimum requirements for swap space. Based on
the amount of physical memory available on the system, Oracle Database 10g
Express Edition requires 1006 MB of swap space. This system has 818 MB
of swap space. Configure more swap space on the system and retry the installati on.
dpkg: error processing oracle-xe-universal_10.2.0.1-1.0_i386.deb (--install):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
oracle-xe-universal_10.2.0.1-1.0_i386.deb
Create 1GB swap file if needed.
dd if=/dev/zero of=/tmp/tmpswap bs=1k count=1024000
chmod 600 /tmp/tmpswap
/sbin/mkswap /tmp/tmpswap
su
# /sbin/swapon -v /tmp/tmpswap
若要卸出,可运行
swapoff /tmp/tmpswap
rm /tmp/tmpswap
再次安装
debian:/home/huihoo/database/oracle# dpkg -i oracle-xe-universal_10.2.0.1-1.0_i3 86.deb
dpkg: dependency problems prevent configuration of oracle-xe-universal:
oracle-xe-universal depends on libaio (>= 0.3.96) | libaio1 (>= 0.3.96); however:
Package libaio is not installed.
Package libaio1 is not installed.
dpkg: error processing oracle-xe-universal (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
oracle-xe-universal
安装 package libaio libaio1
从 http://packages.debian.org/unstable/libs/libaio 获得libaio debian package
如: http://ftp.hk.debian.org/debian/pool/main/liba/libaio/libaio_0.3.104-1_i386.deb
# dpkg -i libaio_0.3.104-1_i386.deb
接着
# dpkg -i oracle-xe-universal_10.2.0.1-1.0_i3 86.deb
# /etc/init.d/oracle-xe configure
A valid HTTP port for the Oracle Database XE graphical user interface (the default is 8080)
A valid port for the Oracle database listener (the default is 1521)
A password for the SYS and SYSTEM administrative user accounts
Whether you want the database to start automatically when the computer starts
If you enter Yes, then the database starts immediately
To start the database manually, run this command:
$ /etc/init.d/oracle-xe start
To stop the database manually, use the following command:
$ /etc/init.d/oracle-xe stop
这时可看见后台启动了很多oracle 进程
oracle 7357 0.0 1.8 224664 9664 ? Ss 06:25 0:00 xe_pmon_XE
oracle 7359 0.0 1.6 224048 8300 ? Ss 06:25 0:00 xe_psp0_XE
oracle 7361 0.0 4.4 224048 23084 ? Ss 06:25 0:00 xe_mman_XE
oracle 7363 0.0 2.1 226116 11248 ? Ss 06:25 0:00 xe_dbw0_XE
oracle 7365 0.0 2.4 239608 12508 ? Ss 06:25 0:00 xe_lgwr_XE
oracle 7367 0.0 2.6 224108 13764 ? Ss 06:25 0:00 xe_ckpt_XE
oracle 7369 0.0 8.1 224648 42268 ? Ss 06:25 0:00 xe_smon_XE
oracle 7371 0.0 2.6 224108 13896 ? Ss 06:25 0:00 xe_reco_XE
oracle 7373 0.0 4.1 225716 21332 ? Ss 06:25 0:00 xe_cjq0_XE
oracle 7375 0.0 7.9 226864 40820 ? Ss 06:25 0:00 xe_mmon_XE
oracle 7377 0.0 2.0 224052 10560 ? Ss 06:25 0:00 xe_mmnl_XE
oracle 7379 0.0 1.6 224712 8280 ? Ss 06:25 0:00 xe_d000_XE
oracle 7381 0.0 1.5 224668 8036 ? Ss 06:25 0:00 xe_s000_XE
oracle 7383 0.0 1.5 224668 8040 ? Ss 06:25 0:00 xe_s001_XE
oracle 7385 0.0 1.5 224668 8044 ? Ss 06:25 0:00 xe_s002_XE
oracle 7387 0.0 1.5 224668 8048 ? Ss 06:25 0:00 xe_s003_XE
oracle 7414 0.0 2.5 224108 13000 ? Ss 06:25 0:00 xe_qmnc_XE
oracle 7424 0.0 1.7 224076 8784 ? Ss 06:25 0:00 xe_q000_XE
oracle 7426 0.0 2.0 224076 10596 ? Ss 06:25 0:00 xe_q001_XE
http://localhost:8080/
http://localhost:8080/apex
设置环境变量
#cd /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin
# source oracle_env.csh (for C or tcsh shell)
或
# ./oracle_env.sh (for Bourne, Bash, or Korn shell)
Making Oracle Database XE Server Available to Remote Clients
1 Click the Application menu (on Gnome) or the K menu (on KDE), then point to Oracle Database 10g Express Edition, and then Go To Database Home Page.
2 In the Database Login page, log in as SYSTEM, enter the password, and then click Login.
3 In the Oracle Database XE home page, click Administration.
4 Under Tasks, click Manage HTTP Access.
5 Under Manage HTTP Access, select Available from local server and remove clients.
6 Click Apply Changes.
export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
bin/sqlplus system
Enter password:
ERROR: ORA-12162: TNS:net service name is incorrectly specified
./sqlplus system@localhost
[编辑]
参考资料
Getting Started Guide - http://download-west.oracle.com/docs/cd/B25329_01/doc/admin.102/b25610/toc.htm
Oracle Database Express Edition 10g Release 2 (10.2) - http://www.oracle.com/technology/xe/documentation
来源:http://wiki.huihoo.com/index.php?title=Install_Oracle_10g_Express_Edition_on_Debian
评论
在Ubuntu服务器下安装 oracle XE 由于新手了,犯了不少错误,所以总结下来,给自己一个提示
,也许能给需要的人不少的帮助了。
言归正传吧!由于服务器端是没有图形界面的,不过对于安装OracleXE 没有问题了,其默认也
是silent的形式了。对其他的版本要采用silent 安装模式了,建立一个response文件就可以了,在
这里就不介绍了,可以参考Oralcle 的安装指南。
1,首先,下载oracle XE,也可以在
[url=http://www.oracle.com/technology/global/cn/software/products /database/xe/htdocs/102xelinsoft.html]http://www.oracle.com/technology /global/cn/software/products/database/xe/htdocs/102xelinsoft.html[/url]下载到
oracle XE 的deb版,由于Ubuntu是基于debain的所以我们下载deb的了!@
2,安装所需要的包,因为oracle XE 要求就至少glibc – 2.3.2 libaio – 0.3.96 我把一下的包统统都装
上了,为了以防失败gcc make binutils lesstif2 libc6 libc6-dev rpm libmotif3 libaio libstdc++5 alien 安装方法
apt-get install gcc make binutils lesstif2 libc6 libc6-dev rpm libmotif3 libaio libstdc++5 alien
3,设置交换分区,因为Oracle要求至少1G 的交换分区,为了防止安装时交换分区的不足我在
这里建立了新的交换分区
dd if=/dev/zero of=tmp/tmp.swap bs=1M count=500 // 在/tmp 目录下建立500M的交换分区文件
mkswap tmp/tmp.swap
swapon /tmp/tmp.swap
4,修改系统设置
修改 sysctl.conf
添加如下的行到/etc/sysctl.conf 中:
kernel.shmmax = 3147483648
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
修改 limits.conf
添加如下的行到/etc/security/limits.conf中:
* soft nproc 2407
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
让修改生效
修改了以上文件后,必须让其生效,或重启系统,或切换到 root 用户下用以下的方式改变内核运行
参数:
sysctl -p
5,到这时准备工作就结束了,可以安装了 到你下XE的目录下执行
dpkg -i oracle-xe-universal_10.2.0.1-1.0_i386.deb 就可以了
然后安装程序会启动 进行必要的配
6,等待着出现 请运行 /etc/init.d/oracle-xe进行配置的提示时证明安装已经成功了
7,cd/etc/init.d/ 运行oracle-xe 方法 ./oracle-xe configure
设置一下内容
HTTP端口[默认为8080]
TNS Listener端口[默认为1521]
SYS/SYSTEM用户密码
开机是否启动[默认yes]
8,到目录 /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin 下运行 oracle_env.sh不过这个文件有点
问题了 要做先修改,先备份oracle_env.sh.
运行时会提示
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh: 114:
修改oracle_env [[: not found
将其中的
NLS_LANG=`$ORACLE_HOME/bin/nls_lang.sh` 替换为
NLS_LANG='$ORACLE_HOME/bin/nls_lang.sh' 区别在于那个单引号
9,修改root和oracle目录下的./bashrc 添加
../usr/lib/oracle/xe/app/oracle/product/10.2.0/client/bin/oracle_env.sh
要加上两个点才可以这好像针对不同的系统而言 可以调试 ,退出su 下 即可生效
看是不是可以执行便可以了。
10.切换到oracle用户模式,执行sqlplus 命令既可以。在此过程中可能出现以下问题
数据库无法启动 没有initXE.ora 到 /dbs 文件下 cp init.ora initXE.ora
修改initXE.ora
db_name=XE
shared_pool_size = 62198988
11 这时数据就可以正常的启动了!
[ 本帖最后由 romlong 于 2008-5-19 17:10 编辑 ]
发表评论
-
oracle复制表数据,复制表结构
2011-07-25 21:19 361331.不同用户之间的表数据复制 对于在一个数据库上的两个 ... -
删除 SQL Server 的所有已知实例
2011-04-05 18:42 1997如果提示实例已经被注册,无法安装,那么: 删除 SQL ... -
【SQL】安装 SQL SERVER MsiGetProductInfo 无法检索 Product Code 1605错误 解决方案
2011-04-05 17:10 4802重装数据库服务器上的SQL SERVER 2008 上遇到了以 ... -
Mysql Using Master/Slave Replication with ReplicationConnection
2011-03-24 15:19 1946Starting with Connector/J 3.1.7 ... -
oracle网络配置listener.ora、sqlnet.ora、tnsnames.ora
2010-12-03 12:36 33293oracle网络配置 三个配置文件 listener.ora ... -
Oracle XE的数据库创建过程
2010-12-02 22:55 4286今天安装了Oracle XE,发现并没有自动创建数据库。趁着 ... -
实现数据库TPC性能测试的开源及商业软件
2010-12-02 01:11 3092商业软件 Benchmark Factory ... -
MySQL压力测试工具mysqlslap
2010-11-07 17:13 1736MySQL从5.1.4版开始带有一个压力测试工具mys ... -
一台机器上安装多个mysqld实例
2010-11-06 16:09 2124一台机器安装多个mysqld实例 1. ps -aux | ... -
MySQL数据库双向同步
2010-08-25 20:23 40281. 主从关系的同步 master端 192.168.5 ... -
MySQL 数据库之间的同步(windows与linux)
2010-08-25 20:14 31561.导出windows mysql的test库到linux m ... -
Ubuntu Server 下开启远程连接 MySQL
2010-03-16 23:24 3073要通过远程连接MySQL,需要做两步:第一步是要创建一个可以远 ... -
DB2 在REDHAT 5下的详细安装过程 DB2 9.5 C EXPRESS
2010-03-02 10:43 4533过详细测试并且补充后发表, 括号内的为自行添加的内容. ... -
IBM DB2 Express-C 9.5.2
2010-03-02 09:44 3468或许您已经知 ... -
Oracle Database 10g Express Edition安装小结
2010-03-01 15:28 9130racle Database 10g Express Edit ... -
HA JDBC – High Availability JDBC
2010-02-27 18:46 3280Some time ago I worked on a pr ... -
数据归档将走向何方
2010-02-25 11:50 2240数据量的爆炸性增长,让我们不得不更加关心存储。这也造成 ... -
Database
2010-02-18 15:53 2281下一代数据库发展的4大趋势 趋势之一:对XML的支 ... -
免安装Oracle运行pl/sql developer
2010-02-16 20:27 2159Sql客户端中,虽然最便捷的是万能而且轻量无比的Sql Wor ... -
Oracle 数据库 10g 特别版:并非只适合初学者
2010-02-16 17:24 2038作者:Lewis Cunningham ...
相关推荐
教你如何在Debian虚拟机下安装oracle10g
在Canaima Linux4.0上安装oracle11g RAC的详细描述,有图有描述。Debian Linux/Ubuntu linux安装oracle 11g R2 RAC也可以参考
debian、ubuntu、凝思磐石系统oracle11g安装包,内含安装脚本支持自动安装数据库,并还原数据库dmp文件
debian 5+xdmcp+oracle 10g debian 5成功安装oracle 10g文档之前的系统配置文档
debian10安装qq、微信、迅雷、winrar等(2020.3.16)1.加key2.vi /etc/apt/sources.list 加入新源3.安装deepin wine环境,https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu4.安装QQ、微信、迅雷、winrar等 1.加...
完整的debian10安装教程,超级详细附带下载地址
debian 7稳定版本中安装pyqt5,基于python3
因为官网版本更替后,在红框位置显示的就可能不是Debian 10.4网络安装版的镜像,所以我做了一个百度云盘的永久分享 2.安装步骤 3.Debian 10.4系统安装开始 二、zabbix安装前准备 1.固定IP地址 2.使用Xshll(Xshll是...
debian7.7默认没安装make工具,所以新系统想用make来安装包,需要安装make build
Oracle 19c RAC on Linux安装手册
介绍另一种Debian安装方法,很详细,图文并茂
在debian,Ubuntu,CentOS上安装Oracle10gR2
linux下安装oracle11gr2所需依赖程序
将这个文件刻盘,或者映射到虚拟光驱中,就可以启动Debian Linux的安装。注意在安装过程中需要保证网络的畅通,并且网络中有可用的Debian安装源。
在 Debian 10 中,MariaDB(MySQL 项目的社区分支)被打包为默认的 MySQL 变体。虽然 MariaDB 在大多数情况下运行良好,但如果您需要仅在 Oracle MySQL 中找到的功能,您可以安装和使用 MySQL 开发人员维护的存储库...
centos7下利用Docker部署oracle11g,附操作所有流程,简单易学,包用包会,所有命令流程和截图
在debian下安装seafile,64位系统,seafile使用最新版,使用mysql数据库
Ubuntu 和 Debian下安装Deepin第三方软件(QQ/TIM/微信/阿里旺旺/迅雷/百度网盘)脚本
[root@localhost zz]# ./zyzoracleinstall.sh -h 参数说明: --help, -h : 帮助 oracle_home =${oracle_base}/product/${oracle_version}/dbhome
debian下安装Webmin面板图文教程[整理].pdf