EBS 应用/数据库常用管理(记性太差,记录备查)

本文详细介绍EBS系统的维护步骤,包括应用与数据库重启、FTP安装配置、用户管理及补丁安装等,并提供了客户化应用的安装流程及解决LoadRunner导入数据时遇到的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. 重启应用
   
   概述步骤(此操作没有停止数据库):

  1.登陆FTP,终止应用:cd $COMMON_HOME/admin/scripts/$CONTEXT_NAME

  运行:./adstpall.sh apps/apps

  2.杀进程 , 查询对应目标的进程:ps -eaf|grep PROD

  3.kill -9 进程ID  删除

  4、重启:到cd $COMMON_HOME/admin/scripts/$CONTEXT_NAME下
  运行:./adstrtal.sh apps/apps


  查看状态:
  adcmctl.sh status apps/apps

  adrepctl.sh status apps/apps


2. 重启数据库 (须先停应用,再停数据库,同样,先启数据库,再启应用)

   su - oratest (数据库管理员)
   cd $ORACLE_HOME/appsutil/scripts/
   --STOP
   . addlnctl.sh stop TEST
   . addbctl.sh stop
   --START
   . addlnctl.sh start TEST
   . addbctl.sh start


   --another method
   in sqlplus
   --restart database
   SQL> shutdown immediate;
   SQL> startup;
   in command line
   --restart listener
   [oracle@localhost admin]$ lsnrctl start

2.1 bounce apache server
 

    cd $ADMIN_SCRIPTS_HOME

    R12
    adoacorectl.sh stop 
    adoacorectl.sh start
    adoacorectl.sh status(optional)
   11i
   sh $COMMON_TOP/admin/scripts/adapcctl.sh stop
   sh $COMMON_TOP/admin/scripts/adapcctl.sh start


3. 安装FTP(21端口)
   $sudo yum install vsftpd
   $service vsftpd start

4. 增加用户
   $useradd -g ftp -d /home/testuser -conf xxx.conf testuser
   -g 指定用户组
   -d 指定HOME目录,即登记后的初始目录
   -conf 指定配置文件

5. 把用户加入某个组
   $usermod -g groupname

6. 修改密码
   $passwd

7. 修改用户HOME目录
   $vi /etc/passwd

8. 重启并发管理器
   $cd $INST_TOP/admin/scripts
   $. adcmctl.sh stop
   $. adcmctl.sh start

9. 安装patch
   $su - appltest --应用管理员
   $unzip xxx.zip
   $cd 11895700 --进入unzip出来的补丁目录
   $adpatch ptions=hotpatch

10. package 加密
    $wrap iname=XXX.sql name=XXX.plb

11. 查看服务器进程
    ps aux | less

12. 查看CPU 使用情况
    top

13. 安装客户化应用

1)Make the directory structure for your custom application files.

cd $APPL_TOP

mkdir cux

mkdir cux/12.0.0

mkdir cux/12.0.0/admin

mkdir cux/12.0.0/admin/sql

mkdir cux/12.0.0/admin/odf

mkdir cux/12.0.0/sql

mkdir cux/12.0.0/bin

mkdir cux/12.0.0/reports

mkdir cux/12.0.0/reports/US

mkdir cux/12.0.0/reports/ZHS

mkdir cux/12.0.0/forms

mkdir cux/12.0.0/forms/US

mkdir cux/12.0.0/forms/ZHS

mkdir cux/12.0.0/$APPLLIB

mkdir cux/12.0.0/$APPLOUT

mkdir cux/12.0.0/$APPLLOG

mkdir cux/12.0.0/mesg

mkdir cux/12.0.0/java

mkdir cux/12.0.0/help

mkdir cux/12.0.0/patch

mkdir cux/12.0.0/lib

mkdir cux/12.0.0/media

 2) Add the custom module into the environment

 

修改$CONTEXT_FILE ,

  /u01/TEST/apps/apps_st/appl/cus/12.0.0

后面加上

 

    /u01/TEST/apps/apps_st/appl/cux/12.0.0

 

3) Create new tablespace for database objects

--

create tablespace APPS_TS_CUX_DATA datafile '/u01/TEST/db/apps_st/data/cux_data01.dbf' size 4096M

create tablespace APPS_TS_CUX_IDX datafile '/u01/TEST/db/apps_st/data/cux_ind01.dbf' size 4096M

 

4) Create schema

create user cux identified by cux

default tablespace APPS_TS_CUX_DATA

temporary tablespace temp

quota unlimited on APPS_TS_CUX_DATA

quota unlimited on APPS_TS_CUX_IDX;

grant connect, resource to CUX;

 

 

5) Register your Oracle Schema.

Login to Applications with System Administrator responsibility

Navigate to Application--&gtRegister

Application = Sohochina 客户化应用

Short Name = CUX

Basepath = CUX_TOP

Description = Sohochina Custom Application

 

 

6) Register Oracle User

Naviate to Security--&gtOracle--&gtRegister

Database User Name = cux

Password = cux

Privilege = Enabled

Install Group = 0

Description = Sohochina Custom Application User

 

 

7) Add Application to a Data Group

Navigate to Security--&gtOracle--&gtDataGroup

Sohochina 客户化应用 加到 Standard 数据组

Data Group = Standard

Oracle ID = APPS

Description = Sohochina Custom Application

 

8)、注册多OU应用

 

R12启用MOAC,需要进行多OU的注册。

 

 

BEGIN

  fnd_mo_product_init_pkg.register_application('CUX',

                                               'SYSADMIN',

                                               'Y');

  COMMIT;

END;

 

9) 最后执行 Autoconfig

su – appltest

cd $ADMIN_SCRIPTS_HOME/

adautocfg.sh



11. 解决loadrunner的问题

LoadRunner导入数据时,提示以下错误:
vuser_init.c(18): Error: nca_connect_server: cannot communicate with host ebsoracle.sohochina.com on port 8001
 

R12安装后Form服务默认是Serverlet模式,且禁用Socket模式;只要按如下基本简单改动即可改成Socket模式,并允许Socket模式。
1. Source the environment on the application tier.
2. Stop all the application tier services:
$INST_TOP/admin/scripts/adstpall.sh
3. Run the following command to enable Forms Socket Mode:
$FND_TOP/bin/txkrun.pl -script=ChangeFormsMode \
-contextfile=$INST_TOP/appl/admin/.xml \
-mode=socket \
-port=9095 \
-runautoconfig=No
4. 修改$INST_TOP/appl/admin/.xml,将appserverid_authentication修改为off
5. 执行autoConfig
$INST_TOP/admin/scripts/adautocfg.sh
6. Start all the application tier services:
$INST_TOP/admin/scripts/adstrtal.sh
7 Socket 模式访问:
http://.:/OA_HTML/frmservlet






   

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10359218/viewspace-750951/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10359218/viewspace-750951/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值