Find ORACLE_SID via SQL
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Find ORACLE_SID via SQL

Hybrid View

  1. #1
    Join Date
    Feb 2001
    Location
    Belgium, Sint-Truiden
    Posts
    82

    Find ORACLE_SID via SQL

    All,

    I've got a developer who wants to be able to find the ORACLE_SID via SQL, when connected to the database.
    I've told him to look in V$instance or v$database,but the user he's using in his development won't have the access to those views. Do you have any idea where I can find the info for him with a 'normal' user?

    Thanks ,

    Rik

  2. #2
    Join Date
    Jan 2000
    Location
    Chester, England.
    Posts
    818
    Is he after the SID specifically, or just a way to identify the database?

    Try

    SELECT * FROM global_name;

  3. #3
    Join Date
    Oct 2001
    Location
    Madrid, Spain
    Posts
    763
    Let your developers to begin using DBMS_SQL package. They will have so they want without having permissions in v$instance or v$database

    Cheers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width