Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: SQL*Plus and PL/SQL >> class SAMPLE.Pgm1 could not be resolved

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: class SAMPLE.Pgm1 could not be resolved
 karthi  Posted: Jul 19, 2007 07:25:18 AM

 Total Post: 2
 Joined: Jul, 2007






 Hi,

i tried to load java program in to the oracle. but i am getting error. after loaded the java program that status is invalid.


Code: Select all
D:\logfilemonitor1>loadjava -verbose -user SAMPLE/SAMPLE@orcl Pgm1.class
arguments: '-verbose' '-user' 'SAMPLE/SAMPLE@orcl' 'Pgm1.class'
creating : class Pgm1
loading : class Pgm1


SQL> select DBMS_JAVA.LONGNAME(OBJECT_NAME) as OBJECT_NAME ,STATUS from ALL_OB
JECTS where OBJECT_TYPE like 'JAVA%' and OWNER='SAMPLE';


OBJECT_NAME STATUS
------- -------------
PGM1 INVALID


then i connected to SAMPLE/SAMPLE . then i excuted following PL/SQL script.


Code: Select all
SQL> CREATE FUNCTION hello_there1 (to_whom IN VARCHAR2)
2 RETURN VARCHAR2
3 AS LANGUAGE JAVA
4 NAME 'Pgm1.sayIt
5 (java.lang.String) return java.lang.String';
6 /

Function created.

SQL> BEGIN
2 DBMS_OUTPUT.PUT_LINE(hello_there1('world'));
3 END;
4 /
BEGIN
*
ERROR at line 1:
ORA-29541: class SAMPLE.Pgm1 could not be resolved
ORA-06512: at "SAMPLE.HELLO_THERE1", line 0
ORA-06512: at line 2


I am getting following error. this is first time i am using loadjava. any body help me.

Thanks,
kkkarthi
Member

Posts: 2
Joined: Thu Jul 19, 2007 10:01 am

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar857
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik386
  Vinoth Kumar357
  Gopu Gopi340
  Gitesh Trivedi322
  neeraj sharma258
  Ramesh Jois246






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software