其实和sql是一样的,就连接字符串不一样string ConnStr=@"Provider=OraOLEDB.Oracle.1;Persist Security Info=False; User ID=用户名;Password=密码;Data Source=数据源";