Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2395024
  • 博文数量: 454
  • 博客积分: 4860
  • 博客等级: 上校
  • 技术积分: 6375
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-13 10:08
个人简介

10年工作经验,专研网站运维。

文章分类

全部博文(454)

文章存档

2017年(11)

2016年(13)

2015年(47)

2014年(36)

2013年(147)

2012年(64)

2011年(136)

分类: LINUX

2013-01-16 10:12:17

关闭服务

[root@PLASPACSHCN4 oracle]# su - oracle

Stop App Tier:

[oracle@PLASPACSHCNV4 TEST_PLASPACSHCNV4]$ source /home/oracle/.apps
[oracle@PLASPACSHCNV4 TEST_PLASPACSHCNV4]$ cd $ADMIN_SCRIPTS_HOME
[oracle@PLASPACSHCNV4 scripts]$ pwd
/u01/oracle/R12apps/inst/apps/TEST_plaspacshcnv4/admin/scripts
[oracle@PLASPACSHCNV4 scripts]$ ./adstpall.sh apps/****
 
Stop DB Tier

[oracle@PLASPACSHCN4 scripts]$ source /home/oracle/.ora

[oracle@PLASPACSHCNV4 TEST_PLASPACSHCNV4]$ cd /u01/oracle/test11idb/appsutil/scripts/TEST_PLASPACSHCNV4
[oracle@PLASPACSHCNV4 TEST_PLASPACSHCNV4]$ ./addlnctl.sh stop TEST

You are running addlnctl.sh version 115.7

Logfile: /u01/oracle/test11idb/appsutil/log/TEST_PLASPACSHCNV4/addlnctl.txt

Shutting down listener process TEST ...


addlnctl.sh: exiting with status 0
[oracle@PLASPACSHCNV4 TEST_PLASPACSHCNV4]$ ./addbctl.sh stop immediate

You are running addbctl.sh version 115.10


Shutting down database TEST ...


SQL*Plus: Release 11.2.0.2.0 Production on Wed Jan 16 08:50:22 2013

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

Connected.
Database closed.
Database dismounted.
ORACLE instance shut down.
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

addbctl.sh: exiting with status 0

 

 

启动服务

Start DB Tier:

[root@PLASPACSHCN4 R12backup]# su - oracle

[oracle@PLASPACSHCN4 ~]$ source /home/oracle/.ora

cd /u01/oracle/test11idb/appsutil/scripts/TEST_PLASPACSHCNV4
[oracle@PLASPACSHCN4 TEST_PLASPACSHCNV4]$ lsnrctl start test

[oracle@PLASPACSHCN4 TEST_PLASPACSHCNV4]$ ./addbctl.sh start test

Start app Tier

[oracle@PLASPACSHCN4 TEST_PLASPACSHCNV4]$ source /home/oracle/.apps

[oracle@PLASPACSHCN4 TEST_PLASPACSHCNV4]$ cd $ADMIN_SCRIPTS_HOME

[oracle@PLASPACSHCN4 scripts]$ ./adstrtal.sh apps/*****

 

 

查看状态

查看DB状态

[oracle@PLASPACSHCNV4 TEST_PLASPACSHCNV4]$ ps -ef | grep ora
root      2245  2223  0 Jan09 ?        00:07:28 hald-addon-storage: polling /dev/hdc
root     24633 13039  0 08:39 pts/2    00:00:00 su - oracle
oracle   24634 24633  0 08:39 pts/2    00:00:00 -bash
root     25107 25079  0 08:44 pts/3    00:00:00 su - oracle
oracle   25108 25107  0 08:44 pts/3    00:00:00 -bash
root     25810 25784  0 08:47 pts/4    00:00:00 su - oracle
oracle   25811 25810  0 08:47 pts/4    00:00:00 -bash
oracle   26046 25811  0 08:50 pts/4    00:00:00 ps -ef
oracle   26047 25811  0 08:50 pts/4    00:00:00 grep ora

查看app状态
[oracle@PLASPACSHCNV4 TEST_PLASPACSHCNV4]$ ps -ef | grep FNDL*
oracle   26050 25811  0 08:50 pts/4    00:00:00 grep FNDL*
[oracle@PLASPACSHCNV4 TEST_PLASPACSHCNV4]$ ps -ef | grep apps
oracle   26052 25811  0 08:51 pts/4    00:00:00 grep apps
[oracle@PLASPACSHCNV4 TEST_PLASPACSHCNV4]$ ps -ef | grep apps*
root      3016     1  0 Jan09 ?        00:00:00 bt-applet --sm-disable
root      3043     1  0 Jan09 ?        00:19:43 /usr/libexec/wnck-applet --oaf-activate-iid=OAFIID:GNOME_Wncklet_Factory --oaf-ior-fd=19
root      3045     1  0 Jan09 ?        00:00:00 /usr/libexec/trashapplet --oaf-activate-iid=OAFIID:GNOME_Panel_TrashApplet_Factory --oaf-ior-fd=25
root      3051     1  0 Jan09 ?        00:00:00 nm-applet --sm-disable
root      3053     1  0 Jan09 ?        00:00:00 /usr/libexec/mapping-daemon
root      3076     1  0 Jan09 ?        00:00:00 /usr/libexec/notification-area-applet --oaf-activate-iid=OAFIID:GNOME_NotificationAreaApplet_Factory --oaf-ior-fd=23
root      3078     1  0 Jan09 ?        00:00:06 /usr/libexec/clock-applet --oaf-activate-iid=OAFIID:GNOME_ClockApplet_Factory --oaf-ior-fd=29
root      3080     1  0 Jan09 ?        00:00:14 /usr/libexec/mixer_applet2 --oaf-activate-iid=OAFIID:GNOME_MixerApplet_Factory --oaf-ior-fd=35
oracle   26054 25811  0 08:51 pts/4    00:00:00 grep apps*
[oracle@PLASPACSHCNV4 TEST_PLASPACSHCNV4]$
[oracle@PLASPACSHCNV4 TEST_PLASPACSHCNV4]$ pwd
/u01/oracle/test11idb/appsutil/scripts/TEST_PLASPACSHCNV4

 

 

 

阅读(1667) | 评论(0) | 转发(0) |
0

上一篇:保存硬件使用率到文件

下一篇:添加字体

给主人留下些什么吧!~~