当我们执行oracle的部分程序,需要perl时,可能会遇到在path路径中找不到perl的模块的情况,比如执行adr ips gerenagte ,psu打补丁等等.
如下面列出的:
adrci> ips generate package 1 in c:\temp
Can't locate Win32/TieRegistry.pm in @INC (@INC contains: C:/Program Files/OmniBack/lib .) at d:\oracle\product\11.2.0\db_1\bin\crsdiag.pl line 43.
Can't locate English.pm in @INC (@INC contains: C:/Program Files/OmniBack/lib .) at d:\oracle\product\11.2.0\db_1\OPatch\opatch.pl line 30.
BEGIN failed--compilation aborted at d:\oracle\product\11.2.0\db_1\OPatch\opatch.pl line 30.
Generated package 1 in file c:\temp\ORA7445PC_20161107140455_COM_1.zip, mode complete
DIA-49441: Warnings while finalizing package, details in file d:\oracle\diag\rdbms\spwg\spwg\incpkg\pkg_1\seq_1\finalize.log
这里,就是新安装了 dp后,找不到perl路径,执行报错,我们只需要设置path,增加perl路径即可.
D:\>set path=D:\oracle\product\11.2.0\db_1\perl\bin;%PATH%
d:\>adrci
adrci> set home diag\rdbms\spwg\spwg
adrci> ips generate package 1 in c:\temp
Generated package 1 in file c:\temp\ORA7445PC_20161107140455_COM_2.zip, mode complete
adrci>
|