Ora-4052 Ora-28500 With DG4ODBC Select Command Denied Using Pl/Sql And Mysql (Doc ID 819344.1)

Last updated on MARCH 27, 2013

Applies to:

Oracle Database - Enterprise Edition - Version 11.1.0.6 to 11.2.0.3 [Release 11.1 to 11.2]
Information in this document applies to any platform.
Add ***Checked for relevance on 10-May-2012***


Symptoms

Using the Database Gateway for ODBC (DG4ODBC) 11.1.0.7 on Linux x86 5.3 to select from MySQL using a PL/SQL procedure fails with error :

ORA-04052: error occurred when looking up remote object vpdodbc.discounts@MYSQL
ORA-00604: error occurred at recursive SQL level 1
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[MySQL][ODBC 5.1 Driver][mysqld-5.0.45]SELECT command denied to user
'vpdodbc'@'mysql.host' for table 'discounts'
ORA-02063: preceding 2 lines from MYSQL

The same command works successfully in a SQL statement run from SQLPLUS.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms