Creating segments

To create a segment in a database:

Once the database device exists and is available to the database, define the segment in the database with the stored procedure sp_addsegment. The syntax is:

sp_addsegment segname, dbname, devname

where:

This statement creates the segment seg_mydisk1 on the database device mydisk1:

sp_addsegment seg_mydisk1, mydata, mydisk1