Download 1-Witch of the following statements about shared servers are true

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

IMDb wikipedia , lookup

Open Database Connectivity wikipedia , lookup

Microsoft SQL Server wikipedia , lookup

PL/SQL wikipedia , lookup

Entity–attribute–value model wikipedia , lookup

Concurrency control wikipedia , lookup

Database wikipedia , lookup

Microsoft Jet Database Engine wikipedia , lookup

Functional Database Model wikipedia , lookup

Oracle Database wikipedia , lookup

Ingres (database) wikipedia , lookup

Relational model wikipedia , lookup

Clusterpoint wikipedia , lookup

ContactPoint wikipedia , lookup

Extensible Storage Engine wikipedia , lookup

Database model wikipedia , lookup

Transcript
1-Witch of the following statements about shared servers are true? One true
a- All other options are true.
b- If one statement updates multiple rows, the work may be shared across several servers.
c- The number of shared servers is fixed by the SHARED_SERVERS parameter.
d- Oracle will spawn additional shared servers on demand.
++++++++++++++++++++++++++++
2- What happens when a user issues a commit? One true
a- The CKPT process signals a checkpoint.
b- The DBWn process writes transaction's changed buffers to the datafiles.
c- The LGWR flushes the log buffer to the online redo log.
d- The ARCn process writes the change vectors to the archive redo log.
+++++++++++++++++++++++++++++
3- When a session changes data, where does the change get written? One true
a- To the data block in the cache, and the redo log buffer.
b- To the data block on disk, and the current online redo log file.
c- The session writes to the database buffer cache, and the log writer writes to the current
online redo log file.
d- Nothing is written until the change is committed.
+++++++++++++++++++++++++++++
5- What statements are correct about the extents? 2 statements
a- An extent is a grouping of several oracle blocks.
b- An extent is a grouping of several operating system blocks.
c- An extent can be distributed across one or more datafiles.
d- An extent can contain blocks from one or more segments.
e- An extent can be assigned to only one segments.
+++++++++++++++++++++++++++++
6- You have decided to use Local Naming. Witch file must you create on the client machine. One
true
abcde-
Tnsnames.ora and sqlnet.ora.
Listener.ora only.
Tnsnames.ora only.
Listener.ora and sqlnet.ora.
None – you can rely on defaults if you are using TCP and your listener is running on port
1521.
+++++++++++++++++++++++++++++
7- Where does the data in temporary table get written to disk? One true
a- It is never written to disk.
b- To the user's temporary tablespace.
c- To the temporary tablespace of the user in whose schema the table resides.
d- To a disk local to the session's user process.
+++++++++++++++++++++++++++++
8- List three of the checkpoint information written by the CKPT process.
1
abcd-
Includes checkpoint position
System change number SCN.
Location in the online redo log file to begin recovery.
Information about logs.
+++++++++++++++++++++++++++++
9- What are the components of traditional multitier architecture? And explain one of them.
a- A client or initiator process that starts an operation.
b- One or more application server that perform parts of the operation.
c- An end server or database server that stores most of the data used in the operation.
For explanation …….
+++++++++++++++++++++++++++++
10- List the four connection information required to establish net connections in Oracle?
1 -protocol
2 –host name / ip add
3 -port
4 –service name
+++++++++++++++++++++++++++++
11- You execute the following command to change the status of the SALES tablespace:
SQL> ALTER TABLESPACE sales OFFLINE; which two statements describe the effect of the
command? (choose two).
a- The tablespace would require recovery to go back online.
b- A checkpoint is taken on all data files that are associated with the SALES tablespace.
c- The sessions that subsequently try to access the objects in the SALES tablesapce receive
an error.
d- The new status of the SALES tablespace is recorded in the control file when the database
instance is closed.
+++++++++++++++++++++++++++++
13 - Which of these background processes is optional? (Choose the best answer.)
A. ARCn, the archive process
B. CKPT, the checkpoint process
C. DBWn, the database writer
D. LGWR, the log writer
E. MMON, the manageability monitor
✓ A. Archiving is not compulsory (though it is usually a good idea).
B, C, D, and E. CKPT, DBWn, LGWR, and MMON are all necessary processes.
2
+++++++++++++++++++++++++++++
15. Where is the current redo byte address, also known as the incremental checkpoint position,
recorded? (Choose the best answer.)
A. In the controlfile
B. In the current online log file group
C. In the header of each datafile
D. In the system global area
✓ A. The checkpoint process writes the (location in the online redo log file to begin
recovery) to the controlfile.
B, C, and D. The online logs, the datafiles, and SGA have no knowledge of where the
current RBA is.
++++++++++++++++++++++++++++++++++++++++
16 . Which tools can be used to create a database? (Choose all correct answers.)
A. Database Configuration Assistant
B. Database Upgrade Assistant
C. SQL*Plus
D. Oracle Universal Installer
E. Oracle Enterprise Manager Database Control
✓ A, C, and D. DBCA is meant for creating databases, but they can also be created from
SQL*Plus or by instructing the OUI to create a database after installing the Oracle Home.
B is wrong because DBUA can only upgrade an existing database. E is wrong because
Database Control is available only after the database is created.
++++++++++++++++++++++++++++++++++++++++++
17 To create a database, in what mode must the instance be? (Choose the best answer.)
A. Not started
B. Started in NOMOUNT mode
C. Started in MOUNT mode
D. Started in OPEN mode
17✓ B. The CREATE DATABASE command can only be issued in NOMOUNT mode.
A is wrong, because if the instance is not started, the only possible command is STARTUP.
C and D are wrong because it is impossible to mount a database if there is no controlfile, and it
cannot be opened if there is no redo log and SYSTEM tablespace.
+++++++++++++++++++++++++++++
18 The SYSAUX tablespace is mandatory. What will happen if you attempt to issue a CREATE
DATABASE command that does not specify a datafile for the SYSAUX tablespace? (Choose the
best answer.)
A. The command will fail.
B. The command will succeed, but the database will be inoperable until the SYSAUX
tablespace is created.
C. A default SYSAUX tablespace and datafile will be created.
3
D. The SYSAUX objects will be created in the SYSTEM tablespace.
✓ C. There are defaults for everything, including the SYSAUX tablespace and datafile
definitions.
A is wrong because the command will succeed. B and D are wrong because these are not
the way the defaults work.
+++++++++++++++++++++++++++++++++++++++++
19. During the transition from NOMOUNT to MOUNT mode, which files are required? (Choose
the best answer.)
A. Parameter file
B. Controlfiles
C. Online redologs
D. Datafiles
E. All of the above
✓ B. Mounting the database is the opening of the controlfile (all copies thereof).
A is wrong because the parameter file is only needed for NOMOUNT. C, D, and E are
wrong because these file types are only needed for open mode.
+++++++++++++++++++++++++++++
20. You shut down your instance with SHUTDOWN IMMEDIATE. What will happen on the next
startup? (Choose the best answer.)
A. SMON will perform automatic instance recovery.
B. You must perform manual instance recovery.
C. PMON will roll back uncommitted transactions.
D. The database will open without recovery.
20✓ D. An immediate shutdown is clean, so no recovery will be required.
A, B, and C. These are wrong because no recovery or rollback will be required; all the
work will have done as part of the shutdown.
+++++++++++++++++++++++++++++
21. You issue the command SHUTDOWN; and it seems to hang. What could be the reason?
(Choose the best answer.)
A. You are not connected as SYSDBA or SYSOPER.
B. There are other sessions logged on.
C. You have not connected with operating system or password file authentication.
D. There are active transactions in the database; when they complete, the SHUTDOWN will
proceed.
✓ B. The default shutdown mode is SHUTDOWN NORMAL, which will hang until all
4
sessions have voluntarily disconnected.
A and C are wrong because these would cause an error, not a hang. D is wrong because it
describes SHUTDOWN TRANSACTIONAL, not SHUTDOWN NORMAL.
+++++++++++++++++++++++++++++
22. Which of these actions will not be recorded in the alert log? (Choose all correct answers.)
A. ALTER DATABASE commands
B. ALTER SESSION commands
C. ALTER SYSTEM commands
D. Archiving an online redo log file
E. Creating a tablespace
F. Creating a user
✓ B and F. Neither of these affects the structure of the database or the instance; they are not
important enough to generate an alert log entry.
A, C, D, and E. All of these are changes to physical or memory structures, and all such
changes are recorded in the alert log.
+++++++++++++++++++++++++++++
23. Which of these views can be queried successfully in nomount mode? (Choose all correct
answers.)
A. DBA_DATA_FILES
B. DBA_TABLESPACES
C. V$DATABASE
D. V$DATAFILE
E. V$INSTANCE
F. V$SESSION
✓ E and F. These views are populated from the instance and will therefore be available at all
times.
A and B are data dictionary views, which can only be seen in open mode. C and D are
dynamic performance views populated from the controlfile, and therefore only available in mount
mode or open mode.
+++++++++++++++++++++++++++++
24. Which view will list all tables in the database? (Choose the best answer.)
A. ALL_TABLES
B. DBA_TABLES
C. USER_TABLES, when connected as SYS
D. V$FIXED_TABLE
✓ B. The DBA views list every appropriate object in the database.
A is wrong because this will list only the tables the current user has permissions on—which
might be all the tables. C is wrong because it will list only the tables owned by SYS. D is wrong
because this is the view that lists all the dynamic performance views, not all tables.
++++++++++++++++++++++++++++++++++
25. Which of the following statements about listeners are correct? (Choose the best answer.)
A. A listener can connect you to one instance only.
5
B. A listener can connect you to one service only.
C. Multiple listeners can share one network interface card.
D. An instance will only accept connections from the listener specified on the local_listener
parameter.
25✓ C. Many listeners can shared one address, if they use different ports.
A is wrong because one listener can launch sessions against many instances. B is wrong
because a listener can connect you to an registered service. D is wrong because the
local_listener parameter controls which listener the instance will register with dynamically;
it will also accept connections from any listener that has it statically registered.
+++++++++++++++++++++++++++++
27 If you stop your listener, what will happen to sessions that connected through it? (Choose the
best answer.)
A. They will continue if you have configured failover.
B. They will not be affected in any way.
C. They will hang until you restart the listener.
D. You cannot stop a listener if it is in use.
E. The sessions will error out.
27✓ B. The listener establishes connections but is not needed for their maintenance.
A, C, D, and E. These are all incorrect because they assume that the listener is necessary
for the continuance of an established session.
+++++++++++++++++++++++++++++
29. Which of these are types of segment? (Choose all correct answers.)
A. Sequence
B. Stored procedure
C. Table
D. Table partition
E. View
29✓ C and D. A table can be type of segment, as is a table partition (in which case the table
itself will not be a segment).
A, B, and E are wrong because they exist only as objects defined within the data dictionary.
The data dictionary itself is a set of segments.
+++++++++++++++++++++++++++++
30. How can a tablespace be made larger? (Choose all correct answers.)
A. Convert it from a SMALLFILE tablespace to a BIGFILE tablespace.
B. If it is a SMALLFILE tablespace, add files.
C. If it is a BIGFILE tablespace, add more files.
D. Resize the existing file(s).
30✓ B and D. A small file tablespace can have many files, and all datafiles can be resized
upward.
6
A is wrong because you cannot convert between SMALLFILE and a BIGFILE. C is wrong
because a BIGFILE tablespace can have only one file.
+++++++++++++++++++++++++++++
31 Which of these commands can be executed against a table in a read-only tablespace? (Choose
the best answer.)
A. DELETE
B. DROP
C. INSERT
D. UPDATE
31✓ B. Objects can be dropped from read-only tablespaces.
A, C, and D. All of these commands will fail because they require writing to the table,
unlike a DROP, which only writes to the data dictionary.
+++++++++++++++++++++++++++++
32 What operation cannot be applied to a tablespace after creation? (Choose the best answer.)
A. Convert from dictionary extent management to local extent management.
B. Convert from manual segment space management to automatic segment space management.
C. Change the name of the tablespace.
D. Reduce the size of the datafile(s) assigned to the tablespace.
E. All the above operations can be applied.
32✓ B. It is not possible to change the segment space management method after creation.
A and C are wrong because a tablespace can be converted to local extent management or
renamed at any time. D is wrong because a datafile can be resized downward, though only if the
space to be freed up has not already been used. E is wrong because you cannot change the
segment space management without re-creating the tablespace.
++++++++++++++++++++++++++++++++++++++++++++
33 Which of these statements about system privileges are correct? (Choose all correct answers.)
A. Only the SYS and SYSTEM users can grant system privileges.
B. If a system privilege is revoked from a user, it will also be revoked from all users to whom he
granted it.
C. If a system privilege is revoked from a user, it will not be revoked from all users to whom she
granted it.
D. CREATE TABLE is a system privilege.
E. CREATE ANY TABLE is a system privilege.
33✓ C is correct because the revocation of a system privilege does not cascade. D and E are
correct because any action that updates the data dictionary is a system privilege.
A is wrong because system privileges can be granted by any user who has been granted the
privilege WITH ADMIN OPTION. B is wrong because the revocation of a system privilege does
not cascade.
+++++++++++++++++++++++++++++
34. You have created a profile with LIMIT SESSIONS_PER_USER 1 and granted it to a user,
but you find that he/she is still able to log on several times concurrently. Why could this be?
7
(Choose the best answer.)
A. The user has been granted CREATE SESSION more than once.
B. The user has been granted the DBA role.
C. The RESOURCE_LIMIT parameter has not been set.
D. The RESOURCE_MANAGER_PLAN parameter has not been set.
34✓ C. The RESOURCE_LIMIT parameter will default to FALSE, and without this resource
limits are not enforced.
A is wrong because this privilege controls whether uses can connect to the account at all,
not how many times. B is wrong because no role can exempt a user from profile limits. D is wrong
because this parameter controls which Resource Manager plan is active, which is not relevant to
whether resource limits are enforced.
++++++++++++++++++++++++++++++++++++++++++++++++++
35. Which of these statements will fail because the table name is not legal? (Choose all correct
answers.)
A. create table "SELECT" (col1 date);
B. create table "lower case" (col1 date);
C. create table number1 (col1 date);
D. create table 1number(col1 date);
E. create table update(col1 date);
35✓ D and E. A table name can neither begin with a digit nor be a reserved word.
A and B are wrong because the use of double quotes means they will not cause errors. C is
wrong because it is a legal table name.
+++++++++++++++++++++++++++++
36. Some types of constraint require an index. (Choose all that apply.)
A. CHECK
B. NOT NULL
C. PRIMARY KEY
D. UNIQUE
36✓ C and D. Unique and primary key constraints need an index.
A and B. NOT NULL and CHECK constraints are not enforced with indexes.
+++++++++++++++++++++++++++++
37. Which of the following statements is correct about indexes? (Choose the best answer.)
A. An index can be based on multiple columns of a table, but the columns must be of the same
datatype.
B. An index can be based on multiple columns of a table, but the columns must be adjacent and
specified in the order that they are defined in the table.
C. An index cannot have the same name as a table, unless the index and the table are in
separate schemas.
D. None of the above statements is correct.
37. ✓ D. All the statements are wrong.
8
A is wrong because compound indexes need not be on columns of the same datatype. B is
wrong because the columns in a compound index need not be physically adjacent. C is wrong
because indexes and tables do not share the same namespace.
+++++++++++++++++++++++++++++
9