Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

oracleµ÷ÓÃjava·½·¨´íÎó - Oracle / ¿ª·¢

oracleµ÷ÓÃjava·½·¨´íÎó: ORA-29541: ÎÞ·¨½âÎöÀà.

¹ý³ÌÈçÏÂ: 
 1.Ê×ÏÈÎÒ×öÁËн¨ÁËÒ»¸ö²âÊÔµÄÏîÄ¿,ÀïÃæ¾ÍÖ»ÓÐÒ»¸öµ¥¶ÀµÄMain²âÊÔÀà. ÀïÃæÓÐÒ»¸ö·½·¨:
public static String sayHello(String name){
  return " hello " + name;
}
 2.È»ºó°ÑÏîÄ¿´ò°ü³Éprj.jar.
  ÎÒÓÃloadjava -user sys/sys@databaseName prj.jar 
select DBMS_JAVA.LONGNAME(OBJECT_NAME) as OBJECT_NAME
  from USER_OBJECTS
 where OBJECT_TYPE like 'JAVA%'
 and object_name like '%Main'
ÒѾ­²éѯµ½Õâ¸öÀà.
 3.È»ºóÔÚoracleÖз¢²¼java³ÌÐò:
create or replace function hello (name VARCHAR2) return VARCHAR2 
  as language java name
  'Main.sayHello (java.lang.String) return java.lang.String ';
Ö´ÐÐ:
  select hello(' world! ') from dual;
Ìáʾ:ORA-29541: ÎÞ·¨½âÎöÀà SYS.Main.
ÇëÖ¸½Ì.

ÎÊÌâÊÇÎÒµ¼ÈëÁËjar°ü.È»ºóÔõô"ÉèÖÃ"²ÅÄÜÈÃÎÒÀ´ÒýÓÃÕâ¸ö°üÄØ?¡¡

¸øÄã¸öÀý×Ó£º
ÏÖÔÚ,10G¼°ÆäÒÔºó°æ±¾µÄOracleÊý¾Ý¿âÌṩÁ˶ÔJava³ÌÐòµÄ¸ü¶àµÄÖ§³Ö,ºÜºÃµÄ½â¾öÁËÕâ·½ÃæµÄÎÊÌâ. ½â¾ö·½·¨ÈçÏÂ,
1. Ê×ÏÈÎÒÃÇ´´½¨µ÷ÓòÙ×÷ϵͳÃüÁîµÄJava·½·¨
create or replace and compile java source named oscmd as
import java.io.*;
import java.lang.*;
public class OSCmd extends Object {
  public static int OSCmd(String args) {
  Runtime rt = Runtime.getRuntime();
  int rc = -1;
  try


Ïà¹ØÎÊ´ð£º

javaÈÕÆÚ´¦Àí - Java / Java SE

µ±ÖªµÀÒ»¸öÈÕÆÚ£¬ÈçºÎ°ÑÕâ¸öÈÕÆÚËùÔÚÑ®µÄǰºóÁ½¸öÈÕÆÚÈ¡³ö
±ÈÈçÊäÈë20090905£¬¾ÍÊäÈë20090901 20090910
Êä³ö20090901 20090910

È¡µÃÌìÊýºó×÷Ò»ÏÂÅжÏÔÙ°ÑÕâ¸ö·½·¨ÓÃÏÂvoid set(int field, int value)  
......

C/SÏîÄ¿¼Ü¹¹Éè¼Æ----ÇóÖú - Java / Java SE

±¾ÈËÕýÔÚÓÃJava×öÒ»¸öC/S¼Ü¹¹µÄÏîÄ¿£¬ 
¿ÉÊÇÓÉÓÚÏîÄ¿±È½Ï´ó£¬Ç°ÆÚ¶Ô¼Ü¹¹µÄÉè¼ÆÓÈÆäÖØÒª£¬ÒòΪºóÆÚ¿ÉÄÜËæÊ±»á¼Ó¸ö¹¦ÄÜ»òÕßÈ¥µôijЩ¹¦ÄÜ¡£ 
ËùÒÔÌØµØÑ°ÇóÈçºÎÉè¼ÆC/SµÄ¼Ü¹¹Ê¹³ÌÐò¸ü¼ÓÃæÏò¶ÔÏó¸ü¼ÓÒ×ÓÚά ......

JAVAµç×Ӵʵ䣿 - Java / Java SE

¸÷·´óÏÀ¸ø¸ö˼·£¬²»ÊÇÔÚÏßµÄÄÇÖÖ£¬¾ÍÊÇÒ»¸ö×öÆÕͨµÄÓ¦ÓóÌÐò¡£


´Ê¿âÔõôÉú³ÉÄØ£¿

²»»á¡£

ÒýÓÃ
´Ê¿âÔõôÉú³ÉÄØ£¿
ÕÒ±¾×Öµä

ÒýÓÃ
´Ê¿âÔõôÉú³ÉÄØ£¿
Êý¾Ý¿â ºÇºÇ

ÓÃmap ¼üÖµ¶ÔÓ¦

Èç¹ûÓÃÊý¾Ý¿ ......

·ÖÏí×Ô¼ºµÄOracleÅäÖùý³Ì - Oracle / »ù´¡ºÍ¹ÜÀí

Ð»Ð»ÌÆÈËÀÏ´óµÄÖ¸µã£¬Ð»Ð»¸÷λ¸ßÊÖµÄÖ¸µã£¡
°²×°10g Enterprise¡£ÉÏÍøÏÂÁËMLDNµÄOracleÊÓÆµ£¬¸ú×ÅÊÓÆµÉϵÄÅäÖÃ×ߣ¬°²×°³É¹¦ÁË£¬µ«ÊÇûÍêÕûµØÅäÖá£
µã»÷½øÈ룺Database Configuration Assistant
1. ´´½¨Êý¾Ý¿â£» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ