Brocade Communications Systems 53-1003373-01 Security Camera User Manual


 
32 Brocade Network Advisor Installation and Migration Guide
53-1003373-01
Installing the ODBC driver
2
Adding the datasource on Linux systems
Before you edit the INI files, install Network Advisor (refer to “Installation” on page 1) and make
sure the PostgreSQL database is up and running.
NOTE
For RedHat and Oracle Enterprise systems, the odbc.ini and odbcinst.ini files are located in /etc. For
SUSE systems, the odbc.ini and odbcinst.ini files are located in /etc/unixODBC.
1. Open the odbc.ini file in an editor and enter the datasource information as follows:
[TestDB]
Description = PostgreSQL 9.2
Driver = /opt/PostgreSQL/psqlODBC/lib/psqlodbcw.so
Database = dcmdb
Servername = 172.26.1.54
UserName = dcmadmin
Password = passw0rd
Port = 5432
2. Save and close the odbc.ini file.
3. Open the odbcinst.ini file in a text editor and make sure that the driver path information is
correct.
After you install the PostgreSQL ODBC driver, the odbcinst.ini should automatically update the
driver path. If the driver path is not updated, add the following:
[psqlODBC]
Description=PostgreSQL ODBC driver
Driver=/opt/PostgreSQL/psqlODBC/lib/psqlodbcw.so
4. Save and close the odbcinst.ini file.
Testing the connection on Linux systems
To test the connection, complete the following steps.
1. Download and install Open Office.
2. Select File > New > Database.
The Database Wizard displays.
3. On the Select database screen, complete the following steps.
a. Select the Connect to an existing database option.
b. Select ODBC from the list.
c. Click Next.
4. On the Set up ODBC connection screen, complete the following steps.
a. Click Browse.
The datasource saved in the odbc.ini file is populated in the Datasource dialog box.
b. Select the datasource and click OK on the Datasource dialog box.
c. Click Next.