Collection Contents Index New SQL features Other new features pdf/chap3.pdf

New Features and Upgrading Guide
   CHAPTER 3. New Features in Adaptive Server Anywhere 6.0     

Database administration enhancements


This section describes enhancements made to the database administration utilities and database options.

Top of page  Database file manipulation statements

A new set of statements allows you to carry out database administration tasks that alter database files using SQL statements. This allows command scripts using these statements to be constructed, for reproducible database administration actions. It also makes the administration tasks available from any client environment, not just from the Adaptive Server Anywhere administration utilities.

New SQL statements 

The new statements include the following:

Utility database 

A new feature has been added that enables you to execute these statements without connecting to a database first. The utility database is a phantom database (there is no database file) which you can specify on a connection string. You can execute the database administration statements from a connection to the utility database.

For Info     For information on using the utility database, see Using the utility database.

New system procedures 

Other administration tasks can be carried out from system stored procedures. These include validating all the tables in a database and obtaining file usage information (number of pages, and so on).

For Info     For information on these procedures, see System and catalog stored procedures.

Database administration utilities 

The database administration utilities are unaffected in their functionality by the introduction of the SQL statements for database administration tasks. However, these utilities now use the SQL scripts in the scripts subdirectory of your installation directory to carry out their tasks.

For Info     For more information, see The Initialization utility.

Top of page  Resource management options

The database administrator can use a set of database options to control the resources available to individual users. These options act as resource governors.

Resource governor options include the following:

For full descriptions of each of these, see Database Options.

Top of page  New database options

Several new options have been introduced, and option settings can be accessed by client applications in a new manner.

Accessing database options 

Database option values are now available as function calls. In previous releases, database option settings were available to client applications only for Embedded SQL applications, using the GET OPTION statement. Database options are now available to all client applications using property functions. The GET OPTION statement is now deprecated.

For example, the following statement returns the value of the BLOCKING option:

SELECT connection_property ( 'blocking' )

For Info     For more information, see System functions.

New options 

New options have been introduced. For descriptions of each of these, see Database Options.

For the DATE_FORMAT option, a string jjj has been added to display the day of the year, from 1 to 366.

Top of page  Miscellaneous administration enhancements

Several new features have been added to the administration utilities.

Top of page  

Collection Contents Index New SQL features Other new features pdf/chap3.pdf