Deck 5: Oracle Backup, Distributed Databases, and SQL Commands
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/30
Play
Full screen (f)
Deck 5: Oracle Backup, Distributed Databases, and SQL Commands
1
What is the type of Oracle backup in which all uncommitted changes have been removed from the datafiles?
A)Full backup
B)Consistent backup
C)Inconsistent backup
D)Differential backup
A)Full backup
B)Consistent backup
C)Inconsistent backup
D)Differential backup
Consistent backup
2
Which of the following is true concerning a procedure?
A)You do not create them with SQL.
B)They do not need to have a unique name.
C)They include procedural and SQL statements.
D)They are the same thing as a function.
A)You do not create them with SQL.
B)They do not need to have a unique name.
C)They include procedural and SQL statements.
D)They are the same thing as a function.
They include procedural and SQL statements.
3
A CASE SQL statement is which of the following?
A)A way to establish an IF-THEN-ELSE in SQL.
B)A way to establish a loop in SQL.
C)A way to establish a data definition in SQL.
D)All of the above.
A)A way to establish an IF-THEN-ELSE in SQL.
B)A way to establish a loop in SQL.
C)A way to establish a data definition in SQL.
D)All of the above.
A way to establish an IF-THEN-ELSE in SQL.
4
Which of the following statements is true concerning routines and triggers?
A)Both consist of procedural code.
B)Both have to be called to operate.
C)Both run automatically.
D)Both are stored in the database.
A)Both consist of procedural code.
B)Both have to be called to operate.
C)Both run automatically.
D)Both are stored in the database.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
5
A distributed database has which of the following advantages over a centralized database?
A)Software cost
B)Software complexity
C)Slow Response
D)Modular growth
A)Software cost
B)Software complexity
C)Slow Response
D)Modular growth
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
6
An autonomous homogenous environment is which of the following?
A)The same DBMS is at each node and each DBMS works independently.
B)The same DBMS is at each node and a central DBMS coordinates database access.
C)A different DBMS is at each node and each DBMS works independently.
D)A different DBMS is at each node and a central DBMS coordinates database access.
A)The same DBMS is at each node and each DBMS works independently.
B)The same DBMS is at each node and a central DBMS coordinates database access.
C)A different DBMS is at each node and each DBMS works independently.
D)A different DBMS is at each node and a central DBMS coordinates database access.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
7
A transaction manager is which of the following?
A)Maintains a log of transactions
B)Maintains before and after database images
C)Maintains appropriate concurrency control
D)All of the above
A)Maintains a log of transactions
B)Maintains before and after database images
C)Maintains appropriate concurrency control
D)All of the above
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
8
Location transparency allows for which of the following?
A)Users to treat the data as if it is at one location
B)Programmers to treat the data as if it is at one location
C)Managers to treat the data as if it is at one location
D)All of the above.
A)Users to treat the data as if it is at one location
B)Programmers to treat the data as if it is at one location
C)Managers to treat the data as if it is at one location
D)All of the above.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
9
A heterogeneous distributed database is which of the following?
A)The same DBMS is used at each location and data are not distributed across all nodes.
B)The same DBMS is used at each location and data are distributed across all nodes.
C)A different DBMS is used at each location and data are not distributed across all nodes.
D)A different DBMS is used at each location and data are distributed across all nodes.
A)The same DBMS is used at each location and data are not distributed across all nodes.
B)The same DBMS is used at each location and data are distributed across all nodes.
C)A different DBMS is used at each location and data are not distributed across all nodes.
D)A different DBMS is used at each location and data are distributed across all nodes.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
10
Some of the columns of a relation are at different sites is which of the following?
A)Data Replication
B)Horizontal Partitioning
C)Vertical Partitioning
D)Horizontal and Vertical Partitioning
A)Data Replication
B)Horizontal Partitioning
C)Vertical Partitioning
D)Horizontal and Vertical Partitioning
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
11
Which of the following is true concerning a global transaction?
A)The required data are at one local site and the distributed DBMS routes requests as necessary.
B)The required data are located in at least one nonlocal site and the distributed DBMS routes requests as necessary.
C)The required data are at one local site and the distributed DBMS passes the request to only the local DBMS.
D)The required data are located in at least one nonlocal site and the distributed DBMS passes the request to only the local DBMS
A)The required data are at one local site and the distributed DBMS routes requests as necessary.
B)The required data are located in at least one nonlocal site and the distributed DBMS routes requests as necessary.
C)The required data are at one local site and the distributed DBMS passes the request to only the local DBMS.
D)The required data are located in at least one nonlocal site and the distributed DBMS passes the request to only the local DBMS
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
12
A homogenous distributed database is which of the following?
A)The same DBMS is used at each location and data are not distributed across all nodes.
B)The same DBMS is used at each location and data are distributed across all nodes.
C)A different DBMS is used at each location and data are not distributed across all nodes.
D)A different DBMS is used at each location and data are distributed across all nodes.
A)The same DBMS is used at each location and data are not distributed across all nodes.
B)The same DBMS is used at each location and data are distributed across all nodes.
C)A different DBMS is used at each location and data are not distributed across all nodes.
D)A different DBMS is used at each location and data are distributed across all nodes.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
13
Replication should be used when which of the following exist?
A)When transmission speeds and capacity in a network prohibit frequent refreshing of large tables.
B)When using many nodes with different operating systems and DBMSs and database designs.
C)The application's data can be somewhat out-of-date.
D)All of the above.
A)When transmission speeds and capacity in a network prohibit frequent refreshing of large tables.
B)When using many nodes with different operating systems and DBMSs and database designs.
C)The application's data can be somewhat out-of-date.
D)All of the above.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
14
Storing a separate copy of the database at multiple locations is which of the following?
A)Data Replication
B)Horizontal Partitioning
C)Vertical Partitioning
D)Horizontal and Vertical Partitioning
A)Data Replication
B)Horizontal Partitioning
C)Vertical Partitioning
D)Horizontal and Vertical Partitioning
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
15
A distributed database is which of the following?
A)A single logical database that is spread to multiple locations and is interconnected by a network
B)A loose collection of file that is spread to multiple locations and is interconnected by a network
C)A single logical database that is limited to one location.
D)A loose collection of file that is limited to one location.
A)A single logical database that is spread to multiple locations and is interconnected by a network
B)A loose collection of file that is spread to multiple locations and is interconnected by a network
C)A single logical database that is limited to one location.
D)A loose collection of file that is limited to one location.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
16
A semijoin is which of the following?
A)Only the joining attributes are sent from one site to another and then all of the rows are returned.
B)All of the attributes are sent from one site to another and then only the required rows are returned.
C)Only the joining attributes are sent from one site to another and then only the required rows are return
A)Only the joining attributes are sent from one site to another and then all of the rows are returned.
B)All of the attributes are sent from one site to another and then only the required rows are returned.
C)Only the joining attributes are sent from one site to another and then only the required rows are return
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
17
Which of the following is a disadvantage of replication?
A)Reduced network traffic
B)If the database fails at one site, a copy can be located at another site.
C)Each site must have the same storage capacity.
D)Each transaction may proceed without coordination across the network.
A)Reduced network traffic
B)If the database fails at one site, a copy can be located at another site.
C)Each site must have the same storage capacity.
D)Each transaction may proceed without coordination across the network.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
18
A distributed database can use which of the following strategies?
A)Totally centralized at one location and accessed by many sites
B)Partially or totally replicated across sites
C)Partitioned into segments at different sites
D)All of the above
A)Totally centralized at one location and accessed by many sites
B)Partially or totally replicated across sites
C)Partitioned into segments at different sites
D)All of the above
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
19
Which of the following is not one of the stages in the evolution of distributed DBMS?
A)Unit of work
B)Remote unit of work
C)Distributed unit of Work
D)Distributed request
A)Unit of work
B)Remote unit of work
C)Distributed unit of Work
D)Distributed request
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
20
A distributed database has which of the following advantages over a centralized database?
A)Software cost
B)Software complexity
C)Slow Response
D)Modular growth
A)Software cost
B)Software complexity
C)Slow Response
D)Modular growth
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
21
Which of the following is true concerning a global transaction?
A)The required data are at one local site and the distributed DBMS routes requests as necessary.
B)The required data are located in at least one nonlocal site and the distributed DBMS routes requests as necessary.
C)The required data are at one local site and the distributed DBMS passes the request to only the local DBMS.
D)The required data are located in at least one nonlocal site and the distributed DBMS passes the request to only the local DBMS.
A)The required data are at one local site and the distributed DBMS routes requests as necessary.
B)The required data are located in at least one nonlocal site and the distributed DBMS routes requests as necessary.
C)The required data are at one local site and the distributed DBMS passes the request to only the local DBMS.
D)The required data are located in at least one nonlocal site and the distributed DBMS passes the request to only the local DBMS.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
22
A transaction manager is which of the following?
A)Maintains a log of transactions
B)Maintains before and after database images
C)Maintains appropriate concurrency control
D)All of the above.
A)Maintains a log of transactions
B)Maintains before and after database images
C)Maintains appropriate concurrency control
D)All of the above.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
23
What SQL command will allow you to change the table STUDENT to add the constraint named GradeCheck that states that the values of the Grade column must be greater than 0?
A)ALTER TABLE STUDENT ALTER CONSTRAINT GradeCheck (Grade > 0);
B)ALTER TABLE STUDENT ADD CONSTRAINT GradeCheck (Grade > 0);
C)ALTER TABLE STUDENT ADD CONSTRAINT GradeCheck CHECK (Grade> 0);
D)None of the above is correct.
A)ALTER TABLE STUDENT ALTER CONSTRAINT GradeCheck (Grade > 0);
B)ALTER TABLE STUDENT ADD CONSTRAINT GradeCheck (Grade > 0);
C)ALTER TABLE STUDENT ADD CONSTRAINT GradeCheck CHECK (Grade> 0);
D)None of the above is correct.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
24
Changing cardinalities in a database is:
A)a common database design task.
B)a rare database design task, but does occur.
C)a database design task that never occurs.
D)is impossible to do, so a new database must be constructed and the data moved into it.
A)a common database design task.
B)a rare database design task, but does occur.
C)a database design task that never occurs.
D)is impossible to do, so a new database must be constructed and the data moved into it.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
25
Which one of the following sorts rows in SQL?
A)SORT BY
B)ALIGN BY
C)ORDER BY
D)GROUP BY
A)SORT BY
B)ALIGN BY
C)ORDER BY
D)GROUP BY
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
26
The SQL keyword(s) ________ is used with wildcards.
A)LIKE only
B)IN only
C)NOT IN only
D)IN and NOT IN
A)LIKE only
B)IN only
C)NOT IN only
D)IN and NOT IN
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
27
If a relationship has a cascade updates constraint, then if ________ in the parent table is changed, then the same change will automatically be made to any corresponding foreign key value.
A)the primary key
B)any alternate key
C)a surrogate key
D)a foreign key
A)the primary key
B)any alternate key
C)a surrogate key
D)a foreign key
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
28
For every relationship, how many possible types of actions are there when enforcing minimum cardinalities?
A)Two
B)Three
C)Four
D)Six
A)Two
B)Three
C)Four
D)Six
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
29
In creating a procedure, you may get a message if you have compile errors. Which of the following is true?
A)The line numbers reported match the line numbers you see in your text editor.
B)SQL*Plus will automatically show the errors to you.
C)To see the errors, enter SHOW ERRORS in SQL*Plus.
D)If there are no syntax errors, you will receive the message "NO ERRORS."
A)The line numbers reported match the line numbers you see in your text editor.
B)SQL*Plus will automatically show the errors to you.
C)To see the errors, enter SHOW ERRORS in SQL*Plus.
D)If there are no syntax errors, you will receive the message "NO ERRORS."
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck
30
Which of the following is not true about indexes?
A)Indexes are created to enforce uniqueness on columns.
B)Indexes are created to enable fast retrieval by column values.
C)Columns that are frequently used with equal conditions in WHERE clauses are good candidates for indexes.
D)Indexes are created with the ALTER TABLE command.
A)Indexes are created to enforce uniqueness on columns.
B)Indexes are created to enable fast retrieval by column values.
C)Columns that are frequently used with equal conditions in WHERE clauses are good candidates for indexes.
D)Indexes are created with the ALTER TABLE command.
Unlock Deck
Unlock for access to all 30 flashcards in this deck.
Unlock Deck
k this deck