Imperva 导致的ORAbase 乱码

DBCA Failing Because Of Garbage Characters In ORACLE_BASE Variable (Doc ID 2947963.1)​编辑To Bottom

In this Document

Symptoms
Changes
Cause
Solution

 

APPLIES TO:

Oracle Database Configuration Assistant - Version 19.14.0.0.0 and later
Oracle Database - Enterprise Edition - Version 19.14.0.0.0 and later
Information in this document applies to any platform.

SYMPTOMS

DBCA is inserting gargabe characters in the directories it is creating based on the ORACLE_BASE when invoked to create a new DB which leads the overall process to fail.
The same behavior is seen when manually calling the oraenv script, the ORACLE_BASE value is set to random characters.
 

## Sample output of the oraenv script using debug mode, the ORACLE_BASE is incorrectly set using random characters.

> set -x
no_sid @ hostname:/home/oracle
> + keybd_trap
.+ keybd_trap
+ keybd_trap
o+ keybd_trap
r+ keybd_trap
a+ keybd_trap
e+ keybd_trap
n+ keybd_trap
v+ keybd_trap

+ . oraenv
+ SILENT=''
+ [ 0 -gt 0 ]
+ N=''
+ C=''
+ grep '--color=auto' c
+ echo '\c'
+ 1> /dev/null 2>& 1
+ N=-n
+ [ 0 '=' 0 ]
+ OLDHOME=/u01/app/oracle/product/12.1.0.4/agent12c/core/12.1.0.4.0/jdk/bin:/usr/ccs/bin:/usr/dt/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/bin:/usr/share/centrifydc/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/X/bin:/usr/ucb:/opt/oracle/admin/rsync/bin:/opt/oracle/OPatch:/u01/app/oracle/product/12.1.0.4/emcli
+ ORASID=no_sid
+ echo -n 'ORACLE_SID = [no_sid] ? '
ORACLE_SID = [no_sid] ? + read NEWSID
+ keybd_trap
d+ keybd_trap
b+ keybd_trap
_+ keybd_trap
1+ keybd_trap

+ ORACLE_SID=db_1
+ export ORACLE_SID
+ dbhome db_1
+ ORAHOME=/u01/app/oracle/product/19.0.0/db_1
+ ORACLE_HOME=/u01/app/oracle/product/19.0.0/db_1
+ export ORACLE_HOME
+ LD_LIBRARY_PATH=/u01/app/oracle/product/19.0.0/db_1/lib::/opt/odbc/lib
+ export LD_LIBRARY_PATH
+ PATH=/u01/app/oracle/product/12.1.0.4/agent12c/core/12.1.0.4.0/jdk/bin:/usr/ccs/bin:/usr/dt/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/bin:/usr/share/nnnn/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/X/bin:/usr/ucb:/opt/oracle/admin/rsync/bin:/opt/oracle/OPatch:/u01/app/oracle/product/12.1.0.4/emcli:/u01/app/oracle/product/19.0.0/db_1/bin
+ export PATH
+ ulimit
+ 2> /dev/null
+ ULIMIT=unlimited
+ [ 0 '=' 0 -a unlimited '!=' unlimited ]
+ ORABASE_EXEC=/u01/app/oracle/product/19.0.0/db_1/bin/orabase
+ [ /u01/app/oracle '!=' x ]
+ OLD_ORACLE_BASE=/u01/app/oracle
+ unset ORACLE_BASE
+ export ORACLE_BASE
+ [ -w /u01/app/oracle/product/19.0.0/db_1/inventory/ContentsXML/oraclehomeproperties.xml ]
+ [ -f /u01/app/oracle/product/19.0.0/db_1/bin/orabase ]
+ [ -x /u01/app/oracle/product/19.0.0/db_1/bin/orabase ]

## After the orabase executable is called the ORACLE_BASE value changes to some random string.

+ /u01/app/oracle/product/19.0.0/db_1/bin/orabase
+ ORACLE_BASE=$'\xb87z\u[3f7]\x7f'
+ [ /u01/app/oracle '!=' x ]
+ [ /u01/app/oracle '!=' $'\xb87z\u[3f7]\x7f' ]
+ [ '' '!=' true ]
+ echo $'The Oracle base has been changed from /u01/app/oracle to \xb87z\u[3f7]\x7f'    <<---
The Oracle base has been changed from /u01/app/oracle to ▒7z                            <<---
+ export ORACLE_BASE
+ [ $'\xb87z\u[3f7]\x7f' '==' x ]
no_sid @ hostname:/home/oracle
> + keybd_trap
s+ keybd_trap
e+ keybd_trap
t+ keybd_trap
+ keybd_trap
++ keybd_trap
x+ keybd_trap

no_sid @ hostname:/home/oracle
> echo $ORACLE_BASE
▒7z

CHANGES

 Imperva agent is installed.

CAUSE

The investigation found that the Imperva agent is causing garbage characters inserted in the ORACLE_BASE variable when calling oraenv script or DBCA. After the orabase executable file is called a random value is exported for the ORACLE_BASE variable rather than the correct one.

 

SOLUTION

Temporarily disable/stop Imperva agent to be able to use DBCA.

  • 27
    点赞
  • 16
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值