Oracle Listner and tnsnames related query

Hello

Version 10.2.0.1.0 DB.

I have 3 databases running on my computer.


(Entry Listner)
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)
(= Extproc PROGRAM)
)
)

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = CIP)(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 = CIP)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)



My request is as follows.
I DEV, ORCL, names of CPDB db on my local name machine.service is the 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 wants to connect to the database DEV, above the entrance will be configured in tnsnames.ora and name WHAT DEV services can be used on the client side.

Now, when implement us actully connection first TCP protocol is used for communication, then 192.168.180.1 is port 1521 is used.

Now my question is how this respect establishing knows to connect to the database if there is more data on the same host? who is new tnsnames.ora SERVICE_NAME = DEV parameter indicate as db_name to connect to db Server?

See my TNS explanations at edstevensdba.wordpress.com

Tags: Database

Similar Questions

  • Hi I am new to Oracle forms and reports I want to know the differences between the Enter query mode and Normal mode?

    Hi I am new to Oracle forms and reports I want to know the differences between the Enter query mode and Normal mode?

    Welcome to Oracle Forms!  Out of curiosity, what do you mean by 'new '?  You are a student or new to an organization that uses Oracle Forms?  Or just play with Oracle Forms to learn something new?

    Let me start by saying that many of your questions designtime can answer by searching in the help of the constructor of the form library.  It's accessible, like most of the other products in the Builder menu > help.

    Regarding your question, ENTER QUERY mode, as the term implies, is when it is in a State where it is accept input for the execution of a query.  When in this mode, there are various restrictions.  Yet once, it will find more details in the Builder Help.  In this case, search help for these two subjects, "SYSTEM." MODE'and "built-ins comments that are not allowed in the input query Mode".  There are many other pages that contain information about the ENTER_QUERY method, but these two should help you get started.

    Normal mode, as its name implies, is when it is in a State of 'normal '.  Basically to do nothing in particular, but also not in ENTER QUERY mode.  In this State, you can move the shape, INSERT, UPDATE, DELETE, documents, etc..

    You will find additional information, as well as a lot of documentation on the product page of forms of OTN:

    http://www.Oracle.com/technetwork/developer-tools/forms

  • Oracle 11g and partitions on a star model

    Hello

    I am Manager of the Business Intelligence service in a society. We use SAP BI4.1 SP3 and an Oracle 11 g server.

    We have big questions about our various requests.

    One of them is the use of "partition" and how they are used.

    Here's the situation. I have a big fact with data on the inventory table. This table is partitioned with partition 1 per day, using the foreign key 'DATE_KEY"(digital YYYYMMDD)

    I have a CIVIL dimension, whose primary key is also DATE_KEY (numeric YYYYMMDD). Other columns of attribute are like DAY (in a date format), YEAR, WEEK and so on. Very classic.

    Now, I want to execute the following queries:

    (1) to recover the 1 day stock, using the date format of my calendar dimension attribute

    Select sum (stock_quantity)

    of s FACT_STOCK

    inner join DIM_CALENDAR d

    On s.DATE_KEY = d.DATE_KEY

    where d.DAY = to_date('16/02/2016','DD/MM/YYYY')

    (2) get 1 day stock, using the primary key of my calendar dimension

    Select sum (stock_quantity)

    of s FACT_STOCK

    inner join DIM_CALENDAR d

    On s.DATE_KEY = d.DATE_KEY

    where d.DATE_KEY = 20160216

    (3) to recover the stock of 1 week, using the week of my calendar dimension attribute

    Select sum (stock_quantity)

    of s FACT_STOCK

    inner join DIM_CALENDAR d

    On s.DATE_KEY = d.DATE_KEY

    where d.WEEK = 201607

    Results of the explain plan command:

    1)

    expected: it's supposed to used 1 partition because the partition key is in the join

    true: it does not use the partition. All the table partitions are analyzed.

    2)

    expected: it is supposed to used 1 partitionas the partition key is in the filter where

    true: it uses a 1 partition.

    3)

    expected: it is supposed to use 7 partitionas the partition key is in the join

    Real: it does not use the partition. All the table partitions are scanned.

    The behavior is normal? I think that this isn't, but I'm not DBA.

    "If it's normal, partition are completely unnecessary, since I can't say my professional user: 'Please use the technical dimension instead of the calendar attribute key' or 'Please list the day of your week instead of using the attribute of the week'"

    Is it possible to implement dabase settings in order to use the partition.

    Notice the: BF0000 used for pstart and pstop, also references to the "party join filter.

    It is Oracle, creation and use of a filter of flowering of the first entry (small) to identify the partitions that need to access the second table.

    It is possible for Bloom filters identify data redundant, but to identify the partition, they seem to be very accurate.

    It seems that you should have a unique constraint on d.day for your first query, this would allow Oracle to see she had access only a single partition - and which could replace the filter of flowering with a subquery to pstart/pstop and KEY/KEY filter (possibly KEY (SQ) / KEY (SQ)) instead of: BFnnnn

    Concerning

    Jonathan Lewis

  • After changing the port (1521 to 1525 in listener.ora and tnsnames.ora) OEM: the database is down

    Hello

    I'm installing Oracle Database 11 g 2 (11.2.0.4) on Oracle Linux 7.1.

    In short, what I'm trying to do now is changing the default port of 1521 to 1525.

    So I stopped the listener (lsnrctl stop) and then changed my listener.ora and tnsnames.ora:

    Listener.ora

    listener.ora # Network Configuration file: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora

    # Generated by Oracle configuration tools.

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))

    )

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP (PORT = 1525))(HOST = localhost))

    )

    )

    ADR_BASE_LISTENER = / u01/app/oracle

    tnsnames.ora

    tnsnames.ora # Network Configuration file: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora

    # Generated by Oracle configuration tools.

    BI =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP (PORT = 1525))(HOST = localhost))

    )

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = bi)

    )

    )

    And then changed the local_listener:

    SQL > ALTER SYSTEM SET LOCAL_LISTENER = "(ADDRESS = (PROTOCOL = TCP)(HOST=localhost) (PORT = 1525))";

    SQL > ALTER the REGISTRY SYSTEM;

    Finally, I started the listener (lsnrctl start) again.

    Then I tried to connect using Oracle SQL Developer to the customer. The port of 1525 works perfectly well.

    The problem is, when I open the OEM (Oracle Enterprise Manager), it says: "the database is down. Please specify the credentials of the host to access the restart and database diagnostic tools," which is like this: http://imgur.com/oKLPW65

    So I logged on the account of the host, and it shows that the database instance, listener and the agent is all down like this: http://imgur.com/Bzr84bz

    It seems that the port used by the OEM is always 1521.

    What should I do? Can someone help me solve the problem?

    Thanks in advance.

    UPDATE:

    After changing the emoms.properties & the targets.xml (thanks to Elisabeth), you will need to reconfigure dbconsole using emca.

    So what I'm doing is decreasing the config:

    $ emca - deconfig dbcontrol db-rest drop

    and then create again:

    $ emca - create config dbcontrol db-rest

    Voila.

    Best regards

    Jerry Antonius

    Hello

    Try to change the port numbers in the following files

    Don't port no 1521 to 1525

    $ORACLE_HOME /_SID/sysman/config/emoms.properties

    oracle.sysman.eml.mntr.emdRepPort = 1525 (before 1521)

    $ORACLE_HOME /_SID/sysman/emd/targets.xml

    (Before 1521)

    (Before 1521)

  • I have a document composed of separate PDF files that reside in a folder and are related to each other through hyperlinks. Each pdf file is set to open with bookmarks displayed, however if I have a link to a PDF file to another and use the button "Previou

    I have a document composed of separate PDF files that reside in a folder and are related to each other through hyperlinks. Each pdf file is configurΘ for dΘmarrer with bookmarks displayed, however if I have a link to one PDF file to another and use the "back" button to return to my starting point bookmarks are replaced by "vignette". Is there anyway to prevent this?

    Hi Mike,.

    While the implementation of the links, if you choose to open the file in a new window then you will not experience this issue, then you can simply switch to the file view and previous bookmark will remain as it is.

    Is that what helps with your query?

    Kind regards
    Rahul

  • Hi I am new to Oracle APEX and my desires to organize me working on it... can someone help me to begin with?

    Hi I am new to Oracle APEX and my desires to organize me working on it... can someone help me to begin with?

    Hello

    Start reading the documentation

    Oracle Application Express - Documentation

    Check the packaged applications that comes with the APEX.

    You can find a lot of info and examples of Oracle Learning Library

    http://Apex.Oracle.com/pls/Apex/f?p=44785:2:0:FORCE_QUERY:2, IRB, CIR:P2_GROUP_ID, P2_PRODUCT_ID:1000 %2 C 2039

    APEX to read related blogs

    WORLD: APEX Blogroll

    You can find many things from this forum, just use search.

    Kind regards

    Jari

  • LDAP and tnsnames

    Hi all

    can someone please explain the differences between LDAP and tnsnames?

    and the LDAP configuration for the oracle database.

    >

    can someone please explain the differences between LDAP and tnsnames?

    and the LDAP configuration for the oracle database.

    check the link below.

    http://docs.Oracle.com/CD/B10500_01/network.920/a96580/config_c.htm

  • How to implement enter and execute the query in the ADF

    I'm new to ADF and I'm trying to create a simple data entry in ADF 11 g based on a database table. I'm looking to implement the equivalent of the request function enter and execute the query in Oracle Forms. I tried the default operations that are available with the data controls. But they don't seem to have this feature. Can someone help / tell me how this can be implemented.

    Thank you
    Srini.

    How to add a query Panel? Who has the most benefits that the use of Find.

    More info on af:query

    http://docs.Oracle.com/CD/E28389_01/apirefs.1111/e12419/tagdoc/af_query.html

    Arun-

  • SQLNET.ora and tnsnames.ora, listener.ora btwn difference

    Hi all

    What is the fundamental difference between these 3 files - sqlnet.ora, listener.ora and tnsnames.ora?

    Version may be 10 g.

    (a) Listener.ora is a SQL * Net configuration file allows you to Configure listeners (needed to accept applications for remote connection) Oracle database.

    Normally, this file resides in the ORACLE HOME\NETWORK\ADMIN directory or in the directory defined by the variable $TNS_ADMIN.

    (b) Tnsnames.ora is a file that is used by oracle client to connect to the oracle server.

    (c) Sqlnet.ora is a text file that provides SQL * Net with the basic configuration details as options vectorization, field by default, encryption, etc.. This file is located in the ORACLE HOME\NETWORK\ADMIN directory.

  • Can I bring PORTAL30 user and the related PORTAL tablespace after R12.1.1?

    Hello

    After the 11.5.9 to R12.1.1 upgrade, I bring PORTAL30 user and the related PORTAL tablespace? We do not have the old Portal stuff and won't use portal in the new system. In my view, there are objects 1145 (656 Index, 431 tables, lob 28 index, two tables nested in the tablespace and lob 28 segment), but almost no data.

    Thank you
    Sinan

    After the 11.5.9 to R12.1.1 upgrade, I bring PORTAL30 user and the related PORTAL tablespace? We do not have the old Portal stuff and won't use portal in the new system. In my view, there are objects 1145 (656 Index, 431 tables, lob 28 index, two tables nested in the tablespace and lob 28 segment), but almost no data.

    Please see these documents.

    What is the Impact of a seeded Oracle users disabling? [418767.1 ID]
    Configuration Guide for Oracle E-Business Suite Release 12 [403537.1 ID]
    How to remove Oracle Portal 3.0.9 to E-Business Suite 11i [ID 312349.1]

    Thank you
    Hussein

  • Multiple Oracle homes on the same server (Oracle ACE and DB)

    Hi all

    OS: RHEL 4.7
    Oracle Application Server: 10.1.3.1
    Oracle database: 11.2.0.1.0

    I was asked to install oracle 11g on a server that is already running Oracle Application Server 10.1.3.1

    Due to the lack of space on the server sys admin gave me space under/usr, Installation went smooth and successful and complete location 11 g installed is "/ usr/11 GR 2/app/product/11 g.

    Database is also created using DBCA with the location of the file ' / usr/11 GR 2/app / 11 g/oradata.

    It is, I need to define the environment variable under the same 'oracle' user when it connects, should be able to log on by typing just sqlplus...

    . Current user 'oracle' Bash_profile looks like this...

    ***********************************************************************
    # Get the aliases and functions
    If [~/.bashrc - f]; then
    . ~/.bashrc
    FI

    # Specific programs startup and user environment

    Path=/U01/Oracle/product/10.1.3.1/OracleAS_1/JDK/bin:$path:$Home/bin

    Export RPD_HOME = / home/oracle/ORABI/OBI/Server/repository
    export ORACLE_HOME=/u01/oracle/product/10.1.3.1/OracleAS_1
    #export JAVA_HOME=/u01/oracle/product/10.1.3.1/OracleAS_1/jdk
    export JAVA_HOME=/home/oracle/product/10.1.3.1/OracleAS_1/jdk/
    $PATH = path: $ORACLE_HOME/bin
    $PATH = path: $ORACLE_HOME/opmn/bin
    export ANT_HOME = / usr/local/ant
    export PATH = ${PATH}: ${ANT_HOME} / bin
    #export JAVA_HOME = / usr/local/ant/jdk


    export PATH

    *****************************************************************************

    Please suggest to include this also oracle_home in the .bash_profile above or any other solution to meet the needs...

    Thank you

    Published by: user1687821 on December 22, 2011 01:10

    Hello;

    I did a similar thing using Oracle 10 and 11, but I keep manual and use default bash for one.

    From the houses of the Oracle, I run the command: (using which profile I need)

    
     source ./o10g.profile
    
     
    

    Note the "unset ORACLE_HOME" command in each profile.

    o10g. Profile

    
    TMP=/tmp; export TMP
    TMPDIR=$TMP; export TMPDIR
    
    export ORACLE_BASE=/u01/app/oracle
    unset ORACLE_HOME
    export ORACLE_HOME=/u01/app/oracle/product/10.2.0
    #export DISPLAY=localhost:0.0
    export TZ=CST6CDT
    export ORA_OCI_NO_OPTIMIZED_FETCH=1
    ORA_OCI_NO_OPTIMIZED_FETCH=1; export ORA_OCI_NO_OPTIMIZED_FETCH
    export ORACLE_SID=
    export ORACLE_TERM=xterm
    #export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin
    
    export NLS_LANG=AMERICAN;
    
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    export LD_LIBRARY_PATH
    
    # Set shell search paths
    
    unset PATH
    
    PATH=/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin; export PATH
    export PATH=$PATH:$ORACLE_HOME/bin
    
    #CLASSPATH
    CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
    CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib
    export EDITOR=vi
    set -o vi
    PS1='$PWD:$ORACLE_SID>'
    

    o11g. Profile

    TMP=/tmp; export TMP
    TMPDIR=$TMP; export TMPDIR
    
    export ORACLE_BASE=/u01/app/oracle
    unset ORACLE_HOME
    export ORACLE_HOME=/u01/app/oracle/product/11.2.0
    #export DISPLAY=localhost:0.0
    export TZ=CST6CDT
    export ORA_OCI_NO_OPTIMIZED_FETCH=1
    ORA_OCI_NO_OPTIMIZED_FETCH=1; export ORA_OCI_NO_OPTIMIZED_FETCH
    export ORACLE_SID=
    export ORACLE_TERM=xterm
    #export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin
    
    export NLS_LANG=AMERICAN;
    
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    export LD_LIBRARY_PATH
    
    # Set shell search paths
    
    unset PATH
    
    PATH=/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin; export PATH
    export PATH=$PATH:$ORACLE_HOME/bin
    
    #CLASSPATH
    CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
    CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib
    export EDITOR=vi
    set -o vi
    PS1='$PWD:$ORACLE_SID>'
    

    Best regards

    mseberg

  • Problem with Oracle 9i and Oracle 11g

    Hello
    I have 2 Installation of Oracle: Oracle 9i client and Server Oracle 11.2
    Oracle 9i to: C:\oraclient9\
    Oracle 11g: C:\app\a.l\product\11.2.0\

    I have an application that has to connect to Oracle via ODBC, but whenever I try to connect looking for odbc Oracle 9i and I get this error:
    ORA-12541: TNS no listener

    If I try to boot with sqlplus to: start-> run-> sqlplusw get Oracle 9i version

    If I'm running sqlplus from start-> program-> Oracle 11-> I can connect properly.

    If I try to create a new ODBC it always plug the Oracle version 9i.

    I tried:
    Set ORACLE_HOME=C:\app\a.l\product\11.2.0\dbhome_1
    Set ORACLE_SID = ORCL

    but when I try: sqlplus / as sysdba I get this error:
    14 error initializing SQL * more
    SP1 file < lang > .msb not found message
    SP2-0750: you may need to set ORACLE_HOME in your Oracle software directory

    If I try to boot with sqlplus to: start-> run-> sqlplusw get Oracle 9i version with the error:
    ORA-12541: TNS no listener

    Variables environment variables in the path are:
    C:\oraclient9\bin; C:\Program Files\Oracle\jre\1.3.1\bin; C:\Program Files\Oracle\jre\1.1.8\bin; C:\app\a.l\product\11.2.0\dbhome_1\BIN; C:\app\a.l\product\11.2.0\dbhome_1\bin;%SystemRoot%\System32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\system32\WindowsPowerShell\v1.0\; C:\Program Files\Sybase\SQL Anywhere 9\win32. C:\Program Files\Sybase\Shared\win32; C:\Program Files\Sybase\SQL Anywhere 9\drivers; C:\Program Files\Sybase\Shared\Sybase 4.2 Central; c:\Program Files\Microsoft SQL Server\90\Tools\binn\; C:\Progra~1\XRay



    tnsnames 11g:
    # tnsnames.ora Network Configuration File: C:\app\a.l\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    
    LISTENER_ORCL =
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    
    
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
        )
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
        )
      )
    
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl.domopenplan.local)
        )
      )
    tnsnames 9i:
    # TNSNAMES.ORA Network Configuration File: C:\oraclient9\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    
    ORCL.DOMOPENPLAN.LOCAL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        )
        (CONNECT_DATA =
          (SERVICE_NAME = orcl.domopenplan.local)
        )
      )
    11g listener.ora:
    # listener.ora Network Configuration File: C:\app\a.l\product\11.2.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = C:\app\a.l\product\11.2.0\dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:C:\app\a.l\product\11.2.0\dbhome_1\bin\oraclr11.dll")
        )
        (SID_DESC =
          (GLOBAL_DBNAME = orcl.domopenplan.local)
          (SID_NAME = orcl.domopenplan.local)
          (ORACLE_HOME = C:\app\a.l\product\11.2.0\dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:C:\app\a.l\product\11.2.0\dbhome_1\bin\oraclr11.dll")
        )
      )
    
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.103)(PORT = 1521))
        )
      )
    
    ADR_BASE_LISTENER = C:\app\a.l
    Do you have any idea how I can create a new ODBC to connect to Oracle 11g?

    Thanks in advance!

    opening for the system control window Server DB & question OS command sequence

    lsnrctl status
    set
    lsnrctl service

    COPY orders & results then PASTE all come back here

  • ORA-12505 error after installation listener properly and tnsnames.

    Hello.

    I have a very common problem. I can't connect using the tnsnames on Windows 2003 server.
    Facts.

    1 Tnsnames.ora file is set correctly.
    2 Listener.ora file is set correctly.
    3 - tnsping works without any problem.
    4 - Windows service is running.

    However, I get this error.

    C:\Documents and Settings\sabreadm > sqlplus lps/first1@lm3dprd1

    SQL * more: Release 10.2.0.1.0 - Production on Wednesday 24 June at 12:32:26 2009

    Copyright (c) 1982, 2005, Oracle. All rights reserved.

    ERROR:
    ORA-12505: TNS:listener is not currently of SID given in connect
    descriptor of

    Enter the user name:
    ERROR:
    ORA-01017: name of user and password invalid. connection refused

    content of the Listener.ora file
    -------------------------------

    listener.ora # Network Configuration file: D:\Apps\oracle\network\admin\listener.ora
    # Generated by Oracle configuration tools.

    TRACE_LEVEL_LISTENER = USER
    TRACE_DIRECTORY_LISTENER = D:\Apps\oracle\NETWORK\ADMIN
    LOG_FILE_LISTENER = listener.log
    LOG_DIRECTORY_LISTENER = D:\Apps\oracle\NETWORK\ADMIN
    TRACE_FILE_LISTENER = listener.trc
    MAX_REG_CONNECTIONS_LISTENER = 3000
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.58.44)(PORT = 1521))
    )
    )
    )
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = lm3dtst1)
    (ORACLE_HOME = D:\Apps\oracle)
    )
    (SID_DESC =
    (SID_NAME = lm3dprd1)
    (ORACLE_HOME = D:\Apps\oracle)
    )
    )

    content of the tnsnames.ora file.
    -----------------------------------

    tnsnames.ora # Network Configuration file: D:\Apps\oracle\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.

    lm3dtst1 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = TCP)
    (Host = 192.168.58.44)
    (Port = 1521)
    )
    )
    (CONNECT_DATA =
    (SID = lm3dtst1
    (GLOBAL_NAME = lm3dtst1)
    )
    )
    lm3dprd1 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = TCP)
    (Host = 192.168.58.44)
    (Port = 1521)
    )
    )
    (CONNECT_DATA =
    (SID = lm3dprd1
    (GLOBAL_NAME = lm3dprd1)
    )
    )

    Any advice will be highly appreciated.
    Thank you.
    Alex.

    Alex,

    Next time when you post code or output or no matter what configuration, place them between.

     tags to preserve formatting
    
    \
    
       Your code or output 
    

    \

    h4.  Anyway, modify your tnsnames.ora file on your client machine and add this 
    

    lm3dprd1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.58.44)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = dedicated)
    (SERVICE_NAME = lm3dprd1)
    (INSTANCE_NAME = lm3dprd1)
    )
    )

    Regards
    OrionNet                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
    
  • With the help of Yosemite, I like Photos app in general; have big Aperture library, although I use rarely opening Tools. Advantages, disadvantages and pitfalls related to the migration of Photos?

    With the help of Yosemite, I like Photos app in general; have big Aperture library, although I use rarely opening Tools. Advantages, disadvantages and pitfalls related to the migration of Photos?

    Opening was a pro the Pro amateur-oriented or serious app, usually shooting Raw, probably on a digital SLR.

    If that's you then pictures will miss a lot for you.

    If this isn't the case, then opening was probably overkill for your needs.

    If you like the pictures then this is the way to go.

  • Database objects can be replicated using Oracle Streams and which object cannot be replicated?

    Hi Experts,

    I need clarification on the sub questions,.


    Database objects can be replicated using Oracle Streams and which object cannot be replicated?

    How can we check that what schema and objects are used streams replication and which schema and objects is not used in the replication stream?

    Thanks in advance.

    Select *.
    of dba_streams_unsupported
    where owner | '.' || table_name (...)

    order by 1, 2, 3;

Maybe you are looking for

  • iPhone sync issue

    My mother has finally updated its phone from an iPhone to an iPhone 4 SE. We had a question about the synchronization. The mother initially used for synchronization and backup computer its former phone is no longer in his possession, so I wonder exac

  • How do I downgrade to the previous version? This version (29.0.1) is terrible!

    I would go back to the previous version that was simpler and more intuitive.The system of bookmarks is terrible (like the expansion of programs in Windows 95 menu when you press the Start button) it is possible to pin the window in the sidebar, but w

  • How to bookmark all tabs?

    I am currently using Firefox 5.0. Previous versions have an option to bookmark all tabs open as a group, rather than having to bookmark separately each tab. How can I do this in 5.0? Thank youDon Culp

  • I do not have a browser window

    The window of my browser is missing and my favorites and the "back" button This has happened Don't know how many times is today

  • Motorola Defy more and MicroSDHC class 10?

    Hello! The Motorola Defy is compatible microSD, it is said in the statement. It is also compatible with the microSDHC class 10, or is it just a waste of performance/no compatible? In the case of "not compatible" what memory is best for this unit? Tha