0% found this document useful (0 votes)
15 views2 pages

Oracle DB - Basic Connection Management

d

Uploaded by

fihah53626
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views2 pages

Oracle DB - Basic Connection Management

d

Uploaded by

fihah53626
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Oracle DB - Connection Management.

md 2024-01-21

Understanding and Executing SYSDBA Commands for


Oracle Database 19c
Introduction: Logging in as SYSDBA (System Database Administrator) allows for performing critical
administrative tasks on an Oracle Database 19c. This document explains and guides the execution of
commands to log in as SYSDBA, start the Oracle Database instance, and initiate the listener.

Step 1: Log in as SYSDBA

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.

Step 2: Start the Database

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.

Step 3: Start the Listener

Command (Option 1):

lsnrctl start

Explanation: The lsnrctl start command initiates the listener, which is responsible for
handling incoming database connection requests.

Command (Option 2):

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.

Step 4: Exit SQL*Plus

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

You might also like