Ejemplo n.º 1
0
        public static OracleConnection GetDBConnection()
        {
            string host     = "localhost";
            int    port     = 1521;
            string sid      = "orcl";
            string user     = Globals.curr_session_id;
            string password = Globals.curr_session_pw;

            return(DBOracleUtils.GetDBConnection(host, port, sid, user, password));
        }
Ejemplo n.º 2
0
        public static OracleConnection GetDBConnection()
        {
            string host     = ConfigurationSettings.AppSettings["host"]; //"192.168.10.221";
            int    port     = Convert.ToInt32(ConfigurationSettings.AppSettings["port"]);
            string sid      = ConfigurationSettings.AppSettings["sid"];
            string user     = ConfigurationSettings.AppSettings["user"];
            string password = ConfigurationSettings.AppSettings["password"];

            return(DBOracleUtils.GetDBConnection(host, port, sid, user, password));
        }