dbfhadmin -script -type:datastore -provider:ora -name:<datastore-name> -file:<script-name.sql>
where <datastore-name> is the name of the datastore to be created within the database, and <script-name.sql> is the name of the script file to be created.
Once you have created the script files, use the dbfhadmin utility to run them, and create the required databases.
Before you run the -createdb command, ensure that the sqlplus command is on the PATH. (SQL *Plus is Oracle's command line database utility.)
dbfhadmin -createdb -file:<script-name.sql> -type:datastore -provider:ora -existdb:<db-name> -user:<user-name> -password:<password>
where <script-name.sql> is the name of the script file that was created in an earlier step; <db-name> is the name of a database reference in your tnsnames.ora file; and <user-name> and <password> are valid credentials for the instance.
Now that the datastores have been created, you can configure the database configuration file to use them.