CentOS (Linux) 上开启FTP服务并配置用户
关掉防火墙:iptables -F
1.安装系统(省略):密码:q1w2e3r4
分区:
/ 10G
SWAP 内存二倍以上
/GIB 10G
/WORK 6G
2.系统配制:
用户设置
groupadd oinstall
groupadd gibap
adduser -g oinstall -G gibap gibap
passwd gibap
3.参数设置
Verify the host name settings:
- Verify that the /etc/hosts file is formatted as follows:
127.0.0.1 localhost.localdomain localhost
172.25.5.90 gibprod.zyxel.cn gibprod
- Verify that the /etc/sysconfig/network file is formatted as follows:
NETWORKING=yes
HOSTNAME= gibprod.zyxel.cn
- If the /etc/sysconfig/networking/profiles/default/network file exists, remove it.
Open the file /etc/security/limits.conf and change the existing values for "hard" and "soft" parameters as follows..
* soft nproc 2047
* hard nproc 16384
* soft nofile 4096
* hard nofile 65536
Kernel Parameter Settings
- Add the following line to the /etc/pam.d/login file, if it does not already exist:
session required /lib/security/pam_limits.so
- If you are performing the installation from the console or X Windows, then add the following line to the /etc/pam.d/xdm file:
session required pam_limits.so
- Open the file /etc/sysctl.conf and change the value of kernel parameter setting as following. Reboot the system after making changes.
#cd /etc
#vi sysctl.conf
Add the follows lines to adjust the kernel parameters
#add adjust kernel parameters for Oracle DB and AP 10gR2
kernel.sem = 256 32000 100 142
kernel.shmmax = 4294967295
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.msgmax = 4096
kernel.msgmax = 8192
kernel.msgmnb = 65535
kernel.msgmni = 2878
kernel.threads-max = 131072
net.ipv4.ip_local_port_range = 1024 65000
fs.file-max = 206173
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
sysctl -p
sysctl -a
4. TELNET
[root@test root]# rpm -qa | grep telnet |
[root@test root]# vi /etc/xinetd.d/telnet |
方法一:仅支援 Red Hat 或 Mandrake 系统: 方法二:正统的启动方式: |
[root@test root]# mv /etc/securetty /etc/securetty.bak |
===================================================================
环境变量设置
$ vi .bash_profile
Add the follow lines :
TMP=/tmp
export TMP
TMPDIR=/tmp
export TMPDIR
DISPLAY=gibprod.zyxel.cn:1.0
export DISPLAY
5.目录权限配制
mkdir -p HH
chown -R gibap:oinstall /gib
chmod -R 775 /gib
#cd /gib
#mkdir gibap
#mkdir gibap/10.1.2
mkdir gib/
6.系统安装:(一定要按步骤做否则会报错)
xhost local:oracle
#cpio -idvm < lnx_920_disk2.cpio
#cpio -idvm < lnx_920_disk3.cpio
#cd /gib
#mkdir gibap
#mkdir gibap/10.1.2
#chown –R gibap:oinstall gibap
$cd /stage /Disk1
$linux32 bash
$./runInstaller
- Start Installation
- Specify File and locateon
Name : Frm10gR2
Path : /gib/gibap/10.1.2
rpm -ivh foo-1.0-l.i386.rpm
- System check : Pass, Click [Next]
- Specify product and Language
Product : Oracle Application Server From and Report Service 10g 10.1.2.02
Language : English SC, TC
- Select Port Configuration: Auto
- Specify SMTP Server:
- Specify Instance and ias_admin Password
Instance Name : GIBPROD
ias_admin password : IAS100
- Summary Screen : press Install
- Open a new window, run /gib/gibap/10.1.2/root.sh as root user
- After successfully install, read / gib/gibap/10.1.2/install/setupinf.txt for detail test and information
The following information is available in:
/gib/gibap/10.1.2/install/setupinfo.txt
Create GIB Working Directory
Telent as gibap user, Create GIB working directory as followed
$cd /gib/gibap
$mkdir gibprod
cd /gibprod
$mkdir fmb
$mkdir fmx
$mkdir rdf
$mkdir temp
$cd /gib/gibap/gibprod/temp
$mkdir gibexp
$mkdir giblog
Modify Environment file
- Modify $ORACLE_HOME/forms/server/formsweb.cfg
Add followed lines
[gibprod]
defaultcharset=ZHS16GBK
separateFrame=True
#lookandfeel=Generic
workingDirectory=/gib/gibap/gibprod/fmx
form=GIBLOGON.fmx
width=1024
height=768
colorScheme=teal
userid=gibprod/gibprod@gibprod
envFile=default.env
splashScreen=/forms/html/Splash_GIB.gif
background=/forms/html/Backgrond_GIB.gif
#logo=/forms/html/Banner_Gemtek.gif
- Modify $ORACLE_HOME/forms/server/default.env
Added GIB programs working directory into FORMS_PATH : /gib/gibap/gibprod/fmx
FFORMS_PATH=/gib/gibap/10.1.2/forms:/gib/gibap/gibprod/fmx
Upload splash and background gif files to $ORACLE_HOME/tools/web/html folder.
- Modify $ORACLE_HOME/bin下的form, report scripts(frmcmp_batch.sh frmcmp.sh, reports.sh)
a) Add
NLS_LANG='AMERICAN_AMERICA.ZHS16GBK’
export NLS_LANG
b) Add GIB reports file working directory in REPORTS_PATH
c) Add
export REPORTS_NO_DUMMY_PRINTER=TRUE
d) Add followed lines into opform compile scripts: frmcmp_batch.sh
ORACLE_HOME=${ORACLE_HOME:-/gib/gibap/10.1.2}
export ORACLE_HOME
export TERM=vt220
export ORACLE_TERM=vt220
export DISPLAY=gibprodzyxel.cn:0.0
NLS_LANG='AMERICAN_AMERICA.ZHS16GBK’
export NLS_LANG
LIBPATH=$ORACLE_HOME/lib32:$ORACLE_HOME/lib:$ORACLE_HOME/jdk/jre/bin/classic:$LIBPATH
export LIBPATH
- Modify fonts files for PDF output
a) 进入目录:$ORACLE_HOME/gui*/tk/admin
b) vi Tk2Motif.rgb
c) 更改Tk2Motif*fontBaseReg: jisx0208.1983-0为:Tk2Motif*fontBaseReg: GB2312
d) 更改Tk2Motif*fontMapCs: iso8859-2=EE8ISO8859P2 为 Tk2Motif*fontMapCs: iso8859-1=ZHS16GBK
e) vi uifont.ali
f) Modify this file as attached
g)
h) cd PPD
i) vi screenprinter.ppd
j) 更改*Font Symbol: Special "(001.007S)" Special ROM为 *%Font Symbol: Special "(001.007S)" Special ROM
- 在文件/gib/gibap/10.1.2/network/admin/tnsnames.ora 增加如下信息
GIBPROD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = server IP)(PORT = server port))
)
(CONNECT_DATA =
(SERVICE_NAME = SID)
)
)
)其中的host,port,service_name修改为对应DB的配置
- 修改<$ORACLE_HOME>/forms/java/oracle/forms/registry/Registry.dat文件,将其中的行
app.ui.lovButtons=false 修改为:app.ui.lovButtons=true
app.ui.requiredFieldVA=false 修改为: app.ui.requiredFieldVA=true
app.ui.requiredFieldVABGColor=255,0,0 修改为: app.ui.requiredFieldVABGColor=255,255,0
- 修改<$ORACLE_HOME>/forms/server/forms.conf,增加虚拟路径gibtemp,在其中增加如下一行:
AliasMatch ^/gibprodtemp/(..*) "/gib/gibap/gibprod/temp/$1" (其中路径以实际使用路径为准 :前面我们创建的temp目录)
- restart ap tier
- 在DB下建立路径,用于生成邮件,DBlog等文件目录。
gibap user ‘s .bash_profile file
ORACLE_HOME=/gib/gibap/10.1.2
export ORACLE_HOME
PATH=$ORACLE_HOME/bin:$ORACLE_HOME/dcm/bin:$ORACLE_HOME/opmn/bin:$PATH
export PATH
Start Service
1. Start components:
ORACLE_HOME/opmn/bin/opmnctl startall
This command starts OPMN and all OPMN-managed processes such as DCM,
Oracle HTTP Server, OC4J instances, Web Cache, Forms, and Reports.
2. Start the Application Server Control Console:
ORACLE_HOME/bin/emctl start iasconsole
Stop Service
To stop a middle-tier instance:
1. Stop the Application Server Control Console:
ORACLE_HOME/bin/emctl stop iasconsole
2. Stop components:
ORACLE_HOME/opmn/bin/opmnctl stopall
This command stops OPMN and all OPMN-managed processes such as
Service Ports