Larry,
Including a snip or two of code helps.
An example of a connection:
If using sqlplus you do: sqlplus scott/[EMAIL PROTECTED]
then for dbi you do:
my $dbh = DBI->connect( q{dbi:Oracle:db}, q{scott}, q{tiger},
{RaiseError => 1} ) or die "Unable to connect $DBI::errstr\n";
perldoc DBI and/or perldoc DBD::Oracle for more information.
Hope this Helps,
Tom
On Wed, Aug 27, 2003 at 05:55:29PM -0400, Moon, Larry (Cont,ARL/CISD) wrote:
> Hi,
>
>
>
> 1. Could someone please lend me the benefit of their knowledge
> regarding an oracle error I received when I was attempting to connect to
> an oracle database via a perl script? Actually I got two errors on that
> told me that the "'old style' syntax" for connecting wouldn't be
> supported in future and an ORA 12154 error indicating that the TNS
> service could not be resolved. The following text was also at the end
> of the error "( DBD ERROR: OCIServerAttach)".
>
>
>
> 2. Can you tell me if this can be easily fixed and what I need
> to do to get it to behave properly?