May 2019
Intermediate to advanced
600 pages
20h 46m
English
Here, we provide the steps to follow regarding how to connect to an Oracle server using oracle_fdw:
CREATE EXTENSION IF NOT EXISTS oracle_fdw;
CREATE SERVER myservFOREIGN DATA WRAPPER oracle_fdwOPTIONS (dbserver '//myhost/MYDB');CREATE USER MAPPING FOR myuserSERVER myserv;
CREATE FOREIGN TABLE mytab(id bigint, descr text)SERVER myservOPTIONS (user 'scott', password 'tiger');
INSERT INTO mytab VALUES (-1, 'Minus One');
Read now
Unlock full access