Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2582197
  • 博文数量: 323
  • 博客积分: 10211
  • 博客等级: 上将
  • 技术积分: 4934
  • 用 户 组: 普通用户
  • 注册时间: 2006-08-27 14:56
文章分类

全部博文(323)

文章存档

2012年(5)

2011年(3)

2010年(6)

2009年(140)

2008年(169)

分类: Oracle

2009-01-13 18:55:47

  HR模块中,在做人员资料维护的时候,照片无法加载。EBS系统报如下错误:
 
ORACLE 错误 &ERRNO: PER_IMAGE_UPLOAD_PKG 中检测到 &REASON 。 (ERRNO=)
(REASON=ORA-29532: Java 调用被未捕获的Java 例外终止:
java.security.AccessControlException: the Permission
(java.net.SocketPermission hostname.xxx.com resolve) has not been
granted to APPS. The PL/SQL to grant this is dbms_java.grant_permission(
'APPS','SYS:java.net.SocketPermission','hostname.xxx.com','resolve'
))
 
从错误提示看好像是APPS缺少权限。查了下metalink发现是个bug,但也可以手工给APPS付权限。其实在错误信息里已经告诉我们怎么做了。dbms_java.grant_permission(
'APPS','SYS:java.net.SocketPermission','hostname.xxx.com','resolve')
 
来看看oracle的解释:
This is due to AD Bug 1486132 - lack of java permissions.
The 11i.PER.B readme file describes the manual step required to
correct the problem. The following statement should be run from
the SYSTEM account.

exec dbms_java.grant_permission -
APPS','java.net.SocketPermission','*','connect,resolve');

Note the '-' terminator at the end of the first line which was ommitted from the PER.B readme (see Bug 1628965). This manual step can be replaced by applying the patch for Bug 1524970. This step is not required for PER.C
具体操作:
以系统权限连接oracle数据库,然后执行错误信息里的语句:
SQL>exec dbms_java.grant_permission(
'APPS','SYS:java.net.SocketPermission','hostname.xxx.com','resolve')
--执行完成后再次导照片,没有成功。可能是没有退出应用的缘故。
SQL>exec dbms_java.grant_permission -
APPS','java.net.SocketPermission','*','connect,resolve');
--执行完成后再次导照片,还是不行。提示信息跟原来比有变化:The PL/SQL to grant this is dbms_java.grant_permission(
'APPS','SYS:java.net.SocketPermission','hostnameIP:1541','connect,resolve'
))
退出应用,重新登录问题解决。
阅读(1742) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~