Solved

Error granting roles

Posted on 2000-04-29
2
1,378 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
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.

708 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

15 Experts available now in Live!

Get 1:1 Help Now