Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Oracle connectivity issue for asp.net core 2.1 web api from docker container

$
0
0
Hi All,
I am trying to connect oracle database using Oracle.ManagedDataAccess.Core 2.18.3 ; i am using asp.net core 2.1 web api. When i run this code on my local machin it works fine but when dockerised it and deployed it under container it fails with below error

ORA-00604 : error occured at recursive SQL level 1
ORA-01882 : timezone region not found

I searched on internet and found below solutions but both of them are not working for me ; Please help asap.

1. Set timezone in docket file as below
ENV TZ=America/New_York
2. Also setup timezone to open oracle connection as below
Oracle globalization info = con.GetSession();
info.TimeZone = "America/New_York";
con.SetSessionInfo(info);


Please help

Viewing all articles
Browse latest Browse all 9386

Trending Articles