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 list of databases in Oracle? [modified]

How to get list of databases in Oracle? [modified]

Scheduled Pinned Locked Moved Database
oracletutorialquestion
3 Posts 3 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.
  • N Offline
    N Offline
    NanaAM
    wrote on last edited by
    #1

    Does anybody know how to get List of Databases in Oracle? -- modified at 7:53 Tuesday 20th March, 2007

    Nana

    S 1 Reply Last reply
    0
    • N NanaAM

      Does anybody know how to get List of Databases in Oracle? -- modified at 7:53 Tuesday 20th March, 2007

      Nana

      S Offline
      S Offline
      Smart_Boy
      wrote on last edited by
      #2

      select * from sysdatabases; but this statement should be master DB

      Regards, Smart Boy Mumbai, (INDIA)

      S 1 Reply Last reply
      0
      • S Smart_Boy

        select * from sysdatabases; but this statement should be master DB

        Regards, Smart Boy Mumbai, (INDIA)

        S Offline
        S Offline
        scottgp
        wrote on last edited by
        #3

        Actually, the poster asked for a solution for Oracle. sysdatabases is for SQL Server (and possibly Sybase?). The concept of server/database is different for Oracle versus SQL Server, meaning I'm not sure of an Oracle solution (assuming you actually did mean database). You might have to look at parsing the tnsnames.ora file or something. I'll post again if I find anything. Scott

        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