Глава 4. Конфигурация
Содержание
- 4.1. Использование
- 4.2. Подключение к базе данных Oracle
- 4.3. Шифрование данных с использованием Oracle Server
- 4.4. Тестирование подключения
- 4.5. Устранение неполадок
- 4.6. Экспортируемая схема Oracle
- 4.2. Подключение к базе данных Oracle
- 4.7. Экспорт из Oracle Spatial в PostGIS
- 4.8. Импорт в Postgres Pro
- 4.9. Управление типами столбцов
- 4.10. Настройка процесса экспорта
- 4.11. Дополнительные параметры для настройки кодировок клиентов
- 4.12. Преобразование кода PL/SQL в код PL/pgSQL
- 4.13. Прочие директивы
- 4.8. Импорт в Postgres Pro
Настройка ora2pgpro заключается в выборе экспортируемой БД Oracle и типа экспорта.
Используя один файл конфигурации ora2pgpro.conf, можно полностью управлять процессом миграции БД Oracle. В файле записывается имя директивы заглавными буквами и её значение после символа табуляции. Строки, начинающиеся с #, представляют собой комментарии. Директивы можно задавать в любом порядке, а включаются они при считывании значения в файле конфигурации.
Директивы, принимающие одно значение, можно задавать в файле конфигурации несколько раз, при этом будет использоваться последнее вхождение. Директивы, принимающие список значений, также можно задавать несколько раз, и значения из последующих вхождений будут добавляться в список. Если для загрузки пользовательского файла конфигурации используется директива IMPORT, директивы из этого файла будут сохраняться в файле конфигурации после директивы IMPORT, поэтому рекомендуется задавать её в конце файла конфигурации.
Значения, переданные в командой строке, переопределяют значения из файла конфигурации.
Chapter 4. Configuration
Table of Contents
- 4.1. Usage
- 4.2. Oracle Database Connection
- 4.3. Data Encryption with Oracle Server
- 4.4. Testing Connection
- 4.5. Troubleshooting
- 4.6. Oracle Schema to Export
- 4.2. Oracle Database Connection
- 4.7. Oracle Spatial to PostGIS
- 4.8. Postgres Pro Import
- 4.9. Column Type Control
- 4.10. Taking Export Under Control
- 4.11. Special Options to Handle Character Encoding
- 4.12. PL/SQL-to-PL/pgSQL Conversion
- 4.13. Other Configuration Directives
- 4.8. Postgres Pro Import
ora2pgpro configuration can be as simple as choosing the Oracle database to export and choosing the export type.
The full control of the Oracle database migration is managed in a single configuration file named ora2pgpro.conf. The format of this file consists of a directive name in upper case followed by a tab character and a value. Comments are lines beginning with a #. There is no specific order to place the configuration directives, they are set at the time they are read in the configuration file.
For configuration directives that just take a single value, you can use them multiple times in the configuration file but only the last occurrence found in the file will be used. For configuration directives that allow a list of values, you can use it multiple times, the values will be appended to the list. If you use the IMPORT directive to load a custom configuration file, directives defined in this file will be stored from the place the IMPORT directive is found, so it is better to put it at the end of the configuration file.
Values set in the command line options override values from the configuration file.