I'm trying to use an Amazon Redshift JDBC drivers version 1.2.27.1051 in Oracle SQL Developer because it supposedly supports Amazon Redshift stored procedures. I need stored procedures to systematically generate and transform some data prior to inserting into a table. However, using the JDBC driver in Oracle SQL Developer 18.4.0.376 keeps running into the 'ERROR: syntax error at or near "PROCEDURE"' signaling that it does not support stored procedures. Is there some configuration I am missing? Or is something wrong with the versions of JDBC and Oracle SQL Developer I am using?
JDBC Driver I installed: https://s3.amazonaws.com/redshift-downloads/drivers/jdbc/1.2.27.1051/RedshiftJDBC42-no-awssdk-1.2.27.1051.jar
Oracle SQL Developer version: https://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/sqldev-downloads-184-5458710.html
I followed most of the steps in this guide to setup SQL Developer to connect to Redshift, but used the Redshift JDBC driver instead of Postgres Driver: https://blog.openbridge.com/definitive-guide-for-connecting-oracle-sql-developer-to-amazon-redshift-e204fd76e334
Stored procedure I am attempting to test this:
CREATE OR REPLACE PROCEDURE test_sp1(f1 int, f2 varchar)
AS $$
BEGIN
RAISE INFO 'f1 = %, f2 = %', f1, f2
END;
$$ LANGUAGE plpgsql;
call test_sp1(5, 'abc');
INFO: f1 = 5, f2 = abc
CALL