PLS-00306: wrong number or types of arguments in call : Compile Error « PL SQL « Oracle PL / SQL

Home
Oracle PL / SQL
1.Aggregate Functions
2.Analytical Functions
3.Char Functions
4.Constraints
5.Conversion Functions
6.Cursor
7.Data Type
8.Date Timezone
9.Hierarchical Query
10.Index
11.Insert Delete Update
12.Large Objects
13.Numeric Math Functions
14.Object Oriented Database
15.PL SQL
16.Regular Expressions
17.Report Column Page
18.Result Set
19.Select Query
20.Sequence
21.SQL Plus
22.Stored Procedure Function
23.Subquery
24.System Packages
25.System Tables Views
26.Table
27.Table Joins
28.Trigger
29.User Previliege
30.View
31.XML
Oracle PL / SQL » PL SQL » Compile Error 
PLS-00306: wrong number or types of arguments in call
    
SQL>
SQL> create or replace TYPE number_table IS TABLE OF INTEGER;
  2  /

Type created.

SQL> create or replace PROCEDURE print_list(list_in NUMBER_TABLEIS
  2   BEGIN
  3       FOR i IN list_in.FIRST..list_in.LAST LOOP
  4         IF list_in.EXISTS(iTHEN
  5           DBMS_OUTPUT.PUT_LINE('List ['||list_in(i)||']');
  6         END IF;
  7       END LOOP;
  8   END print_list;
  9   /

Procedure created.

SQL>
SQL>
SQL>
SQL> DECLARE
  2     number_list NUMBER_VARRAY := number_varray(1,2,3,4,5);
  3
  4   BEGIN
  5     print_list(number_list);
  6
  7
  8     number_list.TRIM(3);
  9
 10     print_list(number_list);
 11   END;
 12   /
   print_list(number_list);
   *
ERROR at line 5:
ORA-06550: line 5, column 4:
PLS-00306: wrong number or types of arguments in call to 'PRINT_LIST'
ORA-06550: line 5, column 4:
PL/SQL: Statement ignored
ORA-06550: line 10, column 4:
PLS-00306: wrong number or types of arguments in call to 'PRINT_LIST'
ORA-06550: line 10, column 4:
PL/SQL: Statement ignored

   
    
    
    
  
Related examples in the same category
1.Check the error
2.Check error for procedure
3.Check error form stored procedure
4.PLS-00363: expression '3' cannot be used as an assignment target
5.Set the PLSQL_WARNING level to DISABLE:ALL
6.This example illustrates the PLS-483 error
7.This package will not compile because the specification and body do not match.
8.Build an anonymous block that will trigger an error.
9.how DDL doesn't work with PL/SQL
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.