您的当前位置:首页正文

CentOS5.x_linux安装SAP环境准备

2021-06-15 来源:好走旅游网
basis_Jenvid Yang_广州 一、新装系统:装系统: 1、新装系统磁盘分区如下 mkdir /sapmnt mkdir oracle 20G mkdir -p /usr/sap 20G mkdir -p /oracle//102_64 mkdir -p /oracle//mirrlogA 2G mkdir -p /oracle//mirrlogB 2G mkdir -p /oracle//oraarch 40G mkdir -p /oracle//origlogA 2G mkdir -p /oracle//origlogB 2G mkdir -p /oracle//saparch mkdir -p /oracle//sapbackup mkdir -p /oracle//sapcheck mkdir -p /oracle//sapdata1 80G mkdir -p /oracle//sapdata2 80G mkdir -p /oracle//sapdata3 80G mkdir -p /oracle//sapdata4 80G 2、安装必要的系统组件 @ GNOME Desktop Environment Desktop Environments @ KDE Desktop Environment Desktop Environments @ Editors Applications @ Engineering and Scientific Applications @ Graphical Internet Applications- @ Text-based Internet Applications @ Authoring and Publishing Applications @ Development Tools Development @ Kernel Development @ X Software Development Development @ GNOME Software Development Development-GNOME Software Development @ KDE Software Development Development-KDE Software Development @ Server Configuration Tools Servers @ X Window System Base System-X Window System @ Administration Tools Base System- Administration Tools @ System Tool Base System- System Tool 3、关闭FIREWALL,将SELinux改为Permissive service iptables stop(临时) chkconfig iptables off(永久) vi /etc/selinux/config SELINUX=permissive(disabled) 4、修改hosts文件 主机名必须是一个有效的ip地址,不能是127.0.0.1,否则安装过程中会出错 vi /etc/hosts basis_Jenvid Yang_广州 xxx.xxx.xxx.xxx hostname 注:启动lsnrctl数据库监听时必须使用本地环回地址数据库监听时必须使用本地环回地址 5、启用FTP A、/etc/vsftpd/vsftpd.conf 很少改动 B、/etc/vsftpd/ftpusers #注释root C、/etc/vsftpd/user_list #注释root D、/etc/passwd 更改root:x:0:0:root:/root:/bin/bash为root:x:0:0:root:/:/bin/bash E、service vsftpd start 启动FTP F、chkconfig --level 35 vsftpd on 设置自启动 注:该步骤未验证 命令提示符是根据用户主目录的.bashrc文件来设置的。 6、启用XMANAGER <1>vi /usr/share/gdm/defaults.conf Enable=true DisplaysPerHost=10 Port=177 AllowRemoteRoot=true <2>vi /etc/inittab id:5:initdefault: x:5:respawn:/usr/bin/gdm <3>vi /etc/securetty 添加: pts/0 pts/1 pts/2 pts/3 pts/4 <4>#vi /etc/pam.d/remote #%PAM-1.0 #auth required pam_securetty.so <5>#vi /etc/xinetd.d/telnet # default: on # description: The telnet server serves telnet sessions; it uses \\ # unencrypted username/password pairs for authentication. service telnet { flags = REUSE socket_type = stream wait = no user = root server = /usr/sbin/in.telnetd log_on_failure += USERID disable = no } basis_Jenvid Yang_广州 <6>vi /etc/pam.d/login #auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so <7>vi /etc/gdm/custom.conf [security] AllowRemoteRoot=true [xdmcp] Enable=1 <8>shutdown –r now <9>如果Xbrowser发现主机却连不上,需要在被连主机的hosts添加发起连接的主机地址 该步骤未验证 7、 安装可能用到的支持包 compat-libstdc++-33-3.2.3-61.i386.rpm compat-libstdc++-33-3.2.3-61.x86_64.rpm XFree86-libs-data-4.1.3.0-128.EL.x86_64.rpm XFree86-libs-4.1.3.0-128.EL.x86_64.rpm libXp-1.0.0-8.1.el5.x86_64.rpm libXp-1.0.0-8.i386.rpm glibc-devel-2.5-18.i386.rpm saplocales-2.5-2.x86_64.rpm 8、 安装JDKj2sdk-1_4_2_19-linux-i586-rpm.bin 下载地址:http://ishare.iask.sina.com.cn/f/8550530.html 第一步:查看Linux自带的JDK是否已安装 (卸载centOS已安装的1.4) <1># rpm -qa|grep jdk ← 查看jdk的信息或直接执行 或 # rpm -q jdk 或 # java -version <2># rpm -qa | grep gcj ← 确认gcj的版本号 <3># yum -y remove java-1.4.2-gcj-compat ← 卸载gcj 第二步:安装JDK <1> j2sdk-1_4_2_19-linux-i586-rpm.bin 在/usr下新建java文件夹,将安装包放在/usr/java目录下 # mkdir /usr/java <2>安装JDK # cd /usr/java ①j2sdk-1_4_2_19-linux-i586-rpm.bin文件安装 # chmod 777 j2sdk-1_4_2_19-linux-i586-rpm.bin ← 修改为可执行 # ./j2sdk-1_4_2_19-linux-i586-rpm.bin ← 选择yes同意上面的协议 # rpm -ivh jdk-1_5_0_14-linux-i586.rpm ← 选择yes直到安装完毕 ②j2sdk-1_4_2_19-linux-i586-rpm.bin文件安装 # chmod a+x j2sdk-1_4_2_19-linux-i586-rpm.binn ← 使当前用户拥有执行权限 # ./j2sdk-1_4_2_19-linux-i586-rpm.binn ← 选择yes直到安装完毕 第三步:配置环境变量 <1># vi /etc/profile basis_Jenvid Yang_广州 <2>在最后加入以下几行: export JAVA_HOME=/usr/java/j2sdk1.4.2_19 export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export PATH=$PATH:$JAVA_HOME/bin <3># reboot ← 重启机器配置生效 装centos5.3的时候一般系统会自带一个1.4的jdk,想删除它。 于是首先输入命令 rpm -qa|grep gcj再用命令 rpm -e --nodeps 文件名进行删除; 如果出现 error: 文件名\" specifies multiple packages则用命令 rpm -e --allmatchs 文件名进行删除; 如果是自己装的想要删除先查看: rpm -qa|grep jdk再删除rpm -e --nodeps 文件名。 9、修改发行版信息 vi /etc/redhat-release Red Hat Enterprise Linux AS release 4 (Nahant) 10、安装开发环境和开发库 rpm -q binutils compat-libstdc++-33-3.2.3 elfutils-libelf elfutils-libelf-devel elfutils-libelf-devel-static gcc-4.1.2 gcc-c++-4.1.2 glibc-2.5-24 glibc-common glibc-devel glibc-headers kernel-headers ksh libaio libaio-devel libgcc libgomp libstdc++-4.1.2 libstdc++-devel-4.1.2 make sysstat unixODBC unixODBC-devel 有网络可使用yum进行安装: yum install binutils compat-libstdc++-33-3.2.3 elfutils-libelf elfutils-libelf-devel elfutils-libelf-devel-static gcc-4.1.2 gcc-c++-4.1.2 glibc-2.5-24 glibc-common glibc-devel glibc-headers kernel-headers ksh libaio libaio-devel libgcc libgomp libstdc++-4.1.2 libstdc++-devel-4.1.2 make sysstat unixODBC unixODBC-devel 11、检查oracle安装环境 rpm -q gcc make binutils openmotif setarch compat-db compat-gcc compat-gcc-c compat-libstdc compat-libstdc –devel 12、安装saplocales_rhel5_x86_64_version-2.zip aplocales_rhel5_x86_64_version-2.zip 13、修改内核参数 vi /etc/sysctl.conf #change for hugwww net.ipv4.tcp_fin_timeout = 1 net.ipv4.tcp_tw_recycle = 1 #net.core.rmem_max = 16777216 #net.core.rmem_default = 16777216 net.core.netdev_max_backlog = 262144 net.core.somaxconn = 262144 net.ipv4.tcp_syncookies = 1 net.ipv4.tcp_max_orphans = 262144 net.ipv4.tcp_max_syn_backlog = 262144 net.ipv4.tcp_synack_retries = 2 net.ipv4.tcp_syn_retries = 2 basis_Jenvid Yang_广州 #oracle fs.file-max =6815744 fs.aio-max-nr = 1048576 kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.sem = 1250 256000 100 1024 net.ipv4.ip_local_port_range = 1024 65500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048586 kernel.msgmni=1024 14、修改/etc/security/ulimit.conf @sapsys hard nofile 32800 @sapsys soft nofile 32800 @dba hard nofile 32800 @dba soft nofile 32800 15、创建文件系统 mkdir /sapmnt mkdir -p /usr/sap mkdir -p /oracle//102_64 mkdir -p /oracle//mirrlogA mkdir -p /oracle//mirrlogB mkdir -p /oracle//oraarch mkdir -p /oracle//origlogA mkdir -p /oracle//origlogB mkdir -p /oracle//saparch mkdir -p /oracle//sapbackup mkdir -p /oracle//sapcheck mkdir -p /oracle//sapdata1 mkdir -p /oracle//sapdata2 mkdir -p /oracle//sapdata3 mkdir -p /oracle//sapdata4 mkdir 102_64 mirrlogA mirrlogB oraarch origlogA origlogB saparch sapbackup sapcheck sapdata1 sapdata2 sapdata2 sapdata4 二、提供gui安装过程 1、 startx 2、 Xhost + 3、 查看当前用户使用的shell和设定屏幕输入环境 echo $shell echo $DISPLAY setenv DISPLAY xxx.xxx.xxx:x.x basis_Jenvid Yang_广州 4、SWAP <1>查看系统Swap空间使用 [root@jumper usr]# free total used free shared buffers cached Mem: 513980 493640 20340 0 143808 271780 -/+ buffers/cache: 78052 435928 Swap: 1052248 21256 1030992 <2>在空间合适处创建swap文件 [root@jumper usr]# mkdir swap [root@jumper usr]# cd swap [root@jumper swap]# dd if=/dev/zero of=swapfile bs=1024 count=10000 10000+0 records in 10000+0 records out [root@jumper swap]# ls -al total 10024 drwxr-xr-x 2 root root 4096 7月 28 14:58 . drwxr-xr-x 19 root root 4096 7月 28 14:57 .. -rw-r--r-- 1 root root 10240000 7月 28 14:58 swapfile [root@jumper swap]# mkswap swapfile Setting up swapspace version 1, size = 9996 KiB <3>激活swap文件 [root@jumper swap]# swapon swapfile [root@jumper swap]# ls -l total 10016 -rw-r--r-- 1 root root 10240000 7月 28 14:58 swapfile [root@jumper swap]# free total used free shared buffers cached Mem: 513980 505052 8928 0 143900 282288 -/+ buffers/cache: 78864 435116 Swap: 1062240 21256 1040984 [root@jumper swap]# 4、 启动安装gui后出现:starting handshake连接端口超时 starting handshake jce_policy_zip= cp –rp jce_policy_zip /usr/java/java14/ 5、 更改hostname 第一步: #hostname newname 第二步: 修改/etc/sysconfig/network中的hostname 第三步: 修改/etc/hosts文件 6、 启动nfs服务 使用setup勾选nfs 启动停止命令:service nfs start/stop basis_Jenvid Yang_广州 查看命令:service nfs status serive portmap status chkconfig --list nfs looks as follows:nfs 0:off 1:off 2:off 3:on 4:on 5:on 6:offł create linux groups and users cmd: system -config-users 日志: 1、vi /tmp/sapinst-instdir/ERP/SYSTEM/ORA/CENTRAL/AS/keydb.xml

因篇幅问题不能全部显示,请点此查看更多更全内容