- 浏览: 867578 次
- 性别:
- 来自: lanzhou
-
文章分类
最新评论
-
liu346435400:
楼主讲了实话啊,中国程序员的现状,也是只见中国程序员拼死拼活的 ...
中国的程序员为什么这么辛苦 -
qw8226718:
国内ASP.NET下功能比较完善,优化比较好的Spacebui ...
国内外开源sns源码大全 -
dotjar:
敢问兰州的大哥,Prism 现在在12.04LTS上可用么?我 ...
最佳 Ubuntu 下 WebQQ 聊天体验 -
coralsea:
兄弟,卫星通信不是这么简单的,单向接收卫星广播信号不需要太大的 ...
Google 上网 -
txin0814:
我成功安装chrome frame后 在IE地址栏前加上cf: ...
IE中使用Google Chrome Frame运行HTML 5
Ubuntu
9.04下安装Oracle 11G需要注意的几点:
(1)Oracle 不支持
Ubuntu
,并且Linux内核版本相关,
(2)注意Oracle与本机JDk的冲突的问题,以及中文乱码的问题
本机参数:
(1) Ubuntu
版本: Linux zhanghc-Ubuntu 2.6.28-15-generic #48-Ubuntu SMP Wed Jul 29 08:54:56 UTC 2009 i686 GNU/Linux
(2)Oracle11G版本: Linux x86 的 Oracle 数据库 11g 第 1 版 (11.1.0.6.0)
安装步骤:
第一步:
修改X server 的默认设置,点菜单的System -> Administration -> Login Window(系统
->管理->登录窗口),选择“Security(安全)”选项卡,取消“Deny TCP connections to the Xserver(拒绝TCP连接到X服务器)”的勾,重启Xserver(或者重启系统)。然后在
终端输入: xhost +127.0.0.1
第二步:
安装必要的个工具:
终端输入:sudo apt-get install build-essential libaio1 gawk ksh libmotif3 alien libtool lsb-rpm
第三步:
修改一些Ubuntu
的/bin/sh的默认连接:
终端输入:
root@zhanghc-Ubuntu
:~# cd /bin
root@zhanghc-Ubuntu
:/bin# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2008-04-28 19:59 /bin/sh -> dash
root@zhanghc-Ubuntu
:/bin# ln -sf bash /bin/sh
root@zhanghc-Ubuntu
:/bin# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2008-05-01 22:51 /bin/sh -> bash
第四步:
增加用户和组:
终端输入:
root@zhanghc-Ubuntu
:/bin# cd /root
root@zhanghc-Ubuntu
:~# addgroup oinstall
root@zhanghc-Ubuntu
:~# addgroup dba
root@zhanghc-Ubuntu
:~# addgroup nobody
root@zhanghc-Ubuntu
:~# usermod -g nobody nobody
root@zhanghc-Ubuntu
:~# useradd -g oinstall -G dba -p password -d /home/oracle -s /bin/bash oracle
root@zhanghc-Ubuntu
:~# mkdir /home/oracle
root@zhanghc-Ubuntu
:~# chown -R oracle:dba /home/oracle
root@zhanghc-Ubuntu
:~# ln -s /usr/bin/awk /bin/awk
root@zhanghc-Ubuntu
:~# ln -s /usr/bin/rpm /bin/rpm
root@zhanghc-Ubuntu
:~# ln -s /usr/bin/basename /bin/basename
root@zhanghc-Ubuntu
:~# mkdir /etc/rc.d
root@zhanghc-Ubuntu
:~# for i in 0 1 2 3 4 5 6 S ; do ln -s /etc/rc$i.d /etc/rc.d/rc$i.d ; done
root@zhanghc-Ubuntu
:~# mkdir -p /u01/app/oracle
root@zhanghc-Ubuntu
:~# chown -R oracle:dba /u01
第八步:
系统默认值:
(1)增加下面这些到/etc/sysctl.conf文件的末尾:
fs.file-max = 65535
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65535
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
(2)增加下面这些到/etc/security/limits.conf文件末尾:
oracle soft nproc 2047
oracle hard nproc 16383
oracle soft nofile 1023
oracle hard nofile 65535
(3)增加下面这些到/etc/pam.d/login文件末尾:
session required /lib/security/pam_limits.so
session required pam_limits.so
增加完成后执行下面的命令:sysctl -p
第九步:
(1)解压源文件:oracle11g的安装包解压到/home/oracle/install/目录
(2)更改权限:chown -R oracle:dba install
(3)设置DISPLAY参数:export DISPLAY=127.0.0.1:0.0
第十步:
(1)终端输入:./runInstaller -jreLoc /usr/lib/jvm/java-6-sun/jre/
。。。。。。
(2)图形安装界面出现
。。。。。
(3)忽略预检中的错误和警告
。。。。。
(4)选"Create a Database"来安装数据库。(原文是通过netca建立监听,dbca建库,我第一次也是这样做的,dbca建库时会报错,因为ubutunbu 不支持RPM包)。
。。。。。。。
(5)完成后。
终端输入:/u01/app/oracle/product/11.1.0/db_1/root.sh
退出OUI
第十一步:
修改配置
文件:/etc/profile
export ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1
export PATH=$PATH:/u01/app/oracle/product/11.1.0/db_1/bin
第十二步:
(1)建立启动脚本:
在/u01/app/oracle/product/11.1.0/db_1/bin下建立文件:oracledb,内容:
#!/bin/bash
#
# /etc/init.d/oracledb
#
# Run-level Startup script for the Oracle Listener and Instances
# It relies on the information on /etc/oratab
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1
export ORACLE_OWNR=oracle
export PATH=$PATH:$ORACLE_HOME/bin
if [ ! -f $ORACLE_HOME/bin/dbstart -o ! -d $ORACLE_HOME ]
then
echo "Oracle startup: cannot start"
exit 1
fi
case "$1" in
start)
# Oracle listener and instance startup
echo -n "Starting Oracle: "
su $ORACLE_OWNR -c "$ORACLE_HOME/bin/lsnrctl start"
su $ORACLE_OWNR -c "$ORACLE_HOME/bin/dbstart $ORACLE_HOME"
touch /var/lock/oracle
echo "OK"
;;
stop)
# Oracle listener and instance shutdown
echo -n "Shutdown Oracle: "
su $ORACLE_OWNR -c "$ORACLE_HOME/bin/lsnrctl stop"
su $ORACLE_OWNR -c "$ORACLE_HOME/bin/dbshut $ORACLE_HOME"
rm -f /var/lock/oracle
echo "OK"
;;
reload|restart)
$0 stop
$0 start
;;
*)
echo "Usage: `basename $0` start|stop|restart|reload"
exit 1
esac
exit 0
(2)修改脚本为可执行的:
终端输入: chmod a+x /u01/app/oracle/product/11.1.0/db_1/bin/oracledb
第十三步:
开机启动:
root@zhanghc-Ubuntu
:~# ln -s /u01/app/oracle/product/11.1.0/db_1/bin/oracledb /etc/init.d/oracledb
root@zhanghc-Ubuntu
:~# sudo sysv-rc-conf --level 2345 oracledb on
可能出现的问题:
(1)安装界面乱码或者停止响应
问题可能来源:JDK与Oracle 自带的jdk冲突
(2)netca建立监听,dbca建库时会报错
问题可能来源:因为ubutunbu 不支持RPM包
(3)文件目录的读写权限:
注意用户的切换
发表评论
-
Ubuntu 10.04 新视觉设计、主题和Logo
2010-03-04 18:46 985根据官方wiki (屏幕截图)的介绍,Ubuntu ... -
Ubuntu自动备份软件包和制作本地源
2010-01-27 11:47 2561执行过sudo apt-get update &&am ... -
10 scripts to create your own Linux distribution
2010-01-25 15:20 1075Those familiar with Linux will ... -
Ubuntu下rhythmbox播放MP3乱码问题的解决
2010-01-19 18:03 2460在Ubuntu下,系统是使用的UTF-8字符集。而rhyt ... -
解决ubuntu 鼠标键盘的失效问题
2010-01-11 10:09 11096把主板的apic 禁用掉就可以了,如果你是多系统的话,这样可能 ... -
Windows 7 or Ubuntu 9.10 – battle of the operating systems
2009-11-06 08:08 1043Operating systems have become l ... -
Hey Ubuntu, Stop Making Linux Look Bad
2009-11-06 08:07 913It’s the same old story. A new ... -
Ubuntu.com Suffers Intermittent Outages As Thousands Download Karmic Koala
2009-11-04 08:40 810(WEB HOST INDUSTRY REVIEW) -- T ... -
Xubuntu 9.10 Review and Commentary
2009-11-04 08:38 983With the recent release of Ub ... -
Ubuntu 9.10 - Almost Perfect
2009-11-03 09:48 755It’s been quite some time sin ... -
How to make Ubuntu extremely fast
2009-11-03 08:57 1719Old hardware? Want a faster boo ... -
5 things make Kubuntu 9.10 special
2009-11-03 08:50 905Kubutnu is the first distributi ... -
CentOS 5.4 vs. OpenSuSE 11.2 vs. Ubuntu 9.10 Benchmarks
2009-11-03 08:49 2998With the release of CentOS 5.4 ... -
many things to do after install ubuntu 9.10
2009-11-02 14:46 5632So you've just installed Ubuntu ... -
How to install Nvidia/ATI graphic cards drivers in Ubuntu 9.04
2009-11-01 23:49 1690Many a times users mess up thei ... -
How to install Ubuntu 9.10 without CD/DVD
2009-11-01 23:44 1340Ubuntu 9.10, Karmic Koala is ... -
Things to do after installing Ubuntu9.10 Karmic Koala
2009-11-01 22:44 2026Here are things i see are impor ... -
Ubuntu下安装MP3播放器Audacious
2009-11-01 08:02 2556在Ubuntu下安装软件就是简单方便,MP3你想不想听,那我们 ... -
The new Ubuntu Software Center
2009-10-31 08:25 1125You may remember my mention of ... -
Ubuntu 9.10 'Karmic Koala' released, could decide your OS fate
2009-10-30 09:51 723It's October 2009 which means s ...
相关推荐
### Ubuntu 9.04 下 Oracle 10G 安装指南 #### 一、环境与软件准备 本文档旨在指导如何在 Ubuntu 9.04 桌面平台上安装 Oracle 10G 数据库。为了确保安装过程顺利进行,请先确认已经具备以下条件: - **操作系统:*...
下载Oracle 10g安装文件并解压至`/home/oracle`目录下。由于Oracle安装过程涉及到图形界面,因此需要安装X Server环境。对于Ubuntu Server,可以通过安装GDM来实现: ```bash sudo apt-get install gdm sudo apt-get...
### Oracle 11g R2 安装指南:基于 Debian 和 Ubuntu 的图文教程 #### 一、概述 本文档提供了一套详细的Oracle 11g R2安装步骤,旨在帮助用户顺利地在Debian和Ubuntu操作系统上完成Oracle数据库的安装与配置。本...
本文将基于 Debian 5.04 和 Ubuntu 9.04 操作系统,通过图文并茂的方式详细介绍 Oracle 11g R2 的安装步骤及注意事项,帮助读者顺利完成安装,并解决可能出现的问题。 #### 二、准备工作 1. **下载安装包**:从 ...
临时性导出收集的网页资料,并不成体系; 东西很少,只有6篇文章,请自行判断需要与否; 有脚本错误提示,但不妨碍阅读; 目录list: Ubuntu下调整swap分区的大小...ubuntu9.04安装oracle xe步骤; Ubuntu中增加交换分区
- **第一部分**:这部分内容可能涉及Ubuntu的基础概念、安装过程、基本操作等内容,为读者打下坚实的理论基础。 - **其他章节**:根据目录的简略信息推测,后续章节可能会深入探讨Ubuntu的高级功能、应用软件管理、...
如Windows 7的各种版本、Windows Server 2008 SP2/R2、Debian 5、Ubuntu 9.04、Red Hat Enterprise Linux 5.3、CentOS 5.3、Oracle Enterprise Linux 5.3、OpenSUSE 11.x、Mandriva 2009以及SUSE Linux Enterprise ...
- Linux Ubuntu 9.04 Server。 - **系统软件**: - Hadoop 0.20.2 - Hive 0.6.0 - HBase 0.20 通过对这些系统进行基准测试,可以更好地了解它们在实际应用场景中的性能表现,并为后续优化提供参考依据。 总之...