Lets unlock the hr user and give it a password.
SQL> alter user hr identified by hr account unlock; User altered.
SQL> alter user hr identified by hr account unlock; User altered.
Clone Database on the same machine (locally).
1) First make sure your database is in archivelog mode. 2) Make a fresh backup of your database using Rman. 3) The SID of the database which I have is “orcl”. The cloned database name will be “dup”. 4) Add the following lines to listener.ora file.
[root@localhost ~]# su - oracle [oracle@localhost ~]$ export ORACLE_SID=orcl [oracle@localhost ~]$ sqlplus username:system password:password
SQL> startup ORA-32004: obsolete and/or deprecated parameter(s) specified ORACLE instance started.