问题

ORA-01918: 用户 ‘SCOTT’ 不存在
Oracle数据库ORA-01918: 用户 ‘SCOTT‘ 不存在

解决

1.找到安装路径下的scott.sql文件

以我为例,是E:\oraclexe\app\oracle\product\11.2.0\server\rdbms\admin\scott.sql路径

2.开始——运行——cmd

运行scott.sql文件

输入:sqlplus / as sysdba;连接到数据库
SQL>@E:\oraclexe\app\oracle\product\11.2.0\server\rdbms\admin\scott.sql;
这样scott用户就被添加进来,默认密码是tiger
Oracle数据库ORA-01918: 用户 ‘SCOTT‘ 不存在

解锁scott用户

解锁scott用户 alter user scott account unlock;
修改密码 alter user scott identified by tiger;
SQL>conn scott/tiger; 连接成功
SQL>SHOW USER;
USER为“SCOTT”
Oracle数据库ORA-01918: 用户 ‘SCOTT‘ 不存在

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-05
  • 2021-10-10
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-30
相关资源
相似解决方案