Where the init.ora ,   tnsnames.ora,   listener.ora,    sqlnet.ora

If client-side and server-side software are located in different machines, basically, init.ora and listener.ora are located in the server-side, and tnsnames.ora and sqlnet.ora are located in the client-side, am I right?

The confusion comes because, as stated earlier by Sanjay, a server could also be a client...
Here a very simple example on one and only one Windows machine with the same user :
---here it is a connection as from client
E:\apps\oracle\ora1110PE\NETWORK\ADMIN>tnsping demo111p
TNS Ping Utility for 32-bit Windows: Version 11.1.0.7.0 - Production on 21-JUN-2009 09:36:38
Copyright (c) 1997, 2008, Oracle.  All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = phoenix)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DEMO111P)))
OK (10 msec)
E:\apps\oracle\ora1110PE\NETWORK\ADMIN>sqlplus scott/demo111@demo111p
SQL*Plus: Release 11.1.0.7.0 - Production on Sun Jun 21 09:27:02 2009
Copyright (c) 1982, 2008, Oracle.  All rights reserved.
Connected to:
Personal Oracle Database 11g Release 11.1.0.7.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> quit
Disconnected from Personal Oracle Database 11g Release 11.1.0.7.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
--- we remove the sqlnet.ora
E:\apps\oracle\ora1110PE\NETWORK\ADMIN>rename sqlnet.ora _sqlnet.ora
---here it is a connection as from client
E:\apps\oracle\ora1110PE\NETWORK\ADMIN>tnsping demo111p
TNS Ping Utility for 32-bit Windows: Version 11.1.0.7.0 - Production on 21-JUN-2009 09:37:30
Copyright (c) 1997, 2008, Oracle.  All rights reserved.
Used parameter files:
TNS-03505: Failed to resolve name
E:\apps\oracle\ora1110PE\NETWORK\ADMIN>sqlplus scott/demo111@demo111p
SQL*Plus: Release 11.1.0.7.0 - Production on Sun Jun 21 09:27:11 2009
Copyright (c) 1982, 2008, Oracle.  All rights reserved.
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
Enter user-name:
---here it is a connection as from server, still working, in that case it does not use tnsnames/sqlnet
E:\apps\oracle\ora1110PE\NETWORK\ADMIN>set ORACLE_SID=demo111p
E:\apps\oracle\ora1110PE\NETWORK\ADMIN>sqlplus scott/demo111
SQL*Plus: Release 11.1.0.7.0 - Production on Sun Jun 21 09:27:37 2009
Copyright (c) 1982, 2008, Oracle.  All rights reserved.
Connected to:
Personal Oracle Database 11g Release 11.1.0.7.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>So, we are on server, the behaviour change depending what we are connecting with (client or server method).
Nicolas.

Similar Messages

  • Tracing disconnect in listener or sqlnet.ora

    Hi,
    Is there have any way to trace disconnected session in our listener or sqlnet.ora?
    Currently we only able to view successful connection but we want to check when the session disconnected.

    There is no such option since the sessions do not disconnect via listener. Listeners job is to only establish the connection and report failures while establishing connections, if any.
    You would need to add your own tracing with LOGON/LOGOFF triggers.

  • I am getting the following error using SQL Plus on Windows "ORA-28865: SSL connection closed"

    I have set up my certificates on client and server and have tested the port using TCP and works fine.  TCPS fails with ORA-28865.  I have attached my trace file which was using level 10
    Please any assistance is appreciated
    (5888) [11-APR-2015 09:36:28:365] nsnainit: NS Connection version: 315
    (5888) [11-APR-2015 09:36:28:365] nsnainit: inf->nsinfflg[0]: 0x41 inf->nsinfflg[1]: 0x41
    (5888) [11-APR-2015 09:36:28:365] nsnainit: "or" info flags: 0x41 Translations follow:
      native service(s) is (are) wanted
    (5888) [11-APR-2015 09:36:28:365] nsnainit: "or" info flags: 0x41 Translations follow:
      native service(s) is (are) wanted
    "and" info flags: 0x41 Translations follow:
      native service(s) is (are) wanted
    (5888) [11-APR-2015 09:36:28:365] snsbitts_ts: acquired the bit
    (5888) [11-APR-2015 09:36:28:365] nsopen: global context check-in (to slot 0) complete
    (5888) [11-APR-2015 09:36:28:365] nsopen: lcl[0]=0xf4ffefff, lcl[1]=0x102000, gbl[0]=0xfabf, gbl[1]=0x1, tdu=2097152, sdu=8192
    (5888) [11-APR-2015 09:36:28:365] nsfull_opn: cid=0, opcode=65, *bl=0, *what=0, uflgs=0x0, cflgs=0x0
    (5888) [11-APR-2015 09:36:28:365] nsfull_opn: nsctx: state=7, flg=0x4001, mvd=0
    (5888) [11-APR-2015 09:36:28:365] nsmal: 168 bytes at 0x214d1a0
    (5888) [11-APR-2015 09:36:28:365] nsmal: 168 bytes at 0x214dbf0
    (5888) [11-APR-2015 09:36:28:365] nsmfr: 239 bytes at 0x20e53a0
    (5888) [11-APR-2015 09:36:28:365] nsdo: cid=0, opcode=67, *bl=238, *what=8, uflgs=0x0, cflgs=0x3
    (5888) [11-APR-2015 09:36:28:365] snsbitts_ts: acquired the bit
    (5888) [11-APR-2015 09:36:28:365] nsdo: rank=64, nsctxrnk=0
    (5888) [11-APR-2015 09:36:28:365] nsdo: nsctx: state=14, flg=0x4005, mvd=0
    (5888) [11-APR-2015 09:36:28:365] nsdo: gtn=10, gtc=10, ptn=10, ptc=8111
    (5888) [11-APR-2015 09:36:28:365] nscon: doing connect handshake...
    (5888) [11-APR-2015 09:36:28:365] nscon: sending NSPTCN packet
    (5888) [11-APR-2015 09:36:28:365] nspsend: plen=70, type=1
    (5888) [11-APR-2015 09:36:28:365] ntzwrite: entry
    (5888) [11-APR-2015 09:36:28:365] nzos_Write: entry
    (5888) [11-APR-2015 09:36:28:365] nttwr: entry
    (5888) [11-APR-2015 09:36:28:365] nttwr: socket 560 had bytes written=99
    (5888) [11-APR-2015 09:36:28:365] nttwr: exit
    (5888) [11-APR-2015 09:36:28:365] nzos_Write: exit
    (5888) [11-APR-2015 09:36:28:365] ntzwrite: exit
    (5888) [11-APR-2015 09:36:28:365] nspsend: 70 bytes to transport
    (5888) [11-APR-2015 09:36:28:365] nscon: sending 238 bytes connect data
    (5888) [11-APR-2015 09:36:28:365] nsdo: cid=0, opcode=67, *bl=238, *what=1, uflgs=0x4002, cflgs=0x0
    (5888) [11-APR-2015 09:36:28:365] nsdo: nsctx: state=2, flg=0x4005, mvd=0
    (5888) [11-APR-2015 09:36:28:365] nsdo: gtn=10, gtc=10, ptn=10, ptc=431
    (5888) [11-APR-2015 09:36:28:365] nsdo: 238 bytes to NS buffer
    (5888) [11-APR-2015 09:36:28:365] nsdofls: DATA flags: 0x0
    (5888) [11-APR-2015 09:36:28:365] nsdofls: sending NSPTDA packet
    (5888) [11-APR-2015 09:36:28:365] nspsend: plen=248, type=6
    (5888) [11-APR-2015 09:36:28:365] ntzwrite: entry
    (5888) [11-APR-2015 09:36:28:365] nzos_Write: entry
    (5888) [11-APR-2015 09:36:28:365] nttwr: entry
    (5888) [11-APR-2015 09:36:28:365] nttwr: socket 560 had bytes written=277
    (5888) [11-APR-2015 09:36:28:365] nttwr: exit
    (5888) [11-APR-2015 09:36:28:365] nzos_Write: exit
    (5888) [11-APR-2015 09:36:28:365] ntzwrite: exit
    (5888) [11-APR-2015 09:36:28:365] nspsend: 248 bytes to transport
    (5888) [11-APR-2015 09:36:28:365] nsdoacts: flushing transport
    (5888) [11-APR-2015 09:36:28:365] ntzcontrol: entry
    (5888) [11-APR-2015 09:36:28:365] ntzcontrol: Command = 4
    (5888) [11-APR-2015 09:36:28:365] ntzcontrol: unknown command 4 - calling underlying protocol adapter
    (5888) [11-APR-2015 09:36:28:365] nttctl: entry
    (5888) [11-APR-2015 09:36:28:365] ntzcontrol: operation is unsupported
    (5888) [11-APR-2015 09:36:28:365] ntzcontrol: exit
    (5888) [11-APR-2015 09:36:28:365] snsbitts_ts: acquired the bit
    (5888) [11-APR-2015 09:36:28:365] nsdo: nsctxrnk=0
    (5888) [11-APR-2015 09:36:28:365] nsdo: cid=0, opcode=68, *bl=2048, *what=9, uflgs=0x0, cflgs=0x3
    (5888) [11-APR-2015 09:36:28:365] snsbitts_ts: acquired the bit
    (5888) [11-APR-2015 09:36:28:365] nsdo: rank=64, nsctxrnk=0
    (5888) [11-APR-2015 09:36:28:365] nsdo: nsctx: state=2, flg=0x4005, mvd=0
    (5888) [11-APR-2015 09:36:28:365] nsdo: gtn=10, gtc=10, ptn=10, ptc=8111
    (5888) [11-APR-2015 09:36:28:380] nscon: recving a packet
    (5888) [11-APR-2015 09:36:28:380] nsprecv: reading from transport...
    (5888) [11-APR-2015 09:36:28:380] ntzread: entry
    (5888) [11-APR-2015 09:36:28:380] ntznzosread: entry
    (5888) [11-APR-2015 09:36:28:380] nzos_Read: entry
    (5888) [11-APR-2015 09:36:28:380] nttrd: entry
    (5888) [11-APR-2015 09:36:28:380] ntt2err: entry
    (5888) [11-APR-2015 09:36:28:380] ntt2err: exit
    (5888) [11-APR-2015 09:36:28:380] nttrd: socket 560 had bytes read=0
    (5888) [11-APR-2015 09:36:28:380] nttrd: exit
    (5888) [11-APR-2015 09:36:28:380] nzos_Read: exit
    (5888) [11-APR-2015 09:36:28:380] ntznzosread: encountered "wouldblock" error
    (5888) [11-APR-2015 09:36:28:380] ntctst: size of NTTEST list is 1 - not calling poll
    (5888) [11-APR-2015 09:36:28:396] nzos_Read: entry
    (5888) [11-APR-2015 09:36:28:396] nttrd: entry
    (5888) [11-APR-2015 09:36:28:396] nttrd: exit
    (5888) [11-APR-2015 09:36:28:396] ntt2err: entry
    (5888) [11-APR-2015 09:36:28:396] ntt2err: Read unexpected EOF ERROR on 560
    (5888) [11-APR-2015 09:36:28:396] ntt2err: exit
    (5888) [11-APR-2015 09:36:28:396] nzos_Read: exit
    (5888) [11-APR-2015 09:36:28:396] ntznzosread: SSL connection closed gracefully.
    (5888) [11-APR-2015 09:36:28:396] ntznzosread: SSL connection terminated normally.
    (5888) [11-APR-2015 09:36:28:396] ntznzosread: returning NZ error 28865 in result structure
    (5888) [11-APR-2015 09:36:28:396] ntznzosread: exit
    (5888) [11-APR-2015 09:36:28:396] nserror: nsres: id=0, op=68, ns=12537, ns2=12560; nt[0]=507, nt[1]=0, nt[2]=0; ora[0]=28865, ora[1]=0, ora[2]=0
    (5888) [11-APR-2015 09:36:28:396] snsbitts_ts: acquired the bit
    (5888) [11-APR-2015 09:36:28:396] nsdo: nsctxrnk=0
    (5888) [11-APR-2015 09:36:28:396] nscall: unexpected response
    (5888) [11-APR-2015 09:36:28:396] nsvntx_dei: entry
    (5888) [11-APR-2015 09:36:28:396] nsvntx_dei: exit
    (5888) [11-APR-2015 09:36:28:396] nstimarmed: no timer allocated
    (5888) [11-APR-2015 09:36:28:396] ntzcontrol: entry
    (5888) [11-APR-2015 09:36:28:396] ntzcontrol: Command = 14
    (5888) [11-APR-2015 09:36:28:396] ntzcontrol: exit
    (5888) [11-APR-2015 09:36:28:396] ntzcontrol: entry
    (5888) [11-APR-2015 09:36:28:396] ntzcontrol: Command = 15
    (5888) [11-APR-2015 09:36:28:396] ntzcontrol: exit
    (5888) [11-APR-2015 09:36:28:396] snsbitts_ts: acquired the bit
    (5888) [11-APR-2015 09:36:28:396] nsfull_cls: cid=0, opcode=65, *bl=0, *what=0, uflgs=0x0, cflgs=0x440
    (5888) [11-APR-2015 09:36:28:396] nsfull_cls: nsctx: state=1, flg=0x4001, mvd=0
    (5888) [11-APR-2015 09:36:28:396] nsclose: closing transport
    (5888) [11-APR-2015 09:36:28:396] ntzdisconnect: entry
    (5888) [11-APR-2015 09:36:28:396] ntzFreeNTZData: entry
    (5888) [11-APR-2015 09:36:28:396] nzos_DestroyCtx: entry
    (5888) [11-APR-2015 09:36:28:396] nzos_DestroyCtx: exit
    (5888) [11-APR-2015 09:36:28:396] ntzFreeNTZData: exit
    (5888) [11-APR-2015 09:36:28:396] nttdisc: entry
    (5888) [11-APR-2015 09:36:28:396] nttdisc: Closed socket 560
    (5888) [11-APR-2015 09:36:28:396] nttdisc: exit
    (5888) [11-APR-2015 09:36:28:396] ntzdisconnect: exit
    (5888) [11-APR-2015 09:36:28:396] snsbitts_ts: acquired the bit
    (5888) [11-APR-2015 09:36:28:396] nsclose: global context check-out (from slot 0) complete
    (5888) [11-APR-2015 09:36:28:396] nadisc: entry
    (5888) [11-APR-2015 09:36:28:396] nacomtm: entry
    (5888) [11-APR-2015 09:36:28:396] nacompd: entry
    (5888) [11-APR-2015 09:36:28:396] nacompd: exit
    (5888) [11-APR-2015 09:36:28:396] nacompd: entry
    (5888) [11-APR-2015 09:36:28:396] nacompd: exit
    (5888) [11-APR-2015 09:36:28:396] nacomtm: exit
    (5888) [11-APR-2015 09:36:28:396] nas_dis: entry
    (5888) [11-APR-2015 09:36:28:396] nas_dis: exit
    (5888) [11-APR-2015 09:36:28:396] nau_dis: entry
    (5888) [11-APR-2015 09:36:28:396] nau_dis: exit
    (5888) [11-APR-2015 09:36:28:396] naeetrm: entry
    (5888) [11-APR-2015 09:36:28:396] naeetrm: exit
    (5888) [11-APR-2015 09:36:28:396] naectrm: entry
    (5888) [11-APR-2015 09:36:28:396] naectrm: exit
    (5888) [11-APR-2015 09:36:28:396] nagbltrm: entry
    (5888) [11-APR-2015 09:36:28:396] nau_gtm: entry
    (5888) [11-APR-2015 09:36:28:396] nau_gtm: exit
    (5888) [11-APR-2015 09:36:28:396] nagbltrm: exit
    (5888) [11-APR-2015 09:36:28:396] nadisc: exit
    (5888) [11-APR-2015 09:36:28:396] snsbitts_ts: acquired the bit
    (5888) [11-APR-2015 09:36:28:396] nsvntx_dei: entry
    (5888) [11-APR-2015 09:36:28:396] nsvntx_dei: exit
    (5888) [11-APR-2015 09:36:28:396] snsbitts_ts: acquired the bit
    (5888) [11-APR-2015 09:36:28:396] nsmfr: 2944 bytes at 0x2152400
    (5888) [11-APR-2015 09:36:28:396] nsmfr: 1880 bytes at 0x2151ca0
    (5888) [11-APR-2015 09:36:28:396] nscall: connecting...
    (5888) [11-APR-2015 09:36:28:396] nladget: entry
    (5888) [11-APR-2015 09:36:28:396] nladget: exit
    (5888) [11-APR-2015 09:36:28:396] nsmfr: 238 bytes at 0x221def0
    (5888) [11-APR-2015 09:36:28:412] nsmfr: 304 bytes at 0x20d8200
    (5888) [11-APR-2015 09:36:28:412] nladtrm: entry
    (5888) [11-APR-2015 09:36:28:412] nladtrm: exit
    (5888) [11-APR-2015 09:36:28:412] nioqper:  error from nscall
    (5888) [11-APR-2015 09:36:28:412] nioqper:    ns main err code: 12537
    (5888) [11-APR-2015 09:36:28:412] nioqper:    ns (2)  err code: 12560
    (5888) [11-APR-2015 09:36:28:412] nioqper:    nt main err code: 507
    (5888) [11-APR-2015 09:36:28:412] nioqper:    nt (2)  err code: 0
    (5888) [11-APR-2015 09:36:28:412] nioqper:    nt OS   err code: 0
    (5888) [11-APR-2015 09:36:28:412] niomapnserror: entry
    (5888) [11-APR-2015 09:36:28:412] niqme: entry
    (5888) [11-APR-2015 09:36:28:412] niqme: reporting ORA-28865 error
    (5888) [11-APR-2015 09:36:28:412] niqme: exit
    (5888) [11-APR-2015 09:36:28:412] niomapnserror: exit
    (5888) [11-APR-2015 09:36:28:412] niotns: Couldn't connect, returning 28865
    (5888) [11-APR-2015 09:36:28:412] niotns: exit
    (5888) [11-APR-2015 09:36:28:412] nsbrfr: nsbfs at 0x214d1a0, data at 0x2225ca0.
    (5888) [11-APR-2015 09:36:28:412] nsbrfr: nsbfs at 0x214dbf0, data at 0x2227d90.
    (5888) [11-APR-2015 09:36:28:412] nsbrfr: nsbfs at 0x214d9e0, data at 0x21531c0.
    (5888) [11-APR-2015 09:36:28:412] nigtrm: Count in the NI global area is now 1
    (5888) [11-APR-2015 09:36:28:412] nigtrm: Count in the NL global area is now 1

    CLIENT SQLNET.ORA
    TRACE_LEVEL_CLIENT = 10
    TRACE_UNIQUE_CLIENT = ON
    TRACE_DIRECTORY_CLIENT = C:\Oracle\app\client\product\12.1.0\client_1\network\trace
    TRACE_FILE_CLIENT = sqlnet_client.trc
    LOG_FILE_CLIENT = sqlnet_client.log
    LOG_DIRECTORY_CLIENT = C:\Oracle\app\client\product\12.1.0\client_1\network\log
    DIAG_ADR_ENABLED = OFF
    TRACE_TIMESTAMP_CLIENT = ON
    SQLNET.AUTHENTICATION_SERVICES = (ALL)
    SQLNET.AUTHENTICATION_REQUIRED = FALSE
    SSL_CLIENT_AUTHENTICATION = FALSE
    WALLET_LOCATION =
      (SOURCE =
        (METHOD = FILE)
        (METHOD_DATA =
          (DIRECTORY = C:\Oracle\app\client\product\12.1.0\client_1\network\wallets)
    ADR_BASE = C:\Oracle\app\client\product\12.1.0\client_1\log
    SERVER SQLNET.ORA
    SQLNET.AUTHENTICATION_SERVICES= (ALL)
    SSL_VERSION = 0
    SSL_CLIENT_AUTHENTICATION = FALSE
    TRACE_UNIQUE_SERVER = ON
    TRACE_DIRECTORY_SERVER = /u01/app/grid/product/12.1.0/12.1.0.2/network/trace
    TRACE_FILE_SERVER = sqlnet_server.trc
    LOG_FILE_SERVER = sqlnet_server.log
    WALLET_LOCATION =
      (SOURCE =
        (METHOD = FILE)
        (METHOD_DATA =
          (DIRECTORY = /u01/app/grid/product/12.1.0/12.1.0.2/owm/wallets/grid)
    LOG_DIRECTORY_SERVER = /u01/app/grid/product/12.1.0/12.1.0.2/network/log
    SQLNET.AUTHENTICATION_REQUIRED = FALSE
    DIAG_ADR_ENABLED = OFF
    TRACE_TIMESTAMP_SERVER = ON

  • Pre-install on hp-ux/sqlnet.ora config problems.

    I have come across a small issue when I am going through the oracle pre-install manual for 1.0.2.1.0
    It says modify the sqlnet.ora file with the domain name in NAMES.DEFAULT.DOMAIN. My sqlnet.ora file is as follows:
    # SQLNET.ORA Network Configuration File: /u00/app/oracle/product/8.1.7/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    # Last update: May 3rd 2001
    NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
    NAMES.DEFAULT_DOMAIN = (intranet.condenast.co.uk)
    # REM'd byNCW, Bond, as it was interfering with CNAPS database backups
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    The NAMES.DEFAULT_DOMAIN is causing an issue with the backups. Has anyone else seen this problem as it is delaying my portal install. Any help would be very appreciated.
    Thanks,
    Bruce
    null

    I have come across a small issue when I am going through the oracle pre-install manual for 1.0.2.1.0
    It says modify the sqlnet.ora file with the domain name in NAMES.DEFAULT.DOMAIN. My sqlnet.ora file is as follows:
    # SQLNET.ORA Network Configuration File: /u00/app/oracle/product/8.1.7/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    # Last update: May 3rd 2001
    NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
    NAMES.DEFAULT_DOMAIN = (intranet.condenast.co.uk)
    # REM'd byNCW, Bond, as it was interfering with CNAPS database backups
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    The NAMES.DEFAULT_DOMAIN is causing an issue with the backups. Has anyone else seen this problem as it is delaying my portal install. Any help would be very appreciated.
    Thanks,
    Bruce
    null

  • Oracle 10g I don't have the files listener.ora, tnsnames.ora and sql.ora

    Hi folks,
    I uninstalled my Oracle 10g and when I re installed I got success, but when I went to the folder \network\admin didn't have the files listener.ora, tnsnames.ora and sql.ora. I have been trying during more than one month start my listener only because I need access the Oracle database from my Java application and I got the message:
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    As additional information, I got no problem to access the SQL*Plus.
    =======================
    C:\>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 18-APR-2006 10:53
    :58
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(PORT=1521))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    32-bit Windows Error: 61: Unknown error
    ====================
    C:\>ipconfig
    Windows IP Configuration
    Ethernet adapter Local Area Connection:
    Media State . . . . . . . . . . . : Media disconnected
    Ethernet adapter Wireless Network Connection 2:
    Connection-specific DNS Suffix . : myhome.westell.com
    IP Address. . . . . . . . . . . . : 192.168.0.2
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . : 192.168.0.1
    Thanks in advance.

    Thanks ALL, I GOT IT, but I used other solution.
    Since I installed and uninstalled the Oracle several times, it keeps also many different Services for the listener. I don't know why, it didn't create a Service for my actual instalation with its path. In other words, all the services remained in the services.msc panel, had the path that was already removed from the Windows folder.
    Then what I did, was that I picked one service, took its name (OracleOraDb10g_home1TNSListener), went to regedit to [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\OracleOraDb10g_home1TNSListener] and simply changed the image path that was setted for the one that was removed (C:\oracle\product\10.1.0\Db_2\BIN\TNSLSNR ) for mine that is installed right now
    (C:\oracle\product\10.1.0\Db_1\BIN\TNSLSNR). Nothing more and finally works.
    I have tried something in the services.msc panel before, as you can see in this forum at the thread "I can't start listener in the Control Painel/Admin Tools/ Services", but I never got
    success.
    Appreciate your time!!

  • How to set UTL_FILE parameter in the INIT.ORA file

    Dear all,
    How can i set UTL_FILE parameter in the INIT.ORA file.
    Also let me know how to create a directory over there.I am new to this area.
    Where exactly i can locate these details and create directory.
    Regards,
    Bala.

    post this in database forum

  • ORA-12504 tns listener was not given the SERVICE_NAME in CONNECT-DATA

    Hi
    i installed a fresh oracle linux and installes 11.2.0 database server. the server works fine but i have a proplem to connect to the database from a windows 2008 r2
    client. For the client connection i installed the oracle instantclient on the windows system. Now i want to configure the system dsn to connect to the oracle
    server like this
    data source description: vSphere 64
    description: ----
    TNS Service Name: VCDB
    user id: system
    then i go to TEST connection
    Service Name: VCDB
    user name: system
    Password: mypassword
    so i copied the tnsnames.ora from the server to the client
    then i get
    ora-12504 tns listener was not given the SERVICE_NAME in CONNECT-DATA
    here´s my tnsnames.ora from the client
    VCDB =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.31.98.173)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = vcdb.vmware)
    i tested serveral config´s but nothing works. I can ping the server and also i cn telnet the server on port 1521. The listener on the server works fine
    lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 20-SEP-2010 20:48:52
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=vc-db1.mydomain)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 20-SEP-2010 20:47:45
    Uptime 0 days 0 hr. 1 min. 7 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/diag/tnslsnr/vc-db1/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=vc-db1mydomain)(PORT=1521)))
    Services Summary...
    Service "vcdb.vmware" has 1 instance(s).
    Instance "vcdb", status READY, has 1 handler(s) for this service...
    Service "vcdbXDB.vmware" has 1 instance(s).
    Instance "vcdb", status READY, has 1 handler(s) for this service...
    The command completed successfully
    but it´s not possible to create a connection to the server. My enviroment variables are this
    ORACLE_BASE=/u01/app/oracle
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
    ORACLE_HOSTNAME=vc-db1.mydomain
    ORACLE_SID=vcdb
    ORACLE_TERM=xterm
    so i think on the server site everything is correct. How could i establish a connection from the windows client
    to the linux database server. Or is ODBC the wrong method for this?
    Kind regards
    ACID25

    Hi,
    Check the listener log and see if the connection information is logged (in this case with error)
    If logged, then we are reaching the correct listener.
    Then check tnsping VCDB works fine along with sqlplus connection through listener using VCDB as connect string.
    If above both works, then issue can be isolated to ODBC configuration or setup issue.
    In case even if the tnsping / sqlplus is failing to connect with VCDB, then worth taking a client sqlent trace at level 16 and listener trace at level 16 to analyse the issue further.
    Thanks,
    Sathya

  • Java.sql.SQLException: Listener refused the connection with the following error: ORA-12514, TNS:listener does not currently know of service requested in connect descriptor

    Good Day,
    I'm encountering this problem
         java.sql.SQLException: Listener refused the connection with the following error:
         ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
    here's the java code
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    String url = "jdbc:oracle:thin:@//10.143.85.21/UCSL";
    String userName = "mssoriano";
    String passWord = "mssoriano_4319";
    conn = DriverManager.getConnection(url, userName, passWord);
    and here's my tnsnames.ora
    UCSL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 10.143.85.21)(PORT = 1521))
        (CONNECT_DATA =
          (SID = psusldb11)
    Please do let me know if what may the cause of the problem and how to solve this. Thank you and God bless.

    Hi,
    see this example
    Connect to Oracle DB via JDBC driver
    Frank

  • Trying to find the init.ora parameter..

    Hi,
    I am trying to locate the init.ora parameter under the Oracle Database. I was under the impression, that it would be present in the same location as tnsnames.ora, but Ican see that it's not.
    Can someone please advise the right location to look for the init.ora parameter file?
    Thank You.

    It is a good practice to let us know the OS and DB version from the start of the thread, so a more accurate answer can be issued sooner.
    From the above post I can see you are on a 10g Windows platform. Since 9i inti.ora is not used as the first option, but the spfile. 10g is the same thing, it can work with a pfile, but must probably you have an spfile.
    Default location for a 10g spfile in a windows platform is here:
    %ORACLE_HOME%\database\spfile%ORACLE_SID%.ora
    In case you are working with a pfile, path is quite the same:
    %ORACLE_HOME%\database\init%ORACLE_SID%.ora
    You can find the path/name of your spfile from an instance parameter inside a SYSDBA session:
    SQL> show parameter spfile
    HR Madrid

  • Regarding UTL_FILE parameter in the INIT.ORA file

    Dear all,
    How can i set UTL_FILE parameter in the INIT.ORA file.
    Also let me know how to create a directory over there.I am new to this area.
    Where exactly i can locate these details and create directory.
    Regards,
    Bala.

    Dear all,
    How can i set UTL_FILE parameter in the INIT.ORA
    file.
    Also let me know how to create a directory over
    there.I am new to this area.
    Where exactly i can locate these details and create
    directory.
    Regards,
    Bala.Taken note of yingkuan's comments about directory objects - which don't need a utl_file_dir entry - if you really still need to know (on e-business suite or some other product that needs them) then UTL_FILE_DIR is an initialisation parameter which takes a comma separated list of directories on the database server and to which the oracle software owner (usually oracle on *nix systems and system on windows) has read/write access. To set it therefore you'll need to identify or create your directory and then either
    a) add the line UTL_FILE_DIR=/path/to/dir1, /path/to/dir2
    to your init.ora if you are using one or use
    b) ALTER SYSTEM SET UTL_FILE_DIR=/path/to/dir1, /path/to/dir2 SCOPE=SPFILE;
    if you are using a server parameter file.
    You should be able to find this and more information in the documentation for your version of Oracle.
    Niall Litchfield
    http://www.orawin.info/

  • Again: ORA-12504: TNS:listener was not given the SERVICE_NAME...

    Hi Guys,
    I got this already discussed error and I am sorry, to start a new topic, but I just have no idea what to do else.
    I have oracle11g - 32 bit running on my Windows 7 64 bit machine.
    The database-server is running fine according to the Database-Control Webinterface.
    Connecting with SQLPlus also works
    Now my application tries to connect to
    Server: localhost
    Database: orcl
    User: System
    PW: myPw
    I get: ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
    I was reading many threads here and so I tried to configure the standard-listener using the netmanager with an additional SID named "orcl" which results in this listener.ora:
    Line: -----
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = E:\app\Andinger\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:E:\app\Andinger\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    (SID_DESC =
    (GLOBAL_DBNAME = Oracle8)
    (SID_NAME = ORCL)
    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Andband)(PORT = 1521))
    ADR_BASE_LISTENER = E:\app\Andinger
    Line: -----
    This is my tnsnames.ora
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Andband)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    Line: -----
    What else could I check? What else could be the reason, that it doesn't work.
    I appreciate any help, suggestins, hints... :)
    Thanks
    Andy
    Edited by: 943829 on 01.07.2012 04:56
    Edited by: 943829 on 01.07.2012 04:57

    Thanks for your fast reply!
    Attached all the stuff you asked for:
    First the result of tnsping:
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 01-JUL-2
    012 19:19:33
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Parameterdateien benutzt:
    E:\app\Andinger\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Adapter EZCONNECT zur Aufl÷sung des Alias benutzt
    Verbindungsversuch mit (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROT
    OCOL=TCP)(HOST=fe80::341a:eb0:3f57:ff6d%13)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(H
    OST=192.168.0.146)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=2001:0:5ef5:79fb:341a
    :eb0:3f57:ff6d)(PORT=1521)))
    OK (20 ms)
    This is the content of sqlnet.ora
    # sqlnet.ora Network Configuration File: E:\app\Andinger\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # authentication, they will not be able to connect to the database on NT.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    The status of the Listener:
    C:\Users\Andinger>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 01-JUL-2012 19:23
    :25
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Anmeldung bei (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=Andband)(PORT=1521)))
    STATUS des LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
    ction
    Startdatum 01-JUL-2012 13:07:18
    Uptime 0 Tage 6 Std. 16 Min. 7 Sek.
    Trace-Ebene off
    Sicherheit ON: Local OS Authentication
    SNMP OFF
    Parameterdatei des Listener E:\app\Andinger\product\11.2.0\dbhome_1\network\admi
    n\listener.ora
    Log-Datei des Listener e:\app\andinger\diag\tnslsnr\Andband\listener\alert\lo
    g.xml
    Zusammenfassung Listening-Endpunkte...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Andband)(PORT=1521)))
    Services ▄bersicht...
    Dienst "CLRExtProc" hat 1 Instanzen.
    Instanz "CLRExtProc", Status UNKNOWN, hat 1 Handler f³r diesen Dienst...
    Dienst "Oracle8" hat 1 Instanzen.
    Instanz "ORCL", Status UNKNOWN, hat 1 Handler f³r diesen Dienst...
    Dienst "orcl" hat 1 Instanzen.
    Instanz "orcl", Status READY, hat 1 Handler f³r diesen Dienst...
    Dienst "orclXDB" hat 1 Instanzen.
    Instanz "orcl", Status READY, hat 1 Handler f³r diesen Dienst...
    Der Befehl wurde erfolgreich ausgef³hrt.
    And the Listener Service information:
    C:\Users\Andinger>lsnrctl service
    LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 01-JUL-2012 19:24
    :37
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Anmeldung bei (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=Andband)(PORT=1521)))
    Services ▄bersicht...
    Dienst "CLRExtProc" hat 1 Instanzen.
    Instanz "CLRExtProc", Status UNKNOWN, hat 1 Handler f³r diesen Dienst...
    Handler:
    "DEDICATED" eingerichtet:0 abgewiesen:0
    LOCAL SERVER
    Dienst "Oracle8" hat 1 Instanzen.
    Instanz "ORCL", Status UNKNOWN, hat 1 Handler f³r diesen Dienst...
    Handler:
    "DEDICATED" eingerichtet:12 abgewiesen:0
    LOCAL SERVER
    Dienst "orcl" hat 1 Instanzen.
    Instanz "orcl", Status READY, hat 1 Handler f³r diesen Dienst...
    Handler:
    "DEDICATED" festgelegt:371 abgelehnt:0 Status:ready
    LOCAL SERVER
    Dienst "orclXDB" hat 1 Instanzen.
    Instanz "orcl", Status READY, hat 1 Handler f³r diesen Dienst...
    Handler:
    "D000" eingerichtet:0 abgewiesen:0 aktuell:0 max:1022 Status:ready
    DISPATCHER <machine: ANDBAND, pid: 3980>
    (ADDRESS=(PROTOCOL=tcp)(HOST=Andband)(PORT=49189))
    Der Befehl wurde erfolgreich ausgef³hrt.
    I hope that you understand it. I installed a german version. If it is a problem, I can install the english version.

  • Tnsnames.ora, sqlnet.ora & listener.ora files are not exit

    DB version: 10.2
    Hello All,
    I just joined the project and notice tnsnames.ora, sqlnet.ora & listener.ora files are not exit under $ORACLE_HOME/network/admin.
    But still we can connect to the database,
    From command prompt or via enterprise manager studio from client site.
    Any idea?
    OR
    what is the best way to create above files in the existing database?
    DN

    tnsnames.ora and sqlnet.ora are client side files, listener.ora and sqlnet.ora are server side files.
    Listener.ora need not exist if using defaults and dynamic registration of services. It may be possible to cope without all those files, depending on the environment.
    Is the database on the local or remote computer and how are you connecting (from sqlplus)?
    Maybe you have a tnsnames.ora somwhere else? (Try using find command) Maybe TNS_ADMIN is set?

  • Listener.ora and tnsnames.ora and sqlnet.ora

    Hello newbie here, trying to look into simple RAC setup with 2 nodes (A.this.com, B.this.com), one service (PROD.this.com), one listener and one instance on each node (listener PRODlist1 using instance PRODinstance1 on node A, listener PRODlist2 using instance PRODinstance2 on node B), one database (ORCL).
    db global db name = orcl.this.com
    I would like loadbalancing=on, with TAF basic (no preconnect, retries 10, delay 5.)
    With dynamic service registration.
    What should the tnsnames.ora and listener.ora and sqlnet.ora look like?
    Have read all sorts of literature, getting confused...

    I post my sample configuration here:
    DBA1.WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (FAILOVER=ON)
    (LOAD_BALANCE=ON)
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.1)(PORT = 1521))
    (CONNECT_DATA =
    (BACKUP=DBA2)
    (SERVICE_NAME = DBA.WORLD)
    DBA2.WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (FAILOVER=ON)
    (LOAD_BALANCE=ON)
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.2)(PORT = 1521))
    (CONNECT_DATA =
    (BACKUP=DBA1)
    (SERVICE_NAME = DBA.WORLD)
    )

  • ORA-27054: NFS file system where the file is created or resides is not mounted with correct options

    Hi,
    i am getting following error, while taking RMAN backup.
    ORA-01580: error creating control backup file /backup/snapcf_TST.f
    ORA-27054: NFS file system where the file is created or resides is not mounted with correct options
    DB Version:10.2.0.4.0
    while taking datafiles i am not getting any errors , i am using same mount points for both (data&control files)

    [oracle@localhost dbs]$ oerr ora 27054
    27054, 00000, "NFS file system where the file is created or resides is not mounted with correct options"
    // *Cause:  The file was on an NFS partition and either reading the mount tab
    //          file failed or the partition wass not mounted with the correct
    //          mount option.
    // *Action: Make sure mount tab file has read access for Oracle user and
    //          the NFS partition where the file resides is mounted correctly.
    //          For the list of mount options to use refer to your platform
    //          specific documentation.

  • How to make changes in the init.ora stick through Autoconfig?

    I make a change to my init.ora file and then when I run Autoconfig it overwrites my change. How can I keep this from happening?

    Hi Hussein;
    I reviewed the note, thanks. I then made a change to my init.ora file in %ORACLE_HOME%\database (I am on windows) then I ran the "adautocfg.cmd" in my %ORACLE_HOME%\appsutil\scripts\[SID]_[server] directory and it replaced my init.ora file. It did not change it as the file date does not show today but the values I put in are gone.
    So then I made a change to the init.ora file in %ORACLE_HOME%\dbs and ran adautocfg.cmd again. What it does is replaces the init.ora file in %ORACLE_HOME%\database with the one from %ORACLE_HOME%\dbs.

Maybe you are looking for

  • Is there any need for an InDesign user to use InCopy as well?

    We are looking to do a software refresh from CS3 to CS5, and when auditing users we discoverd a handful of people that are using InDesign and InCopy.  My previous thoughts about InCopy, was that the program isn't needed if you have InDesign, but user

  • Photoshop Elements 6.0 Problem

    Thanks in advance for any help. I've been using Photoshop Elements to sync Collections to my iPods; I select only the collections I want to sync. Since updating PE to v. 6.0 (I converted my Catalog), I see the "Collections" I created with version 5,

  • Specific Image Hangs PhotoShop

    I have discovered an image that causes Photoshop to hang on "Save for Web and Devices".  I need to Forced Quit to continue.  A friend has tried it on CS2 (Powerbook G4) and I have CS3 (MacBook Pro 13in latest) with the same results.  I can modify the

  • My Font Book is missing some fonts??

    Hi, I've upgraded from Tiger to Leopard. Tiger is backed up on a portable drive that is currently plugged into a USB port on my Mac. The following has happened three. I just opened a website and a window opeds (on the Mac not the website) telling me

  • Get UID of Paragraph Style that is edited in Paragraph Style Options dialog

    Paragraph styles can be edited in the "Paragraph Style Options" selectable dialog. I am adding an addition style option panel to this dialog. How can I retrieve the UID of the paragraph style that is currently being displayed in this "Paragraph Style