Sample default odbc.ini file
- Last Updated: October 27, 2020
- 2 minute read
- DataDirect Connectors
- ODBC
- MongoDB 8.0
- Documentation
The following is a sample odbc.ini file that the installer program installs in the installation directory. All occurrences of ODBCHOME are replaced with your installation directory path during installation of the file. Values that you must supply are enclosed by angle brackets (< >). If you are using the installed odbc.ini file, you must supply the values and remove the angle brackets before that data source section will operate properly. Commented lines are denoted by the # symbol. This sample shows a 32-bit driver with the driver file name beginning with iv. A 64-bit driver file would be identical except that driver name would begin with dd and the list of data sources would include only the 64-bit drivers.
[ODBC Data Sources]
MongoDB=DataDirect 8.0 MongoDB
[MongoDB]
Driver=ODBCHOME/lib/ivmongo28.so
Description=DataDirect 8.0 MongoDB
ApplicationUsingThreads=1
ConfigOptions=
CreateDB=2
DataSourceName=
Database=INFORMATION_SCHEMA
EncryptionMethod=0
ExtendedOptions=
FetchSize=100
HostName=
HostNameInCertificate=
InitializationString=
JVMArgs=-Xmx256m
JVMClasspath=
KeyPassword=
Keystore=
KeystorePassword=
LogConfigFile=
LoginTimeout=15
LogonID=
MinLongVarcharSize=
Password=
PortNumber=27017
ReadOnly=1
ReadPreference=primary
ReportCodepageConversionErrors=0
ResultMemorySize=-1
SchemaDefinition=~/progress/datadirect/mongodb_schema/host_name.config
ServerPortNumber=19932
SQLEngineMode=2
TransactionMode=0
Truststore=
TruststorePassword=
ValidateServerCertificate=1
VarcharThreshold=
[ODBC]
IANAAppCodePage=4
InstallDir=ODBCHOME
Trace=0
TraceFile=odbctrace.out
TraceDll=ODBCHOME/lib/ivtrc28.so
ODBCTraceMaxFileSize=102400
ODBCTraceMaxNumFiles=10
[ODBC File DSN]
DefaultDSNDir=
UseCursorLib=0
To modify or create data sources in the odbc.ini file, use the following procedures.
-
To modify a data source:
-
To create a new data source: