Fix schema dump when Oracle and other databases used in each environment

This pull request modifies and fixes #366 including a unit test.