Which three statements are true about terminating a session?

Exhibit below:

Which three statements are true about terminating a session?

Exhibit below:

Which three statements are true about terminating a session?

A.
Without any error, you can terminate the active session by executing:SQL> ALTER SYSTEM KILL
SESSION ‘7, 15’;

B.
You can terminate the active session by executing:SQL> ALTER SYSTEM KILL SESSION “7, 15′;But you
also get the error message:ORA-00028: your session has been killed

C.
You cannot terminate the active session. You have to wait until that session becomes inactive.

D.
Without any error, you can terminate the inactive session by executing:SQL> ALTER SYSTEM KILL
SESSION ’12, 63′;

E.
When an inactive session is killed, the status of that session remains visible in VSSESSION with status
KILLED. The rowf the terminated session is removed from VSSESSION after the user attempts to use the
session again.

F.
You cannot terminate the inactive session. You have to wait until that session becomes active again.

Explanation:
B (not A, Not C):
* You terminate a current session using the SQL statement ALTER SYSTEM KILL SESSION. The following
statement terminates the session whose system identifier is 7 and serial number is 15:
* Terminating an Active Session
If a user session is processing a transaction (ACTIVE status) when you terminate the session, the transaction
is rolled back and the user immediately receives the following message:
ORA-00028: your session has been killed
ALTER SYSTEM KILL SESSION ‘7,15’;
E (not F): Terminating an Inactive Session
If the session is not making a SQL call to Oracle Database (is INACTIVE) when it is terminated, the ORA-
00028 message is not returned immediately. The message is not returned until the user subsequently attempts
to use the terminated session.
When an inactive session has been terminated, the STATUS of the session in the V$SESSION view is KILLED.
The row for the terminated session is removed from V$SESSION after the user attempts to use the session
again and receives the ORA-00028 message.



Leave a Reply 0

Your email address will not be published. Required fields are marked *