niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » Perl » modules
DBD::Oracle
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
thiru
*nix forums beginner


Joined: 16 Jun 2006
Posts: 1

PostPosted: Fri Jun 16, 2006 7:31 am    Post subject: Re: DBD::Oracle Reply with quote

hai pendley,
yes that file has rwxr-xr-x permission

thanks,


Sherm Pendley wrote:
Quote:
"thiru" <athirumoniy@yahoo.com> writes:

hai ,
i have one server ant two logins
in one login perl is working fine and in the another login the perl
files are not working
the settings are same for both logins

ld_library_path
shlib_path
perl5lib_path
perllib_path
still it is giving the following error
Can't load '/opt/perl5.005_03/lib/5.00503/PA-RISC1.1/auto/DBI/DBI.sl'
for module DBI: Invalid argument at
/opt/perl5.005_03/lib/5.00503/PA-RISC1.1/DynaLoader.pm line 169.

Wow. That's a very old Perl. But I doubt that's the problem.

Could be a permissions problem. Have you verified that file is readable by
both users?

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
Back to top
Sherm Pendley
*nix forums Guru


Joined: 03 Mar 2005
Posts: 527

PostPosted: Thu Jun 15, 2006 3:28 pm    Post subject: Re: DBD::Oracle Reply with quote

"thiru" <athirumoniy@yahoo.com> writes:

Quote:
hai ,
i have one server ant two logins
in one login perl is working fine and in the another login the perl
files are not working
the settings are same for both logins

ld_library_path
shlib_path
perl5lib_path
perllib_path
still it is giving the following error
Can't load '/opt/perl5.005_03/lib/5.00503/PA-RISC1.1/auto/DBI/DBI.sl'
for module DBI: Invalid argument at
/opt/perl5.005_03/lib/5.00503/PA-RISC1.1/DynaLoader.pm line 169.

Wow. That's a very old Perl. But I doubt that's the problem.

Could be a permissions problem. Have you verified that file is readable by
both users?

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
Back to top
thiru
*nix forums beginner


Joined: 15 Jun 2006
Posts: 1

PostPosted: Thu Jun 15, 2006 7:22 am    Post subject: DBD::Oracle Reply with quote

hai ,
i have one server ant two logins
in one login perl is working fine and in the another login the perl
files are not working
the settings are same for both logins

ld_library_path
shlib_path
perl5lib_path
perllib_path
still it is giving the following error
Can't load '/opt/perl5.005_03/lib/5.00503/PA-RISC1.1/auto/DBI/DBI.sl'
for module DBI: Invalid argument at
/opt/perl5.005_03/lib/5.00503/PA-RISC1.1/DynaLoader.pm line 169.

at /opt/perl5.005_03/lib/5.00503/PA-RISC1.1/DBI.pm line 158
BEGIN failed--compilation aborted at
/opt/perl5.005_03/lib/5.00503/PA-RISC1.1/DBI.pm line 158.
BEGIN failed--compilation aborted at
/opt/perl_local/PA-RISC1.1/Oraperl.pm line 25.
BEGIN failed--compilation aborted at ./perl_test.pl line 2.

my test file
========

#!/usr/local/bin/perl
use Oraperl;

############################################################################
# Getting Database information from environment variables
#
############################################################################

$dbname=$ENV{ATLAS_DATABASE_NAME};
$userid=$ENV{ATLAS_DATABASE_USER};
$passwd=$ENV{ATLAS_DATABASE_PASSWD};


##################
# oracle login #
##################
($lda = &ora_login("", $userid."\@".$dbname, $passwd)) ||
do { #
oracle login fails
print "Error Connecting Database $dbname : $ora_errstr";
&ora_logoff ($lda);
};
print " Successfully connected to Database : $dbname \n";
&ora_logoff ($lda);
----------------------------------------------------------------------------------------------------------------------
can anyone help me on this

i will be greatful to you

thanks,
thiru
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 10:38 pm | All times are GMT
navigation Forum index » Programming » Perl » modules
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Move Oracle 10g database to another location Selt Server 0 Fri Jul 21, 2006 2:14 pm
No new posts Oracle runtime Spitfire Server 0 Fri Jul 21, 2006 1:18 pm
No new posts Oracle Text Score Computation jatinder.1975@gmail.com Server 0 Fri Jul 21, 2006 1:00 pm
No new posts Can a trigger insert records into another oracle server Tauqir Server 2 Fri Jul 21, 2006 12:27 am
No new posts Moving Oracle filesystem to SAN howard Server 1 Thu Jul 20, 2006 11:49 pm

Mortgages | MPAA | Loans | Free mobile phone's stuffs | Credit Counseling
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2290s ][ Queries: 20 (0.1456s) ][ GZIP on - Debug on ]