Dear all.
I facing issue when using connect engine to connect Oracle DB using unixODBC.
[root@LGEVH_PIS_DB /]# mysql -u root -p -h localhost
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 28
Server version: 10.1.28-MariaDB MariaDB Server
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> connect xe
Connection id: 29
Current database: xe
MariaDB [xe]> create table EMPLOYEE ENGINE=CONNECT TABLE_TYPE=ODBC tabname='EMPLOYEE' CONNECTION='DSN=ORACLE_XE;UID=ojt;PWD=ojt';
ERROR 1105 (HY000): SQLDriverConnect: [unixODBC][Driver Manager]Can't open lib '/usr/lib/oracle/11.2/client64/lib/libsqora.so.11.1' : file not found
MariaDB [xe]>
When using isql . It is OK.
[root@LGEVH_PIS_DB /]# isql ORACLE_XE ojt ojt;
---------------------------------------
Connected! |
|
sql-statement |
help [tablename] |
quit |
|
---------------------------------------
SQL>
Below is Enviroment CentOS
XDG_SESSION_ID=1377
HOSTNAME=LGEVH_PIS_DB.LGEVH
SELINUX_ROLE_REQUESTED=
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
SSH_CLIENT=10.224.30.163 65526 22
SELINUX_USE_CURRENT_RANGE=
OLDPWD=/home/mariadb.lgevh
SSH_TTY=/dev/pts/1
USER=root
LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib/
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arc=01;31:.arj=01;31:.taz=01;31:.lha=01;31:.lz4=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.tzo=01;31:.t7z=01;31:.zip=01;31:.z=01;31:.Z=01;31:.dz=01;31:.gz=01;31:.lrz=01;31:.lz=01;31:.lzo=01;31:.xz=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.alz=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.cab=01;31:.jpg=01;35:.jpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.webm=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.axv=01;35:.anx=01;35:.ogv=01;35:.ogx=01;35:.aac=01;36:.au=01;36:.flac=01;36:.mid=01;36:.midi=01;36:.mka=01;36:.mp3=01;36:.mpc=01;36:.ogg=01;36:.ra=01;36:.wav=01;36:.axa=01;36:.oga=01;36:.spx=01;36:*.xspf=01;36:
CLIENT_HOME=:/usr/lib/oracle/11.2/client64/lib/
MAIL=/var/spool/mail/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/usr/lib/oracle/11.2/client64/:/usr/lib/oracle/11.2/client64/lib/
PWD=/
LANG=en_US.UTF-8
SELINUX_LEVEL_REQUESTED=
HISTCONTROL=ignoredups
SHLVL=1
HOME=/root
LOGNAME=root
XDG_DATA_DIRS=/root/.local/share/flatpak/exports/share/:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/
SSH_CONNECTION=10.224.30.163 65526 10.224.30.205 22
LESSOPEN=||/usr/bin/lesspipe.sh %s
XDG_RUNTIME_DIR=/run/user/0
ORACLE_HOME=/usr/lib/oracle/11.2/client64/lib/
_=/usr/bin/env
Below is etc/odbc.ini
[ORACLE_XE]
DRIVER=/usr/lib/oracle/11.2/client64/lib/libsqora.so.11.1
SERVERNAME=10.224.38.45:1521/xe
OPTION=3
USER=ojt
PASSWORD=ojt
below is etc/odbcinst.ini
[PostgreSQL]
Description=ODBC for PostgreSQL
Driver=/usr/lib/psqlodbcw.so
Setup=/usr/lib/libodbcpsqlS.so
Driver64=/usr/lib64/psqlodbcw.so
Setup64=/usr/lib64/libodbcpsqlS.so
FileUsage=1
UsageCount=2
[MySQL]
Description=ODBC for MySQL
Driver=/usr/lib/libmyodbc5.so
Setup=/usr/lib/libodbcmyS.so
Driver64=/usr/lib64/libmyodbc5.so
Setup64=/usr/lib64/libodbcmyS.so
FileUsage=1
UsageCount=2
[Oracle]
Description=Oracle ODBC Connection
Driver=/usr/lib/oracle/11.2/client64/lib/libsqora.so.11.1
Setup=
FileUsage=
dear community,
Please, help to check may i have mistake in enviroment or odbc config????
Thank you.
Transition |
Time In Source Status |
Execution Times |
Open |
|
Closed |
|
6d 12h 56m
|
1
|
{"report":{"fcp":891.1000003814697,"ttfb":187.69999980926514,"pageVisibility":"visible","entityId":63878,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"f4c53351-11c8-4dbc-9ca0-21abb63f1a04","navigationType":0,"readyForUser":1006,"redirectCount":0,"resourceLoadedEnd":845.5,"resourceLoadedStart":193.10000038146973,"resourceTiming":[{"duration":221.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":193.10000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":193.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":414.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":221.39999961853027,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":193.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":193.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":414.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":230.60000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":193.69999980926514,"connectEnd":193.69999980926514,"connectStart":193.69999980926514,"domainLookupEnd":193.69999980926514,"domainLookupStart":193.69999980926514,"fetchStart":193.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":193.69999980926514,"responseEnd":424.30000019073486,"responseStart":424.30000019073486,"secureConnectionStart":193.69999980926514},{"duration":260.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":193.9000005722046,"connectEnd":193.9000005722046,"connectStart":193.9000005722046,"domainLookupEnd":193.9000005722046,"domainLookupStart":193.9000005722046,"fetchStart":193.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":193.9000005722046,"responseEnd":454.6000003814697,"responseStart":454.6000003814697,"secureConnectionStart":193.9000005722046},{"duration":264.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":194.10000038146973,"connectEnd":194.10000038146973,"connectStart":194.10000038146973,"domainLookupEnd":194.10000038146973,"domainLookupStart":194.10000038146973,"fetchStart":194.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":194.10000038146973,"responseEnd":458.6000003814697,"responseStart":458.6000003814697,"secureConnectionStart":194.10000038146973},{"duration":264.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":194.30000019073486,"connectEnd":194.30000019073486,"connectStart":194.30000019073486,"domainLookupEnd":194.30000019073486,"domainLookupStart":194.30000019073486,"fetchStart":194.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":194.30000019073486,"responseEnd":459.19999980926514,"responseStart":459.19999980926514,"secureConnectionStart":194.30000019073486},{"duration":265,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":194.5,"connectEnd":194.5,"connectStart":194.5,"domainLookupEnd":194.5,"domainLookupStart":194.5,"fetchStart":194.5,"redirectEnd":0,"redirectStart":0,"requestStart":194.5,"responseEnd":459.5,"responseStart":459.5,"secureConnectionStart":194.5},{"duration":375.4000005722046,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":194.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":194.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":570.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":265.0999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":194.9000005722046,"connectEnd":194.9000005722046,"connectStart":194.9000005722046,"domainLookupEnd":194.9000005722046,"domainLookupStart":194.9000005722046,"fetchStart":194.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":194.9000005722046,"responseEnd":460,"responseStart":460,"secureConnectionStart":194.9000005722046},{"duration":375.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":195,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":195,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":570.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":265.4000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":195.19999980926514,"connectEnd":195.19999980926514,"connectStart":195.19999980926514,"domainLookupEnd":195.19999980926514,"domainLookupStart":195.19999980926514,"fetchStart":195.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":195.19999980926514,"responseEnd":460.6000003814697,"responseStart":460.6000003814697,"secureConnectionStart":195.19999980926514},{"duration":439.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":196,"connectEnd":196,"connectStart":196,"domainLookupEnd":196,"domainLookupStart":196,"fetchStart":196,"redirectEnd":0,"redirectStart":0,"requestStart":196,"responseEnd":635.3000001907349,"responseStart":635.3000001907349,"secureConnectionStart":196},{"duration":440.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":196.10000038146973,"connectEnd":196.10000038146973,"connectStart":196.10000038146973,"domainLookupEnd":196.10000038146973,"domainLookupStart":196.10000038146973,"fetchStart":196.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":196.10000038146973,"responseEnd":636.3000001907349,"responseStart":636.3000001907349,"secureConnectionStart":196.10000038146973},{"duration":30.100000381469727,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":599.8000001907349,"connectEnd":599.8000001907349,"connectStart":599.8000001907349,"domainLookupEnd":599.8000001907349,"domainLookupStart":599.8000001907349,"fetchStart":599.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":599.8000001907349,"responseEnd":629.9000005722046,"responseStart":629.9000005722046,"secureConnectionStart":599.8000001907349},{"duration":211.39999961853027,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":634.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":634.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":845.5,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":25,"responseStart":188,"responseEnd":192,"domLoading":191,"domInteractive":1056,"domContentLoadedEventStart":1056,"domContentLoadedEventEnd":1096,"domComplete":1565,"loadEventStart":1565,"loadEventEnd":1566,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1039.5},{"name":"bigPipe.sidebar-id.end","time":1040.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1040.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":1041.5},{"name":"activityTabFullyLoaded","time":1108.3000001907349}],"measures":[],"correlationId":"f345a8c88705d3","effectiveType":"4g","downlink":9.8,"rtt":0,"serverDuration":105,"dbReadsTimeInMs":10,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}