a s s i g n m e n t n o : 1 · 2019. 6. 17. · d e p a rt m e n t o f i n f o rm a tio n t e c h n...

34
Bachelor of Arts in Educational Studies and Digital Technology Handbook Version 4 August 31, 2016 Contact Information: Roland van Oostveen, PhD Associate Professor, Faculty of Education University of Ontario Institute of Technology Tel: 905.721.8668 x 2657 E-mail: [email protected]

Upload: others

Post on 09-Oct-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: A s s i g n m e n t N o : 1 · 2019. 6. 17. · D e p a rt m e n t o f I n f o rm a tio n T e c h n o lo g y S u b je c t : SL-I (P R ) (2 0 1 7 -18) SNJB’s Late Sau. K B Jain College

D e p a r t m e n t o f I n f o r m a t i o n T e c h n o l o g y S u b j e c t : S L - I ( P R ) ( 2 0 1 7 - 1 8 )

S N J B ’ s L a t e S a u . K B J a i n C o l l e g e o f E n g i n e e r i n g , C h a n d w a d

D a t e o f P e r f o r m a n c e : . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E x p e c t e d D a t e o f C o m p l e t i o n : . . . . . . . . . . . . . . . . . . . . . . .

A c t u a l D a t e o f C o m p l e t i o n : . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

A s s i g n m e n t N o : 1

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

T i t l e o f t h e A s s i g n m e n t : A S S I G N M E N T B A S E D O N I N S T A L L A T I O N A N D

C O N F I G U R A T I O N O F M Y S Q L A N D M O N G O D B .

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

O b j e c t i v e o f t h e A s s i g n m e n t : I n s t a l l a n d C o n f i g u r e c l i e n t a n d s e r v e r f o r M y S Q L a n d

M o n g o D B .

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

P r e r e q u i s i t e : B a s i c d a t a b a s e c o n c e p t s .

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

S p e c i f i c a t i o n R e a d a b i l i t y A s s i g n m e n t A s s e s s m e n t

a s p e r

S c h e d u l e

O r a l T o t a l D a t e d S i g n o f

S u b j e c t T e a c h e r

6 4 4 2 4 2 0

Page 2: A s s i g n m e n t N o : 1 · 2019. 6. 17. · D e p a rt m e n t o f I n f o rm a tio n T e c h n o lo g y S u b je c t : SL-I (P R ) (2 0 1 7 -18) SNJB’s Late Sau. K B Jain College

D e p a r t m e n t o f I n f o r m a t i o n T e c h n o l o g y S u b j e c t : S L - I ( P R ) ( 2 0 1 7 - 1 8 )

S N J B ’ s L a t e S a u . K B J a i n C o l l e g e o f E n g i n e e r i n g , C h a n d w a d

T h e o r y t o w r i t e

W h a t i s D a t a b a s e ?

A d a t a b a s e i s a s e p a r a t e a p p l i c a t i o n t h a t s t o r e s a c o l l e c t i o n o f d a t a . E a c h d a t a b a s e h a s o n e

o r m o r e d i s t i n c t A P I s f o r c r e a t i n g , a c c e s s i n g , m a n a g i n g , s e a r c h i n g a n d r e p l i c a t i n g t h e d a t a

i t h o l d s .

W h a t i s D B M S ?

A s o f t w a r e s y s t e m t h a t e n a b l e s u s e r s t o d e f i n e , c r e a t e , m a i n t a i n , a n d c o n t r o l a c c e s s t o t h e

d a t a b a s e . T h e D B M S i s t h e s o f t w a r e t h a t i n t e r a c t s w i t h t h e u s e r s ’ a p p l i c a t i o n p r o g r a m s

a n d t h e d a t a b a s e .

T y p i c a l l y , a D B M S p r o v i d e s t h e f o l l o w i n g f a c i l i t i e s :

I t a l l o w s u s e r s t o d e f i n e t h e d a t a b a s e , u s u a l l y t h r o u g h a D a t a D e f i n i t i o n

L a n g u a g e ( D D L ) .

I t a l l o w s u s e r s t o i n s e r t , u p d a t e , d e l e t e , a n d r e t r i e v e d a t a f r o m t h e d a t a b a s e , u s u a l l y

t h r o u g h a D a t a M a n i p u l a t i o n L a n g u a g e ( D M L ) .

A . M y S Q L :

M y S Q L i s t h e m o s t p o p u l a r R e l a t i o n a l D a t a b a s e M a n a g e m e n t S y s t e m . I t i s o w n e d b y

O r a c l e C o r p o r a t i o n a n d i t i s d e p l o y e d u n d e r t w o v e r s i o n s , o n e o p e n s o u r c e C o m m u n i t y

E d i t i o n a n d t h e o t h e r p a i d S t a n d a r d E d i t i o n , w h i c h i s w i t h a n u m b e r o f i m p r o v e d f e a t u r e s .

W e b s i t e s s u c h a s G o o g l e , W i k i p e d i a , F a c e b o o k , Y o u T u b e a n d s o o n u s i n g M y S Q L . I t c a n

b e i n t e g r a t e d w i t h f u l l f u n c t i o n a l i t y w i t h a p p l i c a t i o n p l a t f o r m s s u c h a s W o r d p r e s s , J o o m l a ,

D r u p a l a m o n g o t h e r s .

A d v a n t a g e s a n d D i s a d v a n t a g e s o f M y S Q L

A d v a n t a g e s :

1 . O p e n S o u r c e

I t i s f r e e a n d c a n b e u s e d b y a n y o n e w i t h o u t a n y l i c e n s e o r p e r m i s s i o n .

2 . E a s y , F a s t a n d H i g h P e r f o r m i n g

T h i s D a t a b a s e i s e a s y t o u s e a n d i t o p e r a t e s v e r y f a s t .

3 . C r o s s P l a t f o r m S u p p o r t s

I t c a n b e i n s t a l l e d i n a l l m a j o r O p e r a t i n g S y s t e m s a s U N I X , S o l a r i s , L I N U X i n a d d i t i o n t o

W i n d o w s w i t h o u t a l o s s o f p e r f o r m a n c e .

Page 3: A s s i g n m e n t N o : 1 · 2019. 6. 17. · D e p a rt m e n t o f I n f o rm a tio n T e c h n o lo g y S u b je c t : SL-I (P R ) (2 0 1 7 -18) SNJB’s Late Sau. K B Jain College

D e p a r t m e n t o f I n f o r m a t i o n T e c h n o l o g y S u b j e c t : S L - I ( P R ) ( 2 0 1 7 - 1 8 )

S N J B ’ s L a t e S a u . K B J a i n C o l l e g e o f E n g i n e e r i n g , C h a n d w a d

4 . M e m o r y F a c t o r

M y S Q L p r e v e n t s m e m o r y l e a k s t h u s e n a b l i n g e f f i c i e n t s o l u t i o n s f o r i n f o r m a t i o n s t o r a g e . A

s i n g l e d a t a b a s e c a n h o l d u p t o 8 T e r a B y t e o f d a t a , a l t h o u g h t h e d e f a u l t l i m i t i s 4 G B .

5 . D a t a S e c u r i t y

A n u n a u t h o r i z e d a c c e s s t o d a t a i s n o t p o s s i b l e s i n c e , i t i s p r o t e c t e d w i t h e n c r y p t e d

d a t a b a s e p a s s w o r d s . S p e c i a l a u t h o r i t y a n d r i g h t s a r e s u b j e c t e d o n l y t o a u t h o r i z e d e n t r y .

D i s a d v a n t a g e s

1 . D e v e l o p e r s a c c u s e M y S Q L f o r n o t h a v i n g a g o o d d e v e l o p i n g a n d d e b u g g i n g t o o l

c o m p a r e d t o p a i d d a t a b a s e s . I t i m p l e m e n t s a l e s s n u m b e r o f f u n c t i o n s a n d h e n c e

c o m p l i c a t e d c o d e s c a n n o t b e d e b u g g e d e f f i c i e n t .

2 . A s i t u a t i o n o f s e c u r i t y v u l n e r a b i l i t y m i g h t o c c u r s i n c e n o s t a n d a r d e n c r y p t i o n c a n b e

u s e d i n s i d e a s t o r e d r o u t i n e w i t h i n t h e d a t a b a s e .

3 . S Q L C h e c k C o n s t r a i n t s a r e n o t s u p p o r t e d i n M y S Q L . T h e s e a r e u s e d t o s e t a l i m i t t o

v a l u e s w i t h i n a c o l u m n .

L i m i t a t i o n s

1 . L i k e o t h e r S Q L d a t a b a s e s , M y S Q L d o e s n o t c u r r e n t l y c o m p l y w i t h t h e f u l l S Q L

s t a n d a r d f o r s o m e o f t h e i m p l e m e n t e d f u n c t i o n a l i t y , i n c l u d i n g f o r e i g n k e y r e f e r e n c e s

w h e n u s i n g s o m e s t o r a g e e n g i n e s o t h e r t h a n t h e d e f a u l t o f I n n o D B .

2 . U p u n t i l M y S Q L , t r i g g e r s a r e l i m i t e d t o o n e p e r a c t i o n / t i m i n g , m e a n i n g t h a t a t m o s t

o n e t r i g g e r c a n b e d e f i n e d t o b e e x e c u t e d a f t e r a n I N S E R T o p e r a t i o n , a n d o n e b e f o r e

I N S E R T o n t h e s a m e t a b l e . N o t r i g g e r s c a n b e d e f i n e d o n v i e w s .

B . M o n g o D B :

M o n g o D B i s a c r o s s - p l a t f o r m , d o c u m e n t o r i e n t e d d a t a b a s e t h a t p r o v i d e s , h i g h

p e r f o r m a n c e , h i g h a v a i l a b i l i t y , a n d e a s y s c a l a b i l i t y . M o n g o D B w o r k s o n c o n c e p t o f

c o l l e c t i o n a n d d o c u m e n t

D a t a b a s e

D a t a b a s e i s a p h y s i c a l c o n t a i n e r f o r c o l l e c t i o n s . E a c h d a t a b a s e g e t s i t s o w n s e t o f f i l e s o n

t h e f i l e s y s t e m . A s i n g l e M o n g o D B s e r v e r t y p i c a l l y h a s m u l t i p l e d a t a b a s e s .

Page 4: A s s i g n m e n t N o : 1 · 2019. 6. 17. · D e p a rt m e n t o f I n f o rm a tio n T e c h n o lo g y S u b je c t : SL-I (P R ) (2 0 1 7 -18) SNJB’s Late Sau. K B Jain College

D e p a r t m e n t o f I n f o r m a t i o n T e c h n o l o g y S u b j e c t : S L - I ( P R ) ( 2 0 1 7 - 1 8 )

S N J B ’ s L a t e S a u . K B J a i n C o l l e g e o f E n g i n e e r i n g , C h a n d w a d

C o l l e c t i o n

C o l l e c t i o n i s a g r o u p o f M o n g o D B d o c u m e n t s . I t i s t h e e q u i v a l e n t o f a n R D B M S t a b l e . A

c o l l e c t i o n e x i s t s w i t h i n a s i n g l e d a t a b a s e . C o l l e c t i o n s d o n o t e n f o r c e a s c h e m a . D o c u m e n t s

w i t h i n a c o l l e c t i o n c a n h a v e d i f f e r e n t f i e l d s . T y p i c a l l y , a l l d o c u m e n t s i n a c o l l e c t i o n a r e o f

s i m i l a r o r r e l a t e d p u r p o s e .

D o c u m e n t

A d o c u m e n t i s a s e t o f k e y - v a l u e p a i r s . D o c u m e n t s h a v e d y n a m i c s c h e m a . D y n a m i c

s c h e m a m e a n s t h a t d o c u m e n t s i n t h e s a m e c o l l e c t i o n d o n o t n e e d t o h a v e t h e s a m e s e t o f

f i e l d s o r s t r u c t u r e , a n d c o m m o n f i e l d s i n a c o l l e c t i o n ' s d o c u m e n t s m a y h o l d d i f f e r e n t t y p e s

o f d a t a .

A d v a n t a g e s :

S c h e m a l e s s : M o n g o D B i s d o c u m e n t d a t a b a s e i n w h i c h o n e c o l l e c t i o n h o l d s

d i f f e r e n t d i f f e r e n t d o c u m e n t s . N u m b e r o f f i e l d s , c o n t e n t a n d s i z e o f t h e d o c u m e n t

c a n b e d i f f e r f r o m o n e d o c u m e n t t o a n o t h e r .

S t r u c t u r e o f a s i n g l e o b j e c t i s c l e a r

N o c o m p l e x j o i n s

D e e p q u e r y - a b i l i t y . M o n g o D B s u p p o r t s d y n a m i c q u e r i e s o n d o c u m e n t s u s i n g a

d o c u m e n t - b a s e d q u e r y l a n g u a g e t h a t ' s n e a r l y a s p o w e r f u l a s S Q L

D i s a d v a n t a g e s :

1 ) L o c k i n g :

2 ) P o o r s p a c e e f f i c i e n c y :

3 ) T o o M a n y D a t a b a s e s :

4 ) O r d e r e d d a t a :

5 ) S k i p + L i m i t Q u e r i e s a r e s l o w :

Page 5: A s s i g n m e n t N o : 1 · 2019. 6. 17. · D e p a rt m e n t o f I n f o rm a tio n T e c h n o lo g y S u b je c t : SL-I (P R ) (2 0 1 7 -18) SNJB’s Late Sau. K B Jain College

D e p a r t m e n t o f I n f o r m a t i o n T e c h n o l o g y S u b j e c t : S L - I ( P R ) ( 2 0 1 7 - 1 8 )

S N J B ’ s L a t e S a u . K B J a i n C o l l e g e o f E n g i n e e r i n g , C h a n d w a d

D i f f e r e n c e i n M y S Q L a n d M o n g o D B

S Q L C o n c e p t s M o n g o D B C o n c e p t s

d a t a b a s e d a t a b a s e

t a b l e C o l l e c t i o n

R o w D o c u m e n t 0 r B S O N D o c u m e n t

C o l u m n F i e l d

I n d e x I n d e x

T a b l e J o i n E m b e d d e d d o c u m e n t s & L i n k i n g

P r i m a r y k e y P r i m a r y K e y

S p e c i f y a n y u n i q u e c o l u m n o r c o l u m n

c o m b i n a t i o n a s p r i m a r y k e y .

I n M o n g o D B , t h e p r i m a r y k e y i s a u t o m a t i c a l l y

s e t t o t h e _ i d f i e l d .

a g g r e g a t i o n ( e . g . g r o u p b y ) a g g r e g a t i o n p i p e l i n e

C o n c l u s i o n :

W e h a v e s t u d i e d i n s t a l l a t i o n a n d c o n f i g u r a t i o n o f M y s q l a n d M o n g o d b