Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

there is no scott schema in my oracle 11g

recently download oracle 11g, tried login using scott, turns out scott doesnt exist . I logged in using sys as sysdba and ran ‘show pdbs’ but it showed ‘unknown show option pdbs’.

I looked up online and found that i need to run the scott.sql. But then i couldnt find the scott.sql file in the expected location. pls help

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

11g is rather old, there’s no PDB there.

As you’re logged as SYS, run the following command and say what status you got (in my database, it is OPEN):

SQL> select account_status from dba_users where username = 'SCOTT';

ACCOUNT_STATUS
--------------------------------
OPEN

SQL>

If it is LOCKED (which might be), then run

SQL> alter user scott account unlock;

User altered.

SQL> alter user scott identified by tiger;

User altered.

SQL>

and – finally – connect:

SQL> connect scott/tiger
Connected.
SQL>

If you really don’t have that schema, create it. See this for more info.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading