您的位置:首页 > 数据库 > Oracle

Suse Linux Enterprise 11安装Oracle11g(一)

2012-09-27 14:33 525 查看
本本上是双系统,Ubuntu12.04+Win7.为了使用两个操作系统 能共享Oracle。故决定用Vmware来安装一个LinuxOracle Server,这样只要两个系统都装上Vmware就可以实现数据库的共享了。Vmware中我安装了RedHat6.3,Ubuntu Server 12和Suse Linux Enterprise11.三个系统在Vmware中推荐的内存分别是2G,1G和768M,看来还是Suse需要的内存最小,所以先在Suse上安装Oracle.以下操作均在root权限下进行。1.检查硬件要求内存要求内存1G以上.使用如下命令查看当前系统总的物理内存
# grep MemTotal /proc/meminfo
MemTotal:        1020800 kB
可以看到我的虚拟机刚好满足要求,接下来看Swap空间的需求。下面这个表格描述了物理内存和虚拟内存的关系。
RAMSwap Space
Between 1 GB and 2 GB1.5 times the size of RAM
Between 2 GB and 16 GBEqual to the size of RAM
More than 16 GB16 GB
用如下命令查看当前系统的交换空间大小
#grep SwapTotal /proc/meminfo
SwapTotal:       1139708 kB
如果Swap空间不够,可以手动增加Swap空间的大小。按上面官方建议,我应该拥有1.5G的交换空间,而我的系统现在只拥有约1.1G的空间。下面来添加400M额外的Swap空间。
#mkdir /swap
#dd if=/dev/zero of=/swap/swapfile bs=1024 count=409600  --创建swap交换空间
409600+0 records in409600+0 records out419430400 bytes (419 MB) copied, 6.10832 s, 68.7 MB/s
#mkswap /swap/swapfile  --指定作为交换空间的文件
Setting up swapspace version 1, size = 409596 KiBno label, UUID=3fababb1-04ec-4c38-a604-e0038578a2c4
#swapon /swap/swapfile  --激活swap
# free             total       used       free     shared    buffers     cachedMem:       1020800     914760     106040          0      13360     692716-/+ buffers/cache:     208684     812116Swap:      1549304          0    1549304
运行free命令后,可以看到swap空间已经增加到1.5G大小。
oracle11g的自动内存管理特性,需要使用到操作系统的共享内存(/dev/shm).在配置oracle PGA和SGA内存时,参数 [code]MEM
ORY_TARGET
 or 
MEMORY_MAX_TARGET 不能大于系统的共享内存。可以用如下命令来查看共享内存大小。
[/code]
# df -h /dev/shm/Filesystem      Size  Used Avail Use% Mounted ontmpfs           499M  1.0M  498M   1% /dev/shm
磁盘空间要求
/tmp目录至少1GB空间
查看/tmp空间大小
# df -h /tmp
查看操作系统架构
# uname -mx86_64
这个表格展示了x86_64系统各个版本的安装文件和数据文件所需要磁盘空间大小。
InstallationTypeRequirement for Software Files (GB)
EnterpriseEdition4.35
Standard Edition3.73
InstallationTypeDisk Space for Data Files (GB)
EnterpriseEdition1.68
Standard Edition1.48
2.检查软件要求
操作系统要求
Asianux 2.0Asianux 3.0Oracle Enterprise Linux 4.0 Update 7 or laterOracle Enterprise Linux 5.0Red Hat Enterprise Linux 4.0 Update 7 or laterRed Hat Enterprise Linux 5.0SUSE Linux Enterprise Server 10.0SUSE Linux Enterprise Server 11.0
#cat /proc/versionLinux version 3.0.13-0.27-default (geeko@buildhost) (gcc version 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux) ) #1 SMP Wed Feb 15 13:33:49 UTC 2012 (d73692b)#lsb_release -idDistributor ID:	SUSE LINUXDescription:	SUSE Linux Enterprise Server 11 (x86_64)
当前系统在官方支持的操作系统里。
内核要求
On Asianux 2.0, Oracle Enterprise Linux 4.0, and Red Hat Enterprise Linux 4.0:2.6.9 or laterOn Asianux 3.0, Oracle Enterprise Linux 5.0, and Red Hat Enterprise Linux 5.0:2.6.18 or laterOn SUSE Linux Enterprise Server 10:2.6.16.21 or laterOn SUSE Linux Enterprise Server 11:2.6.27.19 or later
# uname -r
3.0.13-0.27-default
同样满足要求
安装包要求
x86-64
SUSELinux Enterprise Server 11The following packages (or later versions) must be installed:
binutils-2.19gcc-4.3gcc-32bit-4.3gcc-c++-4.3glibc-2.9glibc-32bit-2.9glibc-devel-2.9glibc-devel-32bit-2.9ksh-93tlibaio-0.3.104libaio-32bit-0.3.104libaio-devel-0.3.104libaio-devel-32bit-0.3.104libstdc++33-3.3.3libstdc++33-32bit-3.3.3libstdc++43-4.3.3_20081022libstdc++43-32bit-4.3.3_20081022libstdc++43-devel-4.3.3_20081022libstdc++43-devel-32bit-4.3.3_20081022libgcc43-4.3.3_20081022libstdc++-devel-4.3make-3.81sysstat-8.1.5
使用如下命令查看要求的包有没有安装
# rpm -q package_name
# rpm -q binutils
binutils-2.21.1-0.7.25
表示已经安装了2.21.1版本。当然你也可以一次把所有的包都检查掉。
#rpm -q binutils gcc gcc-32bit gcc-c++ glibc glibc-32bit glibc-devel glibc-devel-32bit ksh libaio libaio-32bit libaio-devel libaio-devel-32bit libstdc++33 libstdc++33-32bit libstdc++43 libstdc++43-32bit libstdc++43-devel libstdc++43-devel-32bit libgcc43 libstdc++-devel make sysstat
如果没有安装,可以点击Computer->Install/Remove Software
然后通过关键字搜索,再来选择需要安装哪些包。
这样就可以把所有的依赖包都安装好了
                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: