<br><b>Code</b>: rsb:print<br><b>Error</b>: Formatter [ rootadoname ] failed in the evaluation of <p> ???Python ?????????????????????? [company_name] Linux/UNIX ODBC Driver for [service] ?pyodbc module ????????[service] ?????Python ??????????????????????pyodbc ?????????????[datasource] ???????????????????????? </p> <h2 class=padding-submenu> [company_name] ODBC Drivers ?UNIX/Linux ??????</h2> <p> The [company_name] ODBC Drivers are supported in various Red Hat-based and Debian-based systems, including Ubuntu, Debian, RHEL, CentOS, and Fedora. There are also several libraries and packages that are required, many of which may be installed by default, depending on your system. For more information on the supported versions of Linux operating systems and the required libraries, please refer to the "Getting Started" section in the help documentation (installed and found online). </p> <h3>Installing the Driver Manager</h3> <p>Before installing the driver, check that your system has a driver manager. For this article, you will use unixODBC, a free and open source ODBC driver manager that is widely supported. </p> <p>For Debian-based systems like Ubuntu, you can install unixODBC with the APT package manager:</p> <code lang=ps> $ sudo apt-get install unixODBC unixODBC-dev </code> <p>For systems based on Red Hat Linux, you can install unixODBC with yum or dnf:</p> <code lang=ps> $ sudo yum install unixODBC unixODBC-devel </code> <p>The unixODBC driver manager reads information about drivers from an odbcinst.ini file and about data sources from an odbc.ini file. You can determine the location of the configuration files on your system by entering the following command into a terminal: </p> <code lang=ps> $ odbcinst -j </code> <p>The output of the command will display the locations of the configuration files for ODBC data sources and registered ODBC drivers. User data sources can only be accessed by the user account whose home folder the odbc.ini is located in. System data sources can be accessed by all users. Below is an example of the output of this command: </p> <code lang=xml> DRIVERS............: /etc/odbcinst.ini SYSTEM DATA SOURCES: /etc/odbc.ini FILE DATA SOURCES..: /etc/ODBCDataSources USER DATA SOURCES..: /home/myuser/.odbc.ini SQLULEN Size.......: 8 SQLLEN Size........: 8 SQLSETPOSIROW Size.: 8 </code> <h3>Installing the Driver</h3> <p>You can <a href="https://www.cdata.com/drivers/[id]/download/odbc">download the driver</a> in standard package formats: the Debian .deb package format or the .rpm file format. Once you have downloaded the file, you can install the driver from the terminal.</p> <p>The driver installer registers the driver with unixODBC and creates a system DSN, which can be used later in any tools or applications that support ODBC connectivity.</p> <p>For Debian-based systems like Ubuntu, run the following command with <var>sudo</var> or as root: <code lang=ps> $ dpkg -i /path/to/package.deb </code> </p> <p>For Red Hat systems and other systems that support .rpms, run the following command with <var>sudo</var> or as root: <code lang=ps> $ rpm -i /path/to/package.rpm </code> </p> <p>Once the driver is installed, you can list the registered drivers and defined data sources using the unixODBC driver manager:</p> <h4>List the Registered Driver(s)</h4> <code lang=ps> $ odbcinst -q -d [company_name] ODBC Driver for [service] ... </code> <h4>List the Defined Data Source(s)</h4> <code lang=ps> $ odbcinst -q -s [company_name] [rootadoname] Source ... </code> <p>To use the [company_name] ODBC Driver for [service] with unixODBC, ensure that the driver is configured to use UTF-16. To do so, edit the INI file for the driver (cdata.odbc.[rootadoname|tolower].ini), which can be found in the lib folder in the installation location (typically /opt/cdata/cdata-odbc-driver-for-[rootadoname|tolower]), as follows: <h4>cdata.odbc.[rootadoname|tolower].ini</h4> <code lang=xml> ... \[Driver] DriverManagerEncoding = UTF-16 </code> <h3>Modifying the DSN</h3> <p>The driver installation predefines a system DSN. You can modify the DSN by editing the system data sources file (/etc/odbc.ini) and defining the required connection properties. Additionally, you can create user-specific DSNs that will not require root access to modify in $HOME/.odbc.ini. [extraconnectionnotes|def('')] </p> <h4>/etc/odbc.ini or $HOME/.odbc.ini</h4> <code lang=xml> \[[company_name] [rootadoname] Source] Driver = [company_name] ODBC Driver for [service] Description = My Description. The error was: The value of the attribute could not be accessed: The attribute does not exist.<br><b>URL</b>: /jp/kb/tech/sqlite-odbc-python-linux.rst