ASA Programming Guide
Using Java in the Database
Java-enabling a database
If you have created a database, or upgraded a database to standards, but have chosen not to Java-enable the database, you can add the necessary Java classes at a later date, using either Sybase Central or Interactive SQL.
To add the Java runtime classes to a database (Sybase Central)
Connect to the database from Sybase Central as a user with DBA authority.
Right-click the database and choose Upgrade Database.
Click Next on the introductory page of the wizard.
Select the database you want to upgrade from the list.
You can choose to create a backup of the database if you wish. Click Next.
You can choose to install jConnect meta-information support if you wish. Click Next.
Select the Install Java Support option. You must also choose which version of the JDK you want to install. The default classes are the JDK 1.3 classes.
Follow the remaining instructions in the wizard.
To add the Java runtime classes to a database (SQL)
Connect to the database from Interactive SQL as a user with DBA authority.
Execute the following statement:
ALTER DATABASE UPGRADE JAVA ON
For more information, see ALTER DATABASE statement.
Restart the database for the Java support to take effect.