Chinaunix首页 | 论坛 | 博客
  • 博客访问: 329855
  • 博文数量: 62
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 710
  • 用 户 组: 普通用户
  • 注册时间: 2013-05-14 14:12
个人简介

太懒

文章分类

全部博文(62)

文章存档

2015年(8)

2014年(20)

2013年(34)

我的朋友

分类: Oracle

2013-05-16 12:55:43

1. 安装操作系统


使用kickstart静默安装,配置文件如下




# Kickstart file automatically generated by anaconda.


install

url --url ftp://10.101.5.100/pub/rhel5/iso/

lang en_US.UTF-8

keyboard us


#xconfig --startxonboot

network --device eth0 --bootproto static --ip 10.101.5.69 --netmask 255.255.248.0 --gateway 10.101.0.1 --nameserver 10.101.0.19 --ho

stname gridem

#rootpw --iscrypted $1$nPKdqyiD$KkCUPHAeWXhChoQxmjXiI/

rootpw  --iscrypted $6$1CpNtrhue9gKi6cB$Nb8PKValdv/tE9qmDEgLsW..jBLwHakcjWCbWi5v51yi/3/NeOR7XM2wUSJobmgOqlg9c/sVYvYd1FOiJBAuR1


firewall --disabled

firstboot --disable

authconfig --enableshadow --passalgo=sha512

selinux --disabled

timezone Asia/Shanghai

key --skip


bootloader --location=mbr --driveorder=sda --append="rhgb quiet"


clearpart --all --drives=sda

part swap --fstype swap --size=2048 --grow --maxsize=2048  --asprimary --ondisk=sda

part / --fstype ext3 --size=20480 --grow --maxsize=30960 --asprimary --ondisk=sda


reboot --eject

%packages

@admin-tools

@base

@chinese-support

@core

@dialup

@system-tools

@base-x

@X Window System

sgpio

libstdc++44-devel

python-dmidecode

imake

audit

python-dmidecode

sgpio

tcp_wrappers

ksh

elfutils-libelf

elfutils-libelf-devel

gcc

gcc-c++

glibc

glibc-common

glibc-devel*

glibc-headers

libaio

libaio-devel

libgcc

libgomp

libstdc++

libstdc++-devel

make

numactl-devel

sysstat

rng-utils

compat-libstdc++-296

compat-libstdc++-33.x86_64

libXp

libXp-devel

kernel-devel

glibc-utils

rng-utils

libXp

libXp-devel



%post

chvt 3

cd /tmp

wget ftp://10.101.5.100/pub/rhel5/kik/createuser.sh

bash createuser.sh > /root/createuser.log

wget ftp://10.101.5.100/pub/rhel5/kik/bash_profile

cat /tmp/bash_profile >> /home/oracle/.bash_profile

chvt 1

%end



详情不表,参加另外的博文


过程略。。。。。。


2. 下载并解压缩


11年最后两周光做测试鸟,反复安装,反复各种错。。。。一周的时间在1G内存的虚拟机上测试,实在是痛苦不堪,装一次等出错到90%左右,大半天已经过去鸟。。。。。


后来找了个好点的机器,16G内存,database和em各分配4G内存,才算勉强过去,12c的文档里对硬件的要求写的很清楚,如果有富余的机器还是用配置好点的,省的碰到各种莫名其妙的错误,无从下手。浪费感情又耽误时间。


另外,加压缩前一定要通过cksum验证一下,原来的虚拟机是在32位的xp上装的64位的linux,换机器以后,底层宿主机是windows 64bit 2008,通过windows共享拷贝过去以后刚开始也是碰到各种错误,最终发现竟然是文件有损。通过cksum也验证了文件不对的问题。后来通过在linux上架设ftp往linux虚拟机上上传竟然也不对,包括scp也出问题。最终在最早下载em的32位xp上架了个ftp服务器才顺利解决。不知道神马原因,据说是有bug。先不管啦。



过程略,unzip很简单,解压缩前可以用 -t参数测试一下压缩文件。



3. 开始安装


注意/etc/hosts 文件格式


最终如下



# Do not remove the following line, or various programs

# that require network functionality will fail.

127.0.0.1               localhost.localdomain localhost

::1             localhost6.localdomain6 localhost6

10.101.5.68  grid.mytest grid

10.101.5.69  gridem.mytest gridem   #localhost

10.101.5.70  mydb2.mytest mydb2



安装的时候指定ORACLE_HOME=gridem.mytest.


runInstaller ORACLE_HOSTNAME=gridem.mytest


余下过程看图不说话










































4. 登陆EM













阅读(1233) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~