65.9K
CodeProject 正在变化。 阅读更多。
Home

Oracle 11g 报表在 RedHat Linux 5x 上的安装

starIconstarIconstarIconstarIconstarIcon

5.00/5 (4投票s)

2011年11月22日

CPOL

3分钟阅读

viewsIcon

27127

Oracle 11g 报表在 RedHat Linux 5x 上的安装

目录

  1. 引言
    1. 更改操作系统配置和参数
    2. 更改 Hosts 文件条目
    3. 转到 /etc/security (cd /etc/security)
    4. 转到 /etc/pam.d (cd /etc/pam.d)
    5. 所需 rpm
    6. 创建用户和组
    7. 首先安装 weblogic
    8. 安装 forms 和 report 服务
      • 解压 ofm_pfrd_linux_11.1.1.2.0_32_disk1_1of1.zip
      • 解压 ofm_pfrd_linux_11.1.1.2.0_32_disk2_1of1.zip
      • 解压 ofm_pfrd_linux_11.1.1.2.0_32_disk3_1of1.zip
      • 解压 ofm_pfrd_linux_11.1.1.2.0_32_disk4_1of1.zip
    9. 关闭或重启计算机
    10. 运行安装步骤
      • 检查所有先决条件是否已验证,并且状态应如上所示
    11. 其余按照 Oracle 提供的 GUI 进行操作
    12. 一些技巧

1. 引言

本文介绍了在 Enterprise Linux 5 和 CentOS 5 上安装 Oracle Database 11g。 服务器需要至少 4GB 的 RAM 用于安装。 交换空间应为物理 RAM 的两倍。

我推荐以下服务器配置

  • Xeon – 具有 1/2 cpu 和 6gb/8gb 内存的服务器(理想配置)

以下软件包对于 Enterprise Linux 5 是强制性的:GNOME 桌面环境、图形互联网、X Window 系统、编辑器、开发工具、服务器配置工具、系统工具和管理工具。

安装前需要获得 11g Reports 许可证。

您可以下载该软件,但须遵守 Oracle 许可协议。

  • ofm_pfrd_linux_11.1.1.2.0_32 _disk4_1of1.zip
  • ofm_pfrd_linux_11.1.1.2.0_32 _disk3_1of1.zip
  • ofm_pfrd_linux_11.1.1.2.0_32 _disk1_1of1.zip
  • ofm_pfrd_linux_11.1.1.2.0_32 _disk2_1of1.zip
  • oepe111130_wls1032_linux32.bin

下载后,解压缩或提取文件。

下载 weblogic

image001.jpg

下载 11g Report Services

image002.jpg

1.1 更改操作系统配置和参数

复制 sysctl.conf

cp sysctl.conf sysctl.confold 
Cd /etc 
Vi sysctl.conf 

添加以下内容

# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 0
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0
# Controls whether core dumps will append the PID to the core filename
# Useful for debugging multi-threaded applications
kernel.core_uses_pid = 1
# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1
# Controls the maximum size of a message, in bytes
kernel.msgmnb = 65536
# Controls the default maxmimum size of a message queue
kernel.msgmax = 65536
# Controls the maximum shared segment size, in bytes
kernel.shmmax = 4294967295
# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 268435456
Press Esc :wq
(configuration based on 4gb ram)

1.2 更改 Hosts 文件条目

	Cd /etc
	Cp hosts hostsold
	Vi hosts
127.0.0.1               localhost.localdoamin localhost
::1             localhost6.localdomain6 localhost6
10.91.10.205    hostname.domain.co.in  hostname
Press Esc and :wq

1.3 转到 /etc/security (cd /etc/security)

Vi limits.conf
Add or change  /etc/security/limits.conf file:
orarep              soft    nofile  4096
orarep              hard    nofile  65536
orarep              soft    nproc   2047
orarep              hard    nproc   16384
to save Esc :wq

1.4 转到 /etc/pam.d (cd /etc/pam.d)

Vi login
Add or change line to the /etc/pam.d/login file
session    required     pam_limits.so
session    required     /lib/security/pam_limits.so
to save Esc :wq

非常重要的步骤

以下软件包 (rpm) 是 Enterprise Linux 所必需的

1.5 所需 rpm

检查 rpm

Rpm –q rpmname
rpm -q gcc-4.1.0-28.4 
rpm -q gcc-c++-4.1.0-28.4
rpm -q setarch-1.6-1
rpm -q sysstat-5.0.5-1 – to be done
rpm -q libaio-0.3.106
rpm -q libaio-devel-0.3.106 – to be don
rpm -q libstdc++-4.1.0-28.4
rpm -q libstdc++-devel-4.1.0-28.4
rpm -q compat-libstdc++-296-2.96-132.7.2
rpm -q compat-db-4.1.25-9
rpm -q control-center-2.8.0-12
rpm -q glibc-common-2.3.4-2.9 
rpm -q binutils-2.16.91.0.5-23.4 
rpm -q make-3.80-202.2 -dibe
rpm -q openmotif22-2.2.3 (for Oracle Reports Server)
rpm -q openmotif-2.2.3 (for Oracle Reports Server)  

1.6 创建用户和组

添加组

groupadd oinstall
groupadd dba
groupadd oper
Adding user and assign the group:
	useradd -g oinstall -G dba,oper orarep
Add password for Oracle user
	passwd orarep

1.7 首先安装 weblogic

./ oepe111130_wls1032_linux32.bin
Select default path
Do not create separate domain

1.8 安装 Forms 和 Report Services

Unzip ofm_pfrd_linux_11.1.1.2.0_32_disk1_1of1.zip
Unzip ofm_pfrd_linux_11.1.1.2.0_32_disk2_1of1.zip
Unzip ofm_pfrd_linux_11.1.1.2.0_32_disk3_1of1.zip
Unzip ofm_pfrd_linux_11.1.1.2.0_32_disk4_1of1.zip

1.9 关闭或重启计算机

Login as Oracle 
Change/add user environment
Go to /home/oracle
Vi .bash_profile
Add the following:
.bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export ORACLE_MIDDLEWARE=/home/orarep/Middleware
export ORACLE_HOME=/home/orarep/Middleware/as_1
export ORACLE_INSTANCE=/home/orarep/Middleware/asinst_1
export ORACLE_DOMAIN=/home/orarep/Middleware/user_projects/domains/fm_rep

LD_LIBRARY_PATH=$ORACLE_HOME/jdk/jre/lib/i386/classic:$ORACLE_HOME/jdk/
	jre/lib/i386/native_threads:$ORACLE_HOME/jdk/jre/lib/i386:$ORACLE_HOME/
	lib:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH
export PATH

if [ $USER = "oracle" ]; then
  if [ $SHELL = "/bin/ksh" ]; then
    ulimit -p 16384
    ulimit -n 65536
  else
    ulimit -u 16384 -n 65536
  fi
fi
Press Esc key :wq

Log out
Login as Oracle user

1.10 运行安装步骤

Set the Display first
              export DISPLAY=hostname:0.0
Or
DISPAY=HOSTNAME:0.0
export DISPLAY

Go setup Disk directory
Cd Disk1
./runInstaller

image003.jpg

选择下一步。

image004.jpg

选择“安装并配置”,然后单击“下一步”。

image005.jpg

检查所有先决条件是否已验证,并且状态应如上所示。

image006.jpg

创建用户并添加密码,然后单击“下一步”。

image007.jpg

image008.jpg

1.11 其余按照 Oracle 提供的 GUI 进行操作

1.12 一些提示

重新加载 keymap 文件。

打开 rwservlet.properties

添加以下条目并重新启动 wls_reports

<reloadkeymap>yes</reloadkeymap>

手动启动

1 - set and confirm environment (each time before starting a component)
***********************************************************
Sample script setEnv_11g:
export FMW_HOME=/home/oracle/Middleware
export ORACLE_HOME=/home/oracle/Middleware/as_1
export ORACLE_INSTANCE=/home/oracle/Middleware/asinst_1
export DOMAIN_HOME=/home/oracle/Middleware/user_projects/domains/ClassicDomain
export TNS_ADMIN=/home/oracle/Middleware/asinst_1/config

Open command prompt
***********************************************************
2 - start Admin Server
***********************************************************
cd $DOMAIN_HOME
startWebLogic.sh &
3 - start nodeManager
***********************************************************
cd $FMW_HOME
cd wlserver_10.3/server/bin
startNodeManager.sh &
4.  start reports engine
Cd $ORACLE_INSTANCE/bin
./opmnctl startall
To find out the status
./opmnctl status
To stop the Engine
./opmnctl stopall
                Administrator Console: http://hostname:7001/console
                EM Console: http://hostname:7001/em
                EMAgent URL: http://hostname:5155/emd/main
                Reports URL: http://hostname:8090/reports/rwservlet

配置信息

文件名 Unix 上的目录结构
rwbuilder.sh $ORACLE_INSTANCE/config/reports/bin/
rwbuilder (可执行文件) $ORACLE_HOME/bin/
reports.sh $ORACLE_INSTANCE/config/reports/bin/
rwserver.sh $ORACLE_INSTANCE/config/reports/bin/
rwclient.sh $ORACLE_INSTANCE/config/reports/bin/
rwrun.sh $ORACLE_INSTANCE/config/reports/bin/
rwconverter.sh $ORACLE_INSTANCE/config/reports/bin/
rwservlet.properties ** $DOMAIN_HOME/servers/WLS_REPORTS/stage/reports/
reports/configuration/
cgicmd.dat ** $DOMAIN_HOME/servers/WLS_REPORTS/stage/reports/
reports/configuration/
rwserver.conf (独立) $ORACLE_INSTANCE/config/ReportsServerComponent/
report_server_name/
rwnetwork.conf (独立) $ORACLE_INSTANCE/config/ReportsServerComponent/
report_server_name/
rwnetwork.conf $ORACLE_INSTANCE/config/ReportsToolsComponent/ReportsTools/
rwserver.conf (进程内)** $DOMAIN_HOME/servers/WLS_REPORTS/stage/reports/
reports/configuration/
rwnetwork.conf ** $DOMAIN_HOME/servers/WLS_REPORTS/stage/reports/
reports/configuration/
targets.xml $DOMAIN_HOME/sysman/state/
opmnctl (可执行文件) $ORACLE_INSTANCE/bin/
opmn.xml $ORACLE_INSTANCE/config/OPMN/opmn/
uifont.ali $ORACLE_INSTANCE/config/FRComponent/frcommon/
guicommon/tk/admin/
uiprint.txt $ORACLE_INSTANCE/config/FRComponent/frcommon/
guicommon/tk/admin/
Tk2motif.rgb $ORACLE_INSTANCE/config/FRComponent/frcommon/
guicommon/tk/admin/
portlist.ini $ORACLE_HOME/install/
httpd.conf $ORACLE_INSTANCE/config/OHS/ohs1/
tnsnames.ora $ORACLE_INSTANCE/config/

成功安装后,您将需要从 Oracle Metalink 下载补丁。 Report 补丁:9473270。这需要应用。

Cd $ORACLE_HOME/Opatch

./opatch apply /home/orarep/9473270

cd $ORACLE_HOME/reports/lib
make -f ins_reports.mk install

shutdown weblogic
shutdown reports

修订历史

  • 2011 年 11 月 18 日:1.0 在 Enterprise Linux 5 和 CentOS 5 上安装 Oracle 11g,作者:Srivalsalakumar Menon
© . All rights reserved.