我的sqlMap.config里面是这么连接的
- XML code
<database> <dataSource name="Botwave_XQP2" connectionString="Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.161)(PORT=1521))(CONNECT_DATA=(SID=easyflow)));User Id=easyflow;Password=password;" /> </database>
providers.config里面是这么写的
- XML code
<provider name="oracleClient1.0" description="Oracle, Microsoft provider V1.0.5000.0" enabled="true" default="true" assemblyName="System.Data.OracleClient, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" connectionClass="System.Data.OracleClient.OracleConnection" commandClass="System.Data.OracleClient.OracleCommand" parameterClass="System.Data.OracleClient.OracleParameter" parameterDbTypeClass="System.Data.OracleClient.OracleType" parameterDbTypeProperty="OracleType" dataAdapterClass="System.Data.OracleClient.OracleDataAdapter" commandBuilderClass="System.Data.OracleClient.OracleCommandBuilder" usePositionalParameters="false" useParameterPrefixInSql="true" useParameterPrefixInParameter="false" parameterPrefix=":" allowMARS="false" />
这个连接有错的吗?每次一运行就会有以下错误:
Error while configuring the Provider named "oracleClient1.0". Cause : The provider is not in 'providers.config' or is not enabled.
------解决方案--------------------------------------------------------
哦,你已经这么设了。。。把你的sqlmap.config providers配置节贴出来看看。