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
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.