using System.Data.OracleClient; string connectionString = "Data Source=MyOracleDB;User Id=myUsername;Password=myPassword;"; OracleConnection connection = new OracleConnection(connectionString); try { // Open the connection connection.Open(); // Use the connection... } catch (Exception ex) { // Handle any exceptions... } finally { // Close the connection connection.Close(); }In this example, we create a new OracleConnection object using a connection string that specifies the database name, username, and password. We then use a try...catch...finally block to open the connection, perform some operations (which are omitted for brevity), and then close the connection using the Close method in the finally block. Overall, the System.Data.OracleClient package library provides a robust set of classes for working with Oracle databases in C# applications, with the OracleConnection class being a key piece of the puzzle.