{"id":16934961,"url":"https://github.com/mfvitale/postgres-oracle-fdw","last_synced_at":"2025-04-11T18:53:39.420Z","repository":{"id":147022927,"uuid":"201222260","full_name":"mfvitale/postgres-oracle-fdw","owner":"mfvitale","description":"Dockerfile for build a PostgreSQL image with Oracle Foreign Data Wrapper extension","archived":false,"fork":false,"pushed_at":"2019-08-09T07:02:32.000Z","size":71954,"stargazers_count":17,"open_issues_count":1,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T14:50:56.059Z","etag":null,"topics":["docker","oracle-database","postgresql","postgresql-extension"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mfvitale.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-08T09:12:11.000Z","updated_at":"2024-12-09T21:16:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"72567936-f596-49de-b2cf-252338e740e6","html_url":"https://github.com/mfvitale/postgres-oracle-fdw","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfvitale%2Fpostgres-oracle-fdw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfvitale%2Fpostgres-oracle-fdw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfvitale%2Fpostgres-oracle-fdw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfvitale%2Fpostgres-oracle-fdw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mfvitale","download_url":"https://codeload.github.com/mfvitale/postgres-oracle-fdw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248464554,"owners_count":21108238,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","oracle-database","postgresql","postgresql-extension"],"created_at":"2024-10-13T20:53:22.399Z","updated_at":"2025-04-11T18:53:39.412Z","avatar_url":"https://github.com/mfvitale.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Intro\nAll the oracle client library and FDW extention is in the _sdk_ bacause is not possbile to get it through wget from Oracle site.\nIf you need another version download it from [Oracle site](https://www.oracle.com/database/technologies/instant-client/downloads.html) an put it into sdk folder.\n# Build image\n```console\ndocker build -t postgres-ora-fdw:11.4 .\n```\n## Supported args\n\n| Arg                   | default       |\n| -------------         | ------------- |\n| postgres_version      | 11.4          |\n| oracle_fdw_version    | 2_1_0         |\n| instantclient_version | 19_3          |\n\n*Example*\n```console\ndocker build --build-arg postgres_version=10.4 -t postgres-ora-fdw:10.4 .\n```\n# Run image\ndocker run -d  --name test-postgres postgres-ora-fdw:11.4\n\n# Create Foreign Data Wrapper\nEnter into container\n```console\ndocker exec -it test-postgres bash\n```\n\nthen\n\n```console\npsql\n```\n\nthen create the extension and the connection to remote DB\n\n```console\nCREATE EXTENSION oracle_fdw;\nCREATE SERVER oradb FOREIGN DATA WRAPPER oracle_fdw\n          OPTIONS (dbserver '//\u003chost\u003e:1521/\u003cdatabase\u003e');\nGRANT USAGE ON FOREIGN SERVER oradb TO postgres;\nCREATE USER MAPPING FOR postgres SERVER oradb OPTIONS (user 'user', password 'password');\n```\nthen import table (this is like creating a symbolic link to remote database, no data is imported)\n```console\nIMPORT FOREIGN SCHEMA \"\u003cforeignSchemaName\u003e\"\n    FROM SERVER oradb\n    INTO \u003clocalSchemaName\u003e;\n```\n\nmore info on [PostgreSQL docs](https://www.postgresql.org/docs/10/sql-importforeignschema.html).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfvitale%2Fpostgres-oracle-fdw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfvitale%2Fpostgres-oracle-fdw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfvitale%2Fpostgres-oracle-fdw/lists"}