If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > Sendmail installation under Oracle 10g

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-21-06, 11:57
nick048 nick048 is offline
Registered User
 
Join Date: Jan 2006
Posts: 11
Red face Sendmail installation under Oracle 10g

Hi to all,

I have installed Oracle 10g and an application yhat run with 10g.
I need to install a sendmail interface, that the application developer has provided to me.
This sendmail has 4 files.
This is the readme:
Quote:
1) From MS-PROMPT run
loadjava -user
sys/xxxxx@xxxx -resolve -synonym activation.jar
loadjava -user
sys/xxxxx@xxxx -resolve -synonym mail.jar
2) From SQLPLUS as SYS
call dbms_java.grant_permission('PUBLIC','SYS:java.io.F ilePermission','<<ALL FILES>>','read,write');
call dbms_java.grant_permission('PUBLIC','SYS:java.util .PropertyPermission','*','read,write');
call dbms_java.grant_permission('PUBLIC','SYS:java.net. SocketPermission','*','connect,resolve');

3) From SQLPLUS as SYS
@sendmailjpkg.sql ;

4) CREATE PUBLIC SYNONYM "SENDMAILJPKG" FOR "SYS"."SENDMAILJPKG" ;
GRANT EXECUTE ON "SYS".SENDMAILJPKG TO "PUBLIC" ;
All is OK for 1) and 2)

But, when I run "@sendmailjpkg.sql;", the error message is displayed:
Quote:
CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "SENDMAIL" AS *
ERROR at row 1:
ORA-29536: bad format origin : Encountered "/" at line 134, column 1.
Was expecting one of:
<EOF>
"#sql" ...
"abstract" ...
"final" ...
"public" ...
"class" ...
"interface" ...
";" ...
"\\u001a" ...

Warning: package created with compilation errors.
Warning: package body created with compilation errors.


I hope that everyone can help me. The used files are attached to this thread.

Thank You and Best Regards.
Attached Files
File Type: zip sendmail.zip (261.5 KB, 114 views)
__________________
Gaetano N.
Reply With Quote
  #2 (permalink)  
Old 01-24-06, 08:11
DKG DKG is offline
Registered User
 
Join Date: May 2004
Location: BA [ARG]
Posts: 137
I think SQL Plus might be having some problems to recognize the java comments lines.
What SQL Plus version do you have?
Try removing the comments inside the java source (all "// ") an run it again.

Saludos...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On