Click here to Skip to main content
15,903,175 members
Home / Discussions / Database
   

Database

 
QuestionConnect C# Application to network Oracle 10g install Pin
PDTUM18-Dec-10 8:10
PDTUM18-Dec-10 8:10 
AnswerRe: Connect C# Application to network Oracle 10g install Pin
Mycroft Holmes18-Dec-10 12:21
professionalMycroft Holmes18-Dec-10 12:21 
GeneralRe: Connect C# Application to network Oracle 10g install Pin
PDTUM18-Dec-10 13:57
PDTUM18-Dec-10 13:57 
AnswerRe: Connect C# Application to network Oracle 10g install Pin
Jörgen Andersson18-Dec-10 13:07
professionalJörgen Andersson18-Dec-10 13:07 
GeneralRe: Connect C# Application to network Oracle 10g install Pin
PDTUM18-Dec-10 13:55
PDTUM18-Dec-10 13:55 
JokeRe: Connect C# Application to network Oracle 10g install Pin
Mycroft Holmes18-Dec-10 16:21
professionalMycroft Holmes18-Dec-10 16:21 
GeneralRe: Connect C# Application to network Oracle 10g install Pin
jschell19-Dec-10 9:57
jschell19-Dec-10 9:57 
GeneralRe: Connect C# Application to network Oracle 10g install Pin
PDTUM19-Dec-10 10:39
PDTUM19-Dec-10 10:39 
Hello js,

Thank you for your question....Yes. Since I made the earlier post, I have installed 10g on the local server and everything works perfectly. Although I have gotten great help from the people here, I still have the original issue in this case, so I just uploaded a post to another forum as I am still baffled by this. I will post the new text below. If you have any ideas...I am ALL ears...Smile | :) ...Thanks, Pat

I have a Windows 7 dev machine used to create .Net applications with VS 2010. I want to connect to a remote network server (using Windows 2003) that is running an Oracle 10g database. I also need to mention (just in case) that the remote server is also hosting an MS SQL 2005 application as well. I am using the code below (with the first connection string) to connect directly to a version of 10g that is running on the same machine with no problems, however when I try to connect to the network machine, it actually crashes Windows 7. I have tried several variations of connection strings as I feel that I must be making a sytax error somewhere. What concerns me is that I have dual try/catch statements in the application and I do not understand why it simply does not refuse the connection and report the error. I suppose the real question is 'what is the correct syntax for the connection string'....or WHATEVER the hell I am doing wrong. This is my first go around with Oracle (and I am not liking it at all), but it is not a matter of choice for me. SO.........any help or suggestions are greatly appreciated. Thank you in advance...Best Regards, Pat



//Class Variables
        //string CONNSTR = "Server=127.0.0.1:1521;User ID=Patt;Password=Mine;";
        string CONNSTR = "Server=192.168.2.5:1521;User ID=Patt;Password=Mine;";

        public Oracle()
        {
            InitializeComponent();
        }

        //Methods
        private void TestMyOracleConnection()
        {
            OracleConnection Conn = new OracleConnection(CONNSTR);
            try
            {
                Conn.Open();
                MessageBox.Show("Oracle Connection Established", "Success");
            }
            catch (OracleException ex)
            {
                MessageBox.Show(ex.Message, "Oracle Connection Failed!");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Oracle Connection Failed!");
            }
            finally
            {
                Conn.Close();
                MessageBox.Show("Oracle Connection Closed", "Success");
            }
        }

        private void buttonTestConnection_Click(object sender, EventArgs e)
        {
            TestMyOracleConnection();
        }

GeneralRe: Connect C# Application to network Oracle 10g install Pin
jschell20-Dec-10 9:06
jschell20-Dec-10 9:06 
QuestionDatabase design Pin
V.16-Dec-10 20:23
professionalV.16-Dec-10 20:23 
AnswerRe: Database design Pin
Mycroft Holmes16-Dec-10 20:56
professionalMycroft Holmes16-Dec-10 20:56 
GeneralRe: Database design Pin
Jörgen Andersson16-Dec-10 22:10
professionalJörgen Andersson16-Dec-10 22:10 
GeneralRe: Database design Pin
Pete O'Hanlon17-Dec-10 4:50
mvePete O'Hanlon17-Dec-10 4:50 
GeneralRe: Database design Pin
Jörgen Andersson17-Dec-10 8:32
professionalJörgen Andersson17-Dec-10 8:32 
GeneralRe: Database design Pin
Pete O'Hanlon17-Dec-10 8:36
mvePete O'Hanlon17-Dec-10 8:36 
GeneralRe: Database design Pin
Jörgen Andersson17-Dec-10 8:53
professionalJörgen Andersson17-Dec-10 8:53 
GeneralRe: Database design Pin
Pete O'Hanlon17-Dec-10 9:15
mvePete O'Hanlon17-Dec-10 9:15 
GeneralRe: Database design Pin
Jörgen Andersson17-Dec-10 9:54
professionalJörgen Andersson17-Dec-10 9:54 
GeneralRe: Database design Pin
Pete O'Hanlon17-Dec-10 10:33
mvePete O'Hanlon17-Dec-10 10:33 
GeneralRe: Database design Pin
Jörgen Andersson18-Dec-10 12:02
professionalJörgen Andersson18-Dec-10 12:02 
GeneralRe: Database design Pin
Pete O'Hanlon19-Dec-10 9:13
mvePete O'Hanlon19-Dec-10 9:13 
GeneralRe: Database design Pin
Jörgen Andersson4-Jan-11 21:12
professionalJörgen Andersson4-Jan-11 21:12 
GeneralRe: Database design Pin
Mycroft Holmes17-Dec-10 10:57
professionalMycroft Holmes17-Dec-10 10:57 
GeneralRe: Database design Pin
Pete O'Hanlon19-Dec-10 23:20
mvePete O'Hanlon19-Dec-10 23:20 
GeneralRe: Database design Pin
Jörgen Andersson20-Dec-10 1:54
professionalJörgen Andersson20-Dec-10 1:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.