Oracle DB - Basic Connection Management
Oracle DB - Basic Connection Management
md 2024-01-21
Command:
sqlplus / as sysdba
Explanation: The sqlplus command opens the SQL*Plus tool, and the / as sysdba clause specifies
the connection as a SYSDBA user. This user has the highest level of database privileges.
Command:
STARTUP;
Explanation: The STARTUP command initializes and starts the Oracle Database instance. It ensures that
the database is operational and ready to handle user connections.
lsnrctl start
Explanation: The lsnrctl start command initiates the listener, which is responsible for
handling incoming database connection requests.
STARTUP;
EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
1/2
Oracle DB - Connection Management.md 2024-01-21
Explanation: This alternative approach starts both the database and the listener within SQL*Plus.
The DBMS_XDB.SETLISTENERLOCALACCESS(FALSE) command ensures proper connectivity by
modifying listener settings.
Command:
EXIT;
Explanation: The EXIT command terminates the SQL*Plus session, allowing you to exit the interactive
mode.
Conclusion:
By following these steps, you can log in as SYSDBA, start the Oracle Database 19c instance, and initiate the
listener. These commands are crucial for managing the database lifecycle and ensuring proper connectivity.
2/2