PostgreSQL to Oracle Database with Oracle GoldenGate 11.2.1 - oracle

I've spent 2 days to sync postgresql database to oracle. Read few books, googled many times..
1. I have setup PostgreSQL on CentOS 6.5 (A) also installed oracle database on this VPS. copied GoldenGate to it.
2. I have already setup 2 oracle VPS using Goldengate and setup as Source (B) and Target (C). I'm trying to sync PostgreSQL to Target VPS.
3. GoldenGate runs on A server without error.
The problem is when I setting up it requires ODBC config (page 14). I'm new to PostgreSQL so little confusing for this..
Also when I google i find only to postgresql from oracle.
Main doc I'm following is http://docs.oracle.com/cd/E35209_01/doc.1121/e29642.pdf

Actually I have found Oracle Golden Gate new features https://blogs.oracle.com/dataintegration/resource/2013-DIFamily/OGG_WinUnix_Rel_Notes_11.2.1.0.7.pdf
Oracle Golden Gate don't support what I want to do.
They say:
Oracle GoldenGate introduces support for PostgreSQL. This support includes the mapping, manipulation,
filtering, and delivery of data from other types of databases to a PostgreSQL database. Oracle GoldenGate
does not support the capture of data from PostgreSQL to other PostgreSQL databases or to other kinds of
databases.

GoldenGate does not support Postgres as a source - only target.
Check out Attunity for what you are trying to do.

Postgres support was only for delivery in Oracle GoldenGate 12.2. Oracle is working on a full capture/delivery support for Postgres. It will be out in a later release post 19c. Please check the OTN website for versions.

Related

Oracle- How to check if streaming functionality is enabled in the database

I need to consume streaming data from an oracle database.
The database team informed me, that the streaming functions are enabled, but how can I make sure of that?
Database version: 19.0.0.0.0
Streams are desupported in Oracle 19c meaning that they can not be used at all. See Oracle Support Doc 2388741.1. It is also mentioned in the release notes for 19c.

Oracle: Copy Database Oracle 10.2.0.2 to Oracle 12c

Currently we have a database running on Oracle 10g (10.2.0.2) in production which needs to be up 24/7, but since it is not supported by the data center, both server OS and Oracle database 10g, we have to move to Oracle 12c as agreed by the superiors. I know I can't use a direct expdp/impdp from 10.2.0.2 to 12.2.0.1. And with limited resources, meaning server resources and no access to oracle support to download oracle 10.2.0.5 patch set or any patch set that is available.
What is the safest and best way with minimal downtime option to move it from 10g to 12c? Do I need to install an 11gR2 software and use it to expdp the data?
The impdp should be downward compatible, but what you can do is:
Do the expdp of your 10.2 database with the 12c software
Use the VERSION parameter of expdp and impdp if you still have problems
You have not told us how big your 10.2 database is and whether you have a limited budget or not. Sometimes the 'superiors' want every last transaction accounted for, and the only way to do this is to use Goldengate. So you can setup the target database, take as long as you need to import the data, and all the while goldengate is keeping the source and target in synch. Goldengate is expensive though and should only be necessary if you have terabytes to deal with.

How to connect an oracle 11g database and php

I'm working on a university assignment where I am trying to work with PHP and Oracle 11g database. I've downloaded Oracle 11g in to my PC, and I'm actually accessing the databases I made at university I am also able to use the service name, hostname and SID set by my university.
However, what I'm slightly puzzled by is how can I work with Oracle database and PHP? I have XAMP installed in my PC which enables me to work with MySQL and PHP, but was wondering If I can also use this with oracle.
Thanks
Try the underground PHP and Oracle manual here
http://www.oracle.com/technetwork/topics/php/underground-php-oracle-manual-098250.html
From the "Who should read this book" section
This book is designed to bridge the gap between the many PHP and the
many Oracle texts available. It shows how to use the PHP scripting
language with the Oracle database, from installation to using them
efficiently.
The installation and database discussion in this book highlights the
Oracle Database 10g Express Edition, but everything covered in this
book also applies to the other editions of the Oracle database,
including Oracle Database 11g. The PHP you write for Oracle Database
10g Express Edition can be run, without change, against all editions
of the Oracle database as well.
The book contains much unique material on PHP's Oracle OCI8 and
PDO_OCI extensions. It also incorporates several updated installation
guides previously published on the Oracle Technology Network web site.
There is also an tutorial of connecting PHP with Oracle here http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/oow10/php_db/php_db.htm
and some further tutorials in the Oracle+PHP cookbook here
http://www.oracle.com/technetwork/articles/index-091900.html

Connecting to different database versions

I maintain a set of applications that use Pro*C to connect to Oracle 10g databases. These applications are generally involved with moving data from one database to another. In each case a connection is made to the source database and a separate connection is made to the target database. For reasons that are out of my control the target databases are to be upgraded to 11g whilst the source databases are not. I have searched the internet unsuccessfully, well I have posed the problem as many different ways as I can think of in google, in order to determine whether connecting to different versions of the database is acceptable .The only, almost relevant, documentation I can find is this Can anyone point me to any other documentation that would allay my clients fears?
The official client/ server compatibility matrix for Oracle is My Oracle Support 207303.1 "Client/ Server/ Interoperability Support Between Different Oracle Versions". That is probably the documentation that your clients would want to see.
The quick version is that if your application were to use, say, the 10.2 Oracle client, you would be able to connect to databases from 9.2.0.4 to 11.2.0.x. If your application were to use the 9.2 Oracle client, you'd be able to connect to databases from 8.1.7.x to 11.2.0.x. If you used an earlier version of the Oracle client, you would not be able to connect to an 11.1 or an 11.2 database.

Oracle 11g Backward compatibility with older oracle releases

Our organization is planning to upgrade its most of the oracle servers & clients to 11g Release 2.
But one of our client system is still using oracle 8i installation.
Can we able to access the objects of Oracle 8i from oracle 11g client?
Some blogs says that it should work and other say it won't.
Can anybody faced any issue with such configuration.
One of the senior dba told us that oracle only supports backward compatibility of 2 versions earlier to current version. Assuming this fact we shouldn't been able to access database objects running on oracle version 8.
Kindly help.
Thanks in advance.
We had to revert to Oracle 10 client (10.1, I believe) in order to connect to an Oracle 8 database. If there is a way to do it using 11.2, I'd like to be schooled.
EDIT: 10.2 will work. Here's the official word:
http://www.oracle.com/technetwork/database/windows/install10202-083849.html
"Access to an Oracle Database Server (Oracle8i Release 3 or later)"
And as of 11.1, you're out of luck:
http://www.oracle.com/technetwork/database/windows/install11106-087844.html
"Access to an Oracle Database Server (Oracle9i Release 2 or later)"
Oracle doesn't even list version 8 in any compatibility tables on their web site. We verified that current (11g R2) JDBC drivers from Oracle do not work with Oracle 8 database sources. It means that it is not possible to access Oracle 8 databases from the latest version of Oracle SQL Developer because it is using JDBC driver.
While there is a slim chance to be able to access Oracle 8 from some other Oracle 11g client, I would not bet my business on that.
Check out MyOracleSupport
Subject: Client / Server / Interoperability Support Between Different Oracle Versions
Doc ID: 207303.1
It won't go directly.

Resources