How do we check oracle database uses java or not [message #467392] |
Fri, 23 July 2010 13:39 |
ashfaqhdba
Messages: 10 Registered: July 2009
|
Junior Member |
|
|
Actually in our environment , sysadmins are upgrading java versions on Unix (HP & Solaris) Machines and they have asked the query whether oracle database uses Java or not?
If it uses then all the databases need to be shut down for their planned activities and if not no need to shutdown the databases.
Im the DBA need to confirm them ASAP.
Thanks in Advance
|
|
|
|
Re: How do we check oracle database uses java or not [message #467397 is a reply to message #467392] |
Fri, 23 July 2010 13:47 |
|
Michel Cadot
Messages: 68718 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Quote:Actually in our environment , sysadmins are upgrading java versions on Unix (HP & Solaris) Machines and they have asked the query whether oracle database uses Java or not?
Oracle rdbms does not use OS Java, it uses its embedded Java engine (if installed).
Some Oracle tools (like OUI) use Java but they use the one that is in Oracle delivery and not the OS one.
Regards
Michel
[Updated on: Fri, 23 July 2010 14:14] Report message to a moderator
|
|
|
|
|
|
|
|
Re: How do we check oracle database uses java or not [message #467412 is a reply to message #467409] |
Fri, 23 July 2010 14:23 |
ashfaqhdba
Messages: 10 Registered: July 2009
|
Junior Member |
|
|
SQL> CREATE OR REPLACE FUNCTION get_java_property (prop IN VARCHAR2) RETURN VARCHAR2 IS LANGUAGE JAVA name 'java.lang.System.getProperty(java.lang.String) return java.lang.String';
2 /
Function created.
SQL> SELECT get_java_property('java.version') FROM dual;
SELECT get_java_property('java.version') FROM dual
*
ERROR at line 1:
ORA-29540: class java/lang/System does not exist
|
|
|
|
|
Re: How do we check oracle database uses java or not [message #467416 is a reply to message #467415] |
Fri, 23 July 2010 14:40 |
ashfaqhdba
Messages: 10 Registered: July 2009
|
Junior Member |
|
|
SQL> select distinct object_type from dba_objects;
OBJECT_TYPE
------------------
CLUSTER
CONSUMER GROUP
DATABASE LINK
DIRECTORY
EVALUATION CONTEXT
FUNCTION
INDEX
INDEX PARTITION
LIBRARY
LOB
MATERIALIZED VIEW
OBJECT_TYPE
------------------
OPERATOR
PACKAGE
PACKAGE BODY
PROCEDURE
QUEUE
RESOURCE PLAN
SEQUENCE
SYNONYM
TABLE
TABLE PARTITION
TRIGGER
OBJECT_TYPE
------------------
TYPE
TYPE BODY
VIEW
|
|
|
|
Re: How do we check oracle database uses java or not [message #467419 is a reply to message #467418] |
Fri, 23 July 2010 14:46 |
ashfaqhdba
Messages: 10 Registered: July 2009
|
Junior Member |
|
|
OBJECT_TYPE COUNT(*)
------------------ ----------
CLUSTER 10
CONSUMER GROUP 4
DATABASE LINK 11
DIRECTORY 1
EVALUATION CONTEXT 1
FUNCTION 47
INDEX 703
INDEX PARTITION 25
LIBRARY 62
LOB 49
MATERIALIZED VIEW 108
OBJECT_TYPE COUNT(*)
------------------ ----------
OPERATOR 2
PACKAGE 336
PACKAGE BODY 328
PROCEDURE 44
QUEUE 8
RESOURCE PLAN 3
SEQUENCE 73
SYNONYM 1957
TABLE 702
TABLE PARTITION 27
TRIGGER 16
OBJECT_TYPE COUNT(*)
------------------ ----------
TYPE 486
TYPE BODY 21
VIEW 2060
25 rows selected.
|
|
|
|
|
|
Re: How do we check oracle database uses java or not [message #467507 is a reply to message #467502] |
Sun, 25 July 2010 01:25 |
|
Michel Cadot
Messages: 68718 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Another way to know if Java is installed is (not available in all versions):
SQL> select value from v$option where parameter = 'Java';
VALUE
----------------------------------------------------------------
TRUE
Regards
Michel
|
|
|