* [sisyphus] Связь с оракулом @ 2016-12-20 8:27 В.А. Илларионов 2016-12-20 16:28 ` Sergey ` (2 more replies) 0 siblings, 3 replies; 18+ messages in thread From: @ 2016-12-20 8:27 UTC (permalink / raw) ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [sisyphus] Связь с оракулом 2016-12-20 8:27 [sisyphus] Связь с оракулом В.А. Илларионов @ 2016-12-20 16:28 ` Sergey 2016-12-21 7:23 ` В.А. Илларионов 2016-12-22 10:37 ` Eugene Prokopiev 2016-12-22 19:14 ` Sergey 2 siblings, 1 reply; 18+ messages in thread From: Sergey @ 2016-12-20 16:28 UTC (permalink / raw) To: ALT Linux Sisyphus discussions On Tuesday 20 December 2016, В.А. Илларионов wrote: > Решил со стороны перловки подойти: поставил perl-DBI, perl-CPAN и > прочее нужное. Из cpan'а запускаю install DBD::Oracle А точно нужное ? Вот тут пишут, что хватает perl-DBI: https://www.opennet.ru/base/dev/perl_oracle.txt.html -- С уважением, Сергей a_s_y@sama.ru ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [sisyphus] Связь с оракулом 2016-12-20 16:28 ` Sergey @ 2016-12-21 7:23 ` В.А. Илларионов 2016-12-21 8:07 ` В.А. Илларионов 0 siblings, 1 reply; 18+ messages in thread From: В.А. Илларионов @ 2016-12-21 7:23 UTC (permalink / raw) To: ALT Linux Sisyphus discussions 21.12.2016 00:28, Sergey пишет: > On Tuesday 20 December 2016, В.А. Илларионов wrote: > >> Решил со стороны перловки подойти: поставил perl-DBI, perl-CPAN и >> прочее нужное. Из cpan'а запускаю install DBD::Oracle > А точно нужное ? Вот тут пишут, что хватает perl-DBI: > https://www.opennet.ru/base/dev/perl_oracle.txt.html Спасибо, и впрямь работает. А всё равно у нас нелады. Порой отказывают давно и тщательно, казалось бы, вылизанные вещи. Вот, к примеру, spawn-fcgi - после установки не запускет fcgiwrap с руганью: [root@web ~]# service spawn-fcgi start Starting fcgiwrap service: spawn-fcgi: child exited with: 2 [FAILED] И любопытно, для чего он оторван от собственно fcgiwrap-а, если ни для чего иного не нужен, а сам fcgiwrap без него фиг запустишь? -- Мимо крокодил. WBR, rednex CIO. Viber = +7(964)103-65-67 JID = <mailto:> Skype = $local_part@<mailto:> Опциии rsync -aHAX --delete мозг автоматом переводит как "удалить к чёртовой матери!" ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [sisyphus] Связь с оракулом 2016-12-21 7:23 ` В.А. Илларионов @ 2016-12-21 8:07 ` В.А. Илларионов 2016-12-21 9:15 ` Michael Shigorin 2016-12-22 6:32 ` [sisyphus] " Sergey 0 siblings, 2 replies; 18+ messages in thread From: В.А. Илларионов @ 2016-12-21 8:07 UTC (permalink / raw) To: ALT Linux Sisyphus discussions 21.12.2016 15:23, В.А. Илларионов пишет: > 21.12.2016 00:28, Sergey пишет: >> On Tuesday 20 December 2016, В.А. Илларионов wrote: >> >>> Решил со стороны перловки подойти: поставил perl-DBI, perl-CPAN и >>> прочее нужное. Из cpan'а запускаю install DBD::Oracle >> А точно нужное ? Вот тут пишут, что хватает perl-DBI: >> https://www.opennet.ru/base/dev/perl_oracle.txt.html > > Спасибо, и впрямь работает. Фиг там, ошибочка вышла. Ругается: install_driver(Oracle) failed: Can't locate DBD/Oracle.pm in @INC (you may need to install the DBD::Oracle module) (@INC contains: /usr/local/lib64/perl/5.22 /usr/local/share/perl/5.22 /usr/lib64/perl5 /usr/share/perl5 /usr/lib64/perl5 /usr/share/perl5 /etc/perl5 /usr/lib/perl5/vendor_perl .) at (eval 5) line 3. Perhaps the DBD::Oracle perl module hasn't been fully installed, or perhaps the capitalisation of 'Oracle' isn't right. Available drivers: Sponge, mysql. > А всё равно у нас нелады. Порой отказывают давно и тщательно, казалось бы, вылизанные вещи. Вот, к примеру, > spawn-fcgi - после установки не запускет fcgiwrap с руганью: > [root@web ~]# service spawn-fcgi start > Starting fcgiwrap service: spawn-fcgi: child exited with: 2 > [FAILED] > > И любопытно, для чего он оторван от собственно fcgiwrap-а, если ни для чего иного не нужен, а сам fcgiwrap > без него фиг запустишь? А вот с этим всё просто оказалось. В /etc/sysconfig/spawn-fcgi всего лишь указано неверное расположение бинарника fcgiwrap. -- Мимо крокодил. WBR, rednex CIO. Viber = +7(964)103-65-67 JID = <mailto:> Skype = $local_part@<mailto:> Опциии rsync -aHAX --delete мозг автоматом переводит как "удалить к чёртовой матери!" ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [sisyphus] Связь с оракулом 2016-12-21 8:07 ` В.А. Илларионов @ 2016-12-21 9:15 ` Michael Shigorin 2016-12-21 23:09 ` Вадим Илларионов 2016-12-22 6:32 ` [sisyphus] " Sergey 1 sibling, 1 reply; 18+ messages in thread From: Michael Shigorin @ 2016-12-21 9:15 UTC (permalink / raw) To: sisyphus On Wed, Dec 21, 2016 at 04:07:45PM +0800, В.А. Илларионов wrote: > > Вот, к примеру, spawn-fcgi - после установки не запускет > > fcgiwrap с руганью: [...] И любопытно, для чего он оторван от > > собственно fcgiwrap-а, если ни для чего иного не нужен, а сам > > fcgiwrap без него фиг запустишь? > А вот с этим всё просто оказалось. В /etc/sysconfig/spawn-fcgi > всего лишь указано неверное расположение бинарника fcgiwrap. Вешай! -- ---- WBR, Michael Shigorin / http://altlinux.org ------ http://opennet.ru / http://anna-news.info ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [sisyphus] Связь с оракулом 2016-12-21 9:15 ` Michael Shigorin @ 2016-12-21 23:09 ` Вадим Илларионов 2016-12-21 23:37 ` Michael Shigorin 2016-12-22 7:59 ` Sergey 0 siblings, 2 replies; 18+ messages in thread From: Вадим Илларионов @ 2016-12-21 23:09 UTC (permalink / raw) To: ALT Linux Sisyphus discussions 21.12.2016 17:15, Michael Shigorin пишет: > On Wed, Dec 21, 2016 at 04:07:45PM +0800, В.А. Илларионов wrote: >>> Вот, к примеру, spawn-fcgi - после установки не запускет >>> fcgiwrap с руганью: [...] И любопытно, для чего он оторван от >>> собственно fcgiwrap-а, если ни для чего иного не нужен, а сам >>> fcgiwrap без него фиг запустишь? >> А вот с этим всё просто оказалось. В /etc/sysconfig/spawn-fcgi >> всего лишь указано неверное расположение бинарника fcgiwrap. > Вешай! Повесил - №32935. Но вопрос не решён, и придётся, похоже, перетаскивать веб-сервер с альта на дебиан или кентось. Так и теряют приверженцев. -- Мимо крокодил. WBR, rednex CIO. JID = <mailto:> Skype = $local_part@<mailto:> Viber = +7(964)103-65-67 Опции rsync -aHAX --delete мозг автоматом переводит как "удалить к чёртовой матери!" ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [sisyphus] Связь с оракулом 2016-12-21 23:09 ` Вадим Илларионов @ 2016-12-21 23:37 ` Michael Shigorin 2016-12-22 7:59 ` Sergey 1 sibling, 0 replies; 18+ messages in thread From: Michael Shigorin @ 2016-12-21 23:37 UTC (permalink / raw) To: sisyphus On Thu, Dec 22, 2016 at 07:09:51AM +0800, Вадим Илларионов wrote: > >>> Вот, к примеру, spawn-fcgi - после установки не запускет > >>> fcgiwrap с руганью: [...] И любопытно, для чего он оторван от > >>> собственно fcgiwrap-а, если ни для чего иного не нужен, а сам > >>> fcgiwrap без него фиг запустишь? > >> А вот с этим всё просто оказалось. В /etc/sysconfig/spawn-fcgi > >> всего лишь указано неверное расположение бинарника fcgiwrap. > > Вешай! > Повесил - №32935. Но вопрос не решён, и придётся, похоже, > перетаскивать веб-сервер с альта на дебиан или кентось. > Так и теряют приверженцев. Это всё gmane -- rider@ говорит, что уже исправлял, просто от него почта перестала ходить после того, как gmane переделали и теперь у него mx не бэкрезолвится вообще! -- ---- WBR, Michael Shigorin / http://altlinux.org ------ http://opennet.ru / http://anna-news.info ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [sisyphus] Связь с оракулом 2016-12-21 23:09 ` Вадим Илларионов 2016-12-21 23:37 ` Michael Shigorin @ 2016-12-22 7:59 ` Sergey 2016-12-22 10:04 ` [sisyphus] [JT] " Michael Shigorin 1 sibling, 1 reply; 18+ messages in thread From: Sergey @ 2016-12-22 7:59 UTC (permalink / raw) To: sisyphus On Thursday 22 December 2016, Вадим Илларионов wrote: > Но вопрос не решён, и придётся, похоже, перетаскивать веб-сервер > с альта на дебиан или кентось. Так и теряют приверженцев. Или приобретают мантейнеров. Может, проще взяться мантейнить один-два пакета, чем дистрибутив менять ? Я вот, когда-то, пошёл по этому пути. ;-) -- С уважением, Сергей. ^ permalink raw reply [flat|nested] 18+ messages in thread
* [sisyphus] [JT] Re: Связь с оракулом 2016-12-22 7:59 ` Sergey @ 2016-12-22 10:04 ` Michael Shigorin 2016-12-22 10:15 ` Вадим Илларионов 0 siblings, 1 reply; 18+ messages in thread From: Michael Shigorin @ 2016-12-22 10:04 UTC (permalink / raw) To: sisyphus On Thu, Dec 22, 2016 at 11:59:36AM +0400, Sergey wrote: > Я вот, когда-то, пошёл по этому пути. ;-) Ох, и я начинал с совершенно, казалось бы, невинных webalizer да mrtg... :) Дым, заждались уж. -- ---- WBR, Michael Shigorin / http://altlinux.org ------ http://opennet.ru / http://anna-news.info ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [sisyphus] [JT] Re: Связь с оракулом 2016-12-22 10:04 ` [sisyphus] [JT] " Michael Shigorin @ 2016-12-22 10:15 ` Вадим Илларионов 2016-12-22 10:34 ` Michael Shigorin 0 siblings, 1 reply; 18+ messages in thread From: Вадим Илларионов @ 2016-12-22 10:15 UTC (permalink / raw) To: ALT Linux Sisyphus discussions 22.12.2016 18:04, Michael Shigorin пишет: > Дым, заждались уж. Миш, давай после каникул к этому вопросу вернёмся - предновогодняя запарка просто кувырком. На каникулах же подопечным меняю PVE с исходного 3 версии на наш, после чего надо пересоздать контейнеры: ща они все там хоть и альтовые, но на systemv, а хочется уже на systemd, и тут, думается, проще их с нуля перезапилить. -- Мимо крокодил. WBR, rednex CIO. JID = <mailto:> Skype = $local_part@<mailto:> Viber = +7(964)103-65-67 Опции rsync -aHAX --delete мозг автоматом переводит как "удалить к чёртовой матери!" ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [sisyphus] [JT] Re: Связь с оракулом 2016-12-22 10:15 ` Вадим Илларионов @ 2016-12-22 10:34 ` Michael Shigorin 0 siblings, 0 replies; 18+ messages in thread From: Michael Shigorin @ 2016-12-22 10:34 UTC (permalink / raw) To: sisyphus On Thu, Dec 22, 2016 at 06:15:29PM +0800, Вадим Илларионов wrote: > Миш, давай после каникул к этому вопросу вернёмся - > предновогодняя запарка просто кувырком. Понимаю :) -- ---- WBR, Michael Shigorin / http://altlinux.org ------ http://opennet.ru / http://anna-news.info ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [sisyphus] Связь с оракулом 2016-12-21 8:07 ` В.А. Илларионов 2016-12-21 9:15 ` Michael Shigorin @ 2016-12-22 6:32 ` Sergey 2016-12-22 11:17 ` Вадим Илларионов 1 sibling, 1 reply; 18+ messages in thread From: Sergey @ 2016-12-22 6:32 UTC (permalink / raw) To: ALT Linux Sisyphus discussions On Wednesday 21 December 2016, В.А. Илларионов wrote: > > Спасибо, и впрямь работает. > Фиг там, ошибочка вышла. Ругается: > > install_driver(Oracle) failed: Can't locate DBD/Oracle.pm in @INC (you may need to install the DBD::Oracle Да. Что-то показалось, что у perl-DBI оно само. Есть один старый сервер с DB2, но DBD::DB2 таки обнаружился в /usr/local... Значит, DBD::Oracle тоже нужен. Так, а есть ещё DBD::ODBC. Может, с ним получится ? -- С уважением, Сергей. ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [sisyphus] Связь с оракулом 2016-12-22 6:32 ` [sisyphus] " Sergey @ 2016-12-22 11:17 ` Вадим Илларионов 2016-12-22 11:22 ` Eugene Prokopiev 0 siblings, 1 reply; 18+ messages in thread From: Вадим Илларионов @ 2016-12-22 11:17 UTC (permalink / raw) To: ALT Linux Sisyphus discussions 22.12.2016 14:32, Sergey пишет: > Так, а есть ещё DBD::ODBC. Может, с ним получится? Установил perl-DBD-ODBC, создал пару инюшек - /etc/odbcinst.ini: [Oracle] Description = Oracle driver #Driver = /usr/lib/oracle/11.2/client64/lib/libsqora.so скопировал в: Driver = /usr/lib64/libsqora.so Setup = /usr/lib64/liboraodbcS.so.2 FileUsage = 1 /etc/odbc.ini: [Oracle] Description = Oracle DSN Driver = Oracle Trace = Yes TraceFile = oracle.log Database = ST Servername = сервер_оракула UserName = юзер_оракула Password = дер_пароль Port = 1521 Protocol = ReadOnly = No RowVersioning = No ShowSystemTables = No ShowOidColumn = No FakeOidIndex = No ConnSettings = и простецкий скрипт: #!/usr/bin/perl -w use DBI; use DBD::ODBC; $ENV{ORACLE_HOME}="/usr/lib/oracle/11.2/client64"; my $dbh = DBI->connect("DBI:ODBC:Oracle") or die "$DBI::errstr\n"; Выдаёт такое: DBI connect('Oracle','',...) failed: [unixODBC][Driver Manager]Can't open lib '/usr/lib64/libsqora.so' : file not found (SQL-01000) at ./test.pl line 5. [unixODBC][Driver Manager]Can't open lib '/usr/lib64/libsqora.so' : file not found (SQL-01000) До копирования libsqora.so в /usr/lib64/ так же ругался на /usr/lib/oracle/11.2/client64/lib/libsqora.so, что и сподвигло на копирование. -- Мимо крокодил. WBR, rednex CIO. JID = <mailto:> Skype = $local_part@<mailto:> Viber = +7(964)103-65-67 Опции rsync -aHAX --delete мозг автоматом переводит как "удалить к чёртовой матери!" ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [sisyphus] Связь с оракулом 2016-12-22 11:17 ` Вадим Илларионов @ 2016-12-22 11:22 ` Eugene Prokopiev 2016-12-22 11:35 ` Вадим Илларионов 0 siblings, 1 reply; 18+ messages in thread From: Eugene Prokopiev @ 2016-12-22 11:22 UTC (permalink / raw) To: ALT Linux Sisyphus discussions 2016-12-22 14:17 GMT+03:00 Вадим Илларионов <gbimobou@gmail.com>: > До копирования libsqora.so в /usr/lib64/ так же ругался на > /usr/lib/oracle/11.2/client64/lib/libsqora.so, что и сподвигло на > копирование. ODBC - это вообще ужас, летящий на крыльях ночи, и совместимости ABI при копировании файлов никто вам не обещал. Мой вам совет - попробуйте Java/JDBC, для всех проприетарно-ентерпрайзных БД оно значительно удобнее. -- WBR, Eugene Prokopiev ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [sisyphus] Связь с оракулом 2016-12-22 11:22 ` Eugene Prokopiev @ 2016-12-22 11:35 ` Вадим Илларионов 2016-12-22 11:47 ` Eugene Prokopiev 0 siblings, 1 reply; 18+ messages in thread From: Вадим Илларионов @ 2016-12-22 11:35 UTC (permalink / raw) To: ALT Linux Sisyphus discussions 22.12.2016 19:22, Eugene Prokopiev пишет: > 2016-12-22 14:17 GMT+03:00 Вадим Илларионов <gbimobou@gmail.com>: > >> До копирования libsqora.so в /usr/lib64/ так же ругался на >> /usr/lib/oracle/11.2/client64/lib/libsqora.so, что и сподвигло на >> копирование. > ODBC - это вообще ужас, летящий на крыльях ночи, и совместимости ABI > при копировании файлов никто вам не обещал. Мой вам совет - попробуйте > Java/JDBC, для всех проприетарно-ентерпрайзных БД оно значительно > удобнее. > А приведите, пожалуйста, пример DSN для него. -- Мимо крокодил. WBR, rednex CIO. JID = <mailto:> Skype = $local_part@<mailto:> Viber = +7(964)103-65-67 Опции rsync -aHAX --delete мозг автоматом переводит как "удалить к чёртовой матери!" ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [sisyphus] Связь с оракулом 2016-12-22 11:35 ` Вадим Илларионов @ 2016-12-22 11:47 ` Eugene Prokopiev 0 siblings, 0 replies; 18+ messages in thread From: Eugene Prokopiev @ 2016-12-22 11:47 UTC (permalink / raw) To: ALT Linux Sisyphus discussions 22 декабря 2016 г., 14:35 пользователь Вадим Илларионов <gbimobou@gmail.com> написал: > 22.12.2016 19:22, Eugene Prokopiev пишет: >> ... попробуйте >> Java/JDBC, для всех проприетарно-ентерпрайзных БД оно значительно >> удобнее. >> > > А приведите, пожалуйста, пример DSN для него. обычно что-то в духе "jdbc:oracle:thin:@//myhost:1521/orcl" -- WBR, Eugene Prokopiev ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [sisyphus] Связь с оракулом 2016-12-20 8:27 [sisyphus] Связь с оракулом В.А. Илларионов 2016-12-20 16:28 ` Sergey @ 2016-12-22 10:37 ` Eugene Prokopiev 2016-12-22 19:14 ` Sergey 2 siblings, 0 replies; 18+ messages in thread From: Eugene Prokopiev @ 2016-12-22 10:37 UTC (permalink / raw) To: ALT Linux Sisyphus discussions 20 декабря 2016 г., 11:27 пользователь В.А. Илларионов <gbimobou@gmail.com> написал: > У нас вообще к оракулу можно подключиться чем-то, кроме sqlplus? Этот тот самый случай, когда Java и ее идея с https://en.wikipedia.org/wiki/JDBC_driver#Type_4_driver исключительно удобна :) Т.е. из репозитария устанавливаем только openjdk, а с ним используем любой (в т.ч. на коленке написанный) java-инструмент + драйвер в виде jar-файла, собирать ничего не нужно. Из универсальных инструментов для начала можно посмотреть на http://dbeaver.jkiss.org/ . -- WBR, Eugene Prokopiev ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [sisyphus] Связь с оракулом 2016-12-20 8:27 [sisyphus] Связь с оракулом В.А. Илларионов 2016-12-20 16:28 ` Sergey 2016-12-22 10:37 ` Eugene Prokopiev @ 2016-12-22 19:14 ` Sergey 2 siblings, 0 replies; 18+ messages in thread From: Sergey @ 2016-12-22 19:14 UTC (permalink / raw) To: ALT Linux Sisyphus discussions On Tuesday 20 December 2016, В.А. Илларионов wrote: > Решил со стороны перловки подойти: поставил perl-DBI, perl-CPAN и прочее нужное. > Из cpan'а запускаю install DBD::Oracle - ругается на отсутствие DBI::DBD. Пробую > собрать его - ругается уже на DBI. Ругань на DBI пропадает после установки perl-DBI-devel. Но дальше ругается на "ORACLE_HOME environment variable is not set". Если посмотреть вот сюда http://spacewalk.redhat.com/yum/nightly/RHEL/6/source/ то в спеке perl-DBD-Oracle-1.62-3.el6.src.rpm переменная задаётся так: %ifarch x86_64 s390x ORACLE_HOME=$(find /usr/lib/oracle/ -name client64 | tail -1) %else ORACLE_HOME=$(find /usr/lib/oracle/ -name client | tail -1) %endif Для того, чтобы это сработало, существует, видимо, oracle-lib-compat-11.2.0.13-1.el6.src.rpm. Там только создаются каталоги, в том числе и этот. И я так понимаю, получается привязка к версии. -- С уважением, Сергей a_s_y@sama.ru ^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2016-12-22 19:14 UTC | newest] Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2016-12-20 8:27 [sisyphus] Связь с оракулом В.А. Илларионов 2016-12-20 16:28 ` Sergey 2016-12-21 7:23 ` В.А. Илларионов 2016-12-21 8:07 ` В.А. Илларионов 2016-12-21 9:15 ` Michael Shigorin 2016-12-21 23:09 ` Вадим Илларионов 2016-12-21 23:37 ` Michael Shigorin 2016-12-22 7:59 ` Sergey 2016-12-22 10:04 ` [sisyphus] [JT] " Michael Shigorin 2016-12-22 10:15 ` Вадим Илларионов 2016-12-22 10:34 ` Michael Shigorin 2016-12-22 6:32 ` [sisyphus] " Sergey 2016-12-22 11:17 ` Вадим Илларионов 2016-12-22 11:22 ` Eugene Prokopiev 2016-12-22 11:35 ` Вадим Илларионов 2016-12-22 11:47 ` Eugene Prokopiev 2016-12-22 10:37 ` Eugene Prokopiev 2016-12-22 19:14 ` Sergey
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git