#!/usr/bin/perl use strict; use warnings; use DBI; use DBI::Const::GetInfoType; my $_db_name = 'host'; my $_db_user = 'name'; my $_db_pass = 'password'; my @_dbi_path = ("dbi:Oracle:$_db_name",$_db_user,$_db_pass); my $handle = DBI->connect( @_dbi_path, { PrintError => 1, RaiseError => 0, AutoCommit => 0 } ); #print join "\n", sort keys %GetInfoType; print $handle->get_info($GetInfoType{SQL_SERVER_NAME});