List all Database/Instance Name

Hi ,
I am new to the oracle. I want to Enumerate all the available database (as it is called in the SQL SERVER) mnames or may be instance in the Oracle.
Can anyboudy help me out in this one..
Thaks in advance.
Shatrughan

In general, there is no way to enumerate the databases that are running on a remote machine without making a lot of potentially incorrect assumptions.
Getting a list of all the local databases is probably going to require searching the registry for the services. Some of those databases may no longer exist, though.
If you want to get a list of all the databases you can connect to, you could try parsing the tnsnames.ora file (regrettably, there is no API for this). This doesn't give you 100% of the servers, since there are many other ways to resolve TNS aliases, but it works for the majority of people the majority of the time. This is what most Windows applications will do if they want to pre-fill a list of databases to connect to.
Justin

Similar Messages

  • Display Database Instance Name in the System Message

    Greetings,
    I am looking for a way to display the database instance name on each page in the Application Builder. Using the System Message would work for me and I can hard code the instance name, but I was wondering if there is a variable that I can specify that will accomplish the same thing.
    Thanks a lot,
    Larry

    Hi Tony,
    I did find that plug-in during my investigation. Some of the plugins sound interesting but I hesitate to anything to the base APEX install since I am not sure if this will affect supportability from Oracle if something goes wrong later on. Do you know if these plug-ins can be installed/deinstalled without affecting the base APEX install? There is also something called ApexLib which looks interesting. Do people use this? Any idea if it is still supported? I checked the forums and noticed there is not much recent activity. I wonder if it has been abandoned.
    Hi Ashish,
    I do have the application displaying the current environment. I set it up using Page 0 as you suggested. It works great. In fact, I have set up an 'About' page that grabs information from the WWV_FLOWS table which will display information about the current application. Here is my query:
    SELECT ALIAS
         , AUTHENTICATION
         , CREATED_BY
         , to_char(CREATED_ON,'mm/dd/yyyy hh24:mi:ss')
         , DATE_FORMAT
         , DISPLAY_ID
         , FLOW_VERSION
         , ID
         , LAST_UPDATED_BY
         , to_char(LAST_UPDATED_ON,'mm/dd/yyyy hh24:mi:ss')
         , NAME
         , OWNER
         , PUBLIC_USER
      FROM apex_040000.wwv_flows
    where ID = :APP_ID;
    select substr(global_name || '.' ,1,instr(global_name || '.' ,'.') -1)
      into :P999_DATABASE
    from global_name;I use GLOBAL_NAME to get the database SID instead of v$instance so I don't have to grant special privileges on v$instance.
    If you find a way to grab the database SID from a query and put it in the System Message field, please let me know. In the interim, I have hard coded this in the System Message field.
    <span style="padding:10px 20px 10px 20px; font-weight:bolder ;font-size:1.2em; background:#D96E1C;color:white">Development: TheInstanceName</span>Not exactly what I want, but it will get the job done.
    Thanks for all your help,
    Larry

  • How can I list all the column names of a table by programming?

    Hi,
    Now I want to write an function which has the following features:
    Firstly, The function was given a parameter as table name.
    Then, it will lists all the columns names of the table.
    e.g
    table: person
    ---firstName------lastName----+
           Michale               Jackson
    We can get the columns 'firstname' and 'lastName' by calling the function with table name 'person'.
    And I also wonder that where I can get reference book or any other materials?
    Thanks.
    Edited by: wenjing wang on Feb 15, 2008 6:42 AM
    Edited by: wenjing wang on Feb 15, 2008 6:57 AM

    hi,
    hope the below code helps u. Just take the headee which contains the field name and split it like below and compare it with the field name u want here 'last name'.
    here,
    'First name' will be in wt_filedata1 and remaining field names in wt_filedata2, so 'do' continues.
    c_tab must be the separator, either , or + or tab etc..
    CODE:
    read table person into wl_header index 1.
    do.
        split wl_header at c_tab into: wt_filedata1 wt_filedata2.
        if wt_filedata1 <> 'lastname'.
          cnt1 = cnt1 + 1.
          wl_header = wt_filedata2.
        else.
          exit.
        endif.
      enddo.
    Please reward if it is useful.
    regards,
    sri

  • PowerShell Script For Finding Database Instance Names

    G'day
    I am trying to get information on a couple of dozen SQL database servers database instances - long story, but our DBA's do not have complete lists at the moment, and I need to find out this information.
    I have done a bit of work with PowerShell (and love it) version 3, however I do not know many SQL commands and was wondering if someone could point me in the right direction please.
    This is the code I have at the moment:
    Get-Service -ComputerName MSQLULTDBS04 | ?{$_.DisplayName -like "*SQL*"} | Select name,DisplayName,status
    It gets the information on the SQL Server install on the remote server.
    What I am trying to do however is get a list of the databases that are running on this server. Can someone help me out please?

    Hello Scott,
    Please have a look at TechNet ScriptCenter:
    Create Inventory of SQL Server in Network as Html
    It lists also all databases, but of course you need permissions to logon to that SQL Servers.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Identical database & instance names in Oracle 11g R2 RAC

    Hi ,
         We are migrating our EBS 11i (11.5.10 CU 2) and oracle 11gr2 (11.2.0.3) database (database only) which is currently on Solaris to Linux. Currently the database is NON-RAC and as a part of the migration we are converting it in to a 5 Node RAC. A lot of third party interfaces connected to this environment are using hard coded database name. Unfortunately due to the project time lines it's impossible to change those applications within the migration timeline. In order to ensure that they don't break we are thinking of keeping one instance name same as database name so those applications can continue to function without any change to their code. We are aware that this would compromise on fail over capabilities for those applications but we are ok with that.
    This what we have in mind: Create 5 PROD instance named as PROD, PROD1,PROD2, PROD3 & PROD4. PROD being the name of the database also. I would like to know:
    1) Is this configuration allowed i.e., is it ok to have one instance with the same name as database?
    2) We will be creating a 5 node Data gaurd environment for this so what will be the impact of such a naming on it?
    3) Since it's an EBS environment will there be any issues with application configuration?   Our application architecture will be as below:
    6 application nodes - Two for concurrent managers, two for forms & web & two external nodes
    The two CM app nodes will be tied to two database instances using Services
    Remaining app nodes will connect to the remaining 3 instances once again using services.
    We will be configuring services using "vip" instead of scan names.
    4) What will be the impact if the node having the instance name same as database name goes down?
    5) Any other areas to worry about with such a configuration say like cluster services, 3rd partyinterfaces/applications?
    Please let me know if you have any idea of such a configuration.
    regards
    pramod

    Brian, rchem & Martin thanks for your responses. Appreciate it much. I was thinking about the service alternative but unfortunately I understand from my customer that their applications have hard coded database (used as a instance name) name. All they are saying is that their applications are using instance name instead of database name without providing much details on how it's being used. I just know that there 180 applications... Oracle & non Oracle based in which the instance name is hard coded, but haven't got answers to my questions on how it's hard coded i.e., is it being pulled from the database using a hard coded query like "select instance_name from v$instance" or is it a part of some variable in the script/application etc., and what it's being used for (later) within the application.  Answers to those question will help in deciding what  should be the right strategy but since I am short of time I thought of this and wanted to know if anybody has implemented or come across a similar architecture.
    I am creating services and using them in my EBS application ifile thereby avoiding SID but agree with you on the node failure part as I haven't tested this new set up yet.
    Martin,
              You are right, they are using the database name as a SID in their application hence the above need.  My cluster version is 11.2.0.4.0 (both Active & Software versions). The source database on solaris is 11.2.0.3 Non RAC, it's going to be upgraded to 11.2.0.4 before conversion/migration hence I have installed & created a 11.2.04 RAC environment as a part of POC/Load testing.
    Regards
    pramod

  • Is there a way to list all the file names (automatically) in a folder to dynamic text box?

    Hi,
    I would like to know whether FLASH AS3 has some option to get all the files names from a folder specified and show it in a dynamic text box? Whenever some new files added to this folder it should update the list accordingly.
    Thanks for any information in this regard.

    Not particularly experienced in this field myself, but I've found its just easier to implement an XML file which lists the contents of the folder. It just means that when you upload a new file you have to add it to the list in the xml file also. No real hardship once you figure out the mechanics of it

  • How to list all databases in LDAP

    hi,
    To know a db name in ldap, we usually use the admin console -> configuration -> data
    Is there any other way to list the database names without UI?
    thx

    Or on a solaris level, look for your db's under /opt/<installlocation>/<instancename>/db if you have left them in the default location? This can be found by looking under the ou=config tree.
    thanks
    ndrb

  • Upgraded to BPEL 10.1.3.4, but BPEL console doesn't list all the instances

    Hi,
    I have upgraded from Oracle SOA 10.1.3.1 to 10.1.3.4 and have a simple BPEL deployed. It works fine and I can see the instances while they are in the running state. But after they are completed, the search page doesn't list them. Is there a problem with the console? I can see all the completed instances in the CUBE_INSTANCE table in the olite database.
    Thanks
    Clement

    Could you confirm if you have completed 1.6 steps successfully?
    Is the process deploying fine and able to see the instance created on console ? Able to see the tasks created for the user on worklist app console ? 10.1.3.4 + any MLR ?

  • Changing database instance name

    Hi,
    I have oracle database 10g installed on linux.
    and now we are aking the databas eto production leve to the www
    do we need to change the oracle database name. is there any security reason for it, so outside doesn't need to know from the service name the location of the database. if we have to, then how to do it without affecting any existing processes.
    or any other ways to secure the database identity.
    any ways to give a alias to the ip address.
    any suggestions please.
    Thanks,
    Philip.

    The Oracle documentation contains a lot of security policies. In your case, you should be very cautious about firewall configuration and especially:
    If Oracle Database is behind a firewall, then do not, under any circumstances, poke a hole through the firewall. For example, do not leave open port 1521 for Oracle Listener to make a connection to the Internet or vice versa.
    Restrict the privileges of the listener, so that it cannot read or write files in the database or the Oracle server address space.
    Harden the host operating system by disabling all unnecessary operating system services. Both UNIX and Windows platforms provide a variety of operating system services, most of which are not necessary for most deployments. Such services include FTP, TFTP, TELNET, and so forth. Be sure to close both the UDP and TCP ports for each service that is being disabled. Disabling one type of port and not the other does not make the operating system more secure.
    (From http://download-uk.oracle.com/docs/cd/B19306_01/network.102/b14266/policies.htm#i1007433)

  • Change database instance name from XE to something else

    Does anyone know how to change the database name during the XE installation?

    Just remember, especially if you are coming from the Microsoft SQL Server or the MySQL world ...
    One MySQL or SQL Server database is roughly one Oracle Schema. You can have any number of Schemas in an Oracle database. It may not be necessary to have a different database name, or multiple XE databases.

  • List all the table names and no of records in DB.

    Hi,
    How can i write a select query which should give the total tables in the database and the number of records in each table.
    Eg: I have 2 table in the database 1. EMP 2. DEPT . EMP table has 14 records and DEPT has 4 records. Then the out put should come like following.
    TNAME RecCount
    EMP 14
    DEPT 4
    Regards
    Bond.

    Also if Table statistics have been gathered(analyze table or DBMS_STATS) then this can also be used:
    SQL> create table TEST_ABC
      2  (name_ABC varchar2(200));
    Table created.
    SQL> insert into TEST_ABC
      2  values('ABC');
    1 row created.
    SQL> insert into TEST_ABC
      2  values('DEF');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select table_name, num_rows from all_tables where table_name = 'TEST_ABC';
    TABLE_NAME                       NUM_ROWS
    TEST_ABC
    SQL> analyze table TEST_ABC compute statistics;
    Table analyzed.
    SQL> select table_name, num_rows from all_tables where table_name = 'TEST_ABC';
    TABLE_NAME                       NUM_ROWS
    TEST_ABC                                2
    SQL>

  • Confusing with the Global Database Name and Instance Name

    Dear fellow DBA's and Experts,
    Good Day.
    We presently have an existing database registered (on V2 Exadata) with global database name as BIDEV.domainname.com. It has 4 instances viz., BIDEV1 and BIDEV2 which have the same service name as the instance name.
    Last week, on our new X4-2 Exadata, we tried to create a fresh database. While doing so, we entered the details as below in the installer:
    Global Database Name: BIDEV
    SID Prefix: BIDEV
    Service Name: BIDEV.
    Then upon the successful installation of the database, when we query
    1. (SELECT * FROM GLOBAL_NAME), it shows BIDEV as the global database name.
    2.
    SQL> sho parameter service
    NAME                                 TYPE        VALUE
    service_names                        string      BIDEV1
    3. Sho parameter name gives the below details:
    SQL> sho parameter name;
    NAME                                 TYPE        VALUE
    cell_offloadgroup_name               string
    db_file_name_convert                 string
    db_name                              string      BIDEV
    db_unique_name                       string      BIDEV
    global_names                         boolean     FALSE
    instance_name                        string      BIDEV_1
    lock_name_space                      string
    log_file_name_convert                string
    processor_group_name                 string
    service_names                        string      BIDEV1
    Curious to know why it created an instance name as BIDEV_1 instead as BIDEV1.
    Had tried another attempt on our test environment with SID prefix as BIDEV1, then the instance was created with the name as BIDEV1_1.
    Also, would like to know what happen if we give the Global Database Name as BIDEV.domainname.com for installing the same BIDEV database on a different server while the 1st server is still functional.
    Appreciate if someone could throw some light on the above confusion. Any reference material or source to the clarify the doubt.
    Warm Regards,
    Vikram.

    Hi Vikram,
    Your clustered database is not full RAC, it's RAC ONE node database. In RAC ONE node database, instance names are created in that format only (i.e.e dbname_1), I don't know if there is any way we can change it to dbname1. OR if you really want to change the instance name to dbname1 format, then you can convert RAC one node database to Full RAC, then remove instance and add another instance, I hope it would be added in dbname1 format. I have not tested it, test it on your test system first.
    You can find the database type in the output you shared,
    Type: RACOneNode
    Regards,
    Saurabh

  • Not able to configure database instance on target host in Grid Control

    I can see all database instances on a target in GridControl and when I tried to configure database instance, it fails with the following error.
    Error
    oracle.sysman.emSDK.emd.comm.CommException: java.net.UnknownHostException: <dbinstance name>
    Could somebody tell me how to troubleshoot this issue (like logs for more info for this error)
    thanks

    Hi
    I am also facing the same issue. My Grid is 10.2.0.5 version. With agentca I could able to see the database of this target on grid but their status show pending.
    When I try to addthem manually it give me below error.
    Error communicating with the agent. Exception message - oracle.sysman.emSDK.emd.comm.CommException: java.io.IOException.
    Thanks
    Rao

  • Multiple database instance on one server

    Hi experts
    We are planning to implement ERP, BI, Solman, CRM and MDSD on windows/oracle platform. There is an idea about system landscape that all database instance of production systems are installed on one server and central instances of each system are installed on separate servers. Is there any performance or maintenance risk about this scenario? What is the advanteges and disadvantages of this landscape? Shall we prefer central system installation?
    I'm waiting for your recommandation.
    Best Regards...

    Hi,
    From experience one disadvantage in having an Oracle farm, is if the server plays up
    or needs a reboot you of course lose all the systems databases.
    Also getting all customers to aggree a maintenance slot together can be a pain.
    Failover needs to be considered, DR also.
    IMHO separate servers, but that is my preference I'm sure there are advantages.
    Mark

  • Instance names arnt working for Global Locator

    Hi, i am trying to navigate through my scene, I have several
    buttons all with instance names, i would like to have a small tween
    before jumping to the next section, i have been trying to use
    global locator but it doesnt seem to be working, nort sure if its
    the script or the way im using it can anyone help?, The script i
    have so far is.
    _global.locator;
    contact_BT.onRelease = function() {
    play();
    _global.locator = "contact";
    };

    CIB?
    There is no issue with giving a component an instance name, you have to if you want to reference it from code. The instance name is in the same spot as it is for any display object, in the properties panel...

Maybe you are looking for

  • Problem in USB-IF xHCI USB Host Controller

    Dear, I hope that you will be fine. My name is Rana Imran and i am using HP ENVY Ultrabook 6-1106tx with Windows 8.1. I think i have driver problem in USB-IF xHCI USB Host Controller. I am sending you pictures of problem. Please solve this problem. T

  • No Documents were created for in this run

    Dear Friends: Using T.code AFAB,I entered Co.code,Fiscal year 2006,depreciation run-003,planned post run,list of assets. I got the message. Error Analysis was ended, Refer to error log No Documents were created for in this run According to posting cy

  • Adding Zeros infront of a field in Message Mapping

    Hi, I need to add zeros infront of my target field (eg Target Field length is fixed (10). If incoming field is having only 3 digits (123), I need to add 7 (10-3) zeros infront of my target field (0000000123). How to go about it. Is there any standard

  • Backward compatibility for installers when switching to bundled (aka captive) Air runtime

    The non-bundled versions of the installers for desktop Air applications on Mac have the nice feature of ensuring that multiple versions of the same app cannot exist on the system. When a new version of the app comes along, the installer removes the o

  • Branch to page on clicking report column

    Hi, I have created patient interactive report, when clicking column of the report say "EDIT" page is redirected to anothe page "PAGE 7" for patient in QUEUE. Before redirecting that page 7 i want to check "patient is already in queue table or not". a