Oracle TNS Error
Hi,
I have installed 10 g on my machine on a windows platform.
After hooking to a lan, I am not able to connect through sqlplus I gt the following error
=========C:\>tnsping orcl10g
TNS Ping Utility for 32-bit Windows: Version 10.1.0.2.0 - Production on 12-JUN-2005 22:18:13
Copyright (c) 1997, 2003, Oracle. All rights reserved.
Used parameter files:
C:\Oracle\TNS_ADMIN\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = l0040523)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDIC
TNS-12541: TNS:no listener
=====================
As soon as I come out of the lan network, it works fine.
Wondering if anyone has encountered any such problem before on Windows 2000 server before.
thanks in advance,
darshan
Thanks a tonne Kuljeet.
Appreciate ur comments. Its working as soon as I am diabling the firewall application.
thanks and regards,
darshan
Similar Messages
-
Oracle TNS Error when startng Listener
Guys,
I get the following error when i try to start the listener, any suggestions or inputs would help
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 2: No such file or directory
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxxx3)(PORT=1522)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 61: Unknown error
LSNRCTL> start
Starting tnslsnr: please wait...
TNSLSNR for 32-bit Windows: Version 9.2.0.6.0 - Production
System parameter file is C:\oracle\ora92\network\admin\listener.ora
Log messages written to C:\oracle\ora92\network\log\listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxxx3)(PORT=1522)
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS:protocol adapter error
TNS-00515: Connect failed because target host or object does not exist
32-bit Windows Error: 49: Unknown error
Below is the listener log
TNSLSNR for 32-bit Windows: Version 9.2.0.6.0 - Production on 02-JUL-2009 15:29:56
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
System parameter file is C:\oracle\ora92\network\admin\listener.ora
Log messages written to C:\oracle\ora92\network\log\listener.log
Trace information written to C:\oracle\ora92\network\trace\listener.trc
Trace level is currently 0
Started with pid=20312
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxxxx3)(PORT=1522)))
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS:protocol adapter error
TNS-00515: Connect failed because target host or object does not exist
32-bit Windows Error: 49: Unknown error
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
TNSLSNR for 32-bit Windows: Version 9.2.0.6.0 - Production on 02-JUL-2009 15:30:11
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
System parameter file is C:\oracle\ora92\network\admin\listener.ora
Log messages written to C:\oracle\ora92\network\log\listener.log
Trace information written to C:\oracle\ora92\network\trace\listener.trc
Trace level is currently 0
Started with pid=19992
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxxxx3)(PORT=1522)))
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS:protocol adapter error
TNS-00515: Connect failed because target host or object does not exist
32-bit Windows Error: 49: Unknown error
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
Listener failed to start. See the error message(s) above...
LSNRCTL>
TNSNAMES.ORA
ORATEST.NV.AMCAD.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.XX)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = OraTest)
LISTENER.ORA
SID_LIST_LISTENER =
(SID_DESC =
(GLOBAL_DBNAME = OraTest)
(ORACLE_HOME = C:\oracle\ora92)
(SID_NAME = Oratest)
SQLNET.ORA
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)ORAAM wrote:
Guys,
I get the following error when i try to start the listener, any suggestions or inputs would help
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 2: No such file or directory
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxxx3)(PORT=1522)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 61: Unknown error
LSNRCTL> start
Starting tnslsnr: please wait...
TNSLSNR for 32-bit Windows: Version 9.2.0.6.0 - Production
System parameter file is C:\oracle\ora92\network\admin\listener.ora
Log messages written to C:\oracle\ora92\network\log\listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxxx3)(PORT=1522)
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS:protocol adapter error
TNS-00515: Connect failed because target host or object does not exist
32-bit Windows Error: 49: Unknown error
Below is the listener log
TNSLSNR for 32-bit Windows: Version 9.2.0.6.0 - Production on 02-JUL-2009 15:29:56
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
System parameter file is C:\oracle\ora92\network\admin\listener.ora
Log messages written to C:\oracle\ora92\network\log\listener.log
Trace information written to C:\oracle\ora92\network\trace\listener.trc
Trace level is currently 0
Started with pid=20312
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxxxx3)(PORT=1522)))
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS:protocol adapter error
TNS-00515: Connect failed because target host or object does not exist
32-bit Windows Error: 49: Unknown error
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
TNSLSNR for 32-bit Windows: Version 9.2.0.6.0 - Production on 02-JUL-2009 15:30:11
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
System parameter file is C:\oracle\ora92\network\admin\listener.ora
Log messages written to C:\oracle\ora92\network\log\listener.log
Trace information written to C:\oracle\ora92\network\trace\listener.trc
Trace level is currently 0
Started with pid=19992
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxxxx3)(PORT=1522)))
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS:protocol adapter error
TNS-00515: Connect failed because target host or object does not exist
32-bit Windows Error: 49: Unknown error
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
Listener failed to start. See the error message(s) above...
LSNRCTL>
TNSNAMES.ORA
ORATEST.NV.AMCAD.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.XX)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = OraTest)
LISTENER.ORA
SID_LIST_LISTENER =
(SID_DESC =
(GLOBAL_DBNAME = OraTest)
(ORACLE_HOME = C:\oracle\ora92)
(SID_NAME = Oratest)
SQLNET.ORA
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)What do you suppose the message "TNS-12545: Connect failed because target host or object does not exist" means?
I don't see the LISTENER = section of your listener.ora file. That's where you tell the listener the host and port to use.
You realize of course, that the listener runs on the server, not the client.
You realize, of course, that tnsnames.ora is a client side file and the listener doesn't care one whit what is in any tnsnames.ora file. -
Installation Oracle 8i TNS error
I am trying to install Oracle 8.1.7. on windows 2000 OS. I have installed Oracle before but never had the problems I am having now.
I am installing it through a Remote Desktop Connection. I used the typical installation option. At 100% of the installation, it hangs on the net8 optional installation. When I am trying to create the database with the database configuration assistent I get an TNS error while initializing the global database. ORA-12560 TNS protocol adapter error.
What could be the problem here?
MarcoI've never tried installing Oracle 8 on Windows XP machine, so I don't know. And Oracle does not provide download link for software they don't support (like Oracle 8.1.7), </br></br>
So your options are upgrade your existing database or try searching 8.1.7 version. I presume you don't have 8.1.7 version, either way you need to upgrade your database anyway.</br></br>
Give Oracle Express Edition(it's free) a try, using it you can fully utilize advance ODP.NET feature like Database Change Notification. If you choose to download Oracle Enterprise Edition, Oracle won't charge you if you use it only for development purpose.</br></br>
Cheers,</br>
NH</br> -
External datasource problem(tns error)
hi,
i got and error while working with external datasource in BAM architect, how to fix it? Moreover i got tns error when i use tnsping utility for my XE db from command prompt
======================================
C:\Documents and Settings\rehanfa>tnsping xe
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-JUN-2
008 15:26:18
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
C:\OracleBAM\ClientForBAM\network\admin\sqlnet.ora
TNS-03505: Failed to resolve name
======================================
and BAM archtect error while viewing contents of data model based on this external datasource
========================================
ADC Server exception in OpenViewset().
Details <<
ADC Server exception in OpenViewset().
Source: "ActiveDataCache" ID: "ADCServerException"
ERROR [08001] [Microsoft][ODBC driver for Oracle][Oracle]ORA-12154: TNS:could not resolve the connect identifier specified ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed ERROR [01000] [Microsoft][ODBC Driver Manager] The driver doesn't support the version of ODBC behavior that the application requested (see SQLSetEnvAttr).
Source: ""
Internal debugging information >>
Oracle.BAM.ActiveDataCache.Common.Exceptions.CacheException: ADC Server exception in OpenViewset(). ---> System.Data.Odbc.OdbcException: ERROR [08001] [Microsoft][ODBC driver for Oracle][Oracle]ORA-12154: TNS:could not resolve the connect identifier specified
ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
ERROR [01000] [Microsoft][ODBC Driver Manager] The driver doesn't support the version of ODBC behavior that the application requested (see SQLSetEnvAttr).
at System.Data.Odbc.OdbcConnection.Open()
at Oracle.BAM.ActiveDataCache.ExternalDataSources.ODBC.Open(String strXml)
at Oracle.BAM.ActiveDataCache.Kernel.Datasets.ExternalStorageEngine.GetDataReader(DSEQuery oDseQuery)
at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.Utilities.ExternalData.DataImporter.ExecuteQuery()
at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.Utilities.ExternalData.ExternalDataManager.ImportExternalData(String strDatasetID, String strTempName, FilterExpression filter)
at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.Utilities.ExternalData.ExternalDataManager.ImportExternalFactData()
at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.Utilities.ExternalData.ExternalDataManager.GetExternalData()
at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.Viewset.LoadData()
at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.ViewsetBase.Initialize()
at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.Viewset.Initialize()
at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.ViewsetBase.Open()
at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.ViewsetManager.InitViewset(Modifier oModifier, ViewsetOptions oViewsetOptions, Boolean bSynchronized, Int32 iTransactionID)
at Oracle.BAM.ActiveDataCache.Kernel.Viewsets.ViewsetManager.OpenViewset(Modifier modifier, ViewsetOptions options, Int32 iTransactionID)
at Oracle.BAM.ActiveDataCache.Kernel.Server.DataStoreServer.OpenViewset(Modifier modifier, ViewsetOptions options, Int32 iTransactionID)
--- End of inner exception stack trace ---
Server stack trace:
at Oracle.BAM.ActiveDataCache.Kernel.Server.DataStoreServer.OpenViewset(Modifier modifier, ViewsetOptions options, Int32 iTransactionID)
at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(MethodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Oracle.BAM.ActiveDataCache.Common.Core.IDataStore.OpenViewset(Modifier oModifier, ViewsetOptions options, Int32 iTransactionID)
at Oracle.BAM.ActiveDataCache.Remoting.ServerWrapper.OpenViewset(Modifier oModifier, ViewsetOptions options, Int32 iTransactionID)
at Oracle.BAM.ActiveDataCache.Viewset.Open(Context ctxAdcContext, Modifier oModifier, ViewsetOptions options)
at Oracle.BAM.Architect.DataObjectsContents.InternalContentsByRowID(String strEventParam, Boolean bEdit, Int64 lHighlightRowID, Boolean bAddBegin)
==========================================================Dear, I am facing that problem and I need some help. please tell me how the issue was resolved
-
TNS Error: ORA-12541: TNS: no listener.
I have installed Oracle 9i on machine in Windows XP. When I try to open the database SID in the Enterprise Manager, it gives me TNS Error: ORA-12541: TNS: no listener.
I have checked the Oracle Net Configuration:
Protocol: TCP/IP
Host: PNR18
Port: 1521
In the xp administrative tools, I found that the listener is on start.
When I try to test trough ' Net Configration Assistant' getting same error, similarly with Net Manager.
I don't know if I am using the correct protocol in my case of standalone installation.
Any advice/correction? it would be appreciated. I am giving all the information of TNSNAMES.ORA, LISTENER.ORA, SQLNET.ORA, which is on my machine.
Thanks in advance.
# LISTENER.ORA Network Configuration File: #C:\oracle\ora90\network\admin\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = PNR18)(PORT = 1521))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\ora90)
(PROGRAM = extproc)
# TNSNAMES.ORA Network Configuration File: #C:\oracle\ora90\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = PNR18)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ORCL)
# SQLNET.ORA Network Configuration File:
#C:\oracle\ora90\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)First of all Thanks for suggestions for solutions but still SAME PROBLEM:
Case-1::
I tried according to your suggestion, still SAME error !! I have also configured new DB
with Enterprise MAnager Configuration Assistent - during DB creation same error occured.
1) I have seen in XP service where all listener is running as well as OracleServiceORCL
is also running.
2) OracleOraHome90TNSListener also running with other listeners!
Case-2::
Dear I also delete listener and create new one and also configured Database Description
and tried to do so but still same problem while I am TESTing it with - Net Manager /
Net Configuration Assistant. I have also tried
C:\TNSPING ORCL - it is giving 'ok' result
but when I am using C:\LSNRCTL START listener - it gives me following errors.
Service OracleOraHome90TNSListener already running.
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
32-bit Windows Error: 1056: Unknown error
Thats the whole story....hope this time you will find easy to give solution.
All files after your suggestion are as follow:
# TNSNAMES.ORA Network Configuration File: C:\oracle\ora90\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = PNR18)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ORCL)
# LISTENER.ORA Network Configuration File: C:\oracle\ora90\network\admin\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = PNR18)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = C:\oracle\ora90)
(SID_NAME = ORCL)
(SID_DESC =
(PROGRAM = extproc)
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\ora90)
# SQLNET.ORA Network Configuration File: C:\oracle\ora90\NETWORK\ADMIN\sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.PREFERRED_SERVERS =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = PNR18)(PORT = 1521))
SQLNET.AUTHENTICATION_SERVICES= (NTS) -
OBIEE 11g : Report throwing TNS Error
Hi,
We have installed OBIEE 11g in Linux server. After replacing the Out-of-the-box RPD.
The reports are throwing following TNS Error:
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65PState: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 17001] Oracle Error code: 12154, message: ORA-12154: TNS:could not resolve the connect identifier specified at OCI call OCIServerAttach. [nQSError: 17014] Could not connect to Oracle database. (HY000)SQL Issued: SELECT 0 s_0, "Assets"."Product"."Product" s_1 FROM "Assets" FETCH FIRST 65001 ROWS ONLY
What configurations we need to re-check?
Regards
SudiptaHI,
Please cross check you rpd connection pool details in physical layer like below.
Data source name
Username and password
Or,
Login Weblogic Console with admin username/pwd.
Goto Services -> JDBC -> Data Sources.
Select Lock & Edit button
Select Data Source "bip_datasource" link in the available Data Sources list
Select Connection Pool tab
.... Change the URL|Driver|Properties|Password
Select Save button.
OR,
you have to go to WEblogic Enterprise Manager (http://<server>:7001/em/. Then go to Business Intelligence folder -> coreapplication. Go to "Deployment" tab and then to "Scheduler" tab. Change the database field to point to the new DB and apply changes.
Or,
Please check Database services running or not including TNS listner service also.
Hope this helps.
Thanks
Satya -
Oracle text error when generating random rows
Hello
firing
SELECT *
FROM
SELECT NAME,EMAIL,ADDRESS1,ADDRESS2,CONTACT_NAME,MOBILE,TELEPHONE FROM MV_CAT_SEG_REG_PROD
WHERE CATSEARCH(CAT_TYPES,'security services*' ,NULL)>0 AND
PLAN_ID=1 AND ACT_STATUS='N'
ORDER BY DBMS_RANDOM.VALUE
where rownum < 4;
returns
ORA-20000: Oracle Text error:
DRG-10849: catsearch does not support functional invocation
DRG-10599: column is not indexed
20000. 00000 - "%s"
*Cause: The stored procedure 'raise_application_error'
was called which causes this error to be generated.
*Action: Correct the problem as described in the error message or contact
the application administrator or DBA for more information.
using oracle 10gr2 on windows server 2003
i have tried 1)dropping the index and creating it again, the index type is "CTXSYS"."CTXCAT"
2) deleting the stats -checking
3)recreating the stats- checking
the table here is a materialized view
i need to tell you people that
there are two indexes cat_types_ind and cat_ids_idx on cat_types and cat_ids columns respectively
the inner query uses cat_types_idx index when executed and seen in sqladvisor
1)removing the order by clause will make the query work but i really want that order by clause
2)the inner-query-only works fine
3) i have seen the forums and they have helped regarding the things i tried above but it does not work
please tell me if i need to further elaborate on anything
thanks in advanceI have same problem, my query is:
SELECT *
FROM
(SELECT
/*+ FIRST_ROWS(50) */
NTQ.*,
ROWNUM RNUM1
FROM
(SELECT
/*+ INDEX(DL_TSD_DEFTR_CI) */
FROM ima_ol.DL_TSD_SITUATION s
WHERE (CATSEARCH(DEF_TRANS,'milano ',NULL)>0)
AND (s.FORECAST = 0)
AND (s.STATE IN (1,0,4))
AND (s.ARCH_STATE = 0)
ORDER BY s.VET_TS DESC
) NTQ
WHERE ROWNUM <=50
WHERE RNUM1 >=1
my oracle and system version:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
"CORE 11.1.0.7.0 Production"
TNS for Solaris: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production
I have suggested that to solve the problem I should alter the statistics of the offending table to force to use this index .. how do I do? thanks in advance -
Hi
I am getting tns error below .we noticed that queries are disconnecting in between execution with ora-3113 error.I am getting error in sqlnet.log in server side
VERSION INFORMATION:
TNS for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Production
TCP/IP NT Protocol Adapter for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Production
Time: 16-MAR-2008 20:32:42
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=XXXXX)(PORT=XXXX))
AND CLIENT SIDE
Fatal NI connect error 12560, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleORCL)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=XXXX)(CID=(PROGRAM=C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE)(HOST=XXXXXX)(USER=XXXX))))
VERSION INFORMATION:
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter 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: 17-MAR-2008 08:49:00
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: 126
nt OS err code
Anybody who have been sorted out these errors please let me know.
thanksProtocol adapter error is either a missconfigured environment or a network related error. In your case, since you are working with a windows platform and there are other errors related to time out, I suggest you to verify the windows firewall, it could be preventing database from being reached by the oracle client.
~ Madrid
http://hrivera99.blogspot.com/ -
Hi,
I installeed 11.2g and when I try login I have got error TNS error adapter. My file
tnsname
# tnsnames.ora Network Configuration File: F:\app\Mariano\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)
listener
# listener.ora Network Configuration File: F:\app\Mariano\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 = F:\app\Mariano\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:F:\app\Mariano\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 = F:\app\Mariano
sqlnet
# sqlnet.ora Network Configuration File: F:\app\Mariano\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)
I try :
lsnrctl stat
sqlplus / as sysdba
startup
but still doesn't workC:\Documents and Settings\Mariano>set|sort
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\Mariano\Dane aplikacji
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=MARIUSZ
ComSpec=C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOME=C:\cygwin\mariusz
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\Mariano
LOGONSERVER=\\MARIUSZ
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
Path=F:\app\Mariano\product\11.2.0\dbhome_1\bin;C:\oraclexe\app\oracle\produc
0.2.0\server\bin;C:\Program Files\PC Connectivity Solution\;C:\WINDOWS\system
C:\WINDOWS;C:\WINDOWS\System32\Wbem
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0f0d
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\Mariano\USTAWI~1\Temp
TMP=C:\DOCUME~1\Mariano\USTAWI~1\Temp
USERDOMAIN=MARIUSZ
USERNAME=Mariano
USERPROFILE=C:\Documents and Settings\Mariano
VBOX_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\
windir=C:\WINDOWS
C:\Documents and Settings\Mariano>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Wt Kwi 17 19:59:29 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-12560: TNS:b│╣d adaptera protoko│u
Proszŕ podaŠ nazwŕ u┐ytkownika:
OK, I see that I haven't got ORACLE_HOME and ORACLE_SID. How create them?
Edited by: user8894354 on 2012-04-17 11:00 -
ORA-12560 TNS error in protocol adapter. Why ?
I installed on computer1 an Oracle Express 10g server and he runs fine.
Then, on another computer2 in the inhouse-net I installed the Oracle Client.
When I try to contact now from computer2 the Oracle server on computer1
with e.g.
sqlplus.exe myname/mypasswd
I am getting an error ORA-12560: TNS: Error in protofol adapter.
What does that mean?When I enter the same locally on the server machine everything is fine.
Firewalls between the computers are disabled.
Which Oracle services must run on the client (not the server !) machine ?Ok, my Oracle Client is installed in C:\XEClient
Below I show you the (recursive) output of the 'tree.exe' command (under WinXP)
of the folder tree of C:\XEClient. Where is the directory "network/admin" ??????
C:\XEClient>tree
Folder PATH listing for volume WinXP
Volume serial number is xxxxxxxx
C:.
├───bin
├───doc
├───jdbc
│ └───lib
├───jlib
├───lib
├───oci
│ ├───include
│ ├───lib
│ │ └───msvc
│ │ └───vc71
│ └───samples
├───odbc
│ ├───help
│ └───html
├───odp.net
│ ├───doc
│ ├───help
│ │ └───ja
│ ├───PublisherPolicy
│ ├───Resources
│ │ ├───de
│ │ ├───es
│ │ ├───fr
│ │ ├───it
│ │ ├───ja
│ │ ├───ko
│ │ ├───pt-BR
│ │ ├───zh-CHS
│ │ └───zh-CHT
│ └───samples
│ ├───ArrayBind
│ ├───AssocArray
│ ├───DataSet
│ │ ├───DMLOperOnDS
│ │ │ ├───doc
│ │ │ │ └───images
│ │ │ ├───setup
│ │ │ └───src
│ │ ├───DSDRwithLOB
│ │ │ ├───doc
│ │ │ │ └───images
│ │ │ ├───setup
│ │ │ └───src
│ │ ├───DSPopulate
│ │ │ ├───doc
│ │ │ │ └───images
│ │ │ ├───setup
│ │ │ └───src
│ │ ├───DSPopulateVB
│ │ │ ├───doc
│ │ │ │ └───images
│ │ │ ├───setup
│ │ │ └───src
│ │ ├───DSwithRefCur
│ │ │ ├───doc
│ │ │ │ └───images
│ │ │ ├───setup
│ │ │ └───src
│ │ ├───RelationalData
│ │ │ ├───doc
│ │ │ │ └───images
│ │ │ ├───setup
│ │ │ └───src
│ │ ├───RelationalDataVB
│ │ │ ├───doc
│ │ │ │ └───images
│ │ │ ├───setup
│ │ │ └───src
│ │ └───SafeTypeMapping
│ │ ├───doc
│ │ │ └───images
│ │ ├───setup
│ │ └───src
│ ├───EventHandler
│ │ └───RowUpdateEventHandler
│ │ ├───doc
│ │ │ └───images
│ │ └───src
│ ├───Globalization
│ │ ├───doc
│ │ │ └───images
│ │ ├───setup
│ │ └───src
│ ├───LOB
│ │ ├───AccessBFile
│ │ │ ├───doc
│ │ │ │ └───images
│ │ │ └───src
│ │ └───UpdLob
│ │ ├───doc
│ │ │ └───images
│ │ ├───setup
│ │ └───src
│ ├───RefCursor
│ │ └───UpdRefCursor
│ │ ├───doc
│ │ │ └───images
│ │ └───src
│ ├───StatementCache
│ ├───TAF
│ │ ├───doc
│ │ │ └───images
│ │ ├───setup
│ │ └───src
│ ├───Transaction
│ │ ├───DistributedTransaction
│ │ │ ├───doc
│ │ │ │ └───images
│ │ │ ├───setup
│ │ │ └───src
│ │ └───Savepoint
│ │ ├───doc
│ │ │ └───images
│ │ ├───setup
│ │ └───src
│ ├───WebService
│ │ └───OdpNetWs
│ │ ├───doc
│ │ │ └───images
│ │ └───src
│ │ ├───client
│ │ └───webservice
│ └───XML
│ ├───XMLView
│ │ ├───doc
│ │ │ └───images
│ │ ├───setup
│ │ └───src
│ └───XMLViewVB
│ ├───doc
│ │ └───images
│ ├───setup
│ └───src
├───oledb
│ ├───include
│ ├───lib
│ └───samples
│ ├───DataSet
│ │ ├───DMLOperOnDS
│ │ │ ├───doc
│ │ │ │ └───images
│ │ │ ├───setup
│ │ │ └───src
│ │ ├───DSPopulate
│ │ │ ├───doc
│ │ │ │ └───images
│ │ │ ├───setup
│ │ │ └───src
│ │ ├───DSPopulateVB
│ │ │ ├───doc
│ │ │ │ └───images
│ │ │ ├───setup
│ │ │ └───src
│ │ ├───DSwithLOB
│ │ │ ├───doc
│ │ │ │ └───images
│ │ │ ├───setup
│ │ │ └───src
│ │ └───DSwithRefCur
│ │ ├───doc
│ │ │ └───images
│ │ ├───setup
│ │ └───src
│ └───RefCur
├───oramts
│ ├───admin
│ ├───public
│ └───trace
├───precomp
│ ├───admin
│ └───lib
└───sqlplus
C:\XEClient> -
Receive TNS error when trying to upgrade DB
I receive a TNS error when I try to upgrade a database using the Database Upgrade Assistant. I want to upgrade to 9.2 from 8.1.7. When I click on the database I want to upgrade I receive the TNS error. It never prompts for a username/password@cstring.
I am trying to run this through Windows Terminal Service, is this the problem? I know there are issues trying to run server manager through WTS.
Thanks,
JimI'm new to this, but between Oracle 9.0 and 9.2 the required format appears to have changed for the "TNS Service Name" parameter for a "System DSN" in the Windows "ODBC Data Source Administrator". In 9.0 the "TNS Service Name" can be in either of two formats: global_database_name OR oracle_home$global_database_name. One can verify this by clicking the "Test Connection" button on the the "Oracle ODBC Driver Configuration" screen from the "ODBC Data Source Administrator" window. On a 9.2 system only the first format works. I tested this on freshly-installed systems, each with just one Oracle home and the default sample database.
Perhaps this is related to the problem you are encountering. I was able to fix a problem connecting to 9.2 by changing the "TNS Service Name" parameter. The error I was receiving was: "[Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve service name".
Can anyone point me to some documentation on this apparent change between 9.0 and 9.2? Thanks in advance. -
Discoverer desktop installation on Windows 7 64 OS XP Mode TNS error
I have installed discoverer administrator and desktop in XP Mode on a Windows 7 64 OS. I downloaded the install from Oracle Discoverer 11g Fusion Middleware. I am using XP mode because I believe there is no download for the 64 bit OS in the Windows environment. I have had no trouble with the installation. The trouble comes when trying to connect to a database. I get a TNS error.
I have edited the environmental variable to include tns names. I am able to connect to a database on the network via sql developer but not with discoverer.
One needs to run the xp application within the Windows 7 environment. I have included the environmental variable in both environments (xp virtual and Windows 7) and am 0% successful with discoverer and 100% successful with sql in seeing the database.
Any technical advice?I am indebted to Praveen Deshpande for this :
You need to create a Windows environment variable TNS_ADMIN that points to the directory where the correct Tnsnames.ora file is held.
On my system, I went to 'Computer - System Properties - Advanced - Environment Variables", created an environment variable TNS_ADMIN and set its value to C:\oraclexe\app\oracle\product\11.2.0\server\network\ADMIN
Check where your server or other tnsnames file is stored and set the corresponding value.
Then it all worked perfectly. -
ORA_-12560: TNS :ERROR by Protokoladapter
Hi,
I've tried to Connect PHP and Oracle,but I'd get this error
ERROR: Nr12560
ORA-12560: TNS: Error by Protocolladapter
my Script in PHP is als fallow and this is only for the connection to Oracle.
<?php
// Datenbank verbindug zu Oracle wifi
//$wifi ="";
$co = @ocilogon("hr8","hr8");
$sql = 'select * from jobs';
//Fehler ausgeben
if(!$co)
$fehler =ocierror();
echo('<p>Fehler Nr');
echo($fehler ['code']);
echo('<br>');
echo($fehler ['message']);
die();
else
//die datenbank ansprechen
echo('Verbunden mit'.ociserverversion($co).'<br>');
//$result= prüfen($co,$sql);
// die Verbindung schliessen
ocilogoff($co);
?>
I use Windows XP Prof. ,and I have my DataBase running when I 'd try to do the connection to Oracle .
Please I need a fast answer.
Regards
CARLOS
Hi ;
is there anyone who can help me this ERROR to resolve.
First of all, I use Windows XP system and I tried to connect PHP to Oracle 10g DataBase.But I'd get the ERROR ABOVE.
I've installed PHP 5 Editor 5.0.3 und XAMPP for the connection to Oracle Database . The Database is running When I 'd try the connection between both of them. The PHP script looks like this;:
<?php
// Datenbank verbindug zu Oracle wifi
$co = @ocilogon('hr8','hr8') ; // this is a String with 'username' and 'PSW'
$sql = 'select * from jobs';
//Fehler ausgeben
if(!$co)
$fehler =ocierror();
echo('<p>Fehler Nr');
echo($fehler ['code']);
echo('<br>');
echo($fehler ['message']);
die();
else
//die datenbank ansprechen
echo('Verbunden mit'.ociserverversion($co).'<br>');
// $result= prüfen($co,$sql);
// die Verbindung schliessen
ocilogoff($co);
?>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
I' need an answer as soon as possible.
Thanks.
Greetings
CARLOS -
Hello, I am getting this pesting TNS error when running IMP and EXP from the server. I can successfully run sqplus on the server and across the net.
IMP 00058 - Oracle error 12560
ORA 12560 - TNS: Protocol Adapter Error
What gives?
ScottHi Ken, thanks for the reply. These look like Unix vars. Are they? I am running it under NT in a DOS shell. Do these exist elsewhere?
Incidently, I am in the process of installing OMS and getting a simliar error when creating the Repository.
ORA 12571 TNS Packet Writer Error.
Thanks again. -
TNS Error while connecting to Documentum Repository
Dear all,
The Oracle TNS Listener in Windows Services, is getting stopped and the Error is thrown while connecting to Documentum Content Management Repository :-
Tue Mar 09 05:55:31 2010[DM_STARTUP_I_DOCBASE_OWNER_NOT_FOUND]: The database user (NR_GlobalRepo) is not a valid NT User. This is the user specified in your server.ini file as the database_owner attribute. If you are running the optional Replication Services package you will need to create a valid NT User account for this user.
EMC Documentum Content Server (version 6.5.0.117 SP1 Win32.Oracle)
(c) Copyright EMC Corp., 1991 - 2008
All rights reserved.
Tue Mar 09 05:55:31 2010 046000 [DM_SERVER_I_START_SERVER]info: "Docbase NR_GlobalRepo attempting to open"
Tue Mar 09 05:55:31 2010 046000 [DM_SERVER_I_START_SERVER]info: "Docbase NR_GlobalRepo process identity: user(Administrator), domain(company-2q9d7i)"
Tue Mar 09 05:55:31 2010 296000 [DM_SESSION_I_RETRYING_DATABASE_CONNECTION]info: "The following error was encountered trying to get a database connection: ORA-12532: TNS:invalid argument
The server will retry 9 more time(s) (every 30 seconds)."
Tue Mar 09 05:56:01 2010 406000 [DM_SESSION_I_RETRYING_DATABASE_CONNECTION]info: "The following error was encountered trying to get a database connection: ORA-12532: TNS:invalid argument
The server will retry 8 more time(s) (every 30 seconds)."
Tue Mar 09 05:56:31 2010 515000 [DM_SESSION_I_RETRYING_DATABASE_CONNECTION]info: "The following error was encountered trying to get a database connection: ORA-12532: TNS:invalid argument
The server will retry 7 more time(s) (every 30 seconds)."
Tue Mar 09 05:57:01 2010 625000 [DM_SESSION_I_RETRYING_DATABASE_CONNECTION]info: "The following error was encountered trying to get a database connection: ORA-12532: TNS:invalid argument
The server will retry 6 more time(s) (every 30 seconds)."
Tue Mar 09 05:57:31 2010 734000 [DM_SESSION_I_RETRYING_DATABASE_CONNECTION]info: "The following error was encountered trying to get a database connection: ORA-12532: TNS:invalid argument
The server will retry 5 more time(s) (every 30 seconds)."
Tue Mar 09 05:58:01 2010 843000 [DM_SESSION_I_RETRYING_DATABASE_CONNECTION]info: "The following error was encountered trying to get a database connection: ORA-12532: TNS:invalid argument
The server will retry 4 more time(s) (every 30 seconds)."
Tue Mar 09 05:58:31 2010 953000 [DM_SESSION_I_RETRYING_DATABASE_CONNECTION]info: "The following error was encountered trying to get a database connection: ORA-12532: TNS:invalid argument
The server will retry 3 more time(s) (every 30 seconds)."
Tue Mar 09 05:59:02 2010 062000 [DM_SESSION_I_RETRYING_DATABASE_CONNECTION]info: "The following error was encountered trying to get a database connection: ORA-12532: TNS:invalid argument
The server will retry 2 more time(s) (every 30 seconds)."
Tue Mar 09 05:59:32 2010 171000 [DM_SESSION_I_RETRYING_DATABASE_CONNECTION]info: "The following error was encountered trying to get a database connection: ORA-12532: TNS:invalid argument
The server will retry 1 more time(s) (every 30 seconds)."
Tue Mar 09 06:00:02 2010 281000 [DM_SESSION_E_CANT_MAKE_TEMP_CONNECTION]error: "Could not establish an internal, temporary database connection (database_name = , docbase_owner = NR_GlobalRepo, connection_string = ORCL); database system error was: ORA-12532: TNS:invalid argument
Please suggest a possible solution.
Thanks & Regards
Saswata Mandal.Tue Mar 09 05:55:31 2010[DM_STARTUP_I_DOCBASE_OWNER_NOT_FOUND]: The database user (NR_GlobalRepo) is not a valid NT User. This is the user specified in your server.ini file as the database_owner attribute. If you are running the optional Replication Services package you will need to create a valid NT User account for this user.
Maybe you are looking for
-
Weird bug? Transparent background is black instead of checkerboard in RGB mode
If I try to make a new RGB document with the Background Contents set to Transparent the canvas is filled with black instead of the checkboard pattern. However over in the Layers window the little icon for the layer shows it as transparent with the c
-
Can I capture field names from DW recordset?
ie, can i dynamically generate an array with FieldName->FieldValue? TIA, Jon Parkhurst PriivaWeb http://priiva.net.
-
How to Show a FrameView,?
How to show, a FrameView, from other window, Please respond, ( I import from other project the frameview )
-
I am really stupid of this right now. Have not tried the regular SQL for long time, so my question is that I have a table- Cost A B C D E F 0002 6002 5 55 68.35 6.12 0003 6003 5 99.26 89.33
-
MS Office Export/Import to Excel
Do we have standard API to implement export/import functionality for MS Excel 2007. I am not sure if JXL/HSSF or any other APIs have come up for this new version of excel. Any thoughts?