Oracle Error OCI-21609: memory being resized without being allocated first

Oracle Error Message

OCI-21609: memory being resized without being allocated first

Reason for the Error

Attempt to resize memory without allocating it first.

Solution

Allocate the memory first before resizing it.