[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1402
  • Last Modified:

How to reset a DBMS_UTILITY.UNCL_ARRAY variable?

Hello,
In a PL/SQL stored procedure I am using the folllowing variable:
minnie DBMS_UTILITY.uncl_array;

In the procedure, I do many assignments:

minnie(0) := '1';
minnie(1) := '3'
... and so on.

How can I reset this DMBS_UTILITY.UNCL_ARRAY variable?
0
hc2342uhxx3vw36x96hq
Asked:
hc2342uhxx3vw36x96hq
  • 2
2 Solutions
 
Naveen KumarProduction Manager / Application Support ManagerCommented:
try something like

minnie := DBMS_UTILITY.uncl_array();

or if the above does not work...

in the declaration section....

minnie DBMS_UTILITY.uncl_array;
dummy DBMS_UTILITY.uncl_array := DBMS_UTILITY.uncl_array();

in the executable section after the assignments...
minnie(0) := '1';
minnie(1) := '3'

minnie := dummy;
0
 
sdstuberCommented:
by "reset"  do you mean remove all the elements?


minnie.delete;
0
 
hc2342uhxx3vw36x96hqAuthor Commented:
Perfect solution, many thanks ;-)
0
 
Naveen KumarProduction Manager / Application Support ManagerCommented:
but which one did exactly work for you because i gave you two options... just got curious as to which one you have used.
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now