本文由renxiao2003 在论坛所发,CU技术文章加以整理。供大家学习。
一直想在Solaris10(64bit)下安装oracle11.2.0,但是安装Oracle11.2.0需要几个补丁,没有Solaris的服务号就不能下载这几个补丁,所以就选择安装Oracle10.2.0 1、用root用户登录系统 如果想在Solaris本机安装Oracle,用root用户登录,需要执行下面的命令:
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305620585wZqe.jpg)
2、检查硬件要求(安装Oracle的硬件要求如下) 至少512M物理内存。 SWAP空间要求: 512M到2048M内存 1.5倍物理内存 2049M到8192M内存 和物理内存相同 大于8192M内存 0.75倍物理内存 400M临时空间 1.5G到2.5G用于安装Oracle软件的磁盘空间 1.2G用于创建数据库的磁盘空间 1)检查物理内存:
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_13056206402rcf.jpg)
2)检查交换空间:
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305620685mItp.jpg)
如果交换空间不足,可用使用文件交换空间:
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305620730zetq.jpg)
参照:http://www.jb51.net/os/Solaris/1695.html 3)检查临时空间:
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305620771O9H9.jpg)
如果临时空间不足,一可以删除/tmp目录下文件,也可以在Oracle用户下指定TMPDIR目录,或者增加/tmp容量。 4)检查硬盘空间:
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305620823Bb3O.jpg)
Installation Type Requirement for Software Files (GB) Enterprise Edition 2.0 Standard Edition 1.5 Custom (maximum) 2.5 5)检查系统架构:
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305620872lJF4.jpg)
3、检查软件要求: 安装Oracle10.2.0需要以下的包: SUNWarc SUNWbtool SUNWhea SUNWlibm SUNWlibms SUNWsprot SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt java字体库:SUNW5ttf,SUNWcttf, SUNWi15rf,SUNWi2of, SUNWi4of,SUNWi4rf, SUNWi5of,SUNWi7of, SUNWi7rf,SUNWi9of, SUNWi9rf,SUNWjxcft, SUNWjxmft(2),SUNWkttf 中文必须安装SUNWcttf字体库。 参照http://java.sun.com/j2se/1.4.2/font-requirements.html 1)检查内核:
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305620946l9t6.jpg)
2)检查软件包:
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_130562099083RR.jpg)
如果软件包没有安装,会输出:
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_130562103409dv.jpg)
如果没有安装,则用下面命令安装:
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305621120w6mo.jpg) ![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_130562114343z4.jpg)
按照官方要求,需要119961-01 SunOS 5.10_x86, x64: Patch for assembler,但最新的Solaris10系统盘已经安装了这个补丁。 4、网络检查: 在DHCP(动态IP上)安装ORACLE需要设定ORACLE_HOSTNAME环境变量:
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_130562120111W2.jpg)
5、创建Oracle用户和组:
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305621241WFfn.jpg)
确定是否存在nobody组,没有就创建:
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305621285j72H.jpg)
6、检查内核参数: 官方文档说不用编辑到/etc/system,但我还是写到了这个文件: Parameter Replaced by Resource Control Recommended Value noexec_user_stack NA 1 semsys:seminfo_semmni project.max-sem-ids 100 semsys:seminfo_semmns NA 1024 semsys:seminfo_semmsl project.max-sem-nsems 256 semsys:seminfo_semvmx NA 32767 shmsys:shminfo_shmmax project.max-shm-memory 4294967295 shmsys:shminfo_shmmin NA 1 shmsys:shminfo_shmmni project.max-shm-ids 100 shmsys:shminfo_shmseg NA 10 编辑/etc/system,输入以下内容:
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305621328nxJx.jpg)
7、创建Oracle安装目录
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305621363p6ws.jpg)
8,设置Oracle用户环境变量,下载Oracle10.2.0,并解压安装 编辑oracle用户下.profile,输入以下内容:
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305621404gBMB.jpg)
安装界面1
1、安装前提检查
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305621484ynza.jpg)
2、安装方法
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_13056215302XSk.jpg)
3、输入密码
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305621589KuRG.jpg)
4、准备安装检查
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305621631aR30.jpg)
5、指定产品清单目录和身份证明
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305621674EHxo.jpg)
安装界面2
6、加载产品清单
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305621732HIS9.jpg)
7、产品特定的先决条件检查
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305621789sdzF.jpg)
8、产品特定的先决条件检查(部分不通过)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305621834SXTj.jpg)
9、产品特定的先决条件检查(部分不通过点下一步提示)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_130562188271fC.jpg)
10、产品特定的先决条件检查(部分不通过点下一步结果)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_130562194540RJ.jpg)
10-1、产品特定的先决条件检查(全部通过,根据未通过的结果修改)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305622003ncvO.jpg)
安装步骤3
11、概要
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305622058wEL1.jpg)
12、安装
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_130562210863Gg.jpg)
13、安装1
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305622175h5IC.jpg)
14、安装2
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_13056222170z0U.jpg)
15、安装3
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_13056222668wz5.jpg)
15-1、安装4
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305622310sKrW.jpg)
安装步骤4
16、配置助手
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_13056224591xZT.jpg)
17、配置助手1
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305622510O99m.jpg)
18、数据库配置助手(发生ORA-12705错误,是因为我设置了NLS_LANG变量)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305622560lMzt.jpg)
19、配置助手
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305622601VfKR.jpg)
20、运行Root脚本并退出
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305622655myqg.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305622696S0kh.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305622733Ck6C.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305622771lSqs.jpg)
运行DBCA
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_130562282769bZ.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305622902N82t.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_13056229673Zxn.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305623283mhFU.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305623302ul8o.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_13056233376Dv0.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305623360j6OJ.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305623383ohji.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305623408tW1k.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305623446vG1v.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305623467ECuZ.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305623491Z0o0.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_13056235126ZsS.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305623539x2eh.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305623928iZBT.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305623948m25V.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_130562397294M8.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305623999PVWM.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305624018ytDl.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305624039zQJ3.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305624066aUzZ.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305624086tW4t.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305624128AJjm.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_130562416927HA.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_1305624189NwCY.jpg)
![](http://blog.chinaunix.nethttp://blog.chinaunix.net/attachment/201105/17/24835294_13056242107D88.jpg)
在安装过程中,出现ORA-12705是因为我设置了NLS_LANG这个环境变量,所以在安装时创建数据库是出现错误; 安装完成后,修改环境变量,去掉了NLS_LANG变量,运行DBCA创建数据库成功! |