Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2801

Re: create database/disk init

$
0
0

Hi,

 

first you have to create two devices with disk init. One device is for data and the other for the transaction log. If they are in place, you can create a database on them. Here is an example:

 

disk init name = 'cistest_data2',

physname = '/var/sybase/devices/cistest_data2',

size  = '1024M'

go

 

disk init name = 'cistest_log2',

physname = '/var/sybase/devices/cistest_log2',

size  = '512M'

go

 

create database cistest_1503b on cistest_data2 = 1024 log on cistest_log2 = 512

go

 

Please note that the size parameter in disk init is in pages, but you can specify others as you can see in my example.

The sizes in create database are MB by default.

 

If your device is not big enough it can be extended using "disk resize" command. The new / additional space must be added to the database by using the alter database command.

 

You can use

sp_helpdevice [devicename]

to check the devices and

sp_helpdb [dbname]

to check databases.

 

Best regards,

Juergen


Viewing all articles
Browse latest Browse all 2801

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>