Solved

Error granting roles

Posted on 2000-04-29
2
1,405 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

719 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