Help me pls. i wan't code startup and shutdown oracle database with vb.net.

Last post 05-31-2007 5:37 PM by joebednarz. 1 replies.

Sort Posts:

  • Help me pls. i wan't code startup and shutdown oracle database with vb.net.

    05-31-2007, 2:22 PM
    • Loading...
    • pinkbuff
    • Joined on 05-31-2007, 5:57 PM
    • Posts 3

    Help me pls. i wan't code startup and shutdown oracle database with vb.net.

  • Re: Help me pls. i wan't code startup and shutdown oracle database with vb.net.

    05-31-2007, 5:37 PM
    Answer
    • Loading...
    • joebednarz
    • Joined on 02-09-2007, 3:20 PM
    • Oklahoma
    • Posts 17

     In Windows, it would be easier to interact with Oracle by way of the service...  (I've not tried it myself, but this should work fine for a service installed on the same machine as the .net application:

    using System.ServiceProcess;
    ServiceController controller = new ServiceController();
    controller.MachineName = ".";
    controller.ServiceName = "OracleServiceORCL";
    string status = controller.Status.ToString();

    // Stop the service
    controller.Stop();

    // Start the service
    controller.Start();
     

    JoeB


    use smaller fonts, save space!
Page 1 of 1 (2 items)
Microsoft Communities
Page view counter