Similar to mysql command:
create database if not exists <DB_NAME>
Is there a way by which I can check whether container exists or not
using shell and then do createContainer.
You can do that from the API:
You can call XmlManager:penContainer and specify the DB_CREATE flag.
For more information:
http://www.sleepycat.com/xmldocs/api...Container.html