问题描述
PrivateSubButton4_Click(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)HandlesButton4.ClickDimplscAsOracle.DataAccess.Client.OracleBulkCopy'plsc=NewOracle.DataAccess.Client.OracleBulkCopy("DataSource=80.81.82.154;PersistSecurityInfo=True;UserID=ccnc;Password=1;",Client.OracleBulkCopyOptions.UseInternalTransaction)'plsc=NewOracle.DataAccess.Client.OracleBulkCopy("datasource=80.81.82.154;initialcatalog=g;uid=ccnc;pwd=1")'plsc=NewOracle.DataAccess.Client.OracleBulkCopy("datasource=80.81.82.154;UserId=ccnc;Password=1;MaxPoolSize=100;MinPoolSize=5;")'plsc=NewOracle.DataAccess.Client.OracleBulkCopy("DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=80.81.82.154)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=g)));;UserID=ccnc;Password=1;PersistSecurityInfo=True")plsc=NewOracle.DataAccess.Client.OracleBulkCopy("datasource=80.81.82.154;SERVICE_NAME=g;UserID=ccnc;Password=1")plsc.DestinationTableName="XXX"plsc.WriteToServer(t1)MessageBox.Show("OK")EndSub出这个错误“Oracle.DataAccess.Client.OracleBulkCopy”的类型初始值设定项引发异常。想把TABLE表T1放到ORACLE的XXX表,服务器是64位的,我开发环境是32位系统和32位ORACLE客户端+vb2005,引用的32位ORACLE.DATAACCESS,求解
解决方案
解决方案二:
没遇过这样的问题