How to work with mvc3 asp.net application using oracle database?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raghurocks
    New Member
    • May 2012
    • 46

    How to work with mvc3 asp.net application using oracle database?

    Hi all

    I need to develop a mvc3 asp.net web application.
    I need to use oracle as database.
    Can anyone explain me the steps.

    Thanks in advance
    Last edited by Frinavale; Jun 18 '12, 02:54 PM. Reason: Corrected grammar, spelling, and converted text speak into proper English.
  • India777
    New Member
    • Apr 2012
    • 61

    #2
    Added the Connection String using Oracle Provider Name(providerNa me="Oracle.Data Access.Client") in WebConfig File. Then added the other key-value pair for Connection string.

    For Mvc3 you need to install it on your system.

    Sample is Below to connect Oracle DB:
    Code:
    <add name="LiveConnectionString" connectionString="Data Source=DT040;Database=Timelive;UID=sa;PWD=admin@123;" providerName="Oracle.DataAccess.Client"/>

    Comment

    • raghurocks
      New Member
      • May 2012
      • 46

      #3
      Hey I am not asking about the connection string yar..I need to know the process
      Last edited by Frinavale; Jun 18 '12, 02:54 PM. Reason: Removed bold and fixed grammar and spelling

      Comment

      • India777
        New Member
        • Apr 2012
        • 61

        #4
        What Process? How the mvc app and Oracle could be join?
        Ask Question to be clear.......... ..!

        Comment

        • raghurocks
          New Member
          • May 2012
          • 46

          #5
          How the application can access oracle database...I know how to get and insert the values into SQL server..but how can I in oracle?
          Last edited by Frinavale; Jun 18 '12, 02:56 PM. Reason: Removed bold and fixed grammar and spelling

          Comment

          • India777
            New Member
            • Apr 2012
            • 61

            #6
            Like sqlserver process , Oracle do the Same. Query's only different for those. You knew how to write query in Oracle right?

            Comment

            • raghurocks
              New Member
              • May 2012
              • 46

              #7
              Not like that.....after creating a project what is the next step??

              If it is SQL server, I can go to app_data, right click on that and select add existing item and I can select my mdf file...but how can i in oracle?
              Last edited by Frinavale; Jun 18 '12, 02:55 PM. Reason: Removed bold and fixed grammar and spelling

              Comment

              • India777
                New Member
                • Apr 2012
                • 61

                #8
                Get the Connection through ConnectionStrin g in WebConfig. it can be very Easy.

                Comment

                • India777
                  New Member
                  • Apr 2012
                  • 61

                  #9
                  I know What you say. In my point of view, it's not the Good way to include db primary file in the App Data. Use ConnectionStrin g or Define it in the AppConfig is the Best way used by the Many of the developers.

                  Comment

                  • Frinavale
                    Recognized Expert Expert
                    • Oct 2006
                    • 9749

                    #10
                    This question sounds like it has nothing to do with MVC but is rather a question about how to connect to, and use an oracle database.

                    Please check out the MSDN article called Connecting to an Oracle Data Source Using ADO.NET and follow the links to learn about this topic.

                    Comment

                    Working...