| От | Randall Smith |
|---|---|
| Тема | Re: oracle synchronization strategy |
| Дата | |
| Msg-id | Ed7id.38653$G15.30289@fed1read03 обсуждение исходный текст |
| Ответ на | oracle synchronization strategy (Randall Smith <randall@tnr.cc>) |
| Список | pgsql-general |
For anyone interested, the below procedure worked well. Randall Randall Smith wrote: > I am going to sync a schema in postgres with one in an oracle db. The > tables are simple, but there are 200 of them. I would like to try to > keep the sync lag < 1 minute. Here is my idea. Please critique/suggest. > > 1. Set up stored proc on oracle that records a INSERT, UPDATE, DELETE > SQL action taken on a table into a log table. > 2. Program reads the log table on oracle and issues the same SQL command > on the postgres db. In the same transaction, postgres writes to a log > showing the command has been executed. > 3. The program will query the oracle log table on some frequency ~30 > seconds. > > What are your thoughts? > > Randall
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера