简体   繁体   English

我的 oracle 11g 中没有斯科特模式

[英]there is no scott schema in my oracle 11g

recently download oracle 11g, tried login using scott, turns out scott doesnt exist.最近下载 oracle 11g,尝试使用 scott 登录,结果 scott 不存在。 I logged in using sys as sysdba and ran 'show pdbs' but it showed 'unknown show option pdbs'.我使用 sys 作为 sysdba 登录并运行“show pdbs”,但它显示“unknown show option pdbs”。

I looked up online and found that i need to run the scott.sql.我在网上查了一下,发现我需要运行 scott.sql。 But then i couldnt find the scott.sql file in the expected location.但后来我无法在预期位置找到 scott.sql 文件。 pls help请帮忙

11g is rather old, there's no PDB there. 11g 相当旧,那里没有 PDB。

As you're logged as SYS , run the following command and say what status you got (in my database, it is OPEN):当您以SYS身份登录时,运行以下命令并说明您获得的状态(在我的数据库中,它是 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.有关详细信息,请参阅

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM