To verify that Oracle Database was installed Successfully,
Go to your windows start program and type Services.
This will take you to the Windows Services.
Open Services in Windows and verify that the following services are running:
OracleServiceORCL
OracleOraDB19HomeTNSListener
(Replace ORCL with your SID if it is different.)
Connect to installed databases
Start command prompt on your laptop. Go to windows start program and type cmd.
In the command prompt window, type the following command to logon as user system with password oca. I created this administrative password during installation. If you used a different password, then use your password.
sqlplus / as sysdba
This will connect you to Sqlplus.
Use the following command, if you want to know the details about the Oracle version installed.
SELECT * FROM V$VERSION;
Verify Instance Status
SELECT INSTANCE_NAME, STATUS FROM V$INSTANCE;
Expected output
INSTANCE_NAME STATUS
------------- -------
orcl OPEN
Verify Current Container
SHOW CON_NAME;
Expected output:
CDB$ROOT
Show Pluggable Databases
SHOW PDBS;
Expected output:
ORCLPDB READ WRITE
Switch to PDB
ALTER SESSION SET CONTAINER = ORCLPDB;
Verify Again
SHOW CON_NAME;
Expected output:
ORCLPDB
Now connect to one of the users you have unlocked during installation.
CONNECT HR/hr@orclpdb
Show Tables
SELECT * FROM TAB;
Following the above mentioned steps, you can verify that the installation was done successfully and you can connect to your sample databases.
Post a Comment