Solved

Error granting roles

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

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.Net - CSV to Oracle table 4 71
Schema creation in Oracle12c 6 48
Read only access to a Procedure in oracle? 4 66
make null the repeated levels 2 22
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 shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

810 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