ORA-36164: (XSMXAGGR07) When using the COUNTVAR clause, the number of variables to be aggregated (number) must match the number of COUNTVAR variables (number).

Cause : The use rspecifide a COUNVTAR claues to theA GGREGAT Ecommand ,but then umber o fCOUNTVA Rvariablse specifeid did nto match hte numbe rof varibales to eb aggregtaed

Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts

Specifya separaet COUNTVRA for eahc variabel

update : 22-08-2017
ORA-36164

ORA-36164 - (XSMXAGGR07) When using the COUNTVAR clause, the number of variables to be aggregated (number) must match the number of COUNTVAR variables (number).
ORA-36164 - (XSMXAGGR07) When using the COUNTVAR clause, the number of variables to be aggregated (number) must match the number of COUNTVAR variables (number).

  • ora-08447 : syntax error in USAGE clause in mask options
  • ora-18004 : outline already exists
  • ora-40106 : positive target value not specified for computing Lift
  • ora-36883 : (XSSRF02) The first parameter of an AW single row function cannot be NULL.
  • ora-04006 : START WITH cannot be less than MINVALUE
  • ora-26718 : transaction limit reached
  • ora-00706 : error changing format of file 'string'
  • ora-14015 : too many partition descriptions
  • ora-01605 : missing numbers in clause "string" of string
  • ora-22345 : recompile type string.string before attempting this operation
  • ora-31090 : invalid database schema name "string"
  • ora-09701 : scnfy: maximum number of processes exceeded
  • ora-36993 : (XSRELGID10) OBJECT workspace object must be a VARIABLE, RELATION, or a numeric SURROGATE DIMENSION based on the level dimension workspace object.
  • ora-02794 : Client unable to get key for shared memory
  • ora-06569 : Collection bound by bind_array contains no elements
  • ora-16157 : media recovery not allowed following successful FINISH recovery
  • ora-40004 : penalty must be negative for BLAST-N
  • ora-31059 : Cannot insert root XML document node if it already exists
  • ora-12471 : Specified compartment or group is not authorized for user
  • ora-06564 : object string does not exist
  • ora-01950 : no privileges on tablespace 'string'
  • ora-01639 : instance string has no thread assigned to it
  • ora-16013 : log string sequence# string does not need archiving
  • ora-32818 : AQ queue string does not exist
  • ora-09770 : pws_look_up: translation failure.
  • ora-31209 : DBMS_LDAP: PL/SQL - LDAP count_entry error.
  • ora-29933 : object being disassociated has some user defined statistics stored
  • ora-38776 : cannot begin flashback generation - flash recovery area is disabled
  • ora-07208 : sfwfb: failed to flush dirty buffers to disk.
  • ora-02168 : invalid value for FREELISTS
  • Oracle Database Error Messages



    Oracle Database High Availability Any organization evaluating a database solution for enterprise data must also evaluate the High Availability (HA) capabilities of the database. Data is one of the most critical business assets of an organization. If this data is not available and/or not protected, companies may stand to lose millions of dollars in business downtime as well as negative publicity. Building a highly available data infrastructure is critical to the success of all organizations in today's fast moving economy.

    Well, the reason for above error is that i have taken the above script from a 11g database and running it on 10g database. 11g has bring some changes in password management. Below code is executed on 11g and user created successfully, which is expected result.