如何修复[unixODBC] [驱动程序管理器]数据源名称未找到,并且未指定默认驱动程序的情况(ODBC :: Error) [英] How to fix the [unixODBC][Driver Manager]Data source name not found, and no default driver specified (ODBC::Error)

查看:648
本文介绍了如何修复[unixODBC] [驱动程序管理器]数据源名称未找到,并且未指定默认驱动程序的情况(ODBC :: Error)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

/local/rvm/gems/ruby-1.9.2-p320/gems/activerecord-sqlserver-adapter-3.2.12/lib/active_record/connection_adapters/sqlserver_adapter.rb:455:in `initialize': IM002 (0) [unixODBC][Driver Manager]Data source name not found, and no default driver specified (ODBC::Error)

我有我的应用程序的工作副本,但突然之间,我隔夜突然离开了系统,此错误开始浮出水面.谁能告诉我如何解决这个问题?

I have working copy of my app but suddenly overnight I left my system like that and this error started surfacing. Can anyone tell how to fix this one please?

推荐答案

由于您没有给我们提供任何帮助,因此您没有明确的答案.

There is no definitive answer to your question since you gave us nothing to work on.

但是,可能的原因是:

  1. 在用户或系统odbc.ini文件中找不到指定的DSN 运行odbcinst -j查找那些文件在哪里 有人更改/删除了他们吗?

  1. the DSN you specified could not be found in your user or system odbc.ini files Run odbcinst -j to find where those files are Has someone changed/removed them?

您将ODBCINI env var或ODBCSYSINI env var设置为将unixODBC指向odbc.ini和odbcinst.ini文件的位置,现在它们尚未设置(或更改).

You set ODBCINI env var or ODBCSYSINI env var to point unixODBC at the location of your odbc.ini and odbcinst.ini files and now they are not set (or changed).

某人已删除或移动了ODBC驱动程序

Someone has removed or moved your ODBC driver

您通常以用户A的身份运行代码,现在以用户B的身份运行代码,并且正在使用用户数据源或设置ODBCINI env var.

You normally run your code as user A and now you are running it as user B and you are using user datasources or set ODBCINI env var.

...也许其他人,但是如果您给我们提供了更好的信息,我们就不必猜测了.

... probably others but if you'd given us better information we wouldn't have to guess.

这篇关于如何修复[unixODBC] [驱动程序管理器]数据源名称未找到,并且未指定默认驱动程序的情况(ODBC :: Error)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆