maui android Oracle.ManagedDataAccess.Core 연결하는방법이뭔가요 ? net7.0

송 한성 0 Reputation points
2023-06-29T01:26:48.4533333+00:00
   class ConnectOracle
    {
        private static string strCon = @"Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=pda_test))); User Id = dlit; Password = dlit12345;";
        private OracleConnection conn;

        public void ConnectionOracle()
        {
            try
            {
                if (conn == null)
                {
                    conn = new OracleConnection(strCon);
                }
                conn.Open();
            }
            catch (Exception e)
            {
                Console.WriteLine("Error : The Database Connection is failed..." + e.Message);
            }
        }

이렇게 연결을 하였는대

network transport tcp transport address connect failure oracle

오류가나요.

하지만 방화벽설정

lsnrctl services 등록 모두하였습니다.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,320 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,834 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.