Решение проблем

Если файл output.sql не содержит ничего, кроме заголовка и нижнего колонтитула транзакции Postgres Pro, возможны следующие причины:

  • Perl-скрипт ora2pgpro выдаёт ошибку ORA-XXX — это означает, что указан некорректный DSN или данные для входа в систему. Проверьте сообщение об ошибке и указанную информацию и попробуйте снова.

  • Perl-скрипт ничего не выдаёт, а выходной файл пустой — пользователь не имеет доступа к данным из базы. Попробуйте подключиться к Oracle с правами суперпользователя или используйте USER_GRANTS выше или директивы из следующего раздела, в частности SCHEMA.

LOGFILE

По умолчанию все сообщения отправляются на стандартный вывод. Если указать в этой директиве путь к файлу, все строки вывода будут добавлены в этот файл.

Troubleshooting

If the output.sql file has not exported anything other than the Postgres Pro transaction header and footer, there are two possible reasons:

  • The Perl script ora2pgpro dumps an ORA-XXX error: that means that your DSN or login information is wrong, check the error and your settings, and try again.

  • The Perl script says nothing, and the output file is empty: the user lacks permission to extract something from the database. Try to connect to Oracle as super user or take a look at the directive USER_GRANTS above and in the next section, especially the SCHEMA directive.

LOGFILE

By default, all messages are sent to the standard output. If you give a file path to that directive, all output will be appended to this file.

FAQ