LQ Newbie
Registered: Jul 2018
Posts: 3
Rep:
|
isql -v NetSuite produces just the error of [ISQL]ERROR: Could not SQLConnect
Hi,
I have a 64 bit unixODBC driver, and I have installed a 64 bit Netsuite ODBC driver on the machine. I have configured the odbc64.ini and odbcinst.ini as shown below:-
odbc64.ini-
[ODBC Data Sources]
NetSuite=NetSuite ODBC Drivers 7.2
[NetSuite]
Driver=/opt/netsuite/odbcclient64/lib64/ivoa25.so
Description=Connect to your NetSuite account
Host=odbcserver.na3.netsuite.com
Port=1708
ServerDataSource=NetSuite.com
Encrypted=1
Truststore=/opt/netsuite/odbcclient64/cert/ca.cer, /opt/netsuite/odbcclient64/cert/ca2.cer, /opt/netsuite/odbcclient64/cert/ca3.cer
CustomProperties=AccountID=1074600;RoleID=3
logging = yes
logfile = /opt/netsuite/odbcclient64/odbc64.log
enable_user_catalog = yes
enable_synonyms = yes
metadata_dont_change_case = no
metadata_dont_do_schema = no
metadata_id = no
limit_long = 0
[ODBC]
Trace=0
IANAAppCodePage=4
TraceFile=odbctrace.out
TraceDll=/opt/netsuite/odbcclient64/lib64/ddtrc25.so
InstallDir=/opt/netsuite/odbcclient64
odbcinst.ini-
[ODBC Drivers]
NetSuite ODBC Drivers 7.2 = Installed
[NetSuite ODBC Drivers 7.2]
APILevel = 1
ConnectFunctions = YYN
Driver = ivoa25.so
DriverODBCVer = 03.52
FileUsage = 0
SQLLevel = 1
Logfile = /app/var/lib/tomcat8/webapps/plugins/NetSuiteODBCDrivers_Linux64bit/odbclog64.txt
And have set the appropraite paths in my source bashrc file
export ODBCSYSINI=/opt/netsuite/odbcclient64
export ODBCINI=/opt/netsuite/odbcclient64/odbc64.ini
export OASDK_ODBC_HOME=/opt/netsuite/odbcclient64/lib64
export LD_LIBRARY_PATH=/opt/netsuite/odbcclient64/lib64
However, I am getting just the [ISQL]ERROR: Could not SQLConnect when doing a isql -v NetSuite
I checked the environmental variables-
env | grep ODBC
OASDK_ODBC_HOME=/opt/netsuite/odbcclient64/lib64
ODBCSYSINI=/opt/netsuite/odbcclient64
ODBCINI=/opt/netsuite/odbcclient64/odbc64.ini
And they are pointing o the right file
I checked the strace files as well.
strace -e trace=open isql NetSuite 2>&1 | grep odbc64.ini
open("/opt/netsuite/odbcclient64/odbc64.ini", O_WRONLY|O_CREAT|O_APPEND, 0666) = 3
open("/opt/netsuite/odbcclient64/odbc64.ini", O_RDONLY) = 3
open("/opt/netsuite/odbcclient64/odbc64.ini", O_WRONLY|O_CREAT|O_APPEND, 0666) = 3
open("/opt/netsuite/odbcclient64/odbc64.ini", O_RDONLY) = 3
open("/opt/netsuite/odbcclient64/odbc64.ini", O_WRONLY|O_CREAT|O_APPEND, 0666) = 3
open("/opt/netsuite/odbcclient64/odbc64.ini", O_RDONLY) = 3
open("/opt/netsuite/odbcclient64/odbc64.ini", O_WRONLY|O_CREAT|O_APPEND, 0666) = 3
open("/opt/netsuite/odbcclient64/odbc64.ini", O_RDONLY) = 3
open("/opt/netsuite/odbcclient64/odbc64.ini", O_RDONLY) = 3
open("/opt/netsuite/odbcclient64/odbc64.ini", O_RDWR) = 3
strace -e trace=open isql NetSuite 2>&1 | grep odbcinst.ini
open("/opt/netsuite/odbcclient64/odbcinst.ini", O_RDONLY) = 3
open("/root/.odbcinst.ini", O_RDONLY) = 3
open("/opt/netsuite/odbcclient64/odbcinst.ini", O_RDONLY) = 3
open("/root/.odbcinst.ini", O_RDONLY) = 3
open("/opt/netsuite/odbcclient64/odbcinst.ini", O_RDONLY) = 3
open("/root/.odbcinst.ini", O_RDONLY) = 3
open("/opt/netsuite/odbcclient64/odbcinst.ini", O_RDONLY) = 3
open("/root/.odbcinst.ini", O_RDONLY) = 3
open("/opt/netsuite/odbcclient64/odbcinst.ini", O_RDONLY) = 3
open("/root/.odbcinst.ini", O_RDONLY) = 3
open("/opt/netsuite/odbcclient64/odbcinst.ini", O_RDONLY) = 3
open("/root/.odbcinst.ini", O_RDONLY) = 3
open("/opt/netsuite/odbcclient64/odbcinst.ini", O_RDONLY) = 3
open("/root/.odbcinst.ini", O_RDONLY) = 3
open("/opt/netsuite/odbcclient64/odbcinst.ini", O_RDONLY) = 3
open("/root/.odbcinst.ini", O_RDONLY) = 3
open("/opt/netsuite/odbcclient64/odbcinst.ini", O_RDONLY) = 3
open("/root/.odbcinst.ini", O_RDONLY) = 3
open("/opt/netsuite/odbcclient64/odbcinst.ini", O_RDONLY) = 3
open("/root/.odbcinst.ini", O_RDONLY) = 3
open("/opt/netsuite/odbcclient64/odbcinst.ini", O_RDONLY) = 3
open("/root/.odbcinst.ini", O_RDONLY) = 3
open("/root/.odbcinst.ini", O_RDONLY) = 3
The strace logs show the following issue-
stat("/opt/netsuite/odbcclient64/odbc64.ini", {st_mode=S_IFREG|0755, st_size=573, ...}) = 0
getuid() = 0
getuid() = 0
stat("/opt/netsuite/odbcclient64/odbc64.ini", {st_mode=S_IFREG|0755, st_size=573, ...}) = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7047b2d000
write(2, "[ISQL]ERROR: Could not SQLConnec"..., 34) = 34
munmap(0x7f703f84c000, 1402304) = 0
I don't understand why I am getting this error, when the odbc files are correctly being pointed to, and there is no mismatch in the bit versions, and the login is correct.
I will be glad with any pointers I could get.
Thanks!
|