Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Can't use DBD::Oracle if LD_LIBRARY_PATH Not Set In Environment

by Ea (Hermit)
on Feb 07, 2013 at 15:10 UTC ( #1017674=note: print w/replies, xml ) Need Help??


in reply to Can't use DBD::Oracle if LD_LIBRARY_PATH Not Set In Environment

I don't think you absolutely need the DBD::Oracle line. DBI should load the correct module when you connect.

My personal solution has been to hide connection details in a module which always gets installed in The Right Place, has a home for tests and makes scripts clear and concise with subs like this

sub setup_environment { my $server = get_server_name(); for my $env ( %{$environment{$server}} ) { $ENV{$env} = $environment{$server}->{$env}; } return scalar keys %{$environment{$server}}; }
I use it to cache database handles and such. It's not your perfect solution, but it works for me.

Sometimes I can think of 6 impossible LDAP attributes before breakfast.
  • Comment on Re: Can't use DBD::Oracle if LD_LIBRARY_PATH Not Set In Environment
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017674]
help
Chatterbox?
[Corion]: marto: Yeah, feels like that ;) You could set up the cronjob that auto-creates tickets :-))
[marto]: the ticketing system does not accept calls via email, nor has it a working API. It's tied into Active Directory for authentication and the Solaris boxes aren't on that domain
[Corion]: The one thing I haven't figured out a solution to is how to get an edge-trigger instead of sending an email every 5 minutes if the usage is above 90%. I want one mail when it goes over 90% but no more emails as long as it stays between 90% and 95%.
[Corion]: marto: Clever! ;)
[Corion]: You can only reach me by pager
[Corion]: Maybe the solution would be to launch a cron job every minute that takes two measurements a minute apart and sends a mail if the usage is below on the first and above threshold on the last measurement
[marto]: that's essentially it :)
[marto]: I think the long term solution would be to have sysadmins that do their job, so I don't have to do everything :P
[marto]: they already have an entire BMC patrol system, which they disabled, because it was sending out spurious messages. So rather than fix the issue, or even find out what it was, they turned it off. No messages, can't be any problems, right?
[Corion]: marto: But having open tickets / incidents increases the pressure on them ;) Of course, likely your contract / SLA specifies an upper limit for the number of incidents :-D

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2017-01-24 10:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (203 votes). Check out past polls.