您的位置:首页 > Web前端 > Node.js

运行adaddnode.pl报错ORA-01403 And ORA-06512

2013-12-01 12:10 253 查看
系统环境如下:

EBS 12.1.3

RDBMS 11.2.0.3

OS Oracle Linux 5.5

Symptoms

给应用添加节点,运行完adconfig后,执行adaddnode.pl报如下错误:

Configuring snapshot information for the new (clone target) node...

Executing command:

sqlplus /nolog @*********/patch/115/sql/adadmdat.sql APPS apps PROD

PROD erpdev erpweb2 ***********/temp/adadmdat_sql.spool 

declare

*

ERROR at line 1:

ORA-01403: no data found

ORA-06512: at line 159

Cause

执行adadmdat.sql配置快照信息时报错

Solution

1、在主节点执行adadmin更新快照

adadmin -- Maintain Applications Files -- maintain Snapshot information-- update the current view snapshot

2、重新执行adaddnode.pl

 

注意adaddnode.pl最先执行adadmprf.sql更新ad_appl_tops表。建议第一次执行adaddnode.pl时备份ad_appl_tops表,以防后续再次执行adaddnode.pl时报

ORA-00001: unique constraint

ORA-06512: at line 25

错误。有了备份就很好补救了。

如果没有提前备份ad_appl_tops表可以使用如下方法解决:

参考Adaddnode.Pl Fails With Ora-00001: Unique Constraint (Applsys.Ad_appl_tops_u2) Violated (文档 ID 1435834.1)

1、备份当前ad_appl_tops表

2、删除new_node条目

SQL> delete from AD_APPL_TOPS where NAME='<new_node>';

SQL> commit;

3、修改文件$APPL_TOP/admin/adconfig.txt中的APPL_TOP_NAME,修改为源环境的值

%%START_OF_TOKEN%%

APPL_TOP_NAME

%%END_OF_TOKEN%%

%%START_OF_VALUE%%

<old_node>

%%END_OF_VALUE%%
4.、Run AutoConfig from $AD_TOP/bin

adconfig.pl contextfile=<put your context file with path>

5. Run adaddnode.pl

6. Verify that new_node was added as a new node and has an associated snapshot. The following queries should return:

SQL> select APPL_TOP_ID, NAME from ad_appl_tops;

APPL_TOP_ID NAME

----------- --------------------------------------------------

...

<Newid> <new_node>

SQL> select APPL_TOP_ID, SNAPSHOT_ID, SNAPSHOT_NAME from ad_snapshots;

APPL_TOP_ID SNAPSHOT_ID SNAPSHOT_NAME

----------- ----------- ----------------------

...

<Newid> <NewSnap_id> CURRENT_VIEW

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息