0% found this document useful (0 votes)
81 views4 pages

Question Bank Unit 2

This document contains a question bank for the database administration course at Babu Madhav Institute of Information Technology related to database storage and concurrency management. It includes short answer and long answer questions about topics such as database architecture including tablespaces and data files, data block structure and storage parameters, extent management, segment space management, temporary and undo tablespaces, modifying and taking tablespaces online/offline, transactions, locking, rollback, recovery, and undo retention parameter.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
81 views4 pages

Question Bank Unit 2

This document contains a question bank for the database administration course at Babu Madhav Institute of Information Technology related to database storage and concurrency management. It includes short answer and long answer questions about topics such as database architecture including tablespaces and data files, data block structure and storage parameters, extent management, segment space management, temporary and undo tablespaces, modifying and taking tablespaces online/offline, transactions, locking, rollback, recovery, and undo retention parameter.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

BABU MADHAV INSTITUTE OF INFORMATION TECHNOLOGY, UTU – 2019-20

Five years Integrated M.Sc. (IT) (Semester-5)


QUESTION BANK
060010515 DSE11 Database Administration
UNIT 2: DATABASE STORAGE AND CONCURRENCY MANAGEMENT

1. SHORT QUESTIONS 1 MARK


2. Where the database’s data is logically and physically stored?
3. The logical storage management is dependent on the physical storage of the data files. (True/False)
4. A tablespace can have more than one data file associated with it, whereas one data file belongs to only
one tablespace. (True/False)
5. A database has more than one tablespace. (True/False)
6. A tablespace has more than one database. (True/False)
7. Which of the following statement is incorrect?
A. You can add more space to a tablespace by adding more data files to the tablespace.
B. You can add more space to the database by adding more tablespaces
C. You can add more space to the database by adding more data files to the existing tablespaces.
D. None
8. You can add more space to a tablespace by adding more data files to the tablespace.
9. You can add more space to the database by adding more tablespaces
10. You can add more space to the database by adding more data files to the existing tablespaces.
11. None
12. What is the minimum unit of I/O in an Oracle database?
13. An operating system block is a multiple of data block. (True/False)
14. Which initialization parameter determines the database data block size at the time of database creation?
15. Does the data block size can be changed after the database is created?
16. What information are stored in block header?
17. What is the fastest way to get to the row in Oracle?
18. Segments are schema objects that does not require storage in the database.
19. Tables and indexes are examples of segments.
20. Why some schema objects do not have any segment?
21. If the extent management information is stored in the dictionary for a tablespace then it is called ………..
tablespace.

Omprakash Chandrakar 1|Page


BABU MADHAV INSTITUTE OF INFORMATION TECHNOLOGY, UTU – 2019-20
22. If the extent management information is stored by using bitmaps in each data file for a tablespace then it
is called ……….. tablespace.
23. What happens when the data block has less than PCTFREE free space?
24. When does a data block is taken off from the free-block list?
25. What happens when the data block has less than PCTUSED used space?
26. When does a data block is deemed empty enough for inserts and is placed on the free-block list?
27. Which tablespace is used for sort operation by Oracle?
28. For what purpose the keyword TEMPFILE is used while creating a tablespace?
29. How do you make a Tablespace Read-Only?
30. Which mechanism is used to keep track of all changes made in Oracle 12c database?
31. Which mechanism is used to store the previous image of the changed data block when the change is
discarded in Oracle 12c database?
32. Is a change made in database by one user is immediately visible to other users?
33. When does the change in database get visible to other user?
34. Where does the before-image of change is saved in the database?
35. For what purpose undo segment is used?
36. When does Oracle write the content of redo log buffer into redo log file?
37. For what purpose the changes made to data is written into redo log buffer?
38. When does dirty data block and undo block is written into disk?
39. Which process writes dirty data block and undo block is written into disk?
40. What happens when a database is shut down cleanly?
41. What information is used for cache recovery?
42. What information is used for transaction recovery?
43. Undo provides read consistency. (True/False)
44. How do you turns Oracle on automatic undo retention tuning mode?
45. Which Oracle’s feature let you see the state of database as they existed in the past?
46. Flashback operations depend on automatic undo management and undo data. (True/False)
47. Flashback operations depend on automatic redo management and redo data. (True/False)
48. Which mechanism of Oracle Database minimizes conflict and ensure data integrity?

SHORT QUESTIONS 2 MARKS

1. Which two tablespaces cannot be renamed or dropped?


2. Why it is suggested to group application-related data together and put it into a single tablespace?

Omprakash Chandrakar 2|Page


BABU MADHAV INSTITUTE OF INFORMATION TECHNOLOGY, UTU – 2019-20
3. Name of the three major areas in which the data block is divided?
4. What information are stored in table directory and row directory?
5. What is ROWID?
6. Name any two schema objects that do not have segments.
7. What is stored in SYSTEM and SYSAUX tablespace?
8. What choices have to make while creating a tablespace?
9. Write command for creating a tablespace named dba_tablespace containing BIGFILE. The tablespace
must contains a file named “dba_myfile.dbf” of size 5 GB at location ‘ORADAT/12C/’.
10. How many data files can be associated with a bigfile tablespace? What will be the maximum size of a
bigfile tablespace that uses 8KB data blocks and 32 KB data block?
11. How many data files can be associated with a smallfile tablespace? What will be the maximum size of a
smallfile tablespace that uses 8KB data blocks and 32 KB data block?
12. Which command is used to remove Tablespace? Explain each clause of the command in brief.
13. What happens when a tablespace can be taken Offline in normal option?
14. What happens when a tablespace can be taken Offline in immediate option?
15. What is transaction?
16. What does it mean by atomicity in database transaction?
17. What does it mean by consistency in database transaction?
18. What does it mean by isolation in database transaction?
19. What does it mean by durability in database transaction?
20. When does log buffer is written into online redo log file?
21. List any four situation in which the log buffer is flushed in to redo log file.
22. What is instance recovery or crash recovery? What are the two phases of it?
23. What tasks are carried out by PMON process when a user session abnormally terminates due to a
network issue or desktop crash?
24. What is the significance of setting UNDO_RETENTION to zero?
25. Explain w undo retention tuning mode in brief.
26. What is temporary undo feature? List any two benefits of it.
27. Differentiate between WAIT AND NOWAIT ModE.

LONG QUESTIONS 5 MARKS


1. Draw a diagram showing the relationship between the database, tablespaces, data files, and objects
within the tablespace.

Omprakash Chandrakar 3|Page


BABU MADHAV INSTITUTE OF INFORMATION TECHNOLOGY, UTU – 2019-20
2. For what reasons Oracle recommends against creating any objects other than the Oracle data dictionary
in the SYSTEM tablespace?
3. What are two data block storage parameters? Explain how they are used.
4. Describe Bigfile and Smallfile Tablespaces. Write commands for creating both type of tablespace.
5. Explain the two types of extent management giving appropriate examples.
6. Describe segment space management in details.
Describe the significance of parameters PCTFREE and PCTUSED.
7. For what purpose temporary and undo tablespaces are created? Describe them in brief. Also write
command for creating each of them.
8. Which command is used to modify the tablespace? List the actions that can be performed on tablespace
while updating it.
9. How a tablespace can be taken Offline and Online? Describe the process with all options available.
10. Create tablespace “TS_Orange” with following characteristics:
1. Default storage space (initial size 256kb, next 256kb, Minimum extent 2, maximum extents
4096kb)
2. Block size is 20kb
3. Minimum extent 512kb
4. Logging disabled
5. Apply extent management locally.
11. Consider tablespace name is TB_STUDENT_1 and data file name is DBFILE_STUDENT_1. Write SQL
statements to fulfil below given operations
1. Create table space with 10MB size.
2. Renaming data file with demo_1 in online mode.
3. Renaming data file with demo_1 in offline mode.
4. Add new data file in Oracle_1 table space.
5. Remove table space also remove content and referential integrity constraints.

12. What is transaction? What properties should be satisfied by a transaction? Explain each of them.
13. How does a change in database made? Explain with diagram.
14. For what purpose undo and redo data is used by Oracle database?
15. Explain how undo data is used for Transaction Rollback?
16. Explain the instance recovery with diagram.
17. Describe the UNDO_RETENTION parameter in details.
18. Explain locking behaviour of Oracle Database. List any four types of table lock mode with their brief
description.

Omprakash Chandrakar 4|Page

You might also like