Solved

dbms_utility.active_instances

Posted on 2001-07-16
3
625 Views
Last Modified: 2008-01-09
I am trying to determine the instance name using dbms_utility.  I get following error:

PLS-00306: wrong number or types of arguments in call to 'ACTIVE_INSTANCES'

Any suggestions. Code snippet below:


TYPE instance_record is RECORD
(
       inst_number number,
      inst_name   varchar2(60)
);
     

TYPE instance_table is TABLE OF instance_record INDEX BY BINARY_INTEGER;

inst_tab instance_table;
inst_count number;

BEGIN      
 DBMS_UTILITY.ACTIVE_INSTANCES(inst_tab, inst_count);
END;
0
Comment
Question by:curtjenk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 5

Expert Comment

by:ser6398
ID: 6287427
try declaring your variable as follows:

inst_tab   DBMS_UTILITY.instance_table;



0
 
LVL 3

Expert Comment

by:UsamaMunir
ID: 6288450
SQL> declare
  2  inst_table DBMS_UTILITY.INSTANCE_TABLE;
  3  INST_NUM NUMBER;
  4  BEGIN
  5  DBMS_UTILITY.ACTIVE_INSTANCES(INST_TABLE,INST_NUM);
  6  END;
  7  /

PL/SQL procedure successfully completed.

I HOPE IT HELPS

Regards
Usama Munir
0
 
LVL 5

Accepted Solution

by:
ser6398 earned 25 total points
ID: 6288511
DECLARE

inst_tab     DBMS_UTILITY.instance_table;
inst_count   number;

BEGIN      
  DBMS_UTILITY.ACTIVE_INSTANCES(inst_tab, inst_count);
END;
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question