Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

From perl program query is not executed.

$
0
0
I have tried executing one particular query through perl.But I am unable to get the result. When I tried to execute the sysdate query its working when I executed my perl code.

The below query doesn't work.
QUERY 1:
Code:

my $sql ="select name from tab where rownum <6";
Received ora error : ORA-12705: Cannot access NLS data files or invalid environment specified

QUERY 2:
The below query works out.
Code:

my $sql ="select sysdate from dual";
When I tried to manually execute the 1st query without perl I am getting the output.
Code:


SQL> select tname from tab;
TNAME
------------------------------
BIN$Di6O8Q1CAc7gVAAwbvSoEg==$0
BIN$Di6O8Q1FAc7gVAAwbvSoEg==$0
BIN$Di6O8Q1IAc7gVAAwbvSoEg==$0
BIN$Di6O8Q1LAc7gVAAwbvSoEg==$0
BIN$Di6vfFnAb2PgVAAwbvSoEg==$0


Viewing all articles
Browse latest Browse all 16232

Trending Articles