Contents Index Ways of Java-enabling a database Upgrading databases and Java

ASA Programming Guide
  Using Java in the Database
    Java-enabling a database

New databases and Java


By default, Adaptive Server Anywhere does not install Adaptive Server Anywhere runtime Java classes each time you create a database. The installation of this separately-licensable component is optional, and controlled by the method you use to create the database.

CREATE DATABASE options 

The CREATE DATABASE SQL statement has an option called JAVA. To Java-enable a database, you can set the option to ON. To disable Java, set the option to OFF. This option is set to OFF by default.

For example, the following statement creates a Java-enabled database file named temp.db:

CREATE DATABASE 'c:\\sybase\\asa9\\temp' JAVA ON

The following statement creates a database file named temp2.db, which does not support Java.

CREATE DATABASE 'c:\\sybase\\asa9\\temp2'
Database initialization utility 

You can create databases using the dbinit.exe database initialization utility. This utility has options that control whether or not to install the runtime Java classes in the newly-created database. By default, the classes are not installed.

The same options are available when creating databases using Sybase Central.


Contents Index Ways of Java-enabling a database Upgrading databases and Java