DotNetNuke Upgrade Error

The Assembly Version ( [ASSEMBLYVERSION] ) does not match the Database Version ( [DATABASEVERSION] )

ERROR: Could not connect to database.

Cannot open database requested in login 'DNN_ioug_orcl'. Login fails. Login failed for user 'DNN_ioug_orcl'.