Oracle Applications DBA 基础(第二期)Week 05 exercise

2024-03-09 23:48

本文主要是介绍Oracle Applications DBA 基础(第二期)Week 05 exercise,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

1. 怎样在 OAM 中看 那些  patch applied 了 ?

N:System Administrator - Oracle Application Manager > Patch Wizard > Applied Patches > Go


--EOF--


2. 在 OAM 中 运行 concurrent processing activity report 。如果你有业务测试系统,可以看看你的系统的具体情形。

N:System Administrator - Oracle Application Manager > Dashboard > Site Map > Monitoring > Performance/Usage > Concurrent Processing Reports > Programs Usage Statistics > Programs Usage Statistics 


--EOF--


3. 一个 Oracle Applications 的 patch 可能影响多个文件。我们可以 通过 adpatch apply=no 的方式去检查,还可以在 OAM 中用什么方式看 ?请运行一个例子说明。
1. set staging directory
N:System Administrator - Oracle Application Manager > Patch Wizard > Patch Wizard Preferences > Tasks -> set "Staging Directory" -> click OK


2. put patch zip to the ad/nonad directory which under staging directory(R12.1.3) OR put patch zip to the staging directory(R12.0.6)
-bash-3.2$ pwd
/u01/tm12/apps/liao
-bash-3.2$ ls -l nonad/
total 632
-rw-r--r-- 1 aptm12 dba 641548 Mar 12 19:14 p17066098_R12.RG.B_R12_LINUX.zip
-bash-3.2$


3. run PPA
N:System Administrator - Oracle Application Manager > Patch Wizard > Recommend/Analyze Patches > Tasks


submit patch analyze request set


check patch analyze request set status


check patch impact



patch impact overview


patch impact details


参考:
Patch Tracking Utilities
http://docs.oracle.com/cd/E18727_01/doc.121/e12148/T531058T531063.htm


--EOF--


4. 测试运行一下 turn on and turn off OAM Restricted Mode 的步骤.
具体步骤请看 Oracle Applications System Administrator's Guide 中的

Maintenance Managing Downtime in Restricted Mode。

Restricted Mode介绍:
In Restricted Mode, only valid database users are allowed to login into OAM via a
special URL, and are allowed to access a limited set of features. The database role
AD_MONITOR_ROLE has access to all the required database objects for Restricted
Mode features. However, a valid database user who does not have the
AD_MONITOR_ROLE may have further limited access to OAM functionality based on
the database objects to which this user has access. Monitoring in-progress AD utilities is
the only feature that is accessible.

How to Implement Restricted Mode
1. Schedule the system downtime and notify end users of the upcoming downtime.
  Use OAM to schedule the downtime. See: Manage Downtime Schedules - Overview, page 8-3.
2. Complete the required one-time setup steps required to monitor patching progress.
  Ensure that you have enabled the monitoring user account by unlocking the
 ad_monitor account with the following command:
 alter user ad_monitor account unlock;
Then log in to SQL*Plus as the user ad_monitor. The default password is 'lizard'.
Reset the password.
SQL> conn / as sysdba
Connected.
SQL> select username,account_status from dba_users where username='AD_MONITOR';

USERNAME               ACCOUNT_STATUS
------------------------------ --------------------------------
AD_MONITOR               EXPIRED & LOCKED

SQL> alter user ad_monitor account unlock;

User altered.

SQL> select username,account_status from dba_users where username='AD_MONITOR';

USERNAME               ACCOUNT_STATUS
------------------------------ --------------------------------
AD_MONITOR               EXPIRED

SQL> conn AD_MONITOR/lizard
ERROR:
ORA-28001: the password has expired


Changing password for AD_MONITOR
New password:
Retype new password:
Password changed
Connected.
SQL> show user
USER is "AD_MONITOR"
SQL>
3. Shut down Apache and all other all Oracle E-Business Suite services. Use the
standard AD script:
$INST_TOP/admin/scripts/adstpall.sh apps/apps
4. Enable Maintenance Mode for your system.
To do this, run adadmin and select Option 5 =>Change Maintenance Mode, then
Option 1 => Enable Maintenance Mode.
5. Run the command:
[applvis@oel57vis scripts]$ grep -i s_apache_mode $CONTEXT_FILE
         <config_option type="techstack" oa_var="s_apache_mode">NORMAL</config_option>
[applvis@oel57vis scripts]$ $FND_TOP/bin/txkrun.pl -script=ChangeApacheMode -contextfile=$CONTEXT_FILE -mode=Restrict
*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
*** Log File = /u02/inst/apps/VIS_oel57vis/logs/appl/rgf/TXK/txkChangeApacheMode_Thu_Mar_13_01_25_56_2014.log
Program : /u01/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkChangeApacheMode.pl started @ Thu Mar 13 01:25:56 2014

*** Log File = /u02/inst/apps/VIS_oel57vis/logs/appl/rgf/TXK/txkChangeApacheMode_Thu_Mar_13_01_25_56_2014.log


For switching to MAINTENANCE/NORMAL mode all the services on the Oracle Applications middle tier should be stopped. Are the services stopped? <Yes/No> [DEFAULT - Yes]:
**********************************
Values used
**********************************
Context File     : /u02/inst/apps/VIS_oel57vis/appl/admin/VIS_oel57vis.xml
Mode             : Restrict
Services stopped : Yes


*********************************************
Sanity check to switch the mode to Restrict
*********************************************


**************************************************************
Following context variables are in SYNC:
----------------------------------------
Variable: s_restricted_mode_comment(Value: #)
Variable: s_apache_mode(Value: NORMAL)
**************************************************************


**************************************************************
Following files are in SYNC:
----------------------------
/u01/apps/apps_st/appl/fnd/12.0.0/admin/template/httpd_conf_1013.tmp (Version: 120.33.12010000.4)
/u02/inst/apps/VIS_oel57vis/ora/10.1.3/Apache/Apache/conf/httpd.conf (Version: 120.33.12010000.4)
**************************************************************


**************************************************************
Following files are in SYNC:
----------------------------
/u01/apps/apps_st/appl/fnd/12.0.0/admin/template/ssl_conf_1013.tmp (Version: 120.11.12010000.2)
/u02/inst/apps/VIS_oel57vis/ora/10.1.3/Apache/Apache/conf/ssl.conf (Version: 120.11.12010000.2)
**************************************************************
**** Sanity check PASSED. Proceeding further...


**************************
Backing up context file...
**************************
Context file backed up at: /u02/inst/apps/VIS_oel57vis/logs/appl/rgf/TXK/Thu_Mar_13_01_25_56_2014/VIS_oel57vis.xml


*****************************
Backing up httpd.conf file...
*****************************
httpd.conf file backed up at: /u02/inst/apps/VIS_oel57vis/logs/appl/rgf/TXK/Thu_Mar_13_01_25_56_2014/httpd.conf


***************************
Backing up ssl.conf file...
***************************
ssl.conf file backed up at: /u02/inst/apps/VIS_oel57vis/logs/appl/rgf/TXK/Thu_Mar_13_01_25_56_2014/ssl.conf


********************************
Backing up orion-web.xml file...
********************************
orion-web.xml file backed up at: /u02/inst/apps/VIS_oel57vis/logs/appl/rgf/TXK/Thu_Mar_13_01_25_56_2014/orion-web.xml


****************************
Changing to RESTRICTED Mode...
****************************
Updating context Variable s_restricted_mode_comment...
Updated context Variable s_restricted_mode_comment to
Updating context Variable s_apache_mode...
Updated context Variable s_apache_mode to RESTRICT


**************************************************************
File Instantiation:
-------------------
Template: /u01/apps/apps_st/appl/fnd/12.0.0/admin/template/httpd_conf_1013.tmp
Instantiated location: /u02/inst/apps/VIS_oel57vis/ora/10.1.3/Apache/Apache/conf/httpd.conf
**************************************************************


**************************************************************
File Instantiation:
-------------------
Template: /u01/apps/apps_st/appl/fnd/12.0.0/admin/template/orion_web_xml_restricted_1013.tmp
Instantiated location: /u02/inst/apps/VIS_oel57vis/ora/10.1.3/j2ee/oacore/application-deployments/oacore/html/orion-web.xml
**************************************************************


**************************************************************
File Instantiation:
-------------------
Template: /u01/apps/apps_st/appl/fnd/12.0.0/admin/template/ssl_conf_1013.tmp
Instantiated location: /u02/inst/apps/VIS_oel57vis/ora/10.1.3/Apache/Apache/conf/ssl.conf
**************************************************************


**************************************************
Oracle HTTP Server is switched to RESTRICTED mode...
Start Oracle HTTP Server and OACORE OC4J
**************************************************

Log file to change the Apache Mode :
 /u02/inst/apps/VIS_oel57vis/logs/appl/rgf/TXK/txkChangeApacheMode_Thu_Mar_13_01_25_56_2014.log


Program : /u01/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkChangeApacheMode.pl completed @ Thu Mar 13 01:26:19 2014

End of /u01/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkChangeApacheMode.pl : No Errors encountered
[applvis@oel57vis scripts]$ grep -i s_apache_mode $CONTEXT_FILE
         <config_option type="techstack" oa_var="s_apache_mode">RESTRICT</config_option>
[applvis@oel57vis scripts]$
6. Start Oracle HTTP Server and oacore OC4J:
[applvis@oel57vis scripts]$ $INST_TOP/admin/scripts/adapcctl.sh start

You are running adapcctl.sh version 120.7.12010000.2

Starting OPMN managed Oracle HTTP Server (OHS) instance ...
opmnctl: opmn started.
opmnctl: starting opmn managed processes...

adapcctl.sh: exiting with status 0

adapcctl.sh: check the logfile /u02/inst/apps/VIS_oel57vis/logs/appl/admin/log/adapcctl.txt for more information ...  

[applvis@oel57vis scripts]$ $INST_TOP/admin/scripts/adoacorectl.sh start

You are running adoacorectl.sh version 120.13

Starting OPMN managed OACORE OC4J instance  ...

adoacorectl.sh: exiting with status 0

adoacorectl.sh: check the logfile /u02/inst/apps/VIS_oel57vis/logs/appl/admin/log/adoacorectl.txt for more information ...  

[applvis@oel57vis scripts]$ $INST_TOP/admin/scripts/adoacorectl.sh status

You are running adoacorectl.sh version 120.13

Checking status of OPMN managed OACORE OC4J instance ...

Processes in Instance: VIS_oel57vis.oel57vis.example.com
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid | status  
---------------------------------+--------------------+---------+---------
OC4JGroup:default_group          | OC4J:oafm          |     N/A | Down    
OC4JGroup:default_group          | OC4J:oacore        |   13896 | Alive   
HTTP_Server                      | HTTP_Server        |   13843 | Alive   


adoacorectl.sh: exiting with status 0

adoacorectl.sh: check the logfile /u02/inst/apps/VIS_oel57vis/logs/appl/admin/log/adoacorectl.txt for more information ...  

[applvis@oel57vis scripts]$
7. Begin applying patch(es). Run adpatch (hotpatch=n). 这里只测试一下restricted mode,所以没有进行patch步骤.
8. To monitor patching progress, launch Restricted Mode in OAM using the OAM
  Restricted Mode URL:
http://oel57vis.example.com:8000/OA_HTML/weboamLocal/oam/oamServlet
9. Log in as ad_monitor with the new password.

10. You are now in OAM Restricted Mode, and can access patching utilities from the
Maintenance tab of the Site Map: Navigate to Site Map > Maintenance, Patching and
Utilities > Timing Reports
.

11. Confirm the end of scheduled downtime in OAM upon patch completion.
From within OAM in Restricted Mode, navigate to Site Map > Maintenance >
Patching and Utilities > Manage Downtime Schedules. Click the Mark Complete
button. Confirm that you wish to change the downtime status to Complete.
12. Now switch the system back to normal mode. Run adadmin and select Option 5 =>
Change Maintenance Mode, then Option 2 => Disable Maintenance Mode.
13. Stop Oracle HTTP Server and oacore OC4J:
$INST_TOP/admin/scripts/adapcctl.sh stop
$INST_TOP/admin/scripts/adoacorectl.sh stop

14. Run the following command:
$FND_TOP/bin/txkrun.pl -script=ChangeApacheMode -contextfile=$CONTEXT_FILE -mode=Normal
[applvis@oel57vis scripts]$ grep -i s_apache_mode $CONTEXT_FILE
         <config_option type="techstack" oa_var="s_apache_mode">NORMAL</config_option>
[applvis@oel57vis scripts]$

15. Restart all services:
$INST_TOP/admin/scripts/adstrtal.sh apps/apps

参考:
121samg.pdf - page 336 - 337

--EOF--

这篇关于Oracle Applications DBA 基础(第二期)Week 05 exercise的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/792336

相关文章

零基础学习Redis(10) -- zset类型命令使用

zset是有序集合,内部除了存储元素外,还会存储一个score,存储在zset中的元素会按照score的大小升序排列,不同元素的score可以重复,score相同的元素会按照元素的字典序排列。 1. zset常用命令 1.1 zadd  zadd key [NX | XX] [GT | LT]   [CH] [INCR] score member [score member ...]

【Linux 从基础到进阶】Ansible自动化运维工具使用

Ansible自动化运维工具使用 Ansible 是一款开源的自动化运维工具,采用无代理架构(agentless),基于 SSH 连接进行管理,具有简单易用、灵活强大、可扩展性高等特点。它广泛用于服务器管理、应用部署、配置管理等任务。本文将介绍 Ansible 的安装、基本使用方法及一些实际运维场景中的应用,旨在帮助运维人员快速上手并熟练运用 Ansible。 1. Ansible的核心概念

AI基础 L9 Local Search II 局部搜索

Local Beam search 对于当前的所有k个状态,生成它们的所有可能后继状态。 检查生成的后继状态中是否有任何状态是解决方案。 如果所有后继状态都不是解决方案,则从所有后继状态中选择k个最佳状态。 当达到预设的迭代次数或满足某个终止条件时,算法停止。 — Choose k successors randomly, biased towards good ones — Close

忽略某些文件 —— Git 学习笔记 05

忽略某些文件 忽略某些文件 通过.gitignore文件其他规则源如何选择规则源参考资料 对于某些文件,我们不希望把它们纳入 Git 的管理,也不希望它们总出现在未跟踪文件列表。通常它们都是些自动生成的文件,比如日志文件、编译过程中创建的临时文件等。 通过.gitignore文件 假设我们要忽略 lib.a 文件,那我们可以在 lib.a 所在目录下创建一个名为 .gi

音视频入门基础:WAV专题(10)——FFmpeg源码中计算WAV音频文件每个packet的pts、dts的实现

一、引言 从文章《音视频入门基础:WAV专题(6)——通过FFprobe显示WAV音频文件每个数据包的信息》中我们可以知道,通过FFprobe命令可以打印WAV音频文件每个packet(也称为数据包或多媒体包)的信息,这些信息包含该packet的pts、dts: 打印出来的“pts”实际是AVPacket结构体中的成员变量pts,是以AVStream->time_base为单位的显

C 语言基础之数组

文章目录 什么是数组数组变量的声明多维数组 什么是数组 数组,顾名思义,就是一组数。 假如班上有 30 个同学,让你编程统计每个人的分数,求最高分、最低分、平均分等。如果不知道数组,你只能这样写代码: int ZhangSan_score = 95;int LiSi_score = 90;......int LiuDong_score = 100;int Zhou

Oracle type (自定义类型的使用)

oracle - type   type定义: oracle中自定义数据类型 oracle中有基本的数据类型,如number,varchar2,date,numeric,float....但有时候我们需要特殊的格式, 如将name定义为(firstname,lastname)的形式,我们想把这个作为一个表的一列看待,这时候就要我们自己定义一个数据类型 格式 :create or repla

ORACLE 11g 创建数据库时 Enterprise Manager配置失败的解决办法 无法打开OEM的解决办法

在win7 64位系统下安装oracle11g,在使用Database configuration Assistant创建数据库时,在创建到85%的时候报错,错误如下: 解决办法: 在listener.ora中增加对BlueAeri-PC或ip地址的侦听,具体步骤如下: 1.启动Net Manager,在“监听程序”--Listener下添加一个地址,主机名写计

Oracle Start With关键字

Oracle Start With关键字 前言 旨在记录一些Oracle使用中遇到的各种各样的问题. 同时希望能帮到和我遇到同样问题的人. Start With (树查询) 问题描述: 在数据库中, 有一种比较常见得 设计模式, 层级结构 设计模式, 具体到 Oracle table中, 字段特点如下: ID, DSC, PID; 三个字段, 分别表示 当前标识的 ID(主键), DSC 当

c++基础版

c++基础版 Windows环境搭建第一个C++程序c++程序运行原理注释常亮字面常亮符号常亮 变量数据类型整型实型常量类型确定char类型字符串布尔类型 控制台输入随机数产生枚举定义数组数组便利 指针基础野指针空指针指针运算动态内存分配 结构体结构体默认值结构体数组结构体指针结构体指针数组函数无返回值函数和void类型地址传递函数传递数组 引用函数引用传参返回指针的正确写法函数返回数组