Professional Documents
Culture Documents
Oracle 10G Database Administrator Implementation and Administration 2Nd Edition Powell Test Bank Full Chapter PDF
Oracle 10G Database Administrator Implementation and Administration 2Nd Edition Powell Test Bank Full Chapter PDF
TRUE/FALSE
1. When you create a table you cannot define the storage settings of the table.
2. After a table is defined, you can use SQL to add data to the table.
5. Tables can be partitioned to store large quantities of data and increase performance of access to that
data.
8. Temporary tables use temporary segments in either a temporary tablespace or a permanent tablespace.
9. Clusters speed up the access to sets of tables that are frequently referenced together.
11. Tablespace parameters cannot be overridden by setting them when you create a table.
12. For a locally managed tablespace with uniform extent size, storage settings such as NEXT will be
ignored when overridden for a table in that tablespace.
ANS: T PTS: 1 REF: 296
16. Locally managed tablespaces handle free space using a bitmap within the tablespace.
17. Locally managed tables eliminate much of the work in managing storage space.
18. All full table scans by queries read the entire table, including any deleted extents, ultimately leading to
poor performance.
19. A null column followed by one or more columns with data must have a placeholder.
20. Access by ROWID is probably the fastest and most reliable method of data retrieval.
22. The user-defined datatype can be any collection of the other datatypes you want assembled into its
own datatype.
23. Unlike working with permanent tables, adding or changing data in a temporary table does not generate
undo log entries; however, it does generate redo log entries.
24. Two sessions cannot use the same temporary table at the same time.
26. A nested table must contain a single column of either a built-in data type, or a collection type data
type.
28. You must create an object type that has the design you want to use for your object table before actually
creating the object table.
29. The traditional way of looking at metadata is using metadata and data dictionary views.
30. SQL*Plus is limited in its ability to execute high-level database administration functionality, such as
starting up and shutting down a database.
MULTIPLE CHOICE
1. A ____ is the basic storage unit for data in the Oracle 10g database.
a. table c. database
b. tablespace d. datatype
ANS: A PTS: 1 REF: 293
3. One ____ in a row contains one field of data for one record.
a. column c. segment
b. database d. tablespace
ANS: A PTS: 1 REF: 293
4. A(n) ____ table is the standard table traditionally used in a relational database.
a. index-organized c. external
b. object d. relational
ANS: D PTS: 1 REF: 293
5. A(n) ____ is a column or set of columns that uniquely identify each row.
a. segment c. primary key
b. partition d. index
ANS: C PTS: 1 REF: 293
6. A(n) ____ table is a table where the primary key contains both the index and the data (non-indexed
columns in the table).
a. index-organized c. external
b. object d. relational
ANS: A PTS: 1 REF: 293
8. ____ are programmed processes stored with the object type’s definition.
a. Scripts c. Methods
b. Functions d. Procedures
ANS: C PTS: 1 REF: 293
10. ____ tables contain data in a file outside the database, such as in a text file.
a. External c. Cluster
b. Global d. Temporary
ANS: A PTS: 1 REF: 294
11. ____ tables contain data that is stored within a single column of another table.
a. Cluster c. Nested
b. External d. XML
ANS: C PTS: 1 REF: 294
12. Technically, a ____ is not a table, but a group of tables stored together as if they were one table.
a. partition c. nested table
b. cluster d. block
ANS: B PTS: 1 REF: 294
14. Oracle 10g allows the physical splitting of table data into separated sections called ____.
a. segments c. clusters
b. tablespaces d. partitions
ANS: D PTS: 1 REF: 294
16. The default block size is ____ bytes, determined on database creation.
a. 1024 c. 4096
b. 2047 d. 8192
ANS: D PTS: 1 REF: 295
17. The ____ contains information about the table that has data in a particular data block.
a. table directory c. variable header
b. common header d. row directory
ANS: A PTS: 1 REF: 296
18. The ____ is a list of row identifiers for rows stored in a data block.
a. table directory c. variable header
b. common header d. row directory
ANS: D PTS: 1 REF: 296
19. The ____ of a data block shrinks as rows are inserted or updated with more data, causing both the row
directory and the row data to consume more space.
a. table directory c. free space
b. row directory d. row data
ANS: C PTS: 1 REF: 297
20. The ____ are bytes of storage used for rows inserted or updated in a data block.
a. row data c. chained rows
b. free space d. segments
ANS: A PTS: 1 REF: 297
21. The default value for INITRANS is 1 for tables and ____ for indexes.
a. 0 c. 3
b. 2 d. 4
ANS: B PTS: 1 REF: 298
22. To prevent row migration, you can adjust two storage parameters to suit the characteristics of your
table’s data: PCTFREE and ____.
a. INITRANS c. PCTINCREASE
b. PCTUSED d. FREELIST
ANS: B PTS: 1 REF: 299
23. ____ tells Oracle 10g how much free space to reserve for updates to existing rows.
a. INITRANS c. PCTINCREASE
b. PCTUSED d. PCTFREE
ANS: D PTS: 1 REF: 299
24. ____ tells Oracle 10g when to allow more rows to be inserted into the block after the deletion of rows
from a block.
a. INITRANS c. PCTINCREASE
b. PCTUSED d. PCTFREE
ANS: B PTS: 1 REF: 299
25. It is generally better to keep extent sizes the same or multiples of the same size within the ____ so that
any deallocated free space can be more readily used later on.
a. row c. tablespace
b. segment d. data block
ANS: C PTS: 1 REF: 301
26. A ____ stores the number of columns contained in the column data area, some overhead, and the
ROWID pointing to a chained or migrated row (if any).
a. row header c. row tag
b. ROWID d. chained row
ANS: A PTS: 1 REF: 303
29. There are two formats for the physical ROWID: extended ROWID and ____ ROWID.
a. restricted c. logical
b. standard d. basic
ANS: A PTS: 1 REF: 305
30. A(n) ____ ROWID identifies a row by its primary key in an index-organized table.
a. physical c. extended
b. logical d. restricted
ANS: B PTS: 1 REF: 305
31. ____ are rules that define data integrity for a column or group of columns.
a. Raw date c. Constraints
b. Optimizers d. Restrictions
ANS: C PTS: 1 REF: 307
32. The ____ datatype is a text string with variable length up to 4000 bytes.
a. CHAR c. CHAR2
b. NCHAR d. VARCHAR2
ANS: D PTS: 1 REF: 308
33. The ____ datatype contains valid dates that range from January 1, 4712 B.C. to December 31, 9999
A.D.
a. DATE c. TIMESTAMP
b. SYSDATE d. TIME
ANS: A PTS: 1 REF: 308
35. The ____ datatype stores pointers to an external file, such as an audio track.
a. RAW c. BFILE
b. BLOB d. REF
ANS: C PTS: 1 REF: 310
37. The two types of embedded tables are called VARRAYs and ____ tables.
a. nested c. hierarchical
b. complex d. embedded
ANS: A PTS: 1 REF: 320
38. An object table is ____ when you insert records into the table.
a. populated c. updated
b. instantiated d. incremented
ANS: B PTS: 1 REF: 327
39. You can partition any table except one that is part of a ____.
a. partition c. cluster
b. segment d. tablespace
ANS: C PTS: 1 REF: 327
40. To use ____ partitioning, you set up a distinct list of partitioning key values and define which values
go into each partition.
a. list c. range
b. hash d. key
ANS: A PTS: 1 REF: 328
41. With ____ partitioning, you are actually partitioning the data and then partitioning the data within each
partition.
a. composite list-hash c. subpartitioning
b. composite range-hash d. bipartitioning
ANS: B PTS: 1 REF: 328
42. The ____ runs on a database server through an HTTP protocol and could have security issues.
a. Enterprise Manager c. SQL*Plus
b. Database Control d. SQL*Plus Worksheet
ANS: B PTS: 1 REF: 337
43. The ____ is a new Oracle 10g feature for deleting objects but allowing for later retrieval.
a. rollback and recovery c. recycle bin
b. temporary tablespace d. VARRAY
ANS: C PTS: 1 REF: 342
44. A(n) ____ is a calculation producing an integer for a particular value of a string.
a. raw value c. VARRAY
b. index d. hash value
ANS: D PTS: 1 REF: 328
COMPLETION
ANS: columns
2. When you create a table, you define the table’s name as well as each column’s name,
____________________, and size.
ANS: datatype
3. A(n) ____________________ stores data of all types and is the most common form of storage in the
database.
ANS: table
ANS: partitioned
5. You should use a(n) ____________________ table when the data is retrieved by primary key values or
ranges of primary key values.
ANS: index-organized
PTS: 1 REF: 293
6. ____________________ tables are read-only, require read and write privileges in the directory created
within, and can be created and loaded using an AS subquery clause.
ANS: External
7. A table created with one column of the XMLtype datatype is a(n) ____________________ table.
ANS: XML
8. A(n) ____________________ partition allows splitting of data based on ranges of values within a
table’s rows.
ANS: range
9. ____________________ partitioning uses a hashing algorithm to spread table rows evenly across
separate physical files in the database.
ANS: Hash
11. If a row is updated and requires more free space than the block contains, the entire row is
____________________, that is, moved to another block.
ANS: migrated
12. A chained or migrated row is located by the ____________________ stored in the row header.
ANS: ROWID
13. A(n) ____________________ process automatically calculates the best way to execute a query.
ANS: optimizer
ANS: pseudocolumn
15. The ____________________ datatype stands for universal ROWID datatype, and it can hold any type
of ROWID, including a record identifier from a non-Oracle database.
ANS: UROWID
16. A(n) ____________________ value is a value that is filled into the column when an inserted row does
not specify the value for that column.
ANS: default
ANS: subquery
18. A(n) ____________________ alias is a short name for a results column and is used when generating
tables or views to give the results column a valid column name.
ANS: column
19. A table ____________________ is a shortcut name for a table used to prefix columns in an SQL
command in place of using the entire table name.
ANS: alias
20. Nested table rows are associated with a row in the ____________________ table by the nested table
identifier.
ANS: parent
ANS: instance
ANS: template
24. In Oracle 10g release 2 (10.2) each database has its own Database Control service running on a
Windows computer (selected when creating the database using the
________________________________________ tool.)
ANS:
DBCA
Database Configuration Assistant
Database Configuration Assistant (DBCA)
25. To create a partitioned table, you use the standard CREATE TABLE command as if you were creating
a relational table, and add the ____________________ clause.
ANS: PARTITION
ESSAY
ANS:
An object type is a set of column definitions that is defined ahead of time for use in objects. For
example, before creating an object table that stores customer names and addresses, you create an
object type that contains all the columns you plan to use. The object type’s columns are called
attributes. Some examples of attributes are customer name, street address, city, state, country, and zip
code. After creating the object type, you use it to define an object table.
ANS:
Temporary tables contain data like other tables; however, the data is privately retained for a connected
user (not accessible by other users) and disappears when the user commits a transaction, or when a
commit is forced, such as when a user session is disconnected from the database.
ANS:
XML (eXtensible Markup Language) is a programming language for the Internet that provides both
the data and the display details to a Web page or to an application. XML is also extremely versatile in
that it can be used to contain both application and metadata, even to the point that an entire database
can be built from XML alone. Additionally, XML is often used to transfer data between different
computers because the format of XML documents is independent of the operating system, database
vendor, platform, and essentially everything.
4. What are the naming rules of Oracle 10g for the names of tables and columns?
ANS:
Names of tables and columns follow naming rules of Oracle 10g: They should be 1–30 characters
long. If you enclose the name in double quotes, it is case sensitive and can begin with any letter,
number, or symbol character, including spaces. If you do not enclose the name in double quotes, it is
interpreted as uppercase. An unquoted column name must begin with a letter character, although it can
contain any letter, number, and the symbols # (number sign), $ (dollar sign), and _ (underscore).
ANS:
Index-organized tables can be partitioned with the following restrictions:
- The partition key must be all or a subset of the table’s primary key.
- Only range and hash partitioning are allowed.
- Only range-partitioned, index-organized tables can contain large object (LOB) columns.
Science
Art