リスナーを経由しないTNS系エラーメッセージについて
お世話になります。
ひとつのテーブルから数百万件を全件取得するために、
数万件単位で取得するSQLを繰り返し発行するWeb系アプリを作りました。
このアプリへのリクエスト自体はブラウザでタイムアウトされますが、
APサーバかDBサーバかネットワークか、原因を切り分けている最中です。
DBサーバでの現象について質問させていただきます。
alert.logに以下のとおりTNS系のエラーが出ていましたのですが、
listner.logに出ていません。
こんなことってあり得るのでしょうか?
どんな動作が想定されるのでしょうか?
Fatal NI connect error 12170.
VERSION INFORMATION:
TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for 64-bit Windows: Version 11.2.0.1.0 - Production
Windows NT TCP/IP NT Protocol Adapter for 64-bit Windows: Version 11.2.0.1.0 - Production
Time: 21-FEB-2013 09:20:53
Tracing not turned on.
Tns error struct:
ns main err code: 12535
TNS-12535: TNS:operation timed out
ns secondary err code: 12560
nt main err code: 505
TNS-00505: Operation timed out
nt secondary err code: 60
nt OS err code: 0
Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.11.72)(PORT=49565))
ご回答ありがとうございます。
エラーとしてはタイムアウトのようですので、ファイアウォールとかの設定を確認されてはと思います
アプリケーションサーバからデータベースにはどうやって接続されてますでしょうか?アプリケーションはPHPでできていて、
そこからociクライアントを経由し、
データベースサーバに接続します。
その他に、
アプリケーションサーバから、
リモートデスクトップ機能を使って、データベースサーバを管理しています。
ファイアウォールは置いていませんが、
同時期にリモートデスクトップが不安定だったこともあり、
原因はネットワーク周りだと考えられます。
知りたかったのは、リスナーが出す(と思っている)エラーが、
なぜ、リスナーで(listner.logに)出さなかったのか、という点です。
また、ここまで書いて気がついたのですが、
ociiクライアントにはタイムアウトが返ってきてません。
アプリケーションサーバのログでは何も異常が確認できないのですが、
サーバからクライアントに向けた通信でタイムアウトになっている、
だからリスナーを経由していない、ということでしょうか?
Similar Messages
-
TNS Listener error while opening a Form !
Hi all,
I have installed Form/Reports 11gr2 with Weblogic 10.3.6 64-bit & database 11gr2.
All installations and configures are successful.
But when I give URL address (servername:portno/forms/frmservlet?form=main) to open a form, it gives me following error;
ora-12514: TNS:listener does not currently know of service requested in connect descriptor.
I searched on google, but didn't clear my error. I also checked Oracle services, all are started.
So please guide me !
Thanks/Regards.
DassI never changed settings in tnsnames.ora, it is always as per default settings. If required now then let me know.
Please note that when I connect my form builder with databases, it is connected. But when I run my form it again show same error and open a dialog box for
username,password & databases connection string.
I copied this file into "E:\Oracle\Middleware\asinst_1\config" of form.
Below is my tnsnames.ora file;
# tnsnames.ora Network Configuration File: E:\app\admin\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
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)
Thanks. -
Hi
I am working on IBM AIX, Oracle 10.2.0.4 version.
Here I got the TNS-12535 error while running a report at particular time. (i.e 8:30 PM to 10:00 PM PST). But aftter this particular time it runs good.
There is no errors found in alert log file. The below is the error found in the sqlnet.log file.
Please help me to resolve this...
Time: 18-FEB-2011 17:05:53
Tracing not turned on.
Tns error struct:
ns main err code: 12535
TNS-12535: TNS:operation timed out
ns secondary err code: 12560
nt main err code: 505
TNS-00505: Operation timed out
nt secondary err code: 78
nt OS err code: 0
Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=host_name)(PORT=1521))
nt OS err code: 0
ThanksHi,
Nothing to investigate at the application side, there is everything to investigate at the network side.
Check the below points.
- is there any firewall in play
- is there any Network Address Translation into play
- have the correct ports been opened in the firewall
- is Oracle using random return ports (by default Oracle always uses 2 tcp/ip ports, the first one fixed, and configured in tnsnames.ora, the actual communication takes place on a radom port. If that is a problem at your site you need to fix that)
- You need to run netstat -r to identify which ports are actually used.
- Pavan kumar N -
When i try to log on to Oracle it gives an error TNS:no listener, WHY?
hi guys,
WHen i try to log on to the Oracle 8i server using the user: SYSTEM and password: manager, it gives an error
ERROR:
ORA-12541: TNS: no listener
why this occurs and how do i fix the problem? please give me step by step instructions TY :)
Message was edited by:
user502781ORA-12541 ...
- The client is requesting connection to a service.
- The service is derived from the alias used in the connection. For example, @orcl ... orcl = alias.
- The alias is used to look up the host, listener port and service in the tnsnames.ora
The listener is on the same machine as the database. The listener must be up and listening on the port the client want to use.
If the listener is not up, there wil be an "ORA-12541: TNS: no listener" error;
If the listener is listening on the wrong port, there wil be an "ORA-12541: TNS: no listener" error;
If the client is asking for the wrong port, there wil be an "ORA-12541: TNS: no listener" error.
To start the listener in Windows, go to the Control Panel > Administration Tools > Services and ensure the Ora?????Listener is started.
To verify the listener is up, open a command box, and type 'lsnrctl status'
To see what the client is expecting, on the client machine open a command box, and type 'tnsping {alias}' where you replace {alias} with the alias to be used in the connection. -
TNS-12560 error when running as Windows Service
Hello,
I created a VB.NET application that connects to a Oracle database using DbProviderFactory and ODP.NET for .Net Framework 2.0. This application runs on XP, I need it to run as Windows Service, but every time it try to connect to the database throw the Oracle exception TNS-12560: TNS:protocol adapter error, the weird thing is the same application running as a Console Application it works (Same code, same connection string, same query). It was using ODP.NET 10 I updated the provider to 11 still got the same error. The service is running user Local System account, and it has the same problem running under other adm account.
Following is error in the sqlnet.log (PS: The file was under the system32 folder, probably because was running as a service):
Fatal NI connect error 12560, connecting to:
+(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=XX.XX.XX.XX)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=XXX)(CID=(PROGRAM=C:\Program Files\MyApp\MyApp.exe)(HOST=MYCOMPUTER)(USER=MYUSER))))+
VERSION INFORMATION:
+ TNS for 32-bit Windows: Version 10.2.0.1.0 - Production+
+ Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production+
Time: 28-AUG-2009 02:20:19
Tracing not turned on.
Tns error struct:
ns main err code: 12560
TNS-12560: TNS:protocol adapter error
ns secondary err code: 0
nt main err code: 530
TNS-00530: Protocol adapter error
nt secondary err code: 56
nt OS err code: 0
Does anyone have any thoughts as to why I'm getting this error ??
ThanksI don't know :^(
There could be many reasons: differences in the environment, missing permissions, virus scanners, you name it.
Is it running under the same user as on the console?
I suspect that the error code will give a hint where the problem is, but I could not find any documentation what this code means.
You could try to run an Orace Net trace - maybe you get an idea if you see where in the connection process the problem occurs.
Yours,
Laurenz Albe -
Hi,
I tried to install Oracle 10.2.0.1 on a RedHat 4 box. Both, Oracle and RedHat are 64 bit versions. The installation was fine but the database creation (with dbca) could not create the database because of this error: ORA-12547: TNS:lost contact
I can not find any errors in the installation log. Only this warnings in the make.log:
/usr/bin/ld: warning: i386 architecture of input file `/opt/oracle/oracle/product/10.2.0/db_1/sysman/lib/snmccolm.o' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/opt/oracle/oracle/product/10.2.0/db_1/sysman/lib/libnmccol.a(nmccole.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/opt/oracle/oracle/product/10.2.0/db_1/sysman/lib/libnmcbuf.a(nmcbuft.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/opt/oracle/oracle/product/10.2.0/db_1/sysman/lib/libnmcbuf.a(nmcbufw.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/opt/oracle/oracle/product/10.2.0/db_1/sysman/lib/libnmcbuf.a(nmcbufu.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/opt/oracle/oracle/product/10.2.0/db_1/sysman/lib/libnmcbuf.a(snmcbufm.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/opt/oracle/oracle/product/10.2.0/db_1/sysman/lib/libnmcbuf.a(nmcbuff.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/opt/oracle/oracle/product/10.2.0/db_1/sysman/lib//libnmadbg.a(nmadbg.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file `/opt/oracle/oracle/product/10.2.0/db_1/sysman/lib//libnmadbg.a(snmadbg.o)' is incompatible with i386:x86-64 output
mv -f /opt/oracle/oracle/product/10.2.0/db_1/bin/nmccollector /opt/oracle/oracle/product/10.2.0/db_1/bin/nmccollector0
mv /opt/oracle/oracle/product/10.2.0/db_1/sysman/lib/nmccollector /opt/oracle/oracle/product/10.2.0/db_1/bin/
Has anyone an idea? Or a hint how to encircle the problem?
Best regards,
DirkIf you execute "uname -mpi" and output value is x86_64 then you didn't install all required packages.
/usr/bin/ld: warning: i386 architecture of input file `/opt/oracle/oracle/product/10.2.0/db_1/sysman/lib/snmccolm.o' is incompatible with i386:x86-64 outputAccording to this message you are missing some 64bit package.
To find the missing package execute following command to list installed packages and post the output:
rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}\n'|egrep 'compat|glibc|gcc|libstdc'|sortMessage was edited by:
Ivan Kartik
Too late... :-( -
ORA-12514: TNS:listener does not currently know of service requested
While connecting "sqlplus SYSADM/SYSADM@HCM" I am getting the below error:
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
Installation background:
Windows 7 l(64-bit) laptop.
Created linux virtualbox to installl peoplesoft VM templates.
so far installed: Oracle11gR2.vdi and HCMDB.vdi on the linux virtualbox.
Followed the steps exactly what it is in the link below: Got the above error in page 4 of the link at connecting to database via sqlplus.
http://bloggingaboutoracleapplications.org/running-oracle-vm-templates-oracle-enterprise-linux-guide-part-1-7/
Below provided initHCM.ora, tnsnames.ora, listerner.ora and some responses I tried. I could not figure out what causing the issue even after researching in web.
Your help would be highly appreciated.
tnsnames.ora:
=============
# tnsnames.ora Network Configuration File:
HCM =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = hcmdb91)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = HCM)
Listener.ora:
=============
# listener.ora Network Configuration File:
/u01/app/oracle/product/11.2.0.x/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = hcmdb91)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
initHCM.ora:
============
DB_FILES =256
OPEN_CURSORS = 1000
db_block_size = 8192
remote_login_passwordfile = NONE
undo_tablespace=PSUNDOTS
NLS_LENGTH_SEMANTICS=CHAR
# Cache and I/O
#db_block_size=
db_file_multiblock_read_count=16
# Database Identification
# db_domain=us.oracle.com
# db_name=
# Diagnostics and Statistics
#background_dump_dest=
#core_dump_dest=
#user_dump_dest=
# Job Queues
job_queue_processes=10
# Processes and Sessions
processes=150
# SGA Memory
sga_target=287309824
# Security and Auditing
#audit_file_dest=
#remote_login_passwordfile=EXCLUSIVE
# Shared Server
dispatchers="(PROTOCOL=TCP) (SERVICE=XDB)"
# Sort, Hash Joins, Bitmap Indexes
pga_aggregate_target=95420416
# System Managed Undo and Rollback Segments
undo_management=AUTO
#undo_tablespace=
unnestsubquery=false
# Miscellaneous
compatible=11.2.0.2.0
control_files=(/u01/app/oracle/oradata/HCM/control01.ctl)
DB_NAME=HCM
[oracle@hcmdb91 ~]$ tnsping hcm
TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 28-MAR-2013
07:40:37
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =
hcmdb91)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME =
HCM)))
OK (20 msec)
[oracle@hcmdb91 ~]$
[oracle@hcmdb91 ~]$ tnsping hcm
TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 28-MAR-2013
07:40:37
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =
hcmdb91)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME =
HCM)))
OK (20 msec)
[oracle@hcmdb91 ~]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 28-MAR-2013 07:41:32
Copyright (c) 1991, 2010, Oracle. All rights reserved.
TNS-01106: Listener using listener name LISTENER has already been started
[oracle@hcmdb91 ~]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 28-MAR-2013 07:42:20
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hcmdb91)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 28-MAR-2013 07:29:21
Uptime 0 days 0 hr. 13 min. 1 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File
/u01/app/oracle/product/11.2.0.x/db_1/network/admin/listener.ora
Listener Log File
/u01/app/oracle/product/11.2.0.x/db_1/log/diag/tnslsnr/hcmdb91/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hcmdb91.example.com
)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The listener supports no services
The command completed successfully
[oracle@hcmdb91 ~]$ lsnrctl services
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 28-MAR-2013 07:42:44
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hcmdb91)(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@hcmdb91 ~]$
[oracle@hcmdb91 ~]$ sqlplus SYSADM/SYSADM@HCM
SQL*Plus: Release 11.2.0.2.0 Production on Thu Mar 28 07:44:25 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in
connect descriptor
My guess is that the database service "HCM" is not up and running but not sure how to make up and running. Even I could not find it listed in the linux services list.
Note: Able to login sqlplus using "sqlplus sys/sys as sysdba" but failing to access database table as "select * from PSRECDEFN;"
thanks
Espii.
Edited by: 995437 on Mar 28, 2013 6:52 AM
Edited by: 995437 on Mar 28, 2013 6:59 AMHi Nicolas,
I have no luck and the error still persists.
I have set the "export ORACLE_SID=HCM" from root user and oracle user too.
I guess, I have already loaded database when I ran the "cd /opt/oracle/psft/vm
./oraclevm-template.sh"
The outcome of the above script as similar as below:
Creating
ovm_configure_pre
CreateVirtualEnvironment
/u01/scripts/db-reconfig.sh: line 238: ovm_set_password: command not found
/u01/scripts/db-reconfig.sh: line 239: ovm_configure_network: command not found
INFO:
Starting Oracle database reconfiguration.
Oracle Database Configuration
This will configure on-boot properties of Oracle Database.
The following questions will determine whether the database should be
starting upon system boot, the ports it will use.
Press <Enter> to accept the defaults.
Do you want to relink binaries? (y/n) [n] y
Specify a port that will be used for the database listener [1521]:
Do you want Oracle Database to be started on boot (y/n) [y]:y
Wrote to /etc/sysconfig/oracle11g
Relinking Oracle Binaries...
Oracle Relinking Completed Successfully
Logs: /home/oracle/relink.log
Running orainstRoot.sh and root.sh...
set 2GB tmpfs
Enabling Oracle Database service
Configuration Completed Successfully.
Enter the name of the database SID [TESTDB]:HCM
ORACLE instance started.
Total System Global Area 288104448 bytes
Fixed Size 2225832 bytes
Variable Size 104859992 bytes
Database Buffers 176160768 bytes
Redo Buffers 4857856 bytes
Control file created.
Database altered.
Tablespace altered.
Tablespace altered.
Tablespace altered.
1 row updated.
160 rows updated.
Commit complete.
Kumar - I have found no sqlnet.ora file exist in the $ORACLE_HOME/NETWORK/ADMIN
Edited by: 995437 on Mar 28, 2013 9:15 AM -
DNS Set Up system throw as ORA-12154; TNS :could not resolve the connect id
Hi,
While i'm creating DNS set up system throws below message
unable to connect
SQLState=08004
DNS Set Up for instantclient(win32-10.2.0.4) system throw as ORA-12154; TNS :could not resolve the connect identified specified.
operationg system:xp
dir path:C:\Oracle\instantclient10_2
TNSNAMES.ORA(C:\Oracle\instantclient10_2\NetWork\ADMIN) Contants
YourTNSName =sankar
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST =localhost)(PORT =1521))
(CONNECT_DATA =
(SID =sankar)
(SERVER = DEDICATED)
dir contains:
sqresus.dll,
sqresja.dll
sqoras32.dll
sqora32.dll
oraociei10.dll
oraocci10.dll
orannzsbb10.dll
ojdbc14.jar
ocijdbc10.dll
ociw32.dll
oci.dll
classes12.jaruser7197586 wrote:
Hi
I have been created one DBLink it's created but when i am trying to access the data through the link it's raise error as
"ORA-12154: TNS:could not resolve the connect identifier specified"
CREATE
PUBLIC DATABASE LINK
Vrd_tcplink
CONNECT TO
"SAPVRD"
IDENTIFIED BY
"manager123"
USING
'VRD_TCP.WORLD'
created this above dblink
Kindly Suggest to wau out.
Regards,
Sachin
When using a dblink, the database with the link is acting as a client to the remote database ... exactly like sqlplus running on the db server.
read: http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/ ora-12154tns-03505 -
Unable to create database due to ORA-12560, TNS protocol adapter error
Hello,
I'm trying to create an 8.1.7.0 database on a W2k server, but it is failing because as soon as svrmgrl is launched, I get an ORA-12560, TNS: protocol adapter error:
D:\oracle\db_creation_scripts>D:\oracle\ora81\bin\svrmgrl @D:\oracle\db_creation_scripts\mterm62run.sql
Oracle Server Manager Release 3.1.7.0.0 - Production
Copyright (c) 1997, 1999, Oracle Corporation. All Rights Reserved.
ORA-12560: TNS:protocol adapter errorEcho ON
SVRMGR> connect INTERNAL/manager
ORA-12560: TNS:protocol adapter error
SVRMGR> startup nomount pfile="D:\oracle\admin\mterm62\pfile\initmterm62.ora"
LCC-00161: Message 161 not found; product=RDBMS; facility=MGR
My ORACLE_HOME, ORACLE_SID, and TNS_ADMIN environmental variables are correctly set, and I'm able to tnsping the listener.
I've enabled tracing, and my client trace file is:
--- TRACE CONFIGURATION INFORMATION FOLLOWS ---
New trace stream is d:\trace\client_trace.log_2084_9.trc
New trace level is 6
--- TRACE CONFIGURATION INFORMATION ENDS ---
--- PARAMETER SOURCE INFORMATION FOLLOWS ---
Attempted load of system pfile source d:\oracle\ora81\network\admin\sqlnet.ora
Parameter source loaded successfully
Attempted load of local pfile source D:\oracle\db_creation_scripts\sqlnet.ora
Parameter source was not loaded
-> PARAMETER TABLE LOAD RESULTS FOLLOW <-
Successful parameter table load
-> PARAMETER TABLE HAS THE FOLLOWING CONTENTS <-
TRACE_DIRECTORY_SERVER = d:\trace
TRACE_DIRECTORY_CLIENT = d:\trace
NAMES.DIRECTORY_PATH = (TNSNAMES, HOSTNAME)
SQLNET.CRYPTO_SEED = 4fhfguweotcadsfdsafjkdsfqp5f201p45mxskdlfdasf
TRACE_FILE_CLIENT = client_trace.log
TRACE_FILE_SERVER = server_trace.log
SQLNET.AUTHENTICATION_SERVICES = (NTS)
TRACE_UNIQUE_CLIENT = on
TRACE_LEVEL_CLIENT = ADMIN
TRACE_LEVEL_SERVER = ADMIN
--- PARAMETER SOURCE INFORMATION ENDS ---
--- LOG CONFIGURATION INFORMATION FOLLOWS ---
Log stream will be "D:\oracle\db_creation_scripts\sqlnet.log"
Log stream validation not requested
--- LOG CONFIGURATION INFORMATION ENDS ---
nigini: entry
nigini: Count in NI global area now: 1
nigini: Count in NI global area now: 1
nrigbi: entry
nrigbni: entry
nrigbni: Unable to get data from navigation file tnsnav.ora
nrigbni: exit
nrigbi: exit
nigini: exit
niqname: Hst is already an NVstring.
niqname: Inserting CID.
niotns: entry
niotns: niotns: setting up interrupt handler...
niotns: Not trying to enable dead connection detection.
niotns: Calling address: (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleMTERM62)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')))(CONNECT_DATA=(SID=MTERM62)(CID=(PROGRAM=D:\oracle\ora81\bin\SVRMGRL.EXE)(HOST=SERV0354)(USER=tarisa))))
nsmal: 140 bytes at 0x12493f0
nscall: connecting...
nladini: entry
nladini: exit
nladget: entry
nladget: exit
nlpcaini: entry
nlpcaini: prg =
nlpcaini: arg[0] =
nlpcaini: arg[1] =
nlpcaini: exit
nsmal: 420 bytes at 0x12542f0
nsmal: 1712 bytes at 0x12572f0
nsopen: opening transport...
ntpcon: entry
ntpcon: toc = 1
sntpcall: entry
snlpcss: entry
ntpcon: exit
nserror: nsres: id=0, op=65, ns=12560, ns2=0; nt[0]=530, nt[1]=2, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0
nsopen: unable to open transport
nsmfr: 1712 bytes at 0x12572f0
nsmfr: 420 bytes at 0x12542f0
nladget: entry
nladget: exit
nsmfr: 140 bytes at 0x12493f0
nladtrm: entry
nladtrm: exit
nioqper: error from nscall
nioqper: nr err code: 0
nioqper: ns main err code: 12560
nioqper: ns (2) err code: 0
nioqper: nt main err code: 530
nioqper: nt (2) err code: 2
nioqper: nt OS err code: 0
niomapnserror: entry
niqme: entry
niqme: reporting NS-12560 error as ORA-12560
niqme: exit
niomapnserror: returning error 12560
niomapnserror: exit
niotns: Couldn't connect, returning 12560
niotns: exit
nigtrm: Count in the NI global area is now 0
nnfgdei: entry
nrigbd: entry
nrigbd: exit
nigtrm: Count in the NL global area is now 0
My tnsnames, listener and sqlnet.ora files are very simple:
## BEGIN TNSNAMES.ORA
# TNSNAMES.ORA Network Configuration File: D:\oracle\ora81\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.
MTERM62 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.3.1.75)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = mterm62)
(INSTANCE_NAME = mterm62)
INST1_HTTP =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.3.1.75)(PORT = 1521))
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = mterm62)
(PRESENTATION = http://admin)
# LISTENER.ORA Network Configuration File: D:\oracle\ora81\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = serv0354)(PORT = 1521))
SID_LIST_LISTENER =
(SID_DESC =
(ORACLE_HOME = D:\oracle\ora81)
(SID_NAME = mterm62)
TRACE_LEVEL_LISTENER = ADMIN
# SQLNET.ORA Network Configuration File: D:\oracle\ora81\NETWORK\ADMIN\sqlnet.ora
# Generated by Oracle configuration tools.
TRACE_DIRECTORY_CLIENT = d:\trace
TRACE_UNIQUE_CLIENT = on
TRACE_DIRECTORY_SERVER = d:\trace
SQLNET.AUTHENTICATION_SERVICES= (NTS)
TRACE_FILE_CLIENT = client_trace.log
TRACE_FILE_SERVER = server_trace.log
TRACE_LEVEL_CLIENT = ADMIN
TRACE_LEVEL_SERVER = ADMIN
NAMES.DIRECTORY_PATH= (TNSNAMES, HOSTNAME)
SQLNET.CRYPTO_SEED = 4fhfguweotcadsfdsafjkdsfqp5f201p45mxskdlfdasf
Does anyone have any ideas what else I can check. I'm a Unix person, not a Windows person, which is making it even more complicated. If I was on Unix, I'd just blow everything away and start again from scratch, but since I'm not sure how to remove all traces from the registry, etc., I don't want to try that on this machine. There was already one other database created, but it's not goign to be used.
Any help would be greatly appreciated.
regards,
Tarisa.hi,
thanks for the info. the problem, as it turns out, was that I was connected to the db server via a terminal service (Microsoft Management Console), which for some reason caused probelms with TNS. After I connected directly to the machine using VNC, I was able to create the database with no problems. strange but true.
regards,
Tarisa. -
Changing the datasource of a Crystal Report to a Oracle DB using TNS
I have a problem trying to change the datasource of a crystal report. In the new connection I want to connect to a Oracle DB using TNS.
Without TNS it's finally working flawlessly with the following code:
private static void switch_tables(DatabaseController databaseController) throws ReportSDKException {
// Declare the new connection properties that report's datasource will be switched to.
final String DBUSERNAME = "user";
final String DBPASSWORD = "secret";
final String SERVERNAME = "jdbc:oracle:thin:@1.1.1.1:mysid";
final String URI = "!oracle.jdbc.OracleDriver!jdbc:oracle:thin:{userid}/{password}@1.1.1.1:mysid";
final String DATABASE_NAME = "mysid";
final String DATABASE_DLL = "crdb_jdbc.dll";
final String SCHEMA_NAME = "SCHEMA.";
// Obtain collection of tables from this database controller.
Tables tables = databaseController.getDatabase().getTables();
// Set the datasource for all main report tables.
for (int i = 0; i < tables.size(); i++) {
ITable table = tables.getTable(i);
// Keep existing name and alias.
table.setName(table.getName());
table.setAlias(table.getAlias());
// Change properties that are different from the original datasource.
table.setQualifiedName(SCHEMA_NAME + table.getName());
// Change connection information properties.
IConnectionInfo connectionInfo = table.getConnectionInfo();
// Set new table connection property attributes.
PropertyBag propertyBag = new PropertyBag();
propertyBag.put("Trusted_Connection", "false");
propertyBag.put("Server Name", SERVERNAME); //Optional property.
propertyBag.put("Connection String", URI);
propertyBag.put("Database Name", DATABASE_NAME);
propertyBag.put("Server Type", "JDBC (JNDI)");
propertyBag.put("URI", URI);
propertyBag.put("Use JDBC", "true");
propertyBag.put("Database DLL", DATABASE_DLL);
connectionInfo.setAttributes(propertyBag);
// Set database username and password.
// NOTE: Even if these the username and password properties don't change when switching databases, the
// database password is not saved in the report and must be set at runtime if the database is secured.
connectionInfo.setUserName(DBUSERNAME);
connectionInfo.setPassword(DBPASSWORD);
connectionInfo.setKind(ConnectionInfoKind.SQL);
table.setConnectionInfo(connectionInfo);
// Update old table in the report with the new table.
databaseController.setTableLocation(table, tables.getTable(i));
I just call this method with the DatabaseController from a ReportClientDocument instance.
How do I need to change the connectionInfo to do the connection using TNS?Please re-post if this is still an issue but first update to CR4E 2 and retest
-
Cannot connect to database: TNS error
Hello,
Please can anyone help? <br><BR>
I'm running a 10g database on a vmware image. <BR>
In the same image i installed OBIEE 10.1.3.3.1. <br>
When i do not start the BI server, i can update the row count in the repository.<BR>
However, as soon as i start the BI server i get the following error message: <br><BR>
++++++++++++++++++++++++++++++++++++++++++++ <BR>
Query Status: Query Failed: [nQSError: 43093] An error occurred while processing the EXECUTE PHYSICAL statement.<BR>
[nQSError: 17001] Oracle Error code: 12154, message: ORA-12154: TNS:could not resolve the connect identifier specified
at OCI call OCIServerAttach. <BR>
[nQSError: 17014] Could not connect to Oracle database.
<br>
++++++++++++++++++++++++++++++++++++++++++++<br><BR>
I get the same error message in when trying to run a query in dashboards.
This is what i checked:
<UL>
<LI>connection pool uses OCI10g/11g </LI>
<LI> data source name in the connection pool is exactly as in the tnsnames ora </LI>
<LI>path variable in XP points to the database: <br>C:\oracle\o10g\bin;C:\oracle\o10gclient;C:\Oracle\OracleBI\server\Bin;C:\Oracle\OracleBI\web\bin;C:\Oracle\OracleBI\web\catalogmanager </LI>
<LI> can tnsping the database: <br>tnsping o10g --> uses parameter files: c:\oracle\o10g\network\admin\sqlnet.ora </LI>
</UL>
Has anyone another idea how to find the problem?<BR>
Thanx 4 help!<BR>
SandraHi Ripley,
thanx for your reply.
I do have 2 oracle homes, because i have the database and the client tools installed.
I have the directory in front of the path variable that describes the database oracle home (o10g). I also tried to put the path in front from BI ... but it didn't work either.
The listener and database are up and running.
I checked the thread you described, but am not sure which part you want me to check. The one about the listener?
But isn't it strange that i can update rowcount when the bi server is not running but it does not work when the bi server IS running?
Thanks for your help
Sandra -
Connect to Oracle through ODBC - TNS: No Listener Error
Hi All,
I've been trying to chase this problem down for over a month now and I have had no luck. When I try to connect to an Oracle server through MS Access I get the TNS: No Listener error. The kicker is when I go to the odbc data source administrator in windows I am able to connect to the oracle server. My computer is windows 2007 and I have Oracle 11.2 installed. Could anyone assist?
When I type lsnrctl start in the command prompt it says it has been already started.
Here is my tnsnames.ora:
ORMANRPT.WORLD=
(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=bspz1565.bhdc.att.com)
(PORT=1521)
(CONNECT_DATA=
(SID=ORMANRPT)
Here is my sqlnet.ora:
AUTOMATIC_IPC = OFF
TRACE_LEVEL_CLIENT = OFF
names.directory_path = (TNSNAMES)
names.default_domain = world
name.default_zone = world
names.default_domain=world
here is my listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\cb260e\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\cb260e\product\11.2.0\dbhome_1\bin\oraclr11.dll")
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
ADR_BASE_LISTENER = C:\app\cb260e1009773 wrote:
I used this computers IP and name. Is this what my listener should look like?
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\cb260e\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\cb260e\product\11.2.0\dbhome_1\bin\oraclr11.dll")
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = 144.158.355.240)(HOST = ilcdf44v.itservices.ms.com)(PORT = 1521))Line above is WRONG!
I suggest you move, remove, rename, delete or otherwise move the listener.ora file out of the way.
listener.ora is NOT required to start or utilize the listener
open Command Window after doing as directed above then issue the OS commands below
lsnrctl stop
lsnrctl start
lsnrctl status
# now wait 60+ seconds before issuing the next command below
lsnrctl service
COPY the results from all above, then PASTE all results back here. -
Repeated 'ORA-12547: TNS: lost contact' messages after installing Oracle 10
Hi,
I installed Oracle 10g on Redhat ES 3, and the install went well, but when I try and interact with the server I get the message:
ORA-12547: TNS: lost contact
For example, if I use the Database Configuration Assistant to attempt to create a database, I will see the above message when it begins the database creation process, or if I try to interact with the Oracle server using sqlplus I will see the above message after each command entered.
I had recently tried to install Oracle 8.1.7 on the same box, but abandoned that after deciding that the effort required to link Oracle 8 on RHES3 just wasn't worth it.
I have been told that my previous partial installation of Oracle 8 may be the cause of the problem, and have been advised to uninstall Oracle 8, uninstall Oracle 10g, and reinstall Oracle 10g. I find it hard to believe that it would require such an action to solve this problem. Are there any configuration changes I can make to resolve it?
My problem sounds like it may be similar problem to a recent posting by Hugo Ferrer - but my Spanish isn't good enough to fully understand Hugo's problem. Anyways, I am new to Oracle, so thanks for any help with this problem.
Colm.My last message asking for a grater degree of specificity was not overly specific, hence I am posting the kernel parms that I have set with the hopes that you will spot one that I set improperly or one that I neglected to set.
[root@awyr ~]# cat /proc/sys/kernel/shmmax
2147483648
[root@awyr ~]# cat /proc/sys/kernel/shmmni
4096
[root@awyr ~]# cat /proc/sys/kernel/shmall
2097152
[root@awyr ~]# ipcs -lm |grep "min seg size"
min seg size (bytes) = 1
[root@awyr ~]# cat /proc/sys/kernel/sem | awk '{print $1}'
250
[root@awyr ~]# cat /proc/sys/kernel/sem | awk '{print $2}'
32000
[root@awyr ~]# cat /proc/sys/kernel/sem | awk '{print $3}'
100
[root@awyr ~]# cat /proc/sys/kernel/sem | awk '{print $4}'
128
[root@awyr ~]# cat /proc/sys/fs/file-max
65536
[root@awyr ~]# cat /proc/sys/net/ipv4/ip_local_port_range
1024 65000
[oracle@awyr Desktop]$ ulimit -n
63536
[oracle@awyr Desktop]$ ulimit -u
4091
[oracle@awyr Desktop]$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 63536
pipe size (512 bytes, -p) 8
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 4091
virtual memory (kbytes, -v) unlimited
from sysctl -a
my fs.file-max = 65536
in my limits.conf I added:
oracle soft nofile 4096
oracle hard nofile 63536
in my (1) /etc/pam.d/system-auth (2) /etc/pam.d/sshd (3) /etc/pam.d/su (4) /etc/pam.d/login
files I added:
session required pam_limits.so
and verified that it exists
in my limits.conf I added
oracle soft nproc 2047
oracle hard nproc 16384
my /etc/oratab has:
orcl:/usr/local/oracle/app/oracle/oracle/product/10.2.0/db_1:N
I tried to change the N at the end to a Y but to no avail
my /etc/oraInst.loc has:
inventory_loc=/usr/local/oracle/app/oracle/oraInventory
inst_group=oinstall
Thanks again for your atention
Richard -
TNS-12666 error occures when using database link
When I am trying to use database link
defined in my database the following error occures:
TNS-12666 Dedicated server: outbound transport protocol different from inbound.
In documentation is stated to resolve such an error to
specify the same protocol in the SQL*Net connect string or alias for the outbound connection as that used for the inbound connection.
I have in tnsnames.ora defined network service name
by which I can connect to such a database by SQL*Plus
without any problems, why can I not do such a thing
via database link?
Thanks a lot for advise, ...Could you change the following entry in your 'sqlnet.ora' file and try?
SQLNET.AUTHENTICATION_SERVICES = (NONE) -
"TNS: Protocol adapter error" while creating a database
Hi All,
I´m new to Oracle and trying to create a database.
We use Oracle 8.1.7
I´m using the Database Configuration Assistant. The problem is when creating the database I get the error:
TNS-12560 TNS: Protocol adapter error
Any help will be really appreciated.
Thanks in advance,
Carlos.Do you have ORACLE_HOME and/or ORACLE_SID defined in the environment which are different than the settings for the new database that you are trying to create?
-
Error while starting listener on my database TNS-1255,TNS-12560, TNS-00525
Hi All,
I am newbie to oracle and i have been struggling from last one week to get this error corrected on my database.
Listener services are not working due to which i'm unable to proceed my work. Please provide ur help as i really want to learn.
Edited by: 978366 on Jan 12, 2013 6:18 AMPlease take a look at all the details asked by you guys. It will really helpful if this can get fixed
[oraprod@mycomp admin]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
10.10.10.100 mycomp.mydomain.com mycomp
[oraprod@mycomp admin]$ uname -a
Linux mycomp.mydomain.com 2.6.9-89.0.0.0.1.ELhugemem #1 SMP Tue May 19 04:38:38 EDT 2009 i686 i686 i386 GNU/Linux
SQL> select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
listener.ora entry
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = mycomp.mydomain.com)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROCO))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = test.mycomp.mydomain.com)
(ORACLE_HOME = /u01/app/oraprod/product/1020/db_1)
(SID_NAME = test)
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oraprod/product/1020/db_1)
(PROGRAM = extproc)
tnsname.ora entry
TEST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = mycomp.mydomain.com)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = TEST)
listener status
[oraprod@mycomp admin]$ lsnrctl status
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 14-JAN-2013 16:44:33
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mycomp.mydomain.com)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROCO)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
[oraprod@mycomp admin]$ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 14-JAN-2013 16:44:44
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /u01/app/oraprod/product/1020/db_1/bin/tnslsnr: please wait...
TNS-12537: TNS:connection closed
TNS-12560: TNS:protocol adapter error
TNS-00507: Connection closed
Linux Error: 29: Illegal seek
[oraprod@mycomp admin]$
Maybe you are looking for
-
How to delete/remove DigiNotar in Mac OS X 10.5.8?
Hello. I noticed Apple never released an update to delete/remove DigiNotar in Mac OS X 10.5.8 since I have all updates. I was able to tell Keychain to untrust it from http://fairerplatform.com/2011/09/how-to-disable-diginotar-ssl-certificate/ article
-
How to restrict the Copying/printing of the file from document
Hi.. Case: 1. I have a document number it has three files in it.I want to locked the files from priniting and copying but not from opening/displaying. 2. I am using content server for storing the DMS documents.How to restrict the number of attachment
-
Moutain Lion's Download doesn't work for me...
I've bought Os x Mountain Lion on the Mac App Store but when i look at the "download status" on lauchpad it's still on "0" (the download line stays on the smallest position) what can i do ? I've been rebooting my mac for 3 times and i doesn't work...
-
I had seen this cable where I can hook up my MacBook using USB to display images and listen to audio. Does anyone know if I can use this USB adapter to listen to audio, or can I only use the displayport with Macs? http://www.amazon.com/3-RCA-to-USB-C
-
GL is relevant for automatic clearing
By which t.code we can check that the any particular g/l is relavant for automatic clearing or not? regards Rekha sharma