1Z0-052 · Question #228
You executed the following command in the lsnrctl utility to stop the listener: lsnrctl> STOP L1 What is the effect of this command if L1 is the only listener configured for your database?
The correct answer is B. It prevents users from logging in to the database remotely.. Stopping an Oracle listener terminates its ability to broker new incoming connections, but all sessions already established remain completely unaffected.
Question
You executed the following command in the lsnrctl utility to stop the listener:
lsnrctl> STOP L1 What is the effect of this command if L1 is the only listener configured for your database?
Options
- AIt terminates all user sessions.
- BIt prevents users from logging in to the database remotely.
- CIt halts the server until all user transactions are completed.
- DThe server hangs, so users will receive an error asking them to login again.
- EConnected users would get an error with the message "End of communication channel".
How the community answered
(30 responses)- B93% (28)
- C3% (1)
- E3% (1)
Why each option
Stopping an Oracle listener terminates its ability to broker new incoming connections, but all sessions already established remain completely unaffected.
Stopping the listener has no effect on existing user sessions; it only affects the ability to create new connections.
The Oracle listener acts as the network gateway that accepts and hands off new remote connection requests to the database server process. Once the listener is stopped, no new remote connections can be established because there is no process listening on the designated port. However, existing sessions were already handed off by the listener and maintain their own direct connection to the server process, so they continue working normally.
The listener does not control server-side transaction processing; stopping it does not halt the server or wait for transactions to complete.
The database server itself does not hang when the listener is stopped; currently connected users experience no interruption and no error.
The 'End of communication channel' error applies to existing connections that are abruptly dropped, not to sessions that remain intact after the listener is stopped.
Concept tested: Oracle Net listener role in managing new vs existing database connections
Source: https://docs.oracle.com/en/database/oracle/oracle-database/19/netag/managing-oracle-net-services.html
Topics
Community Discussion
No community discussion yet for this question.