Asterisk database locked

dear team,

i have Asterisk 11.11.0 on a i686 running on centos 6 ona a vitual machine
i get blow error message all the time.

WARNING[2474]: db.c:288 db_execute_sql: Error executing SQL (COMMIT): database is locked

and also when i execute below dialplan

func_odbc.c:542 acf_odbc_read: Unable to execute query [SELECT name FROM employee WHERE id=‘1’]

Please let me know how to remove these error and also to avoid it

You have problems with Asterisk accessing your database. There is no simple answer for this. You will have to debug this by yourself. I would start with Asterisk dialplan and see what part of the dialplan fails.