Courseiva
Migrate data solutionshardMultiple ChoiceObjective-mapped

PCDE Migrate data solutions Practice Question

A company is performing a heterogeneous migration from Oracle to Cloud SQL for PostgreSQL using Ora2Pg. During testing, they find that a stored procedure using Oracle's PL/SQL `DBMS_OUTPUT.PUT_LINE` does not execute after conversion. What is the most likely issue, and how should it be resolved?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

The procedure uses `DBMS_OUTPUT.PUT_LINE`, which should be replaced with `RAISE NOTICE` in PostgreSQL.

Ora2Pg converts PL/SQL to PL/pgSQL. `DBMS_OUTPUT.PUT_LINE` in Oracle is equivalent to `RAISE NOTICE` in PostgreSQL. Ora2Pg may not automatically convert all procedural constructs, requiring manual review and adjustment.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • The procedure uses `DBMS_OUTPUT.PUT_LINE`, which should be replaced with `RAISE EXCEPTION`.

    Why it's wrong here

    `RAISE EXCEPTION` is for errors, not output.

  • The procedure uses `DBMS_OUTPUT.PUT_LINE`, which is supported natively in PostgreSQL.

    Why it's wrong here

    PostgreSQL does not have `DBMS_OUTPUT`.

  • The procedure uses `DBMS_OUTPUT.PUT_LINE`, which should be replaced with `RAISE NOTICE` in PostgreSQL.

    Why this is correct

    Correct. `DBMS_OUTPUT.PUT_LINE` is Oracle-specific; in PostgreSQL, use `RAISE NOTICE`.

  • The procedure must be rewritten in Python using PL/Python.

    Why it's wrong here

    Unnecessary; use PL/pgSQL with `RAISE`.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

About these practice questions

Courseiva writes every PCDE question from scratch — 1,446 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This PCDE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCDE exam.