By default, Hive and Oozie use an embedded Derby database for its metastore.
To use an external database for Hive and Oozie metastores, Microsoft SQL Server database must be deployed and available in your environment.
![[Important]](../common/images/admon/important.png)
Important Before using SQL server for Hive metastore, set up Microsoft SQL Server JDBC Driver using the instructions provided here.
Ensure that your database administrator creates the following databases and users.
Note down the database name and user account credentials. You need these details while configuring the HDP Installer.
For Hive:
hive_dbname
![[Note]](../common/images/admon/note.png)
Note Create Hive database in SQL.
hive_dbuser
![[Note]](../common/images/admon/note.png)
Note Create Hive users on SQL and add them to the
sysadminrole within SQL.hive_dbpasswd
For Oozie:
oozie_dbname
![[Note]](../common/images/admon/note.png)
Note Create Oozie database in SQL.
oozie_dbuser
![[Note]](../common/images/admon/note.png)
Note Create Oozie users on SQL and add them to the
sysadminrole within SQL.oozie_dbpasswd
![[Important]](../common/images/admon/important.png)
Important Ensure that you set the security policy of Microsoft SQL server to use both SQL and Windows authentication. (By default, the security policy uses Windows authentication.)

