Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. How to get Oracle service names

How to get Oracle service names

Scheduled Pinned Locked Moved Database
csharporacletutorial
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    Xiaoming Qian
    wrote on last edited by
    #1

    Is there any way to get the existing Oracle service names(Stored in TNSNAMES.ORA) using C#.

    P 1 Reply Last reply
    0
    • X Xiaoming Qian

      Is there any way to get the existing Oracle service names(Stored in TNSNAMES.ORA) using C#.

      P Offline
      P Offline
      phimix
      wrote on last edited by
      #2

      What is TNSNAMES.ORA? A table, a file or something else? phi phimix.com :omg:

      X 1 Reply Last reply
      0
      • P phimix

        What is TNSNAMES.ORA? A table, a file or something else? phi phimix.com :omg:

        X Offline
        X Offline
        Xiaoming Qian
        wrote on last edited by
        #3

        TNSNAMES.ORA is An Oracle Network Configuration File.The following is a sample file: # TNSNAMES.ORA Network Configuration File: D:\oracle\ora81\network\admin\tnsnames.ora # Generated by Oracle configuration tools. CLCX =  (DESCRIPTION =    (ADDRESS_LIST =      (ADDRESS = (PROTOCOL = TCP)(HOST = 200.22.10.6)(PORT = 1521))    )    (CONNECT_DATA =      (SID = ORCL) (SERVER = DEDICATED)    )  )

        P 1 Reply Last reply
        0
        • X Xiaoming Qian

          TNSNAMES.ORA is An Oracle Network Configuration File.The following is a sample file: # TNSNAMES.ORA Network Configuration File: D:\oracle\ora81\network\admin\tnsnames.ora # Generated by Oracle configuration tools. CLCX =  (DESCRIPTION =    (ADDRESS_LIST =      (ADDRESS = (PROTOCOL = TCP)(HOST = 200.22.10.6)(PORT = 1521))    )    (CONNECT_DATA =      (SID = ORCL) (SERVER = DEDICATED)    )  )

          P Offline
          P Offline
          phimix
          wrote on last edited by
          #4

          Then you should at least be able to use the System.IO functions like ReadLine(). I don't know if there are any methods specifically for working with Oracle files, but it's quite easy to implement some file reading with System.IO. phi phimix.com :omg:

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups