壹佰网|ERP100 - 企业信息化知识门户

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4729|回复: 4

知道BUG:1721293 ,如何确认patch号啊.

[复制链接]
发表于 2006/12/4 14:28:12 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622  。

您需要 登录 才可以下载或查看,没有帐号?注册

x
知道BUG:1721293 ,如何确认patch号啊.
Download the patch for BUG:1721293 and rebuild the plsql.jar with the provided TCPConnection.class file. Once you have rebuilt the plsql.jar file, you will need to reload it into the database. The UNIX instructions are provided in the patch. The Windows instructions are basically the same and included here for completeness. (Refer to U for UNIX, W for Windows, and B for Both.)
1) Create a temporary directory/folder and download the patch into this location. Unzip the patch.
2) Copy the $ORACLE_HOME/plsql/jlib/plsql.jar into this directory/folder: U) From the temp dir created in step one: $> cp $ORACLE_HOME/plsql/jlib/plsql.jar . W) Use Windows Explorer to navigate and copy/paste the file plsql.jar (in OH\plsql\jlib) to the temp folder
3) Extract the classes in plsql.jar using jar utility:
B) From the command prompt with the temp dir as the current dir, issue command: $> jar -xvf plsql.jar This will create an Oracle directory containing all of the classes within it. Note: jar is a Java ARchive utility provided with the JDK. 4) Copy the supplied class file from the patch into the newly created sub- directory/folder: U) $> cp TCPConnection.class oracle/plsql/net W) Use Windows Explorer to navigate and copy/paste the TCPConnection.class file from the temp folder down into the oracle\plsql\net folder This will replace the class already there. 5) Re-archive the classes into a new jar: B) From the command prompt with the temp dir as the current dir, issue command: $> jar -cvf plsql.jar oracle 6) Copy this new plsql.jar file to its original location U) $> cp plsql.jar $ORACLE_HOME/plsql/jlib W) Use Windows Explorer to navigate and copy/paste the plsql.jar file from the temp folder into the OH\plsql\jlib folder. 7) Reload this new plsql.jar file into the database. From the ORACLE_HOME directory, start sqlplus or svrmgrl and login as sys or internal and execute this command: U) SQL> call dbms_java.loadjava('-resolve -force plsql/jlib/plsql.jar'); W) SQL> call dbms_java.loadjava('-resolve -force plsql\jlib\plsql.jar'); Explanation ----------- The problem is that the plsql.jar file, provided in the 8.1.7.1 and 8.1.7.2 patchsets, contains an invalid TCPConnection class. The provided patch for BUG:1721293 contains the correct TCPConnection class and a readme for reloading it on a UNIX server. Although the report might imply this fix is HP specific, it is generic and can be applied to any platform. References
发表于 2006/12/4 17:52:37 | 显示全部楼层
转交给版主了。
发表于 2006/12/4 18:20:57 | 显示全部楼层
看上去晕,麻烦楼主编辑一下吧。

我想知道你的问题到底是什么????
把问题说清楚很重要。
 楼主| 发表于 2006/12/5 08:41:09 | 显示全部楼层
declare
    v_FromAddr   varchar2(50):='ming@oamail.oatriangle.com.cn';
    v_ToAddr   varchar2(50):='ming@oamail.oatriangle.com.cn';
    v_Message   varchar2(200);
    v_MailHost   varchar2(50):='oamail.oatriangle.com.cn';
    v_MailConnection   UTL_SMTP.CONNECTION;
  begin
    v_Message:='From:'   ||   v_FromAddr   ||   CHR(10)   ||
                          'Subject:Hello   From   gym'   ||   CHR(10)   ||
                          'test777';
    v_MailConnection:=UTL_SMTP.OPEN_CONNECTION(v_MailHost);

    UTL_SMTP.HELO(v_MailConnection,v_MailHost);
    UTL_SMTP.MAIL(v_MailConnection,v_FromAddr);
    UTL_SMTP.RCPT(v_MailConnection,v_ToAddr);
    UTL_SMTP.DATA(v_MailConnection,v_Message);
    UTL_SMTP.QUIT(v_MailConnection);
  end;
运行发邮件时,报错如下;
ORA-29531: 没有方法get_crlf在类oracle/plsql/net/TCPConnection中
ORA-06512: 在"SYS.UTL_TCP", line 678
ORA-06512: 在"SYS.UTL_TCP", line 671
ORA-06512: 在"SYS.UTL_SMTP", line 99
ORA-06512: 在"SYS.UTL_SMTP", line 121
ORA-06512: 在line 11
问题就是以上BUG:1721293问题,oracle 数据库需要patch.
 楼主| 发表于 2006/12/5 08:49:23 | 显示全部楼层
以上是写的 oracle数据库邮件发送程序.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|手机版|壹佰网 ERP100 ( 京ICP备19053597号-2 )

Copyright © 2005-2012 北京海之大网络技术有限责任公司 服务器托管由互联互通
手机:13911575376
网站技术点击发送消息给对方83569622   广告&合作 点击发送消息给对方27675401   点击发送消息给对方634043306   咨询及人才点击发送消息给对方138011526

GMT+8, 2025/11/30 16:57 , Processed in 0.013994 second(s), 14 queries , File On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表