Oracle Listner and tnsnames related query

Hi ,
DB verison 10.2.0.1.0.
i have 3 databases running on my machine.
(Listner entry)
# listener.ora Network Configuration File: D:\oracle_2\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\oracle_2)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.180.1)(PORT = 1521))
(Tnsnames entry)
# tnsnames.ora Network Configuration File: D:\oracle_2\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.
DEV =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.180.1)(PORT = 1521))
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = DEV)
CPDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.180.1)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = cpdb)
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.180.1)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
My query is as follows.
i have DEV,ORCL,CPDB db names on my local machine.service name is same as db_name.
for DEV tnsnames entry is
DEV =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.180.1)(PORT = 1521))
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = DEV)
when a client want to connect to DEV database ,above entry will be configured in tnsnames.ora and services name DEV can be used at client side.
Now when actully connection get established first protocl TCP is used for communication,then 192.168.180.1 is find out then port 1521 is used.
Now my question is how that establishing connection knows to connect to which database if there are more database on same host ? is that again tnsnames.ora parameter SERVICE_NAME = DEV indicate as db_name to get connect on db server?

Below is the ex how we do it in real time environment. If 2 databases Test,Stage running on same server then we configure different listener to listen each database.
Stage listener.ora :
==================
Stage =
(ADDRESS_LIST =
(ADDRESS= (PROTOCOL= IPC)(KEY= EXTPROCStage))
(ADDRESS= (PROTOCOL= TCP)(Host= Server06.oracleoutsourcing.com )(Port= 10910))
Test listener.ora :
==================
Test =
(ADDRESS_LIST =
(ADDRESS= (PROTOCOL= IPC)(KEY= EXTPROCTest))
(ADDRESS= (PROTOCOL= TCP)(Host= Server06.oracleoutsourcing.com )(Port= 10710))
tnsnames.ora for client :
========================
Stage=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=Server06.oracleoutsourcing.com)(PORT=10910))
(CONNECT_DATA=
(SID=Stage)
Test=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=Server06.oracleoutsourcing.com)(PORT=10710))
(CONNECT_DATA=
(SID=Test)
)

Similar Messages

  • Oracle cleint and tnsnames.ora

    We have a duty to do some data analysis on one of our oracle databases. We have a copy of the tnsnames.ora file with the DB server and SID etc.
    If you use something like toad or golden to query the DB, do you also need to install the oracle client on the machine (windows XP?) Or just the TOAD software?
    Is there a default locaiton on XP where tnsnames.ora needs to be saved?
    And if we do need the client what is the correct version?

    user599292 wrote:
    We have a duty to do some data analysis on one of our oracle databases. We have a copy of the tnsnames.ora file with the DB server and SID etc.
    If you use something like toad or golden to query the DB, do you also need to install the oracle client on the machine (windows XP?) Or just the TOAD software?
    Is there a default locaiton on XP where tnsnames.ora needs to be saved?
    And if we do need the client what is the correct version?Toad, yes you need the Oracle client. Can't say about "golden", I don't even know what that is. In general, any product like this is going to sit on top of the Oracle client, not replace it.
    there is nothing magic about tnsnames.ora. It is just a names resolution file that is used by the oracle client software. If you have some magic application that replaces the oracle client instead of using it, then your tnsnames.ora will be of no intrinsic value beyond giving you the information you need to configure said magic application.
    Edited by: EdStevens on Oct 14, 2011 6:32 AM

  • Retail: IS-Retail sytem and POS related Query in SAP Testing

    Hi Experts,
    I am expecting clear answer for my query.I am going to sit in SAP Testing project so i just want to know the t-codes which we use to send the O/B IDOCs to POS and the I/B IDOCs from POS to SAP R/3 system.What's the t-code i have to use if i didnt send my IDOCs to POS(where i have to monitor the POS O/B?i want t-code).What's the t-code i have to use if i am not able to get the IDOC or Data from POS to my R/3 system.(where i have to monitor the POS I/B? expecting t-code).I want complete process from R/3 to POS and from POS to R/3.I just want to know what t-code do we use in SAP Testing project as an SAP IS-Retail Functional consultant with SD.Hope for reply from SAP experts and hope for clear and step by step t-codes and procedure from experts.Thanks in Advance.
    Regards
    Sandhya

    Hi
    1) ECC to POS : a) WDBM_HPR tcode is use to trigger idoc for assortment list
    b) WPMA tcode is used for triggering idocs for MC based promotion,Merchandise Hirarchacy & mixmatch discounts.
    2) POS to SAP R/3 : data will pass through XI. POS Tlog files will be used by XI to process data into SAP.
    WPUUMS & WPUTAB Idocs will be used to send data to R/3.
    we can check in R/3 by using Tcode WPER for the creation of billing documents & Article documents.
    Error handling :
    1) check in weo5 & in XI monitoring for outbound idocs.
    2) check in we05 inbound & in XI for inbound monitoring.
    Regards
    Abhijit

  • Snmpget and snmp related query

    hi ,
    can any one suggest how to setup snmpagent and snmpmanager in solaris 10 x86 machine (both in same machine agent &manager) in order to recieve traps for any task in a specific location in the same system

    hi ,
    can any one suggest how to setup snmpagent and snmpmanager in solaris 10 x86 machine (both in same machine agent &manager) in order to recieve traps for any task in a specific location in the same system

  • JAVA beans and JAVA related services require Oracle client to be installed?

    Can you please advice whether an application server that make use of JAVA beans and JAVA related services require Oracle client to be installed? For an example if the solution build based on Java and JBOSS to be used as application server, do we still require oracle client to be installed and configure the tnsnames in order to communicate to database server?

    SHANOJ wrote:
    Can you please advice whether an application server that make use of JAVA beans and JAVA related services require Oracle client to be installed? For an example if the solution build based on Java and JBOSS to be used as application server, do we still require oracle client to be installed and configure the tnsnames in order to communicate to database server?Oracle client is not required when JDBC is used to connect to the remote DB

  • Select query differences between oracle 9 and oracle 8.

    Hi,
    I have a problem using the select query between oracle 7 and oracle 9i I don't have the same result :
    ex:
    With oracle7
    SQL> select 'champ1','champ2' from DUAL;
    'CHAMP 'CHAMP
    champ1 champ2
    With Oracle 9
    SQL> select 'champ1','champ2' from DUAL;
    'CHAMP1' 'CHAMP2'
    champ1 champ2
    So Can someone tell me how to solve this problem ? Is there a parameter in oracle 9 to set?
    Thanx.

    Whenever you are posting anything over internet forums like this - you should be very careful about not just posting the details which requires to solve the problem - also should be sensible about your question.
    This is not at all desired when you are posting such question. It may be because - you may not well aware of the fact.
    My suggestion is -> First Go through the basics Of SQL in general.
    Then go for any specific product like Oracle/ SQL Server/ Sybase etc.
    And, finally learn the advanced commands of that DB.
    You asked it - may be you thought the difference in output in terms of lines. But, that is not your actual output. That is the graphical display part only.
    Anyway,
    You can get the quite familier output by first type the following command ->
    set lin 310Regards.
    Satyaki De.

  • Query using Materalized view in oracle 9i and 10g

    Hello
    There are snapshots (materialized view) used in my application. We have recently migrated from 9i to 10g release 2 database.
    After migration i have observed explain plan of query which is using materialized view and i found in 9i oracle treating materalized view as table. In 10g oracle is considerting it as MVIEW only (MAT_VIEW ACCESS BY INDEX ROWID). However in 10g cost of query which is using materialized view is much higher than 9i. And execution time is also random.
    Can anbody pls. expalin diff. of materalized view access in oracle 9i and 10g.
    Thanks

    can you post your query with explain plan for both 9i version and 10g version.
    Thanks,
    karthick.

  • Query result caching on oracle 9 and 10 vs indexing

    I am trying to improve performance on oracle 9i and 10g.
    We use some queries that take up to 30 minutes to execute.
    I heard that there are some products to cache query results.
    Would this have any advantage over using indexes or materialized views?
    Does anyone know any products that I can use to cache the results of this queries on disk?
    Personally I think that by using the query result caching I would reduce the cpu time needed to process the query.
    Is this true?

    Your message post pushes all the wrong buttons starting with the fact that 9i and 10g are marketing labels not version numbers.
    You don't tune queries by spending money and throwing resources at them. You tune them by identifying the problem queries, running explain plans, visualizing their output using DBMS_XPLAN, and addressing the root cause.
    If you want help post full version numbers, the SQL statements, and the DBMS_XPLAN outputs.

  • Co-relation between oracle blocks and OS blocks ??

    how is the database data-block co-related withe the OS data-block ??

    Akshay,<br>
    <br>
    Ca va, merci. ;-)<br>
    In the doc above, we can read "Each operating system has a block size. Oracle requests data in multiples of Oracle data blocks, not operating system blocks.".<br>
    <br>
    Anyway, you can search into Oracle doc, and find DB_BLOCK_SIZE Initialization Parameter : If a database's block size is different from the operating system block size, make the database block size a multiple of the operating system's block size.<br>
    <br>
    Nicolas.

  • Oracle Error Code and Message for Query Timeout

    Hi,
    I need to catch the oracle error code and message for query timeout.
    I am using Oracle 9i and could not find any relevant error code/message
    for query timeout in Oracle Error Messages.
    If anyone has encountered such error messages, please let me know the
    Oracle Code or Error message.
    Thanks & Regards,
    Kanjana

    Fly is correct in that Oracle will normally let a query run forever in the absense of a user profile or dbms_resource setting that limits a users (query) resouce usage.
    The errors returned for these condition would probably vary but errors ORA-02092 "exceeded session limit on CPU usage, you are being logged off" and ORA-02093 "exceeded call limit on CPU usage" might be of interest.
    But for distributed queries Oracle does impose a time limit. See Oracle error ORA-02049 "timeout: distributed transaction waiting for lock"
    HTH -- Mark D Powell --

  • Send query to Oracle DB and bind result to Grid

    Is it possible to send a query to an Oracle DB and populate a
    grid with the result?
    If so, what are the steps (tutorial somewhere...)?
    Thank you.
    LD

    Yes.
    See the Data Access and Interconnectivity topic in the
    Developers guide.
    Post back with specific questions.
    Tracy

  • Are oracle account and pearson account related

    I've created a pearsonvue account to take my oracle test.
    Have I to sort of relate my two accounts (oracle and pearsonvue)?
    Does this account (oracle) have to do something with my certification issues?
    Is there any public list of the certified people in my area or something ?
    thanks in advance.

    raulooo wrote:
    I've created a pearsonvue account to take my oracle test.
    Have I to sort of relate my two accounts (oracle and pearsonvue)?It is not mandatory but it is highly advised to use certview to marry (link) your oracle SSO and Pearson VUE accounts.
    See http://certview.oracle.com and http://blogs.oracle.com/certification/2009/09/0136.html
    Does this account (oracle) have to do something with my certification issues?Not unless / until linked by Certview. If you do not link via certview Oracle will still retain your Pearson VUE exam key events on their Certification database under the Oracle Testing Id, however this will not be linked to your Oracle SSI account until you register for Certview.
    Is there any public list of the certified people in my area or something ?
    There is no public list. (Though profiles of a selection of Oracle Certified Masters is available).
    thanks in advance.

  • Connect to Oracle DB using DBCP and tnsnames.ora

    I have a Spring-based web app that is running on Tomcat and uses DBCP to connect to Oracle.
    The problem:
    Need to pull database connection information from tnsnames.ora file. There is Oracle Client installed on a server, so tnsnames file is available.
    According to JDBC documentation, the following url should do the trick: jdbc:datadirect:oracle:TNSNamesFile=c:\\oracle\\product\\10.2.0\\NETWORK\\ADMIN\\tnsnames.ora;TNSServerName=FITZGERALD.SALES
    This leads to the following declaration in dataAccessContext-local.xml file:
    +<bean id="dataSource" class="org.apache.tomcat.dbcp.dbcp.BasicDataSource" destroy-method="close">+
    +<property name="driverClassName" value="oracle.jdbc.OracleDriver"/>+
    +<property name="url" value="jdbc:datadirect:oracle:TNSNamesFile=C:\\oracle\\product\\10.2.0\\db_1\\network\\admin\\tnsnames.ora;TNSServerName=TESTDB"/>+
    +<property name="username" value="${jdbc.username}"/>+
    +<property name="password" value="${jdbc.password}"/>+
    +</bean>+
    This doesn&rsquo;t work for me saying that database url is invalid.
    Can anyone provide instructions on how to set up DBCP with tnsnames.ora?
    Any help greatly appreciated.

    You are right, the I got that url may not be correct. I got it from datadirect documentation.
    I couldn�t find any good information or examples on this, but I think using TNS keyword-value pairs and tnsnames.ora is supported by type4 Oracle 10g JDBC.
    Some info I found in section �Connecting to the Database through the Applet� in JDBC Reference http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/jdbcthin.htm#CACCHECD
    I guess there is something off in that documentation though. I couldn't get it working.

  • Query for oracle 9i and 10g on same box

    HI
    All,
    I have oracle 9i installed on one box it has
    oracle home /u01/app/oracle/product/9.2.0
    and i am gonna install oracle 10g on different home /u01/app/oracle/product/10.2.0
    Do I need to specify different location for OraInventory?
    so what else I need to take care?
    Thanks,
    Vishal

    So there should not be a problem if it is the same
    orainventory location for both 9i and 10g right.There should be no problem.
    can you throw more focus on below ?
    When managing different oracle versions on the same
    box you should take care of environment variables to
    properly point to each ORACLE HOME and PATH, and
    ensure different ports do not conflict.
    For instance, you should use the Listener of the latest release on the server (in this case 10g) to services all the databases on that box 9both 9i and 10g).
    When you want to startup and shutdown 9i database, you do not want to shutdown a 10g database by mistake. Hence, setting things like ORCLE_HOME and ORACLE_SID.
    Also, Oracle Server make use of libraries. You do not want to mix up 9i and 10g libraries. hence take care when you set things like PATH, LD_LIBRARY_PATH etc
    The same applies to all Environment variables you want to set on the server that has different oracle releases. You just need to ensure that when you logon, your variables are set correctly for the intended oracle release before you do anything.

  • Oracle 10G and UCCX 5.0 Database Connection return 0 rows on query

    Currently I have an issue with UCCX 5.0 and Oracle 10G, we need to access a table on an Oracle10G DB, form IP IVR, so I installed the driver, created the ODBC connection and declared the ODBC, user and password on the Database subsystem (name on UCCX match the ODBC name) and restarted the engine.
    Im trying to do simple select statement (SELECT * FROM TABLE) and I'm getting a 0 count once I test it.

    Hi,
    I see it has been a while since you posted this question, but I am having exactly the same problem with an Oracle integration and I was wondering if you were able to fix this and how.
    Your reply will be greatly appreciated.
    Regards,
    Eduardo

Maybe you are looking for