Unlock HR User
Unlock HR User
Unlock hr user
-------------------------------------------------------
--ERROR
--Because we are not in right location hence we need to navigate into right path
-------------------------------------------------------
--Before even navigating, we need to add an entry in tns file to connect to the
newly installed DATABASE
--TNS Entry:
--STEP2--Find out 3 parameters Protocol, host and port (follow the video for these
steps)
-- Navigate to %db_home%\network\admin
-- Open listner.ora file
-- Note down Protocol, Host and Port info
------------------------------------------------------
--Run the below in cmd prompt to reload the listner after the new TNS entry
lsnrctl reload
------------------------------------------------------
--run below to Navigate to the desired container "orclpdb" where we can find HR
user
ALTER SESSION SET CONTAINER = orclpdb;
--If not open, then run the below statement to make the DB open else if it is
already open skip and go to next query
ALTER PLUGGABLE DATABASE open;
--Once done, run the below To check the connection has been established or not
conn hr/hr@orclpdb;