Solved

dbms_utility.active_instances

Posted on 2001-07-16
3
635 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
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.

729 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