Database Administration: (Lesson 9)
Database Administration: (Lesson 9)
Privileges
Privileges
Select Security
lowed by Logins
ode in the 2. Right click
onsole Tree and select New
Login
1. Type
“NorthwindEmployee” in the
Name TextBox
1. Check on the
Northwind Database
Access Tab to add a
new user to the Dafesty
database.
1. Click on Server
Role Tab
1. Select Nothwind
followed by Tables
node in the
Console Tree
1. Click on the
Search…Button
1. Click on the
Browse…Button
1. Check
NorthwindEmployee and
click OK.
1. Click Ok.
MITS4003 [Lesson 9] Copyright © 2020 VIT, All Rights Reserved 26
Administering Users’ Rights (Cont…)
– Step J: Do the same step, as it was done for select statement. Give
permission for Update command to NorthwindEmployee user by
login in with administration rights and try to execute it.
1. Select northwind
followed by Users
node in the
Console Tree
2. Right Click on
NorthwindEmployee in the
View Pane and Select
“Properties”
OR
Double Click on the
DafestyEmployee
– Step B: A dialog box for the Database Users appears and then select
Securables option. Select Search button:
Click OK
Select appropriate
object type (here we
have select tables)
Click OK
Total Slides: 58
Copyright © 2020, Victorian Institute of Technology.
The contents contained in this document may not be reproduced in any form or by any means, without the written permission of VIT,
other than for the purpose for which it has been supplied. VIT and its logo are trademarks of Victorian Institute of Technology.
• Blocking:
– Refers to storing a number of records in one block on the disk.
• Blocking factor (bfr) refers to the number of records per
block.
• There may be empty space in a block if an integral number
of records do not fit in one block.
• Spanned Records:
– Refers to records that exceed the size of one or more blocks and
hence span a number of blocks.
• Primary Index
– Defined on an ordered data file
– The data file is ordered on a key field
– Includes one index entry for each block in the data file; the index
entry has the key field value for the first record in the block, which is
called the block anchor.
– A similar scheme can use the last record in a block.
– A primary index is a non dense (sparse) index, since it includes an
entry for each disk block of the data file and the keys of its anchor
record rather than for every search value.
• Clustering Index
– Defined on an ordered data file.
– The data file is ordered on a non-key field unlike primary index,
which requires that the ordering field of the data file have a distinct
value for each record.
– Includes one index entry for each distinct value of the field; the index
entry points to the first data block that contains records with that field
value.
– It is another example of non dense index where Insertion and
Deletion is relatively straight forward with a clustering index.
• Secondary Index
– A secondary index provides a secondary means of accessing a file
for which some primary access already exists.
– The secondary index may be on a field which is a candidate key and
has a unique value in every record, or a non-key with duplicate
values.
– The index is an ordered file with two fields.
• The first field is of the same data type as some non-ordering
field of the data file that is an indexing field.
• The second field is either a block pointer or a record pointer.
• There can be many secondary indexes (and hence, indexing
fields) for the same file.
– Includes one entry for each record in the data file; hence, it is a
dense index