Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java Stored Procedures

Status
Not open for further replies.

fatcodeguy

Programmer
Feb 25, 2002
281
CA
Hi,

I've loaded several classes as java stored procedures, and granted several java permissions that i want to remove. How do I do this?

If i try and use dbms_java.revoke_permission(), it just disables it. Is there a way of removing it completely? Is there a way of unloading a java class?

Thanks!!
 
The dropjava utility reverses the action of loadjava. It converts filenames into the names of schema objects, drops the schema objects, and finally deletes their digest table rows. Dropping a class invalidates classes that depend on it directly or indirectly. Dropping a source also drops classes derived from it.

Here is the syntax:

dropjava {-user | -u} username/password[@database]
[-option_name [-option_name] ...] filename [filename] ...
where option_name stands for the following syntax:

{ {oci8 | o}
| {schema | s} schema_name
| {thin | t}
| {verbose | v} }
On the command line, you can enter the names of Java source, class, and resource files, SQLJ input files, and uncompressed .jar files and .zip archives, in any order.


dropjava Options:
-oci8
Directs dropjava to communicate with the database using the OCI JDBC driver. This option (the default) and -thin are mutually exclusive.

-schema
Drops Java schema objects from the specified schema. If this option is not specified, then the logon schema is used.

You must have the DROP ANY PROCEDURE privilege to drop objects from another user's schema.

-thin
Directs dropjava to communicate with the database using the thin JDBC driver. This option and -oci8 (the default) are mutually exclusive.

-verbose
Enables the verbose mode, in which progress messages are displayed.

 
Thanks fmsousa! How do I revoke java permissions i granted using dbms_java.grant_permission()?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top