OTRS 2.2 mit externer ORACLE DB anbindung

Hilfe zu OTRS Problemen aller Art
Post Reply
Biohazardxxx
Znuny newbie
Posts: 50
Joined: 24 Aug 2007, 11:53

OTRS 2.2 mit externer ORACLE DB anbindung

Post by Biohazardxxx »

Hi.

Ich versuche erfolglos das OTRS an unseren ORACLE Server anzubinden. Das Packet DBD::Oracle habe ich bereits installiert.
Leider bekomme ich den Fehler:
Software error:
DBD::oracle initialisation failed: Can't locate object method "driver" via package "DBD::oracle" at C:/Service_Desk/OTRS/Perl/site/lib/DBI.pm line 782, <PRODUCT> line 16.

Perhaps the capitalisation of DBD 'oracle' isn't right. at C:/Service_Desk/OTRS/otrs//Kernel/System/DB.pm line 197
meine config.pm

Code: Select all

# ---------------------------------------------------- #
    # database settings                                    #
    # ---------------------------------------------------- #
    # DatabaseHost
    # (The database host.)
    $Self->{'DatabaseHost'} = 'UnsereOra';
    # Database
    # (The database name.)
    $Self->{'Database'} = 'ORA-SID';
    # DatabaseUser
    # (The database user.)
    $Self->{'DatabaseUser'} = 'OTRS_USR';
    # DatabasePw
    $Self->{'DatabasePw'} = 'OTRS_PW';
    # DatabaseDSN
    # (The database DSN for MySQL ==> more: "man DBD::mysql")
    $Self->{DatabaseDSN} = "DBI:oracle:ORA-SID=$Self->{Database};host=$Self->{DatabaseHost};";
Hat jemand schon so etwas probiert?
Habe in einem anderem Forum gelesen das es jemand unter Suse10 hinbekommen hat jedoch unter Windows nicht.
Win2003 Standart Server RC 2
OTRS 3.0.11 & ITSM 3.0.5
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

OTRS 2.2 mit externer ORACLE DB anbindung

Post by jojo »

Probiers mal mit: $Self->{DatabaseDSN} = "DBI:Oracle:sid=$Self->{Database};host=$Self->{DatabaseHost};port=1521;";
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Biohazardxxx
Znuny newbie
Posts: 50
Joined: 24 Aug 2007, 11:53

OTRS 2.2 mit externer ORACLE DB anbindung

Post by Biohazardxxx »

Hi

wenn ich dies hinzufüge bekomme ich nach langer Wartezeit den Fehler:
ERROR: OTRS-CGI-10 Perl: 5.8.8 OS: MSWin32 Time: Mon Aug 27 08:24:19 2007

Message: ORA-12505: TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach)

Traceback (1840):
Module: Kernel::System::DB::new (v1.73) Line: 174
Module: Kernel::System::Web::InterfaceAgent::Run (v1.22) Line: 144
Module: ModPerl::ROOT::ModPerl::Registry::C_3a_Service_Desk_OTRS_otrs_bin_cgi_2dbin_index_2epl::handler (v) Line: 47
Module: (eval) (v1.81) Line: 203
Module: ModPerl::RegistryCooker::run (v1.81) Line: 203
Module: ModPerl::RegistryCooker::default_handler (v1.81) Line: 169
Module: ModPerl::Registry::handler (v1.99) Line: 30

Was bedeutet dies genau? Irgendwo kommt er wohl mit dem TNS-Namen nicht klar oder?
Muss ich dazu eigentlich auf der OTRS maschiene den Oracle Client installiert haben?
Win2003 Standart Server RC 2
OTRS 3.0.11 & ITSM 3.0.5
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

OTRS 2.2 mit externer ORACLE DB anbindung

Post by jojo »

Bei Windows installiert PPM den Oracle Instant Client gleich mit.

So wie es aussieht ist Deine SID falsch, frag hier mal am besten Deinen DBA wie die korrekt heisst auf der Maschine.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Biohazardxxx
Znuny newbie
Posts: 50
Joined: 24 Aug 2007, 11:53

OTRS 2.2 mit externer ORACLE DB anbindung

Post by Biohazardxxx »

Ok super war ein tippfehler meinerseite... :?

Besten dank jojo...
Win2003 Standart Server RC 2
OTRS 3.0.11 & ITSM 3.0.5
Biohazardxxx
Znuny newbie
Posts: 50
Joined: 24 Aug 2007, 11:53

OTRS 2.2 mit externer ORACLE DB anbindung

Post by Biohazardxxx »

Das hat doch nicht geklappt hatte vergessen die OTRS Dienste neuzustarten nach dem austausch der config.
Nu bekomme ich diesen Fehler:
Software error:
install_driver(Oracle) failed: Can't locate DBD/Oracle.pm in @INC (@INC contains: C:/service_desk/OTRS/Apache2/bin/../../Kernel/cpan-lib C:/service_desk/OTRS/Apache2/bin/../.. ../../ C:/service_desk/OTRS/otrs/Kernel/cpan-lib C:/service_desk/OTRS/otrs/ C:/service_desk/OTRS/Perl/site/lib C:/service_desk/OTRS/Perl/lib . C:/service_desk/OTRS/Apache2 C:/service_desk/OTRS/Apache2/bin/../.. C:/service_desk/OTRS/Apache2/bin/../../Kernel/cpan-lib) at (eval 107) line 3, <PRODUCT> line 4.
Perhaps the DBD::Oracle perl module hasn't been fully installed,
or perhaps the capitalisation of 'Oracle' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, ODBC, Proxy, SQLite, Sponge, mysql.
at C:/service_desk/OTRS/otrs//Kernel/System/DB.pm line 197
meine config.pm sieht nun folgendermaßen aus:
# ---------------------------------------------------- #
# database settings #
# ---------------------------------------------------- #
# DatabaseHost
# (The database host.)
$Self->{'DatabaseHost'} = 'HOST';
# Database
# (The database name.)
$Self->{'Database'} = 'SID';
# DatabaseUser
# (The database user.)
$Self->{'DatabaseUser'} = 'OTRS_SD';
# DatabasePw
# (The password of database user. You also can use bin/CryptPassword.pl
# for crypted passwords.)
$Self->{'DatabasePw'} = 'PW';
# DatabaseDSN
$Self->{DatabaseDSN} = "DBI:Oracle:sid=$Self->{Database};host=$Self->{DatabaseHost};port=1521;";

Gruß
-Bio
Win2003 Standart Server RC 2
OTRS 3.0.11 & ITSM 3.0.5
Biohazardxxx
Znuny newbie
Posts: 50
Joined: 24 Aug 2007, 11:53

OTRS 2.2 mit externer ORACLE DB anbindung

Post by Biohazardxxx »

hättest du da noch ein Tipp parat jojo?
Win2003 Standart Server RC 2
OTRS 3.0.11 & ITSM 3.0.5
Post Reply