重启EBS
概述步骤(此操作没有停止数据库):
1.登陆FTP,终止应用:cd $COMMON_HOME/admin/scripts/$CONTEXT_NAME
运行:./adstpall.sh apps/apps
2.杀进程 , 查询对应目标的进程:ps -eaf|grep appdev3
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
启动/停止数据库和应用小技巧
之前我们提到过通过输入一大串命令来启动/停止数据库,这里考虑到这些路径太长和命令不容易记住,所以我们通过如下方式来轻松实现:
主要的想法就是把那些命令写入到shell文件(即.sh文件)内容当中,执行自己以简称来命名例如startDB.sh)的文件,这样一来方便、好记。具体做法如下:
首先,给它们起个名字。停止应用(stopAPP.sh),停止数据库(stopDB.sh),启动数据库(startDB.sh),启动应用(startAPP.sh)。
其次,新建.sh文件。先新建记事本,将以下内容按顺序分别粘贴进入,然后保存,名字起之前命好名的那些文件名。
(其实平常只要启一下几个就够用了)
停止应用(stopAPP.sh)文件中的内容如下:
/d01/oracle/viscomn/admin/scripts/VIS_erpvis/adalnctl.sh stop
/d01/oracle/viscomn/admin/scripts/VIS_erpvis/adcmctl.sh stop apps/apps
/d01/oracle/viscomn/admin/scripts/VIS_erpvis/adfrmctl.sh stop
/d01/oracle/viscomn/admin/scripts/VIS_erpvis/adrepctl.sh stop
/d01/oracle/viscomn/admin/scripts/VIS_erpvis/adapcctl.sh stop
停止数据库(stopDB.sh) 文件中的内容如下:
/d01/oracle/visdb/9.2.0/appsutil/scripts/VIS_erpvis/addlnctl.sh stop VIS
/d01/oracle/visdb/9.2.0/appsutil/scripts/VIS_erpvis/addbctl.sh stop immediate
启动数据库(startDB.sh) 文件中的内容如下:
/d01/oracle/visdb/9.2.0/appsutil/scripts/VIS_erpvis/addbctl.sh start
/d01/oracle/visdb/9.2.0/appsutil/scripts/VIS_erpvis/addlnctl.sh start VIS
启动应用(startAPP.sh) 文件中的内容如下:
/d01/oracle/viscomn/admin/scripts/VIS_erpvis/adalnctl.sh start
/d01/oracle/viscomn/admin/scripts/VIS_erpvis/adcmctl.sh start apps/apps
/d01/oracle/viscomn/admin/scripts/VIS_erpvis/adfrmctl.sh start
/d01/oracle/viscomn/admin/scripts/VIS_erpvis/adrepctl.sh start
/d01/oracle/viscomn/admin/scripts/VIS_erpvis/adapcctl.sh start
上述命令所代表的含义如下表所示:
adalnctl.sh Control Oracle Net8 listener for Applications services All application tier server nodes
adstrtal.sh Start all Applications server processes All application tier server nodes
adstpall.sh Stop all Applications server processes All application tier server nodes
adfrmctl.sh Control Forms server Forms server node
adfmcctl.sh Control Forms Metrics Client Forms server node
adfmsctl.sh Control Forms Metrics Server HTTP server node
adtcfctl.sh Control TCF SocketServer Concurrent processing server node
adcmctl.sh Control Concurrent managers Concurrent processing server node
adrepctl.sh Control Reports server Concurrent processing server node
adapcctl.sh Control Apache processes HTTP server node
jtffmctl.sh Control Oracle fulfillment server HTTP server node