Код: Выделить всё
[2015-09-28 10:47:28] WARNING[23035]: res_odbc.c:758 ast_odbc_sanity_check: Connection is down attempting to reconnect...
[2015-09-28 10:47:28] DEBUG[23035]: res_odbc.c:1493 odbc_obj_disconnect: Disconnected 0 from oracle [ast]
[2015-09-28 10:47:28] DEBUG[23035]: res_odbc.c:1500 odbc_obj_disconnect: Database handle 0x7fd3c0017570 deallocated
[2015-09-28 10:47:28] NOTICE[23035]: res_odbc.c:1527 odbc_obj_connect: Connecting oracle
[2015-09-28 10:47:28] NOTICE[23035]: res_odbc.c:1559 odbc_obj_connect: res_odbc: Connected to oracle [ast]
через isql конектит
Код: Выделить всё
[root@office-pbx asterisk]# isql -v ast
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+---------------------------------------+
SQL> quit
Код: Выделить всё
[OracleODBC-12.1]
Description = Oracle ODBC driver for Oracle
Driver = /usr/lib64/libsqora.so.12.1
FileUsage = 1
Driver Logging = 7
Код: Выделить всё
[ast]
Description = myoracledb database
Driver = OracleODBC-12.1
Trace = yes
TraceFile = /tmp/odbc_oracle.log
ServerName = //server-ip:1521/dboracle
UserID = user
Password = pass
Charset = utf8
Код: Выделить всё
[oracle]
enabled => yes
dsn => ast
limit => 20
username => user
password => pass
pre-connect => yes
pooling => no
Для mysql настраивал odbc там без проблем, конект не теряет