ORA-12504 in an Oracle 9.2.0.1 RAC setup
Hi I keep getting the following error when connecting to either nodes in a RAC setup:
ORA-12504: TNS:listener was not given the SID in CONNECT_DATA
I tried different permutations for the tnsnames.ora but keep getting this error. Does anybody know how to fix this problem?
Here's my tnsnames.ora entries:
LISTENERS_dotbk =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL= TCP)(Host= srvrwin.corp.wassup.com)(Port= 1521))
(ADDRESS = (PROTOCOL= TCP)(Host= srvrtwo.corp.wassup.com)(Port= 1526))
LISTENER1_dotbk1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL= TCP)(Host= srvrwin.corp.wassup.com)(Port= 1521))
LISTENER2_dotbk2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL= TCP)(Host= srvrtwo.corp.wassup.com)(Port= 1526))
dotbk1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL= TCP)(Host= srvrwin.corp.wassup.com)(Port= 1521))
(CONNECT_DATA = (SERVICE_NAME = dotbk1)(INSTANCE_NAME = dotbk1))
dotbk2 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL= TCP)(Host= srvrtwo.corp.wassup.com)(Port= 1526))
(CONNECT_DATA = (SERVICE_NAME = dotbk2)(INSTANCE_NAME = dotbk2))
Hi Carsten
Thanks for the response. My versions of OWB are the same it's just the database versions that are different.
I ended up opening an SR but since the version is so old there wasn't much help except to try and apply the 10.1.0.5 OWB patch and cross my fingers.
I think I'll just end up putting the new repository in a different Oracle 10g database.
Thanks again for your help.
-gary
Similar Messages
-
ORA-12505 error with oracle 11.2.0.2 RAC Grid
Hi,
We have just installed Oracle 11.2.0.2 with oracle clusterware. Every thing went well during the installation, How ever after install we can not connect to the RAC instance from clients, through jdbc OR oracle sql developer.
We get following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor.
After the installation we created service (myrac) through OEM Cluster Managed Database Services tab. and We are using service name as following:
jdbc:oracle:thin:@orap-cluster.mydomain.com:1521:myrac
Here below is Service TNS string:
myrac = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = orap-cluster.mydomain.com)(PORT = 1521))(LOAD_BALANCE = YES)(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = myrac)))
Any help..??
CheersHI,
to clarify:
if you try with
<SERVER>:<PORT>:<SID> you are accessing the server with a database SID, whereas
<SERVER>:<PORT>/<SERVICE> will access a service.
The SCAN Listener only know of services, and not of database SIDs.
This is the reason you should always create separate services for your RAC databases, since only they are registered. If you connect via. a service the listener will forward you to (one of) the corresponding instances servicing the service.
Database SIDs are only known to the local listener on the node (not to the SCAN listener). And SIDs actually should not be used anymore.
However if you still need to access the SID you can use the virtual hostname of the server resp. the VIP address of the server in the connection and this will work:
<VIP>:<PORT>:<SID>
Note the SID of a RAC database is either myrac1 or myrac_1 (depending on administrator or policy managed database).
I still would recommend using services and not SIDs.
Furthermore the SCAN can only be resolved correctly by 11.2 clients.
Any pre 11.2 client should use an address_list containing the SCAN VIPs:
PRE112 =
(DESCRIPTION =
(LOAD_BALANCE=ON)
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.41)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.42)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.43)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = pre112)
If a application server does not understand / then try using the TNSNAMES entry directly:
jdbc:oracle:thin:@(DESCRIPTION = (LOAD_BALANCE=ON)(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.41)(PORT = 1521))(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.42)(PORT = 1521))(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.43)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = pre112)))
Hope that helps
Regards
Sebastian -
Dear Friends,
I am using OCI and instant_client (11.2.0.3.0) in my C++ program (on Windows 7) to connect remotely to 11G database.
While doing a connection using server name as well as servername:port/service_name as connection strings, I am getting error of ORA-12504 TNS:listener was not given the SERVICE_NAME in CONNECT_DATA.
According to instant client FAQ & white paper at http://www.oracle.com/technetwork/database/features/instant-client/index.html, no tnsnames.ora is required for instant client. Then why could I be getting this error?
I ensured that only the instant client directory is in Path environment variable. There was a ODBC driver installed on this same host. Could that be modifying the behavior of instant client?
Kindly guide.
Many thanks in advance for your help and time.
Best Regards,
- ganesh>>what is the exact connect string you are using?
For connection, I am using the plain hostname on which the DB server is running.
>>are you calling OCIServerAttach before OCISessionBegin?
I am not using OCISessionBegin. For connecting to DB server, I am using the following sequence of OCI calls (in this same order):
1) g_OCIEnvNlsCreate
2) g_OCIHandleAlloc //-- error handle: OCI_HTYPE_ERROR
3) g_OCIHandleAlloc // --- sevice context: OCI_HTYPE_SVCCTX
4) Setting driver name and application name for the session:
OCISession* usersession = 0;
ret = g_OCIAttrGet(m_pSvcCtx, OCI_HTYPE_SVCCTX, &usersession, NULL,
OCI_ATTR_SESSION, m_pErrHdl);
if (ret == OCI_SUCCESS)
ret = g_OCIAttrSet(usersession, OCI_HTYPE_SESSION, (void*)"OCI_DRV", 2,OCI_ATTR_DRIVER_NAME, m_pErrHdl);
ret = g_OCIAttrSet(usersession, OCI_HTYPE_SESSION, (void*)"ClientApplication", <ub4>(strlen("DataReconScanning")), OCI_ATTR_CLIENT_IDENTIFIER, m_pErrHdl);
5) g_OCILogon() using the user, password and host name, as below:
g_OCILogon(m_pDbCon, m_pErrHdl, &m_pSvcCtx,
(text*)user.c_str(), static_cast<ub4>(user.length()),
(text*)pass.c_str(), static_cast<ub4>(pass.length()),
(text*)host.c_str(), static_cast<ub4>(host.length()));
Thanks. -
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
ACID25Hi,
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 -
Hyperion FDM and ERPi 11.1.2.2: ORA-12504 on Import with ERPI-FIN-E
Hi everyone,
We are implementing Hyperion 11.1.2.2 FDM with HFM (Target Adapter = FM11X-G6-A) and ERPi (Source Adapter = ERPI-FIN-E) running on ODI 11.1.1.6. Backend databases are all Oracle DBs. We have been able to successfully configure ERPi and ODI & successfully run a Data Load Rule with all green checks in ODI Operator. We have also successfully tested the full FDM workflow with load to HFM using the traditional flat file method.
We have also setup an FDM Location and Import Format (File Type = Adapter; Adapter = ERPI-FIN-E) for use with the ERPI Source Adapter. When kicking off an Import either manually via FDM Web or via Batch Loader, we are getting a grey fish, Information Bar with "Error: Import failed. Invalid Data or Empty content", and pop-up error dialog displaying "ORA-12504: TNS: Listener was not given the SERVICE_NAME in CONNECT_DATA.
While previous versions of ERPi Source Adapter have the "ERPi Database Server/Service" option, ERPI-FIN-E does not have this option. Additionally, we have tested the TNSNames.ora files SID's with SQL Developer and SQL Plus and they all seem to be working.
Has the "ERPi Database Server/Service" option moved somewhere behind the scenes? Another options or DBLink that needs to be setup somewhere else? Any thoughts or assistance would help.
Thank you.
Contents of ERPI-FIN-E.log is below:
*** 1/22/2013 9:30:01 AM ***
LoggedInUser = +redacted+
Token = iZKY0Aj/AeTH9AV6F/k980xCFWDzrk5im3n2E0SnmNg6c/fNa/XjSfSU6+wemuIo3IQdzrUlhAj8
M9J9SJpU5TvCibwJZaUJOh3nlA83UlfKOHpUC7oPGOqhedu+XIPbMC022Ftcb4LexFa/M1R6Rw1h
4D7nbb0nLQv/viNdZyXzORrXzKD41ljWAnw/J/R84ZYt3yHyjxI2KBz6f7x9FKyfNnD5XJuR+50y
klV8tjlLY6EvfKyiv/ecSanQuWeA1p2D8MBIFUftHtqgnbABXOEyRll4kT9yaPUaClpvLDaD7knt
iBUSXU1fIOoKuHtrrD4XCvjMKcowWv/SnLIrbkn2HXotkKwqCulHx2is6yWnJfni96tZGvG8z4ds
WRgm7tsJRV12Tp5zeNLSxZTZoK/5AMCdN5MC6u88G59prlI=
ERPIdbConnString = Oracle://EPMD1.ges.+redacted+.com:1521/EPMD1
m_ERPIdbUserID = ERPI
ERPIdbPassword.Length = 6
*** 1/22/2013 9:30:17 AM ***
PeriodKey = 11/30/2012 12:00:00 AM
PriorPeriodKey = 10/31/2012 12:00:00 AM
Rule Name = DLR_1
Execution Mode = FULLREFRESH
executeRule...OK.
*** 1/22/2013 9:30:17 AM ***
System.Runtime.InteropServices.COMException (0x80040E14): ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
at ADODB.ConnectionClass.Execute(String CommandText, Object& RecordsAffected, Int32 Options)
at fdmErpiFin_E.clsDW.fTransferData(String strSQL, Int64& lngRecAffected)
-----------------------------------------------------------------------------Below are the contents of the "E:\Oracle\product\11.2.0\client_32\network\admin" and "E:\Oracle\product\11.2.0\client_64\network\admin" folders on application server. EPMD1 = ERPi, HFMD1 = HFM, FDMD1 = FDM, EPMD5 = R12.
Since we are able to connect via SQL Developer and SQL Plus to EPMD1, I believe these settings are OK, but open to additional checks if suggested.
EPMD1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = EPMD1.ges.+redacted+.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = EPMD1.ges.+redacted+.com)
HFMD1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = HFMD1.ges.+redacted+.com)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = HFMD1.ges.+redacted+.com)
FDMD1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = FDMD1.ges.+redacted+.com)(PORT = 1523))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = FDMD1)
EPMD5 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = tus1ebsdbsdin11.ges.+redacted+.com)(PORT = 15212))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = EPMD5.ges.+redacted+.com)
) -
I recently installed Oracle XE 11g
Windows 7 PRO x64
this are the installation data:
Destination Folder: C:\oraclexe\
Oracle Home: C:\oraclexe\app\oracle\product\11.2.0\server\
Oracle Base:C:\oraclexe\
Port for 'Oracle Database Listener': 1521
Port for 'Oracle Services for Microsoft Transaction Server': 2030
Port for 'Oracle HTTP Listener': 8080
When I tried to connect
SQL*Plus: Release 11.2.0.2.0 Production on Fri Sep 5 14:57:39 2014
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL> connect
Enter user-name: system
Enter password:
ERROR:
ORA-12560: TNS:protocol adapter error
SQL> connect
Enter user-name: system@jmontoyaz
Enter password:
ERROR:
ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
SQL>
Any clue?C:\Users\jmontoyaz>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.2.0 Production on Fri Sep 5 17:07:05 2014
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-12560: TNS:protocol adapter error
Enter user-name:
ERROR:
ORA-12560: TNS:protocol adapter error
Enter user-name:
ERROR:
ORA-12560: TNS:protocol adapter error
SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
C:\Users\jmontoyaz>sqlplus / as sysdba startup
SQL*Plus: Release 11.2.0.2.0 Production
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Use SQL*Plus to execute SQL, PL/SQL and SQL*Plus statements.
Usage 1: sqlplus -H | -V
-H Displays the SQL*Plus version and the
usage help.
-V Displays the SQL*Plus version.
Usage 2: sqlplus [ [<option>] [{logon | /nolog}] [<start>] ]
<option> is: [-C <version>] [-L] [-M "<options>"] [-R <level>] [-S]
-C <version> Sets the compatibility of affected commands to the
version specified by <version>. The version has
the form "x.y[.z]". For example, -C 10.2.0
-L Attempts to log on just once, instead of
reprompting on error.
-M "<options>" Sets automatic HTML markup of output. The options
have the form:
HTML [ON|OFF] [HEAD text] [BODY text] [TABLE text]
[ENTMAP {ON|OFF}] [SPOOL {ON|OFF}] [PRE[FORMAT] {ON|OFF}]
-R <level> Sets restricted mode to disable SQL*Plus commands
that interact with the file system. The level can
be 1, 2 or 3. The most restrictive is -R 3 which
disables all user commands interacting with the
file system.
-S Sets silent mode which suppresses the display of
the SQL*Plus banner, prompts, and echoing of
commands.
<logon> is: {<username>[/<password>][@<connect_identifier>] | / }
[AS {SYSDBA | SYSOPER | SYSASM}] [EDITION=value]
Specifies the database account username, password and connect
identifier for the database connection. Without a connect
identifier, SQL*Plus connects to the default database.
The AS SYSDBA, AS SYSOPER and AS SYSASM options are database
administration privileges.
<connect_identifier> can be in the form of Net Service Name
or Easy Connect.
@[<net_service_name> | [//]Host[:Port]/<service_name>]
<net_service_name> is a simple name for a service that resolves
to a connect descriptor.
Example: Connect to database using Net Service Name and the
database net service name is ORCL.
sqlplus myusername/mypassword@ORCL
Host specifies the host name or IP address of the database
server computer.
Port specifies the listening port on the database server.
<service_name> specifies the service name of the database you
want to access.
Example: Connect to database using Easy Connect and the
Service name is ORCL.
sqlplus myusername/mypassword@Host/ORCL
The /NOLOG option starts SQL*Plus without connecting to a
database.
The EDITION specifies the value for Session Edition.
<start> is: @<URL>|<filename>[.<ext>] [<parameter> ...]
Runs the specified SQL*Plus script from a web server (URL) or the
local file system (filename.ext) with specified parameters that
will be assigned to substitution variables in the script.
When SQL*Plus starts, and after CONNECT commands, the site profile
(e.g. $ORACLE_HOME/sqlplus/admin/glogin.sql) and the user profile
(e.g. login.sql in the working directory) are run. The files may
contain SQL*Plus commands.
Refer to the SQL*Plus User's Guide and Reference for more information.
C:\Users\jmontoyaz> -
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:57Thanks 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. -
Visio 2010 reverse engineering ora-12504 error
I am trying to create Database Model Diagram via MS Visio 2010 from my existing Oracle Database. But everytime i am having ORA-12504:TNS:listener was not given the SERVICE_NAME in CONNECT_DATA. If i use Oracle Data Modeler i dont have any error. What is the reason of this error for Visio? Here you can show the error:
http://imageshack.us/photo/my-images/143/errorop.jpg/Hi,
You need to complete your install by editing th tnsnames.ora file which can be found under %ORACLE_HOME%\netwrok\admin folder.
A simple tnsnames.ora entry would look like:
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = <machine_name or ip_address where the database & listener is running>)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ORCL)
)Or simpler, go to the start menu, and start the Oracle Net Manager to configure your tnsnames.
HTH,
Thierry -
Hi,
I have configured Standby for my 1206 instance, but I am getting the below error. I can tnsping both the SERVICE NAMES
my primary instance is MART
and my Standby service name is STBY
SQL> select error from v$archive_Dest;
ERROR
ORA-12504: TNS:listener was not given the SID in CONNECT_DATA
10 rows selected.
This is the entry for Standby in Primary tnsnames.ora
STBY = (DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=<myhost>)(PORT=1522))
(CONNECT_DATA=(SID=MART))
Please suggestBoth
Think of Data Guard as one database in two different roles, Primary and Standby. Tnsnames and Listener should match both sides.
( would consider using default ports too )
Tnsnames
STANDBY =
(DESCRIPTION =
(SDU=32767)
(SEND_BUF_SIZE=2092500)
(RECV_BUF_SIZE=2092500)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = yourdomain.com)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = STANDBY.yourdomain.com)
PRIMARY =
(DESCRIPTION =
(SDU=32767)
(SEND_BUF_SIZE=2092500)
(RECV_BUF_SIZE=2092500)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = yourdomain.com)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = PRIMARY.yourdomain.com)
)Listener on Primary
# listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = yourdomain.com)(PORT = 1521))
SID_LIST_LISTENER = (SID_LIST=(SID_DESC=(SID_NAME = PRIMARY)
(ORACLE_HOME=/u01/app/oracle/product/11.2.0)
(GLOBAL_DBNAME = PRIMARY_DGMGRL.yourdomain.com)))
ADR_BASE_LISTENER = /u01/app/oracle
INBOUND_CONNECT_TIMEOUT_LISTENER=120
Listener on Standby
# listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = yourdomain.com)(PORT = 1521))
SID_LIST_LISTENER = (SID_LIST =(SID_DESC =(SID_NAME = STANDBY)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0)
(SDU=32767)
(GLOBAL_DBNAME = STANDBY_DGMGRL.yourdomain.com)))
ADR_BASE_LISTENER = /u01/app/oracle
INBOUND_CONNECT_TIMEOUT_LISTENER=120Best Regards
mseberg -
ORA-28500: connection from ORACLE to a non-Oracle system returned this message: ORA-02063: preceding line from OWB_75
Scenario:
I am having difficulty getting ODBC connection between Oracle OWB app with an 11gR2 DB (running on a VirtualBox Linux) and SQL Server 2008 running directly on the host. (Windows 8)
I am trying to take a SQL Server 2008 feed into Oracle Ware house Builder, and think(!) I have read everything and configured it in accordance (but I presume not given 3 days of failed attempts to fix it). I have also read several blogs, hence there might be a few more settings in the configuration files than the formal documentation says, but these have come from blogs that have “Solved” problems for other similar situations.
The environments:
HOST:
Name: RESOLVEIT-PC
IP: 192.168.1.80
Windows 8 (64bit) , with system DSN ODBC connection ACME_POS created with 32 bit ODBC set up (This setting still shows up fine in the 64 bit ODBC).
GUEST VM:
Name: OraDBSvr.com
GUES fixed IP Address: 192.1.200
Oracle VirtualBox (4.2.16)
Oracle Redhat Linux 6 (x86)
Oracle 11gR2 Enterprise Edition (11.2.0.1.0)
ODBC: Freetds driver
Configuration files:
initacmepos.ora
HS_FDS_CONNECT_INFO = 192.168.1.80/SQLEXPRESS/ACME_POS
HS_FDS_TRACE_LEVEL = 0
HS_FDS_SUPPORT_STATISTICS=FALSE
HS_RPC_FETCH_REBLOCKING= OFF
HS_FDS_FETCH_ROWS = 1
HS_FDS_SHAREABLE_NAME = /usr/local/lib/libtdsodbc.so
set ODBCINI=/opt/odbc/odbc.ini
# set <envvar>=<value>
odbc.ini
[ACME_POS]
Driver = FreeTDS
Description = ODBC Connection via FreeTDS
Trace = 1
Servername = 192.168.1.80
Database = dbo
odbcinst.ini
[PostgreSQL]
Description = ODBC for PostgreSQL
Driver = /usr/lib/psqlodbc.so
Setup = /usr/lib/libodbcpsqlS.so
Driver64 = /usr/lib64/psqlodbc.so
Setup64 = /usr/lib64/libodbcpsqlS.so
FileUsage = 1
[MySQL]
Description = ODBC for MySQL
Driver = /usr/lib/libmyodbc5.so
Setup = /usr/lib/libodbcmyS.so
Driver64 = /usr/lib64/libmyodbc5.so
Setup64 = /usr/lib64/libodbcmyS.so
FileUsage = 1
[FreeTDS]
Discription = TDS driver (Sybase / MS SQL)
Driver = /usr/local/lib/libtdsodbc.so
# Setup = /usr/local/lib/libtdsS.so
FileUsage = 1
CPTimeout =
CPReuse =
[oracle@oraDBsvr etc]$
freetds.conf
# $Id: freetds.conf,v 1.12 2007-12-25 06:02:36 jklowden Exp $
# This file is installed by FreeTDS if no file by the same
# name is found in the installation directory.
# For information about the layout of this file and its settings,
# see the freetds.conf manpage "man freetds.conf".
# Global settings are overridden by those in a database
# server specific section
[global]
# TDS protocol version
; tds version = 4.2
# Whether to write a TDSDUMP file for diagnostic purposes
# (setting this to /tmp is insecure on a multi-user system)
; dump file = /tmp/freetds.log
; debug flags = 0xffff
# Command and connection timeouts
; timeout = 10
; connect timeout = 10
# If you get out-of-memory errors, it may mean that your client
# is trying to allocate a huge buffer for a TEXT field.
# Try setting 'text size' to a more reasonable limit
text size = 64512
# A typical Sybase server
[egServer50]
host = symachine.domain.com
port = 5000
tds version = 5.0
# A typical Microsoft server
[ACME_POS]
host = 192.168.1.80
port = 60801 # also tried 1433
instance = SQLEXPRESS
tds version = 8.0
client charset = UTF-8
tsql -LH 192.168.1.80
ServerName RESOLVEIT-PC
InstanceName SQLEXPRESS
IsClustered No
Version 10.50.4000.0
tcp 60801
np \\RESOLVEIT-PC\pipe\MSSQL$SQLEXPRESS\sql\query
via RESOLVEIT-PC,0:1433
Oracle listener:
[oracle@oraDBsvr log]$ cat /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = acmepos)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(PROGRAM = dg4odbc)
(HS = OK)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oraDBsvr)(PORT = 1521))
ADR_BASE_LISTENER = /u01/app/oracle
[oracle@oraDBsvr log]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 16-SEP-2013 13:57:41
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oraDBsvr)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 16-SEP-2013 13:50:34
Uptime 0 days 0 hr. 7 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/oraDBsvr/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oraDBsvr)(PORT=1521)))
Services Summary...
Service "acmepos" has 1 instance(s).
Instance "acmepos", status UNKNOWN, has 1 handler(s) for this service...
Service "dw" has 1 instance(s).
Instance "dw", status READY, has 1 handler(s) for this service...
Service "dwXDB" has 1 instance(s).
Instance "dw", status READY, has 1 handler(s) for this service...
The command completed successfully
Oracle tnsnames.ora
[oracle@oraDBsvr admin]$ cat tnsnames.ora
# tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
dw =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = dw)
acmepos =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
(CONNECT_DATA=(SID=acmepos)
(HS=OK)
Oracle sqlnet.ora
[oracle@oraDBsvr admin]$ cat sqlnet.ora
# sqlnet.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.DIRECTORY_PATH= (EZCONNECT, TNSNAMES)
ADR_BASE = /u01/app/oracle
I can connect from the linux server to SQL Server, and query the database:
[oracle@oraDBsvr etc]$ tsql -S acme_pos -U acme_dw_user -P acme1234
locale is "en_US.utf8"
locale charset is "UTF-8"
using default charset "UTF-8"
1> select last_name from dbo.employees;
2> go
last_name
Davolio
Fuller
Leverling
Peacock
Buchanan
Suyama
King
Callahan
Dodsworth
(9 rows affected)
1>
However, I can’t get a response through Oracle OWB , and I get:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message: ORA-02063: preceding line from OWB_75
In the hs log file I get:
[oracle@oraDBsvr log]$ cat acmepos_agt_3821.trc
Oracle Corporation --- MONDAY SEP 16 2013 13:51:22.170
Heterogeneous Agent Release
11.2.0.1.0
HS Gateway: NULL connection context at exit
[oracle@oraDBsvr log]$
I am really stuck now and going round in circles and can’t see the wood for trees! Can anyone please help?!!
Many Thanks.
Rafe.Let us rewrite your ODBC DSN a little bit... Your current odbc.ini looks like:
[ACME_POS]
Driver = FreeTDS
Description = ODBC Connection via FreeTDS
Trace = 1
Servername = 192.168.1.80
Database = dbo
Let us change it a little bit so that we only need one config file - no odbcinst.ini nor freetds.conf file anymore:
[ACME_POS]
Driver =/usr/local/lib/libtdsodbc.so
Server = 192.168.1.80
Database
= dbo #### I have some doubts that you have a SQL Server database called dbo - one database that always exists is master - so as a test use master here or get the real database name of the SQL Server database you want to connect
Port = 60801 ## make sure it really is the correct port - best would be to check on the SQL server and then try telnet <ip> <port> if you can connect to the SQL server
TDS_Version = 8.0
QuotedId=YES
Especially the last 2 parameters are mandatory. TDS_Version specifies the TDS Version you have to use to connect to the SQL Server and QuotedID is required for DG4ODBC as it surrounds objevt names by double quotes.
What happens now when you try to connect with for example isql - the ODBC test utility shipped with the ODBC Driver manager?
In addition, could you please do me another favour and check the word size of DG4ODBC and the ODBC Driver Manager as well as the ODBC Driver - just execute:
file /u01/app/oracle/product/11.2.0/dbhome_1/bin/dg4odbc
file /usr/local/lib/libtdsodbc.so
file < the patch to your libodbc.so library>/libodbc.so
and post the output. -
ORA-28500: connection from ORACLE to a non-Oracle system
Hi, I need to connect to a OWB mysql database, but when making a query in sql plus sends me this error.
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC][H006] The init parameter
<HS_FDS_CONNECT_INFO> is not set. Please set it in init<orasid>.ora file.
ORA-02063: preceding 2 lines from MYSQLINK
listener.ora
# listener.ora Network Configuration File: C:\oraclebi\db\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oraclebi\db)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = MYSQL)
(ORACLE_HOME = C:\oraclebi\db)
(PROGRAM = hsodbc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = bi.oratechla.com)(PORT = 1521))
tnsnames.ora
# tnsnames.ora Network Configuration File: C:\oraclebi\db\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
BISE1DB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = bi.oratechla.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = bise1db)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
OTCL_MORDOR =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.31.210)(PORT = 1620))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = TEST)
MYSQL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = bi.oratechla.com)(PORT = 1521))
(CONNECT_DATA =
(SID = MYSQL))
(HS = OK)
inithMYSQL.ora
# This is a sample agent init file that contains the HS parameters that are
# needed for an ODBC Agent.
# HS init parameters
HS_FDS_CONNECT_INFO = MYSQL
HS_FDS_TRACE_LEVEL = off
# Environment variables required for the non-Oracle system
#set <envvar>=<value>
system dsn --> MYSQL
databaselink
CREATE PUBLIC DATABASE LINK mysqlink CONNECT TO "oracle" IDENTIFIED BY "oracle" using 'ejemplo';
Database link created.
select * from empleado@mysqlink;
ERROR at line 1:
ORA-12154: TNS:could not resolve the connect identifier specified
or
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC][H006] The init parameter
<HS_FDS_CONNECT_INFO> is not set. Please set it in init<orasid>.ora file.
ORA-02063: preceding 2 lines from MYSQLINK
tnsping
C:\Documents and Settings\Administrator>tnsping MYSQL
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-AUG-2
010 06:31:57
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
C:\oraclebi\db\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = bi.orate
chla.com)(PORT = 1521)) (CONNECT_DATA = (SID = MYSQL)) (HS = OK))
OK (30 msec)Use the setup failing with
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC][H006] The init parameter
<HS_FDS_CONNECT_INFO> is not set. Please set it in init<orasid>.ora file.
ORA-02063: preceding 2 lines from MYSQLINK
There is a typo in the name of you gateway init file. You posted the content of inithMYSQL.ora but the naming is init<SID>.ora which is in your case initMYSQL.ora.
In addition please keep in mind HSODBC has been desupported since 2008 and when starting a new configuration you should use the follow up product dg4odbc (Database Gateway for ODBC) V11. -
Hi, i'm trying to create database link from a database Oracle 11g to PostgreSQL with DG4ODBC, and unixODBC
my configured to /etc/odbc.ini
[PostgreSQL]
Description = Test to Postgres
Driver = psqlodbc
Trace = Yes
TraceFile = /tmp/sql.log
Database = danieldb
Servername =
UserName = SA
Password = password
Port = 5432
Protocol = 6.4
ReadOnly = No
RowVersioning = No
ShowSystemTables = No
ShowOidColumn = No
FakeOidIndex = No
my configured to /etc/odbcinst.ini
[ODBC]
CommLog=1
Debug=1
FileUsage=1
Pooling=No
Trace=1
[psqlodbc]
Description=PostgreSQL ODBC driver
Driver=/usr/lib64/psqlodbcw.so
CommLog=1
Debug=0
FileUsage=1
my configured to /u01/app/oracle/product/11.2.0/xe/hs/admin/initPostgreSQL.ora
HS_FDS_CONNECT_INFO = PostgreSQL
HS_FDS_TRACE_LEVEL = 0
HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbcpsql.so
set ODBCINI=/etc/odbc.ini
my configured to /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
Listener =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle-poc)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC=
(SID_NAME=PostgreSQL)
(ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe)
(PROGRAM=dg4odbc)
(ENVS="LD_LIBRARY_PATH=/usr/lib64:/u01/app/oracle/product/11.2.0/xe/lib")
my configured to /u01/app/oracle/product/11.2.0/xe/network/admin/tnsname.ora
PostgreSQL=
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle-poc)(PORT = 1521))
(CONNECT_DATA =
(SID = PostgreSQL)
(HS = OK)
i'm try to created public database link :
CREATE PUBLIC DATABASE LINK "orapos" CONNECT TO "SA" IDENTIFIED BY "password" USING 'PostgreSQL';
when i used tnsping
[root@oracle-poc admin]# tnsping PostgreSQL
TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 16-MAY-2013 20:34:19
Copyright (c) 1997, 2011, Oracle. All rights reserved.
Used parameter files:
/u01/app/oracle/product/11.2.0/xe/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = oracle-poc)(PORT = 1521)) (CONNECT_DATA = (SID = PostgreSQL)) (HS = OK))
OK (0 msec)
and last i try to use the database link :
SQL> select * from "tabel2"@orapos
2 ;
select * from "tabel2"@orapos
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
ORA-02063: preceding line from ORAPOS
Whats wrong with my configuration??
Thank you and best regards,
DanielMike,
yes i've downloaded the ODBC driver manager..
for HS_FDS_SHAREABLE_NAME i use /usr/lib/psqlodbc.so
and i get this error when i call the db link(orpos)
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
ORA-02063: preceding line from ORAPOS
for HS_FDS_SHAREABLE_NAME = /usr/lib64/psqlodbcw.so
and i get this error when i call the db link(orpos)
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
c
and when i used isql isql to call DNS(PostgreSQL) is success
whats wrong with my config?
about PostGres ODBC did you mean postgresql-odbc-08.04.0200-1.el6.x86_64 ??
Thank you and best regards,
Daniel -
ORA-28500: connection from ORACLE to a non-Oracle system returned
Hi All,
My database is in 10.2.0.4 and has a dblink to sqlserver. The dblink works fine for normal queries.
However when executing the following query from my oracle database
SELECT ROWNUM, "ad2_id", my_name, "data"
FROM "abc"@xyz.com
WHERE "startDateTime" > (TO_DATE ('20100120', 'YYYYMMDD') - 1)
AND "startDateTime" < TO_DATE ('20100120', 'YYYYMMDD')
AND ROWNUM < 101
I am getting the following error
Note : Line 8 is "startDateTime" > (TO_DATE ('20100120', 'YYYYMMDD') - 1)
ERROR at line 8:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
ORA-02063: preceding line from xyz
Note:
1.data is of datatype VARCHARN(1000) and if we ignore that field I am able to get the output
2. If I give the StartDateTime to a value without using to_date I am able to get the output.
Could you please tell me what could be the problem ?
Thanks in advance.user12061473 wrote:
If the edit masks doesn't match how come I am able to get output for the below query
SELECT ROWNUM, "ad2_id", my_name, "data"
FROM "abc"@xyz.com
WHERE "startDateTime" < TO_DATE ('20100120', 'YYYYMMDD')
AND ROWNUM < 101
The problem as far as I am know is if I try to select data and use both the where clauses I am getting the error.
Which is
SELECT ROWNUM, "ad2_id", my_name, "data"
FROM "abc"@xyz.com
WHERE "startDateTime" > (TO_DATE ('20100120', 'YYYYMMDD') - 1)
AND "startDateTime" < TO_DATE ('20100120', 'YYYYMMDD')
AND ROWNUM < 101
Error
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
ORA-02063: preceding line from xyzThat's a different error. The error you posted above was
"ORA-01861:literal does not match format string"which my posts addressed.
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
ORA-02063: preceding line from xyzis an entirely different message, related not to date formats but what looks like a distributed query. Unfortunately I am getting
No Response from Application Web Server
There was no response from the application web server for the page you requested.
Please notify the site's webmaster and try your request again later. when I look up ORA-28500 and ORA-02063 in the on-line documentation right now :(
Is your database connect string correct? The ones I use don't have .com attached to them. -
ORA-28500: connection from ORACLE to a non-Oracle system returned this mess
Hi,
I scheduled a job .. got this error what could be the reason ?
*** 2011-09-27 05:00:21.239
*** SESSION ID:(273.6080) 2011-09-27 05:00:21.239
*** CLIENT ID:([email protected]@Mozilla/4.0 (compatible; MSIE 8.0; Windows) 2011-09-27 05:00:21.239
*** SERVICE NAME:(SYS$USERS) 2011-09-27 05:00:21.239
*** MODULE NAME:(DBMS_SCHEDULER) 2011-09-27 05:00:21.239
*** ACTION NAME:(XXINSERTKEY) 2011-09-27 05:00:21.239
ORA-12012: error on auto execute of job 3311903
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. {08001,NativeErr = 17}[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (Connect()). {01000,NativeErr = 53}
ORA-02063: preceding 2 lines from VISABG
ORA-06512: at "APPS.XXDMIG_INSERT", line 3
Thanks
VishwaORA-12012: error on auto execute of job 3311903
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. {08001,NativeErr = 17}[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (Connect()). {01000,NativeErr = 53}
ORA-02063: preceding 2 lines from VISABG
ORA-06512: at "APPS.XXDMIG_INSERT", line 3Search MOS website for ORA-28500 and go through the docs!
Ora-28500 with Ms Sqlserver - Not associated with a trusted SQL Server connection [ID 333775.1]
How to Configure DG4ODBC (Oracle Database Gateway for ODBC) on Windows 32bit to Connect to Non-Oracle Databases Post Install [ID 466225.1]
Select From Non-Oracle Database Using Dg4odbc Returns Ora-28500 From Sqlplus [ID 1254254.1]
ORA-28500: Login failed via Transparent Gateway when Connect to SQL Server 2000 on WinXP [ID 1165743.1]
Error Ora-28500 and Sqlstate I Issuing Selects From a Unicode Oracle RDBMS With Dg4odbc To Mysql or SQL*Server [ID 756186.1]
Thanks,
Hussein -
ORA-28500: connection from ORACLE to a non-Oracle system returned this mesg
Hi,
I am able to access ACCESS DB from local system having Oracle DB in the same machine using Oracle Heterogenious services.
Now when I try to access from remote system, I am getting error message as mentioned.
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC][Microsoft][ODBC Microsoft Access Driver]
'(unknown)' is not a valid path. Make sure that the path name is spelled
correctly and that you are connected to the server on which the file resides.
(SQL State: 00000; SQL Code: -1023)That's a specific problem with mapped drives, on metalink:
ORA-28500: not a valid path via hsodbc over a mapped drive
Doc ID: Note:266187.1
Werner
Maybe you are looking for
-
Are these key fields in 'Direct Update' DSO table in BW on HANA (BW740SP7) correct?
Pls see below for a very strange behaviour of all active tables of type 'Direct Update' DSO in our system. Is this a bug or is this somehow supposed to be like this (i.e. a feature)? DSO definition: Active table of type 'Column Store' - note fields m
-
How/can I change the "from" address in Mail?
I just upgraded to Mountain Lion, and have come across a problem. I use iCloud for my mail account, but I want to change the "from" address - so the return address on my messages is NOT icloud. I could do this in Lion. In the mail account settings, t
-
Got stuck while installing BAM.
Hi all, I am stuck at the step: DATBASE CONNECT INFORMATION, while installing the BAM. Everytime I try, its giving me error saying that the Installer cannot connect to the database located at parameter #1. Please help me in getting out of this issue.
-
Running scripts in SQL developer in batch mode (windows 7)
Hi Can anybody share the steps to run a set of SQLs in SQL developer in batch mode in Windows 7 Regards -Learnsequel Edited by: 910874 on Jul 25, 2012 9:13 AM
-
I want to know that two file are same or not.
Hello. My English ability very poor.. sorry I want to compare two file if file is same return true else return false; I select file using JFileChooser. and read the file using fileinpustream then, trans byte array using byteArrayOutputStream.. I use