Deck 11: Managing Databases With Oracle Database
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
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
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/106
Play
Full screen (f)
Deck 11: Managing Databases With Oracle Database
1
In Oracle Database security,a Role can have many system privileges.
True
2
The NextVal method provides the next value in a sequence.
True
3
The Oracle Enterprise Manager Database Express 12c is a Web-based Oracle Database administration utility.
True
4
The Oracle Database GUI tool used for application development is the Oracle SQL Developer.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
5
Among its many functions,SQL*Plus is also a programming language.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
6
The CurrVal method provides the current value in a sequence.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
7
The default file extension for text files created for SQL Developer is .sql.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
8
Instead of creating a new database instance in Oracle Database,it is preferable to create a new tablespace.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
9
Oracle Database supports the ON UPDATE CASCADE constraint.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
10
An Oracle Database tablespace is a logical subdivision of an Oracle database instance that is used to group related tables,views,and other similar objects.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
11
Each Oracle Database tablespace has one or more datafiles associated with it.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
12
When creating a new database in Oracle Database,two new account passwords are automatically created in the database.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
13
The Oracle Database Configuration Assistant is the easiest Oracle Database tool to use when you are creating an Oracle database.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
14
With Oracle Database,using a sequence does not guarantee valid surrogate key values.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
15
In Oracle Database security,a System Privilege is the right to execute general tasks such as performing some action on the database data.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
16
Sequences are most often used to provide values for surrogate keys.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
17
The Oracle Database FORMAT_DATE function can be used to make sure that Oracle Database interprets date data correctly.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
18
When using Oracle Database,a sequence is an object that generates a sequential series of unique numbers.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
19
Oracle Database provides only one method for creating an Oracle Database database.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
20
With Oracle Database,data must be entered at the Oracle Database command prompt.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
21
The Oracle Database Enterprise Manager Database Express provides graphical facilities for managing databases.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
22
The PL/SQL keyword ISTHERE is used to test for the existence of a condition.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
23
If you include a slash as the last line in an Oracle stored procedure,the procedure will be compiled and stored when you run the block of code.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
24
Oracle Database uses the SQL ALTER TABLE command to change the structure of a table.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
25
The PL/SQL keyword RETURN is used to exit a block of code and terminate whatever code structure is running.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
26
Oracle Database triggers are PL/SQL or Java procedures that are invoked when specified database activity occurs.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
27
With Oracle Database,stored procedures cannot use a cursor variable,so another method must be used to access a table on a row by row basis.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
28
The Oracle SQL Developer has no facility for executing SQL statements.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
29
The PL/SQL keyword STOP HERE is used to complete the basic PL/SQL block structure.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
30
You can use the Edit Table table editor to create an index in Oracle Database.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
31
The PL/SQL keyword DECLARE is used to begin the basic PL/SQL block structure.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
32
You can include single line comments in an Oracle Database stored procedure by starting each comment line with the /* symbol.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
33
All Oracle Database triggers work at the row level.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
34
In Oracle Database,triggers that are fired once for each row that is changed in a table are called row triggers.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
35
The Oracle Database GUI is the Oracle SQL Browser.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
36
The PL/SQL keywords FOR,WHILE,and LOOP are used to create blocks of code that repeat until an ending condition is reached.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
37
With Oracle Database,stored procedures can be invoked remotely.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
38
In Oracle Database,indexes are created using the ALTER command.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
39
The PL/SQL keyword BEGIN is used to define a group of PL/SQL statements.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
40
Oracle Database triggers BEFORE and AFTER are placed on tables,while the INSTEAD OF trigger is placed on views.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
41
In the event of an application failure,Oracle Database uses the in-memory rollback segments and OnLine ReDo files to recover.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
42
Which of the following is an account name for which you are asked to enter a password when Oracle Database creates a new database?
A)ORACLE
B)SYS
C)INTERNAL
D)DBA
A)ORACLE
B)SYS
C)INTERNAL
D)DBA
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
43
With Oracle Database,you can change the default transaction isolation for all transactions in a session by using the SET TRANSACTION ISOLATION LEVEL statement.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
44
In Oracle Database recovery facilities,OnLine ReDo files are backup log files maintained separately and not necessarily on disk media.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
45
Control files,as used by Oracle Database's backup and recovery features,contain records of database changes.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
46
The type of failure that occurs when Oracle Database itself fails due to an operating system or computer hardware failure is called an instance failure.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
47
In Oracle Database backup and recovery facilities,a consistent backup is one in which all uncommitted changes have been removed from the datafiles.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
48
The Read Only transaction isolation level is unique to Oracle Database.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
49
Which of the following is the easiest tool for creating a database with Oracle Database?
A)The Oracle Enterprise Manager Database Express
B)The Oracle SQL*Plus command utility program
C)The Oracle Database Configuration Assistant
D)The Oracle SQL Developer
A)The Oracle Enterprise Manager Database Express
B)The Oracle SQL*Plus command utility program
C)The Oracle Database Configuration Assistant
D)The Oracle SQL Developer
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
50
The prefix :old is used to make previous values of columns available to update and delete triggers.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
51
Oracle Database uses a System Change Number (SCN)to identify before images in rollback segments to prevent dirty reads.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
52
The prefix :new is used to make final values of columns available to insert and update triggers.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
53
The type of failure that occurs when Oracle Database is unable to write to a physical file is called a media failure.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
54
The default isolation level in Oracle Database is Read Committed,which provides statement level isolation.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
55
INSTEAD OF triggers are placed on views.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
56
In Oracle Database recovery facilities,control files are small files that describe the name,contents,and locations of various files used by Oracle Database.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
57
Oracle Database only reads committed changes,and therefore dirty reads are not possible.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
58
Oracle Database does not require the use of Archive ReDo files for instance recovery.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
59
SOONER and LATER triggers are placed on tables.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
60
In Oracle Database recovery facilities,OnLine ReDo files are maintained on disk and contain the rollback segments from recent database changes.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
61
Which of the following commands does Oracle Database not support?
A)CREATE TABLE
B)CREATE CONSTRAINT
C)ON DELETE CASCADE
D)ON UPDATE CASCADE
A)CREATE TABLE
B)CREATE CONSTRAINT
C)ON DELETE CASCADE
D)ON UPDATE CASCADE
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
62
Which of the following is a GUI tool for application development with Oracle Database?
A)The Oracle Enterprise Manager Database Express
B)The Oracle SQL*Plus command utility program
C)The Oracle SQL Developer
D)The Oracle Database Configuration Assistant
A)The Oracle Enterprise Manager Database Express
B)The Oracle SQL*Plus command utility program
C)The Oracle SQL Developer
D)The Oracle Database Configuration Assistant
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
63
Which of the following statements would cause Oracle Database to include a new column named C5,which is a two-digit whole number,to a table named T2?
A)UPDATE TABLE T2 ADD COLUMN C5 NUMBER (2);
B)ALTER TABLE T2 ADD C5 NUMBER (2);
C)UPDATE TABLE T2 INSERT C5 NUMBER (2,0);
D)ALTER TABLE T2 INSERT COLUMN C5 NUMBER (2,0);
A)UPDATE TABLE T2 ADD COLUMN C5 NUMBER (2);
B)ALTER TABLE T2 ADD C5 NUMBER (2);
C)UPDATE TABLE T2 INSERT C5 NUMBER (2,0);
D)ALTER TABLE T2 INSERT COLUMN C5 NUMBER (2,0);
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
64
Which of the following tasks cannot be done using the Oracle SQL Developer GUI features?
A)See the structure of a table
B)Add and remove columns from a table
C)Insert and delete data from a table
D)Create a new tablespace
A)See the structure of a table
B)Add and remove columns from a table
C)Insert and delete data from a table
D)Create a new tablespace
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
65
The Oracle Database PL/SQL statement used to define a set of PL/SQL statements is ________.
A)DECLARE
B)BEGIN
C)IF...THEN...ELSE...END IF
D)LOOP
A)DECLARE
B)BEGIN
C)IF...THEN...ELSE...END IF
D)LOOP
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
66
The Oracle database PL/SQL statement used to test for a condition and then direct when blocks of code should be run depending on the outcome of the test is ________.
A)DECLARE
B)BEGIN
C)IF...THEN...ELSE...END IF
D)LOOP
A)DECLARE
B)BEGIN
C)IF...THEN...ELSE...END IF
D)LOOP
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
67
Which of the following Oracle Database structures is a logical subdivision of an Oracle Database database instance that is used to group related tables,views,and other similar objects?
A)Namespace
B)Filespace
C)Tablespace
D)Dataspace
A)Namespace
B)Filespace
C)Tablespace
D)Dataspace
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
68
The Oracle Database PL/SQL block structure begins with ________.
A)DECLARE
B)BEGIN
C)IF...THEN...ELSE...END IF
D)LOOP
A)DECLARE
B)BEGIN
C)IF...THEN...ELSE...END IF
D)LOOP
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
69
The Oracle Database PL/SQL statement used to repeat a set of PL/SQL statements as long as some condition is true is ________.
A)DECLARE
B)BEGIN
C)IF...ELSE...END IF
D)LOOP
A)DECLARE
B)BEGIN
C)IF...ELSE...END IF
D)LOOP
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
70
If T3 is a table with three columns C1,C2,and C3,where C1 is integer data,C2 is character data,and C3 is date data,which of the following would be the proper statement to have Oracle Database enter the date 02/10/03 into a row in table T3 while making sure that it is formatted correctly as shown?
A)SET INTO T3 VALUES (101,'Smith','02/10/13');
B)SET INTO T3 VALUES (101,'Smith',TO_DATE ('02/10/13','DD/MM/YY'));
C)INSERT INTO T3 VALUES (101,'Smith','02/10/2013');
D)INSERT INTO T3 VALUES (101,'Smith',TO_DATE ('02/10/13','DD/MM/YY'));
A)SET INTO T3 VALUES (101,'Smith','02/10/13');
B)SET INTO T3 VALUES (101,'Smith',TO_DATE ('02/10/13','DD/MM/YY'));
C)INSERT INTO T3 VALUES (101,'Smith','02/10/2013');
D)INSERT INTO T3 VALUES (101,'Smith',TO_DATE ('02/10/13','DD/MM/YY'));
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
71
Which of the following is a tool for managing an existing Oracle Database database?
A)The Oracle Enterprise Manager Database Express
B)The Oracle SQL*Plus command utility program
C)The Oracle SQL Developer
D)The Oracle DBA Manager
A)The Oracle Enterprise Manager Database Express
B)The Oracle SQL*Plus command utility program
C)The Oracle SQL Developer
D)The Oracle DBA Manager
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
72
The Oracle tool used to copy data into a database table from a spreadsheet is called the ________.
A)Spreadsheet Wizard
B)Data Import Wizard
C)Database Configuration Assistant
D)Enterprise Manager Database Express
A)Spreadsheet Wizard
B)Data Import Wizard
C)Database Configuration Assistant
D)Enterprise Manager Database Express
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
73
One limitation of the Oracle Data Import Wizard is that it ________.
A)does not allow addition of a new primary key column
B)does not allow data to be imported into an existing table
C)does not allow import of "date" type data
D)only allows import of data from Microsoft Excel,no other formats
A)does not allow addition of a new primary key column
B)does not allow data to be imported into an existing table
C)does not allow import of "date" type data
D)only allows import of data from Microsoft Excel,no other formats
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
74
If the SQL statement SELECT C1,C2,C3
FROM T4
WHERE C2 = 'Smith';
Is frequently executed,which column(s)should be considered for indexing based only on the statement itself?
A)C1 only
B)C2 only
C)C3 only
D)C1 and C2
FROM T4
WHERE C2 = 'Smith';
Is frequently executed,which column(s)should be considered for indexing based only on the statement itself?
A)C1 only
B)C2 only
C)C3 only
D)C1 and C2
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
75
During the data import process in Oracle,if some of the spreadsheet cells in a column of the source data are empty,________.
A)you must put some data in them before importing
B)you must not specify this column as a foreign key later
C)you must ensure the data type for this column is numeric
D)you must check the "Nullable" box in the wizard
A)you must put some data in them before importing
B)you must not specify this column as a foreign key later
C)you must ensure the data type for this column is numeric
D)you must check the "Nullable" box in the wizard
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
76
The GUI tool for creating a new index is the Oracle SQL Developer ________.
A)Edit Table table editor
B)Edit Index index editor
C)Edit Schema schema editor
D)Physical Design editor
A)Edit Table table editor
B)Edit Index index editor
C)Edit Schema schema editor
D)Physical Design editor
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
77
Which method returns the next value in a sequence?
A)CountVal
B)Next
C)UpVal
D)NextVal
A)CountVal
B)Next
C)UpVal
D)NextVal
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
78
When creating tables,Oracle Database automatically converts the SQL standard data type "int" into ________.
A)number (38,0)
B)integer (32)
C)number (5,0)
D)integer (16)
A)number (38,0)
B)integer (32)
C)number (5,0)
D)integer (16)
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
79
The Oracle Database variant of SQL with additional procedural language components is ________.
A)T-SQL
B)PL/SQL
C)My/SQL
D)MS/SQL
A)T-SQL
B)PL/SQL
C)My/SQL
D)MS/SQL
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
80
Copying spreadsheet data into a database is part of a larger data warehousing process known as ________.
A)import/export
B)spreadsheet conversion
C)extract,transform,and load
D)data verification
A)import/export
B)spreadsheet conversion
C)extract,transform,and load
D)data verification
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck