ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Вадим Илларионов" <gbimobou@gmail.com>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] Связь с оракулом
Date: Thu, 22 Dec 2016 19:17:19 +0800
Message-ID: <389577cb-bb61-7fbb-200b-239273839db7@gmail.com> (raw)
In-Reply-To: <201612221032.57927.a_s_y@sama.ru>

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 мозг автоматом переводит как "удалить к чёртовой матери!"



  reply	other threads:[~2016-12-22 11:17 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-20  8:27 В.А. Илларионов
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         ` Вадим Илларионов [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=389577cb-bb61-7fbb-200b-239273839db7@gmail.com \
    --to=gbimobou@gmail.com \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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