Create a temporary database using the Sybase Control Center Administration Console.
Prerequisites
Consider these database attributes:
- Size :
- sp_estspace helps you estimate table and index space requirements based on the definition of a specific table. See the Adaptive Server Reference Manual .
- Space for planned views, stored procedures, defaults, rules, and triggers
- Size of the transaction log
- Space for anticipated expansion
- Database device location, and whether there is enough space on that device.
- Transaction log location – Sybase recommends that you store the transaction log on a different device than the data.
Task
Sybase Control Center provides a wizard to create a temporary database.
- In the left pane of the Administration Console, expand .
- Click Temporary Databases.
- Click the drop-down arrow and select New.
You see the Add Temporary Database Wizard.
- On the Introduction screen, select the server in which to create a database.
- (Optional) For a cluster environment, click Create this as a local temporary database, then select the online instance on which to create the database.
For the Cluster Edition, you can create local user temporary databases on private devices, but you must create local system temporary databases on shared devices. Local file system devices (block devices) can be used for managing the storage needs of temporary data in the cluster. These devices are added as private devices and can only be used by local user temporary databases.
- On the Database screen, enter the name of the database you want to create.
- (Optional) For a cluster environment, on the Temporary Database Group screen, select the group in which to add the local temporary database.
You can only add a local temporary database to a temporary database group. Global temporary databases cannot be added to a temporary database group.
- (Optional) On the Devices screen, enter the size of the new database. If you do not enter a size, the default size allocated is 3MB. You can specify separately the amount of space to allocate to the log and data segments.
- (Optional) On the Options screen, select:
- With override to store the log and data on the same logical device - Sybase does not recommend this.
- (Optional) On the Data Compression screen, select:
- Data compression for the entire database – choose either page-level or row-level compression. If you choose neither option, then data is not compressed.
- LOB compression – choose from levels 0 – 9, 100, or 101.
- In-row LOB length – choose the length of the LOB column to be saved in-row. To disallow in-row LOB storage in the database, set the length to 0.
- (Optional) On the Temporary Database Group screen, select the database group that the temporary database belongs to.
- (Optional) Click Summary to view your selected options.