分类目录归档:系统层级

Oracle sysaux表空间占用问题处理

现象:

oracle sysaux表空间占用96%。通过awrinfo.sql报告核实组件:SM/AWR占用27,317.2 MB;SM/OPTSTAT 390.1 MB,大部分是AWR报告占用。

解决方法:

删除快照,回收表及index。

1、修改统计信息的保持时间,默认为31天,这里修改为7天,过期的统计信息会自动被删除

select dbms_stats.get_stats_history_retention from dual;

exec dbms_stats.alter_stats_history_retention(7);

select dbms_stats.get_stats_history_retention from dual;

2、删除AWR快照,最后再次查看SYSAUX表空间使用率(非业务时间,分段操作,以免引起临时空间增大)

select min(snap_id),max(snap_id) from dba_hist_snapshot;//查询最最小和最大快照ID

begin

dbms_workload_repository.drop_snapshot_range( low_snap_id => 32155, high_snap_id => 32300, dbid => 2950336419);

end;

3、回收降低水位

alter table WRH$_EVENT_HISTOGRAM move partition WRH$_EVENT__2950336419_2060;
alter index WRH$_EVENT_HISTOGRAM_PK rebuild partition WRH$_EVENT__2950336419_2060;

Oracle ebs R12.2.3 升级数据库后过账变慢(11.0.2.3.0-11.0.2.4.0)

背景:
oracle ebs R12.2.3对应库版本11.0.2.3.0,升级数据库版本为:11.0.2.4.0

现象:升级完成后,突然发现过账很缓慢,单个2行的日记账过账7分钟,批量过账同样耗时严重。

方案:metalink 2195917.1

主要变更内容(变更后,一般过账1-2秒完成):

配置文件:初始化 SQL 语句 – 自定义

在地点层修改为:

begin fnd_ctl.fnd_sess_ctl(”,”,”,”,”,’ALTER SESSION SET”_FIX_CONTROL”=”13704562:OFF”‘);end;

EBS登陆界面、注销或者点击某些OAF 的self-service类型界面错误(RAC环境解决)

现象:用户进入EBS登陆界面、注销或者点击某些OAF 的self-service类型界面,会偶尔遇到问题。

点击here查看具体异常信息:

其中会有诸如一下内容:

oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.apps.fnd.framework.OAException, msg=Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: Io exception: Connection reset;

或者

Error Page
Exception Details.
oracle.apps.fnd.framework.OAException: Application: FND, Message Name: SQL_PLSQL_ERROR. Tokens: ROUTINE = AppsConnectionManager.appsInitialize(int,int,int,int,Connection):-1,-1,-1,0,oracle.jdbc.driver.T4CConnection@17a6ac0; REASON = java.sql.SQLRecoverableException: IO Error: Connection reset; ERRNO = 17002; at oracle.apps.fnd.framework.server.OAExceptionUtils.processAOLJErrorStack(OAExceptionUtils.java:1025)

原因:(报错的环境确实是RAC架构)

FND_JDBC_USABLE_CHECK is set to false in the DBC file in RAC environment.

TheFND_JDBC_USABLE_CHECK parameter governs whether a pl/sql query is performedbefore giving a connection to a client. The pool checks whether a connection isusable before handing it to a client.This always involves checking that the connection is not null and is notclosed. If FND_JDBC_USABLE_CHECKis set to true, then it also verifies that the connection can be used to perform asimple PL/SQL query. (This parameter may have to be set to “true” inorder to clean up connectionsto a database that has been restarted.)

Settingit to TRUE checks whether each connection is working OK before you give it to auser.

解决方法(多个应用都需要执行):

1、备份dbc文件及context.xml文件;

2、Set s_fnd_jdbc_usable_check to true in context.xml file;

3、Run Autoconfig;

4、Retest the issue.

参考:metalink:

1. “YouHave Encountered An Unexpected Error” – JBO-30003 Error While Login ToOracle Applications With Database RAC Implemented (Doc ID 465812.1)

2. Error On OA Framework Pages – oracle.apps.fnd.framework.OAException, FND_GENERIC_MESSAGE, JBO-25036 (Doc ID 1607136.1)

3. Configuring and Managing E-Business Application Tier for RAC (Doc ID 1311528.1)

https://blog.csdn.net/mingleecqu/article/details/18708967?locationNum=14&fps=1

Oracle EBS多应用节点统一入口变更

前提:

应用处于关闭状态。

1、修改应用服务器hosts
采用DNS动态解析,实现负载均衡
两台应用服务器hosts文件分别添加:
10.0.1.1    xxx.xxx.com     xxx
10.0.1.2    xxx.xxx.com     xxx

2、修改$CONTEXT_FILE
修改$CONTEXT_FILE文件中如下两项:

修改节点1、节点2的XML文件如下参数:
<webentryhost oa_var=”s_webentryhost”>testerp</webentryhost>
<login_page oa_var=”s_login_page”>http://xxx.xxx.com:8000/oa_servlets/AppsLogin</login_page>

修改完毕以后,各节点顺序执行autoconfig

3、注册DNS服务器
将下述IP地址及主机名注册到DNS服务器

10.0.1.1    xxx.xxx.com     xxx
10.0.1.2    xxx.xxx.com     xxx

配置后地址http://xxx.xxx.com:8000