资讯   |   开发   |   选机中心   |   产品大全 | IBM | 惠普 | 联想 | 戴尔 | 苹果 | 神舟
更多: | 华硕 | 明基 | 方正 | 紫光 | TCL | 夏新 | 联宝 | 宏碁 | 七喜 | 长城 | 清华同方 | 海尔 | 三星 | 东芝 | 索尼 | 富士通 | LG | 技术 | ddnoon
当前位置:笔记本 > 软件开发 >
Advertisement
文章正文

关于在.net下oracle9.2的数据驱动问题

类型:转载   责任编辑:asp.net   日期:2007/05/23


热门软件下载:


   

为了使用Com+事务,我逼迫使用ORACLE9i,安装了9.2,可在.net   下的microsoft   ole   db   for   oracle   却无法使用,提示是:程序初始化失败....另外,我是先卸载的8i,在按的9.2.  
   
  我找到如下资料:  
   
  Oracle9i   Release   2   Data   Provider   for   .NET   9.2.0.4.0      
    下载文件    
        Oracle   Data   Provider   for   .NET   9.2.0.4.0(包括   ODAC)  
      附注    
        -   如果使用   Microsoft   企业服务/分布式事务处理协调器进行分布式事务处理,则需要   用于   MTS 的   Oracle   服务。    
        -   如果您有依赖于旧   Oracle   Home   版本的应用程序并且未经   Oracle9i   Release   2   Home   版本认证,则请不要在以前的   Oracle   Home   版本(例如   Oracle8i)上安装   ODP.NET。例如,Microsoft   OLE   DB   provider   for   Oracle   (MSDAORA)   可能无法与   Oracle9i   Release   2   客户端协同工作,因为该供应程序尚未做相应的测试。    
   
  可我不是很能搞懂她具体说的意思.是说Microsoft   OLE   DB   provider   for   Oracle   (MSDAORA)   可能无法与   Oracle9i   Release   2   客户端协同工作,还是说认证后就可以,那是的话,如何认证.  
   
   
  ////////////////////////////////////////////////////////////////////////  
   
  Problem   Description   -------------------     When   running   an   application   that   connects   to   Oracle   and   uses   the   Authenticated   User   privilege   (such   as   Microsofts   Internet   Information   Server   (IIS))   via   Oracles   9.2   client   software   and   any   of   these   programmatic   interfaces             1.   Oracle   Provider   for   OLE   DB           2.   Microsoft   OLE   DB   Provider   for   Oracle           3.   Oracle   ODBC   Driver           4.   Microsoft   ODBC   for   Oracle           5.   Oracle   Objects   for   OLE   (OO4O)     you   will   receive   one   of   the   following   errors:             (1)   Oracle   Provider   for   OLE   DB                   Error   Type:     Microsoft   OLE   DB   Service   Components   (0x80070005)                   Access   is   denied.             (2)   Microsoft   OLE   DB   Provider   for   Oracle                     Error   Type:     Microsoft   OLE   DB   Provider   for   Oracle   (0x80004005)                   Oracle   client   and   networking   components   were   not   found.   These   components                 are   supplied   by   Oracle   Corporation   and   are   part   of   the   Oracle   Version                 7.3.3   or   later   client   software   installation.   Provider   is   unable   to                 function   until   these   components   are   installed.                   Or                   Error   Type:     Microsoft   OLE   DB   Provider   for   Oracle   (0x80004005)                                 Oracle   error   occurred,   but   error   message   could   not   be   retrieved   from                 Oracle.             (3)   Oracle   ODBC   Driver                   Error   Type:     Microsoft   OLE   DB   Provider   for   ODBC   Drivers   (0x80004005)                   Specified   driver   could   not   be   loaded   due   to   system   error   5   (Oracle   in                 OraHome92).             (4)   Microsoft   ODBC   for   Oracle                   The   Oracle(tm)   client   and   networking   components   were   not   found.     These                 components   are   supplied   by   Oracle   Corporation   and   are   part   of   the   Oracle                   Version   7.3   (or   greater)   client   software   installation.                   You   will   be   unable   to   use   this   driver   until   these   components   have   been                 installed.             (5)   Oracle   Objects   for   OLE                     (a)   while   using   a   GLOBAL.ASA   file                           Error   Type:     Active   Server   Pages   (0x0)                           An   error   occurred   while   creating   object   OraSession.                     (b)   not   using   a   GLOBAL.ASA   file                           Error   Type:     Microsoft   VBScript   runtime   (0x800A0046)                           Permission   denied:   CreateObject             (6)   Other   miscellaneous   errors                   (a)   The   Specified   Module   Could   Not   Be   Found       Solution   Description   --------------------     You   need   to   give   the   Authenticated   User   privilege   to   the   Oracle   Home   by   following   these   steps:           1.     Log   on   to   Windows   as   a   user   with   Administrator   privileges.         2.     Launch   Windows   Explorer   from   the   Start   Menu   and   and   navigate   to   the                 ORACLE_HOME   directory.         3.     Right-click   on   the   ORACLE_HOME   folder   and   choose   the   "Properties"   option                 from   the   drop   down   list.     A   "Properties"   window   should   appear.         4.     Click   on   the   "Security"   tab   on   the   "Properties"   window.         5.     Click   on   "Authenticated   Users"   item   in   the   "Name"   list   (on   Windows   XP   the                 "Name"   list   is   called   "Group   or   user   names").         6.     Uncheck   the   "Read   and   Execute"   box   in   the   "Permissions"   list   (on   Windows                 XP   the   "Permissions"   list   is   called   "Permissions   for   Authenticated   Users").                 This   box   will   be   under   the   "Allow"   column.         7.     Check   the   "Read   and   Execute"   box.     This   is   the   box   you   just   unchecked.         8.     Click   the   "Apply"   button.         9.     Click   the   "OK"   button.       10.     You   may   need   to   reboot   your   computer   after   these   changes   have   been   made.     Re-execute   the   application   and   it   should   now   work.           Explanation   -----------     If   you   install   Oracle9i   Release   2   (9.2.0.1)   on   a   computer   running   Windows   with   an   NTFS   partition,   the   contents   of   ORACLE_HOME   directory   will   not   be   visible   to   users   who   are   authenticated   on   that   machine.     These   permissions   were   not   set   properly   when   the   software   was   installed.     Applications   that   were   working   fine   with   previous   versions   of   Oracle   software   will   stop   working   when   they   upgrade   to   Oracle   9.2.         NOTE:   The   application   will   continue   to   work   if   the   user   has   logged   onto   the                   machine   as   an   Administrator.     Any   application   that   is   using   the   Authenticated   User   privilege   will   not   work.   A   notable   example   would   be   IIS   which   might   service   some   of   the   requests   based   on   the   Authenticated   User   privileges.     To   demonstrate   the   problem   in   further   detail,   you   can   log   on   to   the   operating     system   as   an   authenticated   machine   user.     You   wont   be   able   browse   the   contents   of   the   ORACLE_HOME   directory   demonstrating   your   inability   to   load   any   Oracle   DLLs   or   make   a   connection.       References   ----------         Bug:2498880   -   Oracle   9I   Release   2   Installation   Issue   on   Windows   2000   NTFS                                   File   System       Additional   Search   Words   -----------------------   OLEDB  
   
  针对上面的描述,我也做了相关工作,可问题未解决.

网友回答:

发表者:drabit

用   oracle   oledb   provider

发表者:univer1

引用:  
  提示是:程序初始化失败....  
   
   
          这个错误的原因我以前遇到过,很有可能是你的驱动程序没有在注册表中注册,具体办法是:  
  将program   files\common   files\system\ole   db\中相应的注册表文件的信息写入注册表  
  例如我的系统是win2000+oracle8i,运行mtxoci81_win2k.reg即可

发表者:univer1

oracle   ole   db   privider   for   .net   可以使用,但是我在使用的过程中,偶尔会随机出现一些  
  System.Data.OleDb.OleDbException:   未指定的错误:   E_FAIL(0x80004005),至今未找到原因,换用microsoft的提供程序后问题解决


 

 
热门推荐笔记本: 夏新笔记本
相关文章:
笔记本相关:
IT技术文章:
webmaster:popbb@126.com   最佳浏览:1024X768 MSIE
©2007 popbb.net All Rights Reserved