user_java_policy table not available [message #393023] |
Fri, 20 March 2009 01:01 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](/forum/images/custom_avatars/136607.jpg) |
ramoradba
Messages: 2457 Registered: January 2009 Location: AndhraPradesh,Hyderabad,I...
|
Senior Member |
|
|
this is my production DB.
IND> select banner from v$version
2 ;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for Linux: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
5 rows selected.
At my local DB(TESTING)
to avoid the following ERROR
ERROR at line 1:
ORA-29532: Java call terminated by uncaught Java exception:
java.security.AccessControlException: the Permission (java.net.SocketPermission
x.x.x.x:xxxx connect,resolve) has not been granted to schema. The
PL/SQL to grant this is dbms_java.grant_permission( 'schema',
'SYS:java.net.SocketPermission', 'x.x.x.x:xxxx', 'connect,resolve' )
ORA-06512: at "schema.procedurename", line 1
ORA-06512: at line 1
call dbms_java.set_output(1000); and
i am granting permission to that schema
call dbms_java.grant_permission('schema','java.net.SocketPermission','x.x.x.x:xxxx','connect,resolve');
At my TEsting DB USER_JAVA_POLICY Table available.
IND> desc user_java_policy
Name Null? Type
----------------------------------------- -------- ----------------------------
KIND VARCHAR2(8)
GRANTEE_NAME NOT NULL VARCHAR2(30)
TYPE_SCHEMA NOT NULL VARCHAR2(30)
TYPE_NAME VARCHAR2(4000)
NAME VARCHAR2(4000)
ACTION VARCHAR2(4000)
ENABLED VARCHAR2(8)
SEQ NUMBER
but in my production DB
IND> desc user_java_policy
ERROR:
ORA-04043: object user_java_policy does not exist
i need to deploy the code to the production DB .....wthout the permission ,'java.net.SocketPermission' error will occur so i need to grant the permission. but there is no such table lke user_java_policy to view which permissions are granted to specific user.
to get that view do i need to run any kind of script,or is it generated automatically whenever i grant the permissions directly.
need your suggestion.
thanks & regards
Sriram
[Updated on: Fri, 20 March 2009 01:41] Report message to a moderator
|
|
|
|
|
|
Re: user_java_policy table not available [message #393043 is a reply to message #393038] |
Fri, 20 March 2009 02:16 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](/forum/images/custom_avatars/136607.jpg) |
ramoradba
Messages: 2457 Registered: January 2009 Location: AndhraPradesh,Hyderabad,I...
|
Senior Member |
|
|
IND> select comp_id, status, version from dba_registry where comp_id like '%JAVA%';
no rows selected
IND> desc sys.user_java_policy
ERROR:
ORA-04043: object sys.user_java_policy does not exist
this is from my local DB.
IND> select comp_id, status, version from dba_registry where comp_id like '%JAVA%';
COMP_ID STATUS VERSION
------------------------------ ----------- ------------------------------
JAVAVM VALID 10.2.0.1.0
CATJAVA VALID 10.2.0.1.0
IND> select * from v$option where lower(parameter) like '%java%';
PARAMETER
----------------------------------------------------------------
VALUE
----------------------------------------------------------------
Java
TRUE
IND> desc sys.user_java_policy
Name Null? Type
----------------------------------------- -------- ----------------------------
KIND VARCHAR2(8)
GRANTEE_NAME NOT NULL VARCHAR2(30)
TYPE_SCHEMA NOT NULL VARCHAR2(30)
TYPE_NAME VARCHAR2(4000)
NAME VARCHAR2(4000)
ACTION VARCHAR2(4000)
ENABLED VARCHAR2(8)
SEQ NUMBER
thanks & regards
Sriram
[Updated on: Fri, 20 March 2009 02:34] Report message to a moderator
|
|
|
|
|
|
|