Solved

Error granting roles

Posted on 2000-04-29
2
1,389 Views
Last Modified: 2008-03-10
I am executing the following command
while connected as internal

SQL>  grant javasyspriv to test;

But I am getting the following error

 grant javasyspriv to test
       *
ERROR at line 1:
ORA-01919: role 'JAVASYSPRIV' does not exist

Oracle says this role will be automatically created. But looks like that is not the case. How do I create this role (which Oracle supplied script).

Thanks in advance.

0
Comment
Question by:srikumar_p
  • 2
2 Comments
 
LVL 5

Expert Comment

by:sbenyo
ID: 2762799
Hi,

Check for this settings:

shared_pool_size to be set to 50MB minimum
compatibility = 8.1.0      

Run this script connected as internal.

$ORACLE_HOME/ORANT/JAVAVM/INSTALL/initjvm.sql

This should create the role.

0
 
LVL 5

Accepted Solution

by:
sbenyo earned 50 total points
ID: 2762804
Also make sure you have:

JAVA_POOL_SIZE of 20MB
and additional 50MB of System Tablespace and enough rollback
segments (500MB).

This is because this script loads the initial set of Java classes in the SYS
schema, initializes the tables for supporting Java and for the CORBA namespace.

The package DBMS_JAVA is also created by this script.


0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now