Unlock HR user in Oracle 19c/18c/12c oracle While trying to unlock the HR user, I am getting an error saying, “user HR does not exist”. Best Answer Unlocking sample accounts like HR in Oracle 19c/18c/12c Edit tnsnames.ora file located at %db_home%\network\admin Add TNS ORCLPDB like below-highlighted block Open CMD as Administrator and execute below command C:\>lsnrctl reload Open CMD and execute SQLPlus with below command to login as SYSDBA C:\WINDOWS\system32> sqplus / as sysdba Run below SQL commands to Unlock your Schema ALTER SESSION SET container = ORCLPDB; Check if the pluggable database is opened ? SELECT name, open_mode FROM v$pdbs; To open your pluggable database Skip If Already open ALTER PLUGGABLE DATABASE open; Unlock HR user ALTER USER hr IDENTIFIED BY <your_password> ACCOUNT UNLOCK; conn username hr@orclpdb password <your_password> Connected. Connected means you can access HR schema lets start Now you will be able to access HR schema select * from tab; Related SolutionsOracle 12c Installation in Windows 7 error INS-30131 I found the problem. For reasons I don't understand Oracle needs access to the file system through the administrative network share (i.e. \computer\c$) and I had disabled it. Things to check to solve this issue: Remove your computer from workgroups. Set HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System DWORD value LocalAccountTokenFilterPolicy to 1 Set HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanServer\Parameters DWORD value AutoShareWks to 1 Oracle 12c create user If you want to create a user that can admin any of the pluggable databases, prefix the username with C##. For example: create user c##name identified by password; Related QuestionWindows – Oracle 12c SYSTEM user locked outUnlock lock in a db tableLinux – Unlock user shell script for OracleHow to grant user to dbms_crypto ?? Oracle (User which created inside SYSTEM)Oracle 19c runInstaller reports PRVF-5311 while checking SSH connectivity
Best Answer
Edit tnsnames.ora file located at %db_home%\network\admin
Add TNS ORCLPDB like below-highlighted block
Open CMD as Administrator and execute below command
Open CMD and execute SQLPlus with below command to login as SYSDBA
Run below SQL commands to Unlock your Schema
Check if the pluggable database is opened ?
Unlock HR user
Connected means you can access HR schema lets start