• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Executing sqlj/java objects in oracle

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I have encountered with a problem while executing java objects in oracle
public class Hello
{
public static String world ()
{
return "Hello world";
}
}
By this prog a Hello class is created
and the same is loaded to oracle by
load java -user scott/tiger@hoststring Hello.class
When i try to call this class file in oracle using the func
create or replace function HELLOWORLD return varchar as
language java name 'Hello.world' as java.lang.String'
myString varchar2(20);
call HELLOWORLD() :myString;
print myString;
I cud not execute it
Cud anyone solve my problem
Priya
 
reply
    Bookmark Topic Watch Topic
  • New Topic