Trying to connect MySQL and Oracle in RedHat
Hi all,
i´m tryng to create a dblink between Oracle 10.2.0 and MySQL,
when when i try using sqlplus i obtain this error:
SQL> SELECT "id" FROM issues@mysqldb;
ORA-28500: la conexion de ORACLE a un sistema no Oracle ha devuelto este mensaje:
[Generic Connectivity Using ODBC]DRV_InitTdp: DB_ODBC_INTERFACE (2082): ; [MySQL][ODBC 5.1 Driver]Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (SQL State: 08S01; SQL Code: 2002)
ORA-02063: 2 lines precediendo a MYSQLDB
This is my configuration:
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/hs/admin/initmysqldb.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 = hsqldb
HS_FDS_TRACE_LEVEL = DEBUG
HS_FDS_TRACE_FILE_NAME = mysqldb.trc
HS_OPEN_CURSORS=300
HS_AUTOREGISTER = TRUE
HS_FDS_SHAREABLE_NAME=/usr/lib/libmyodbc5.so
set ODBCINI=/usr/local/etc/odbc.ini
# Environment variables required for the non-Oracle system
#set <envvar>=<value>
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/listener.ora
# listener.ora Network Configuration File:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = mysqldb)
(ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
(PROGRAM = hsodbc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = descordel01)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/tnsnames.ora
# tnsnames.ora Network Configuration File:
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = descordel01)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
mysqldb =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = descordel01)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = mysqldb)
(HS = OK)
)
Hi,
You don't say if your Redhat Linux is 32-bit or 64-bit because 10.2 HSODBC was never ported to Linux 64-bit.
Also, 10.2 HSODBC is now desupported and has been replaced by the 11g Database Gateway for ODBC (Dg4ODBC) so you should install and use that so you are on a fully supported version. The following notes in My Oracle Support have further information -
Note.466228.1 How to Setup DG4ODBC on Linux x86 32bit
Note.561033.1 How to Setup DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX)
Note.1083703.1 Master Note for Oracle Gateway Products
If you are Linux 32-bit and want to continue with the HSODBC setup then please review this note -
Note.264567.1 How To Setup HSODBC on Linux
and make sure you have the setup correct.
For example, in the listener.ora entry you should have an entry for the ENV variable LD_LIBRARY_PATH to make sure the process spawned by the listener picks up the correct libraries -
(ENVS=LD_LIBRARY_PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib:<path to odbc_driver_directory>/lib)
such as -
(SID_DESC =
(SID_NAME = hsodbc)
(ORACLE_HOME = /home/oracle/server/10.2.0/)
(PROGRAM = hsodbc)
(ENVS=LD_LIBRARY_PATH=/home/oracle/server/10.2.0/lib:/home/odbc/dd/lib)
You need to stop and start the listener after making any changes.
If you still have problems then send the -
- odbc.ini
- odbcinst.ini - if being used
- full name and version of the ODBC driver being used
- full version of MySQL being accessed
- modified listener.ora
Regards,
Mike
Similar Messages
-
Workbench trying to connect Mysql and hang
Hi,
I am trying to migrate Mysql to oracel using workbench on Windows98.
On capture wizard step 1 of 4 which is supposed to put source database details( username, password, hostname, port), after I put all these information and click "next" button, it start to hang with a hourglass cursor. But GUI is still operatable.
Any one has an idea what can be wrong?
ThanksHi,
You don't say if your Redhat Linux is 32-bit or 64-bit because 10.2 HSODBC was never ported to Linux 64-bit.
Also, 10.2 HSODBC is now desupported and has been replaced by the 11g Database Gateway for ODBC (Dg4ODBC) so you should install and use that so you are on a fully supported version. The following notes in My Oracle Support have further information -
Note.466228.1 How to Setup DG4ODBC on Linux x86 32bit
Note.561033.1 How to Setup DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX)
Note.1083703.1 Master Note for Oracle Gateway Products
If you are Linux 32-bit and want to continue with the HSODBC setup then please review this note -
Note.264567.1 How To Setup HSODBC on Linux
and make sure you have the setup correct.
For example, in the listener.ora entry you should have an entry for the ENV variable LD_LIBRARY_PATH to make sure the process spawned by the listener picks up the correct libraries -
(ENVS=LD_LIBRARY_PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib:<path to odbc_driver_directory>/lib)
such as -
(SID_DESC =
(SID_NAME = hsodbc)
(ORACLE_HOME = /home/oracle/server/10.2.0/)
(PROGRAM = hsodbc)
(ENVS=LD_LIBRARY_PATH=/home/oracle/server/10.2.0/lib:/home/odbc/dd/lib)
You need to stop and start the listener after making any changes.
If you still have problems then send the -
- odbc.ini
- odbcinst.ini - if being used
- full name and version of the ODBC driver being used
- full version of MySQL being accessed
- modified listener.ora
Regards,
Mike -
How to connect mysql and oracle 10g by UTL_HTTP?
how to connect mysql 5.0 and oracle 10g r2 by UTL_HTTP?what to do for this url connection exactly?
cant i change anything to stup a link?
SQL> desc utl_http
PROCEDURE ADD_COOKIES
Argument Name Type In/Out Default?
COOKIES TABLE OF RECORD IN
FUNCTION BEGIN_REQUEST RETURNS RECORD
Argument Name Type In/Out Default?
URL VARCHAR2(32767) OUT
METHOD VARCHAR2(64) OUT
HTTP_VERSION VARCHAR2(64) OUT
PRIVATE_HNDL BINARY_INTEGER OUT
URL VARCHAR2 IN
METHOD VARCHAR2 IN DEFAULT
HTTP_VERSION VARCHAR2 IN DEFAULT
PROCEDURE CLEAR_COOKIES
PROCEDURE CLOSE_PERSISTENT_CONN
Argument Name Type In/Out Default?
CONN RECORD IN
HOST VARCHAR2(256) IN
PORT BINARY_INTEGER IN
PROXY_HOST VARCHAR2(256) IN
PROXY_PORT BINARY_INTEGER IN
SSL BOOLEAN IN
PROCEDURE CLOSE_PERSISTENT_CONNS
Argument Name Type In/Out Default?
HOST VARCHAR2 IN DEFAULT
PORT BINARY_INTEGER IN DEFAULT
PROXY_HOST VARCHAR2 IN DEFAULT
PROXY_PORT BINARY_INTEGER IN DEFAULT
SSL BOOLEAN IN DEFAULT
PROCEDURE END_REQUEST
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
PROCEDURE END_RESPONSE
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
PROCEDURE GET_AUTHENTICATION
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
SCHEME VARCHAR2 OUT
REALM VARCHAR2 OUT
FOR_PROXY BOOLEAN IN DEFAULT
PROCEDURE GET_BODY_CHARSET
Argument Name Type In/Out Default?
CHARSET VARCHAR2 OUT
FUNCTION GET_BODY_CHARSET RETURNS VARCHAR2
PROCEDURE GET_COOKIES
Argument Name Type In/Out Default?
COOKIES TABLE OF RECORD IN/OUT
FUNCTION GET_COOKIE_COUNT RETURNS BINARY_INTEGER
PROCEDURE GET_COOKIE_SUPPORT
Argument Name Type In/Out Default?
ENABLE BOOLEAN OUT
MAX_COOKIES BINARY_INTEGER OUT
MAX_COOKIES_PER_SITE BINARY_INTEGER OUT
PROCEDURE GET_DETAILED_EXCP_SUPPORT
Argument Name Type In/Out Default?
ENABLE BOOLEAN OUT
FUNCTION GET_DETAILED_SQLCODE RETURNS BINARY_INTEGER
FUNCTION GET_DETAILED_SQLERRM RETURNS VARCHAR2
PROCEDURE GET_FOLLOW_REDIRECT
Argument Name Type In/Out Default?
MAX_REDIRECTS BINARY_INTEGER OUT
PROCEDURE GET_HEADER
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
N BINARY_INTEGER IN
NAME VARCHAR2 OUT
VALUE VARCHAR2 OUT
PROCEDURE GET_HEADER_BY_NAME
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
NAME VARCHAR2 IN
VALUE VARCHAR2 OUT
N BINARY_INTEGER IN DEFAULT
FUNCTION GET_HEADER_COUNT RETURNS BINARY_INTEGER
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
PROCEDURE GET_PERSISTENT_CONNS
Argument Name Type In/Out Default?
CONNECTIONS TABLE OF RECORD IN/OUT
FUNCTION GET_PERSISTENT_CONN_COUNT RETURNS BINARY_INTEGER
PROCEDURE GET_PERSISTENT_CONN_SUPPORT
Argument Name Type In/Out Default?
ENABLE BOOLEAN OUT
MAX_CONNS BINARY_INTEGER OUT
PROCEDURE GET_PROXY
Argument Name Type In/Out Default?
PROXY VARCHAR2 OUT
NO_PROXY_DOMAINS VARCHAR2 OUT
FUNCTION GET_RESPONSE RETURNS RECORD
Argument Name Type In/Out Default?
STATUS_CODE BINARY_INTEGER OUT
REASON_PHRASE VARCHAR2(256) OUT
HTTP_VERSION VARCHAR2(64) OUT
PRIVATE_HNDL BINARY_INTEGER OUT
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
RETURN_INFO_RESPONSE BOOLEAN IN DEFAULT
PROCEDURE GET_RESPONSE_ERROR_CHECK
Argument Name Type In/Out Default?
ENABLE BOOLEAN OUT
PROCEDURE GET_TRANSFER_TIMEOUT
Argument Name Type In/Out Default?
TIMEOUT BINARY_INTEGER OUT
PROCEDURE READ_LINE
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
DATA VARCHAR2 OUT
REMOVE_CRLF BOOLEAN IN DEFAULT
PROCEDURE READ_RAW
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
DATA RAW OUT
LEN BINARY_INTEGER IN DEFAULT
PROCEDURE READ_TEXT
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
DATA VARCHAR2 OUT
LEN BINARY_INTEGER IN DEFAULT
FUNCTION REQUEST RETURNS VARCHAR2
Argument Name Type In/Out Default?
URL VARCHAR2 IN
PROXY VARCHAR2 IN DEFAULT
WALLET_PATH VARCHAR2 IN DEFAULT
WALLET_PASSWORD VARCHAR2 IN DEFAULT
FUNCTION REQUEST_PIECES RETURNS TABLE OF VARCHAR2(2000)
Argument Name Type In/Out Default?
URL VARCHAR2 IN
MAX_PIECES BINARY_INTEGER IN DEFAULT
PROXY VARCHAR2 IN DEFAULT
WALLET_PATH VARCHAR2 IN DEFAULT
WALLET_PASSWORD VARCHAR2 IN DEFAULT
PROCEDURE SET_AUTHENTICATION
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
USERNAME VARCHAR2 IN
PASSWORD VARCHAR2 IN DEFAULT
SCHEME VARCHAR2 IN DEFAULT
FOR_PROXY BOOLEAN IN DEFAULT
PROCEDURE SET_BODY_CHARSET
Argument Name Type In/Out Default?
CHARSET VARCHAR2 IN DEFAULT
PROCEDURE SET_BODY_CHARSET
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
CHARSET VARCHAR2 IN DEFAULT
PROCEDURE SET_BODY_CHARSET
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
CHARSET VARCHAR2 IN DEFAULT
PROCEDURE SET_COOKIE_SUPPORT
Argument Name Type In/Out Default?
ENABLE BOOLEAN IN
MAX_COOKIES BINARY_INTEGER IN DEFAULT
MAX_COOKIES_PER_SITE BINARY_INTEGER IN DEFAULT
PROCEDURE SET_COOKIE_SUPPORT
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
ENABLE BOOLEAN IN DEFAULT
PROCEDURE SET_DETAILED_EXCP_SUPPORT
Argument Name Type In/Out Default?
ENABLE BOOLEAN IN DEFAULT
PROCEDURE SET_FOLLOW_REDIRECT
Argument Name Type In/Out Default?
MAX_REDIRECTS BINARY_INTEGER IN DEFAULT
PROCEDURE SET_FOLLOW_REDIRECT
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
MAX_REDIRECTS BINARY_INTEGER IN DEFAULT
PROCEDURE SET_HEADER
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
NAME VARCHAR2 IN
VALUE VARCHAR2 IN DEFAULT
PROCEDURE SET_PERSISTENT_CONN_SUPPORT
Argument Name Type In/Out Default?
ENABLE BOOLEAN IN
MAX_CONNS BINARY_INTEGER IN DEFAULT
PROCEDURE SET_PERSISTENT_CONN_SUPPORT
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
ENABLE BOOLEAN IN DEFAULT
PROCEDURE SET_PROXY
Argument Name Type In/Out Default?
PROXY VARCHAR2 IN
NO_PROXY_DOMAINS VARCHAR2 IN DEFAULT
PROCEDURE SET_RESPONSE_ERROR_CHECK
Argument Name Type In/Out Default?
ENABLE BOOLEAN IN DEFAULT
PROCEDURE SET_TRANSFER_TIMEOUT
Argument Name Type In/Out Default?
TIMEOUT BINARY_INTEGER IN DEFAULT
PROCEDURE SET_TRANSFER_TIMEOUT
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
TIMEOUT BINARY_INTEGER IN DEFAULT
PROCEDURE SET_WALLET
Argument Name Type In/Out Default?
PATH VARCHAR2 IN
PASSWORD VARCHAR2 IN DEFAULT
PROCEDURE WRITE_LINE
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
DATA VARCHAR2 IN
PROCEDURE WRITE_RAW
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
DATA RAW IN
PROCEDURE WRITE_TEXT
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
DATA VARCHAR2 IN -
ORA-28500 and ORA-02063 while connecting MySQL from Oracle-
Dear All,
My Database is Oracle 11gR2 Rac of 2 nodes and on Linux 64-Bit operating system.
Version of my MySQL database is 5.5.17 it is on Linux 32-Bit operating system.
I am trying to connect MySQL database from Oracle database using a database link.
These are the step by step process that I am following to achieve my target. All my processes are on one node of Oracle RAC.
1)
Yum install mysql-connector-odbc
Yum install unixODBC
2)
Edit file /etc/odbc.ini
[test]
Driver = /usr/lib64/libmyodbc3.so
Description = MySQL ODBC 3.51 Driver DSN
SERVER = 10.0.0.1
PORT = 3306
USER = test
Password = test
Database = test
OPTION = 3
SOCKET =
3)
Edit file /etc/odbcinst.ini
[MySQL]
Description = ODBC for MySQL
Driver = /usr/lib64/libmyodbc3.so
Setup = /usr/lib64/libodbcmyS.so
FileUsage = 1
4) test connection
isql –v test test test
Returns:
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
SQL>
5) Now I edit listener.ora file and add the entry. After entry my listener.ora file is like this:
LISTENER =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = LISTENER))
(ADDRESS = (PROTOCOL = TCP)(HOST=testnode1)(PORT = 1521))
# line added by Agent
LISTENER_SCAN1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = LISTENER_SCAN1))
# line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1 = ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER = ON # line added by Agent
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(PROGRAM = extproc)
(SID_DESC =
(PROGRAM = dg4odbc)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = test)
(ENVS=LD_LIBRARY_PATH = /usr/local/lib:/u01/app/oracle/product/11.2.0/dbhome_1/lib)
6) After these entries the listener status after RESTART is as following:
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 27-DEC-2011 01:19:32
Uptime 0 days 9 hr. 31 min. 12 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/11.2.0/grid/network/admin/listener.ora
Listener Log File /u01/app/grid/diag/tnslsnr/racnode1/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=testnode1)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM1", status READY, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "test" has 1 instance(s).
Instance "test", status UNKNOWN, has 1 handler(s) for this service...
Service "testdb" has 1 instance(s).
Instance "testdb1", status READY, has 1 handler(s) for this service...
Service "racdbXDB" has 1 instance(s).
Instance "testdb1", status READY, has 1 handler(s) for this service...
The command completed successfully
7) Then in the tnsnames.ora file I added the following entry:
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = IPC)
(KEY = EXTPROC1521)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
test =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.1)(PORT = 1521))
(CONNECT_DATA =
(SID = test)
(HS = OK)
When i tnsping test, it works.
8) I edit the .bash_profile file for Oracle
ORACLE_HOME, ORACLE_BASE were already pointing to the correct destination, I added:
LD_LIBRARY_PATH=/usr/local/lib:/u01/app/oracle/product/11.1.0/db_1/lib:/u01/app/oracle/product/11.2.0/dbhome_1/hs/lib:/usr/lib64:/usr/lib
export LD_LIBRARY_PATH
ODBCINI=/etc/odbc.ini
export ODBCINI
ODBCINSTINI=/etc/odbc.ini
export ODBCINSTINI
ODBCSYSINI=/etc
export ODBCSYSINI
9) Then i configured $ORACLE_HOME/hs/admin/inithsodbc.ora
And Modified these lines:
HS_FDS_CONNECT_INFO = test
HS_FDS_TRACE_LEVEL = ON
HS_FDS_TRACE_FILE_NAME = odbc_test.log
HS_FDS_TRACE_LEVEL = 4
HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so
HS_FDS_SUPPORT_STATISCTICS = FALSE
HS_LANGUAGE = AMERICAN_AMERICA.WE8ISO8859P1
set ODBCINI = /etc/odbc.ini
10) Then i created a database link with the following command:
Create public database link test connect to test identified by test using ‘test’;
I tried username and password in database link with double quotes also.
11) Now Finally when I try to select records from mysql table:
select count(*) from "table"@"test"; -- I have tried with and without double quotes
I get the following error:
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
ORA-02063: preceding line from TEST
How to get through this error, and how to check logs for HS?
Your help is required.
Regards, Imran
Edited by: misterimran on Dec 27, 2011 1:21 PMHi,
In your listener.ora for the DG4ODBC entry you had -
(ENVS=LD_LIBRARY_PATH = /usr/local/lib:/u01/app/oracle/product/11.2.0/dbhome_1/lib)
but this should also include the path for the driver manager directory which in your case is /usr/lib64 so could you add this ?
The error -
Failed to load ODBC library symbol: /usr/lib64/libmyodbc3.so(SQLSetDescRec)
indicates the /usr/lib64 directory cannot be accessed.
The entry should then look like -
(SID_DESC =
<space>(PROGRAM = dg4odbc)
<space>(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
<space>(SID_NAME = test)
<space>(ENVS=LD_LIBRARY_PATH = /usr/local/lib:/usr/lib64:/u01/app/oracle/product/11.2.0/dbhome_1/lib)
<space>)
The spaces may have bene lost when posting but there should be at least one space in the file as indicated by the <space>.
After making the change then stop and start the listener.
If you still have problems then please post again the current versions of the configuration files, the full errors shown in SQLPLUS for a select and the output from a debug trace showing the errors.
The information shows you are using the 3.51 MySQL ODBC driver so could you also try with the latest version of the 5.1 driver and see if you have the same problem ?
Regards,
Mike -
Connect Mysql And Eclipse c++
i trying to connect mysql database and eclipse c++ and i set everything but when i want to compile a program using data base this error massage appears:
"fatal error:boost/shared_ptr.hpp: no such file or directory"
how can i fix it, there is no solution on the internet, and i really really really tired of searching about this.
my compiler: gcc
my os: windows 8.1
here you can see my code:
#include <stdlib.h>
#include <iostream>
#include "mysql_connection.h"
#include <cppconn/driver.h>
#include <cppconn/exception.h>
#include <cppconn/resultset.h>
#include <cppconn/statement.h>
#include <cppconn/prepared_statement.h>
using namespace std;
int main(void)
cout << endl;
cout << "Let's have MySQL count from 10 to 1..." << endl;
try {
sql::Driver *driver;
sql::Connection *con;
sql::Statement *stmt;
sql::ResultSet *res;
sql::PreparedStatement *pstmt;
/* Create a connection */
driver = get_driver_instance();
con = driver->connect("tcp://127.0.0.1:3306", "root", "37975");
/* Connect to the MySQL test database */
con->setSchema("test");
stmt = con->createStatement();
stmt->execute("DROP TABLE IF EXISTS test");
stmt->execute("CREATE TABLE test(id INT)");
delete stmt;
/* '?' is the supported placeholder syntax */
pstmt = con->prepareStatement("INSERT INTO test(id) VALUES (?)");
for (int i = 1; i <= 10; i++) {
pstmt->setInt(1, i);
pstmt->executeUpdate();
delete pstmt;
/* Select in ascending order */
pstmt = con->prepareStatement("SELECT id FROM test ORDER BY id ASC");
res = pstmt->executeQuery();
/* Fetch in reverse = descending order! */
res->afterLast();
while (res->previous())
cout << "\t... MySQL counts: " << res->getInt("id") << endl;
delete res;
delete pstmt;
delete con;
} catch (sql::SQLException &e) {
cout << "# ERR: SQLException in " << __FILE__;
cout << "(" << __FUNCTION__ << ") on line "
<< __LINE__ << endl;
cout << "# ERR: " << e.what();
cout << " (MySQL error code: " << e.getErrorCode();
cout << ", SQLState: " << e.getSQLState() <<
" )" << endl;
cout << endl;
return EXIT_SUCCESS;It's not clear if you understand my question.
Will you do me the favor of looking at your screen and tell me if there is a simple in front of any of the includes? Do you have a question mark "?" or any other error indicating that it can't find the include?
Thanks!
-- L. James
L. D. James
[email protected]
www.apollo3.com/~ljames
Danial Atash wrote on Fri, 07 August 2015 08:12my mySQL path is: "D:\Programs\Programming\MySQL\MySQL Server 5.5"
and my mysql-connector c++ path that i download it from mysql's website is: "D:\Programs\Programming\MySQL\Connector C++"
and my-boost library that i don't know what is it is: "D:\Programs\Programming\boost_1_57_0"
i go to the eclipse and select the Project>>properties>>c/c++ build>>GCC C++ Comiler>>Includes and add below Item to Include path:
- "D:\Programs\Programming\MySQL\Connector C++\include"
- "D:\Programs\Programming\MySQL\MySQL Server 5.5\include"
- "D:\Programs\Programming\boost_1_57_0\boost"
and then i go to the Project>>properties>>c/c++ build>>MINGW C++ Linker>> Libraries and add below items to library search path:
- "D:\Programs\Programming\MySQL\MySQL Server 5.5\lib"
- "D:\Programs\Programming\MySQL\Connector C++\lib"
now when i want to compile this program(from mysql example )
#include <stdlib.h>
#include <iostream>
#include "mysql_connection.h"
#include <cppconn/driver.h>
#include <cppconn/exception.h>
#include <cppconn/resultset.h>
#include <cppconn/statement.h>
#include <cppconn/prepared_statement.h>
using namespace std;
int main(void)
cout << endl;
cout << "Let's have MySQL count from 10 to 1..." << endl;
try {
sql::Driver *driver;
sql::Connection *con;
sql::Statement *stmt;
sql::ResultSet *res;
sql::PreparedStatement *pstmt;
/* Create a connection */
driver = get_driver_instance();
con = driver->connect("tcp://127.0.0.1:3306", "root", "37975");
/* Connect to the MySQL test database */
con->setSchema("test");
stmt = con->createStatement();
stmt->execute("DROP TABLE IF EXISTS test");
stmt->execute("CREATE TABLE test(id INT)");
delete stmt;
/* '?' is the supported placeholder syntax */
pstmt = con->prepareStatement("INSERT INTO test(id) VALUES (?)");
for (int i = 1; i <= 10; i++) {
pstmt->setInt(1, i);
pstmt->executeUpdate();
delete pstmt;
/* Select in ascending order */
pstmt = con->prepareStatement("SELECT id FROM test ORDER BY id ASC");
res = pstmt->executeQuery();
/* Fetch in reverse = descending order! */
res->afterLast();
while (res->previous())
cout << "\t... MySQL counts: " << res->getInt("id") << endl;
delete res;
delete pstmt;
delete con;
} catch (sql::SQLException &e) {
cout << "# ERR: SQLException in " << __FILE__;
cout << "(" << __FUNCTION__ << ") on line "
<< __LINE__ << endl;
cout << "# ERR: " << e.what();
cout << " (MySQL error code: " << e.getErrorCode();
cout << ", SQLState: " << e.getSQLState() <<
" )" << endl;
cout << endl;
return EXIT_SUCCESS;
i see it is dont compile and i see these errors:
- Description Resource Path Location Type
fatal error: boost/shared_ptr.hpp: No such file or directory Working line 31, external location: D:\Programs\Programming\MySQL\Connector C++\include\mysql_connection.h C/C++ Problem
i don't know why i cant connect mysql to eclipse. i tried to connect it more and more (at least 1 month)
Please Help me!!!! -
COULDN'T CONNECT SQLDEVELOPER AND ORACLE 10G
COULDN'T CONNECT SQLDEVELOPER AND ORACLE 10G
anyone can help this?
can see that error message here.
http://forums.adobe.com/thread/590462?tstart=0user12748850 wrote:
COULDN'T CONNECT SQLDEVELOPER AND ORACLE 10G
anyone can help this?
can see that error message here.
http://forums.adobe.com/thread/590462?tstart=0
I left my microscope at home. How bout telling what the error message was ... something like "ora-nnnnn". -
I'm at a hotel and connected to their wifi. Trying to connect again and pas.apitilo is coming up, what is this?
You need to make sure that you accepted the terms of use, that usually pop up in your default web browser, after selecting the wifi network. Open your default web browser, and see if it takes you to the hotel's website to accept their terms of use.
-
Troubles trying to connect ECC and XI through RFCs
Hi,
I'm trying to connect XI and ECC through HTTP RFC connections. The bridge between XI and ECC is OK, but the bridge between ECC and XI is not working. It results in the error above:
Service cannot be reached
What has happened?
URL http://brjgs916:8001/sap/xi/engine call was terminated because the corresponding service is not available.
Note
The termination occurred in system XD0 with error code 404 and for the reason Not found.
The selected virtual host was 1-.
What can I do?
Please select a valid URL.
If you do not yet have a user ID, contact your system administrator.
ErrorCode:ICF-NF-http-c:000-u:SAPSYS-l:P-i:brjgs916_XD0_01-v:1--s:404-r:Notfound
HTTP 404 - Not found
Your SAP Internet Communication Framework Team
Trying to teste the service root
default_host\sap\xi\engine and received the error message "Could not find host or port information". Looking at SMICF the services are functional and seams to work (green checks at right side) in both sides, ECC and XI.
Some one knows what happens and could help me?
ThanksHi,
>>>>I'm trying to connect XI and ECC through HTTP RFC connections
>>>>Troubles trying to connect ECC and XI through RFCs
what exactly are you trying to do?
connect via ABAP proxy (HTTP) or via RFC ?
if via proxy:
/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
if RFC:
/people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
Trying to connect vb to oracle databse
hello.
im trying to connect my oracle 10g database to vb express edition.
i read the articale about the connection in the site i did every thing like he wrote there. i also donloaded the file we were asked to download its a 236mb file.
i wrote the fowlling statement and he vb returns me a problem in the conn.open().
this is the program i wrote its very simple. i think maybe something i wrote in the connection defention was wrong.
Imports System.Data ' VB.NET
Imports Oracle.DataAccess.Client
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim oradb As String = "Data Source=(DESCRIPTION=(ADDRESS_LIST=" _
+ "(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))" _
+ "(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ORCL)));" _
+ "User Id=oracle;Password=oracle;"
Dim conn As New OracleConnection(oradb) ' VB.NET
conn.Open()
Dim cmd As New OracleCommand
cmd.Connection = conn
cmd.CommandText = "select client_id from client where client_id=100"
cmd.CommandType = CommandType.Text
Dim dr As OracleDataReader = cmd.ExecuteReader()
dr.Read()
Label1.Text = dr.Item("client_id") ' or dr.Item(0)
conn.Dispose()
End Sub
End Classi really need help im trying to learn this connection for 3 days now im new to vb so i have alot of problems.
thanks
asafHello,
A good place to start would be with the actual error message - is that available?
Also, what article do you mean? Do you have a URL for it?
Regards,
Mark -
Problem connect form6i and Oracle Database 10g
I can't connect form6i to Oracle Database 10g
When complete user/password@database fatal error produce:
"Oracle Forms Designer has encountered a problem and needs to close. We are sorry for the inconvenience"
Error Detail:
AppName: ifbld60.exe AppVer: 6.0.8.27 ModName: ora805.dll
ModVer: 0.0.0.0 Offset: 000b4f04
Product Install:
- Forms Version: Forms [32 bits] Versión 6.0.8.27.0
- Oracle Database: 10.2.0
- Win XP professional with SP2.
Any idea what might cause Forms to shutdown ubnormally?
ThanksIf your database is using the AL32UTF8 character set, Forms 6i cannot connect.
Read this thread:
connecting form 6i to oracle database 10G express edition -
Enter your name and password for the server when trying to connect PC and Mac?
I'm trying to connect my iMac and my WIndows tablet (got it for free) together through my home network. I open iPhoto, then "Import to Library" ; the connection fails and when I click on "Connect as" up pops this box asking me to "enter your name and password for the server -computer name here-". HELP!! Where do I find the password? I've tried everything possible and no go.
I am running Windows 8 and Lion.Hi Tom! Welcome to the Apple discussions. You have posted in the forum dedicated to the application Appleworks. Your question is better to post in the forum for MacOs 10.6. In that forum you have several sub-forums to choose from.
-
I'm trying to connect SGE2010 and SGE2000 in a stack but it does not work
I have just bought 4 SGE switches. SGE2000, SGE2000P, SGE2010 and SGE2010P. I’m trying to connect them in a stack but it does not work. It is possible to connect SGE2010 and SGE2010P in a stack but the other models (SGE2000, SGE2000P) will not connect. I have reset all switches to default and connected the switches in a ring. The 24 ports units has been connected to port 12 and 24 and the 48 ports units has been connected to port 24 and 48The units seem to take the right please in the stack but the 48 units end up with light in all lambs.
Cane SGE2000/P and SGE2010/P really coexist in a stack?
According to Cisco’s website coexistence of SGE2000/P and SGE2010/P in a stack is possible.I have read all availably documentation and tried every ting I cane thing of. However I have not been successful in connecting these devises.
Is there anybody out there who has a stack with both 24 and 48 port SGE devises? I f there is what software version(s) is there installed on the devises? -
Error 403 and 500 when trying to connect SLD and IR,ID
Hi all
i have installed xi in my system. iam getting an error 403 and 500 when iam trying to connect to sld and ir,id. I think we have to set the roles .i don't know how to set the roles. please help me in this issue.
thanks in advance.
s.reddyReddy,
For 403 error take a look at: note 698017
ICM Patch Collection (VII)
Also go through the thread:
403 ERROR
For 500 error go through the threads:
500 internal server error
500 Internal server error
---Satish -
I have a iPhone 4 S 16 GB. I cannot connect to my home Wi Fi. I tried following some suggestions I saw out here but nothing helps. It just keeps trying and trying to connect.
You didn't say what you have already tried, but if you haven't already done so, power-cycle your router (unplug it for 15 seconds then plug it back in), then on your phone go to Settings>General>Reset and tap Reset Network Settings, then try joining your wifi again.
-
I m trying a 4 hour to connect Imassage and FaceTime but still on screen waiting for activation wrote is this process too long??
The following has troubleshooting for that error message that may explain or help: http://support.apple.com/kb/TS4268
Maybe you are looking for
-
Volume change sound effect won't stop
So I changed my preferences and unticked the "Play feedback when volume is changed" option. Basically all is good for a while then a week or two later I'll realise the sound effect is back when I change the volume. But the option remains unticked in
-
ITune won't transfer Video Podcast (TED talk video) to my ipod
Hi, I had a problem lately: iTune will not transfer "TED talk" podcast video, it was working before. All my other podcast sync (and I verified that "TED talk" was checked in the sync tab) even when I transfer them manualy it won't copy to my iPod. Th
-
Autologin in Windows 7 using ZCM
Hello, I have a problem concerning the possibility, if ever exists, to make an autologin under a PC Windows 7 using ZCM 10, DLU activated. I didn't find the similar as it was in Windows XP and the autologin options added in the registry. In Windows X
-
Difference between ORDERADM_H and CUSTOMER_H
Hi, I have a requirement to add new fields(Z fields) to Service Order at header level. I thought I would add it on ORDERADM_H but found that there is an object CUSTOMER_H for extensions. I would like to understand what essentially is the difference b
-
2.0 upgrade/operation woes
I installed the 2.0 upgrade to my 16 GB Touch last night, but not without difficulty and continuing problems. The attempted backup did not work, as some have noted. (My particular issue was an error -43.) I finally gave up and let it upgrade anyway,