[SOLVED] OTRS With Oracle DB

Moderator: crythias

Locked
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

[SOLVED] OTRS With Oracle DB

Post by skullz »

Hi all..Good Evening

Im trying to use otrs with oracle db

Ver: OTRS v3.1.11
Database: Oracle 11gR2
OS : Centos 32
DBD::Oracle installed via cpan

1. Connect to Database via perl script..OK
Image

2. This is what happen when i open web browser to launch otrs
Image

ANY IDEA??
Thanks in Advance
Last edited by skullz on 26 Nov 2012, 11:21, edited 1 time in total.
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: [Help] OTRS With Oracle DB

Post by reneeb »

You run the commandline tool as root user. I assume this is not the webserver user ;-) The webserver user has less privileges and not all environment variables set.

You can check it with

Code: Select all

[root@localhost]# perl -le 'print $_, " -> ", $ENV{$_} for sort keys %ENV'
[root@localhost]# sudo -u www-data perl -le 'print $_, " -> ", $ENV{$_} for sort keys %ENV'
replace www-data with the username that runs the webserver.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: [Help] OTRS With Oracle DB

Post by skullz »

reneeb wrote:You run the commandline tool as root user. I assume this is not the webserver user ;-) The webserver user has less privileges and not all environment variables set.

You can check it with

Code: Select all

[root@localhost]# perl -le 'print $_, " -> ", $ENV{$_} for sort keys %ENV'
[root@localhost]# sudo -u www-data perl -le 'print $_, " -> ", $ENV{$_} for sort keys %ENV'
replace www-data with the username that runs the webserver.
thanks for your suggestion..Is there any way i can solve my problem above..
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: [Help] OTRS With Oracle DB

Post by reneeb »

Have you checked the environment variables? Are there any differences?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: [Help] OTRS With Oracle DB

Post by crythias »

Look at Defaults.pm and copy edit to Config.pm
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: [Help] OTRS With Oracle DB

Post by skullz »

crythias wrote:Look at Defaults.pm and copy edit to Config.pm
reneeb wrote:Have you checked the environment variables? Are there any differences?
Problem solved.. :)
Look like my httpd sysconfig do not have oracle environment..
i added oracle environment and its working well..
thanks again..
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
Locked