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:
Received ora error :
ORA-12705: Cannot access NLS data files or invalid environment specified
QUERY 2:
The below query works out.
When I tried to manually execute the 1st query without perl I am getting the output.
The below query doesn't work.
QUERY 1:
Code:
my $sql ="select name from tab where rownum <6";
QUERY 2:
The below query works out.
Code:
my $sql ="select sysdate from dual";
Code:
SQL> select tname from tab;
TNAME
------------------------------
BIN$Di6O8Q1CAc7gVAAwbvSoEg==$0
BIN$Di6O8Q1FAc7gVAAwbvSoEg==$0
BIN$Di6O8Q1IAc7gVAAwbvSoEg==$0
BIN$Di6O8Q1LAc7gVAAwbvSoEg==$0
BIN$Di6vfFnAb2PgVAAwbvSoEg==$0