My Oracle Support Banner

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

Last updated on FEBRUARY 14, 2022

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 11.1 to 11.2]
Oracle Database Cloud Schema Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.
Add *** ***


Using the Database Gateway for ODBC (DG4ODBC) 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'@'' for table 'discounts'
ORA-02063: preceding 2 lines from MYSQL

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


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.