Using Java objects in Oracle

Source: Internet
Author: User

1. Write a Java object and save it in C:/Hello. Java

2. loadjava-user Scott/tiger @ 223 hello. java, set hello. java is added to the database. If the source code is added, we can see from javasource that if the class is loaded, it cannot be seen from javasource.

3. query the loaded object.

SQL> select * From user_java_classes where rownum = 1;

Name major minor kind accessibility is_inner is_abstract is_final is_debug source super outer
Certificate ---------- --------- ----------- -------- certificate -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hello 49 0 interface Public No hello. Java/lang/Object-

4. loadjava can load class, jar, resource, Properties

5. After loading, use

Create or replace function getpy (s varchar2) return varchar2 as language Java name 'test. pinyinutil. getfirstletter (Java. Lang. String) return java. Lang. string ';

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.