无法连接到 Oracle - ora-01017
我安装了 Oracle 11.2.0 64 位 & Windows-7 64 位上的 Oracle SQL Developer 2.1.1.64
我尝试像这样连接到数据库:
username: scott
password: tiger
role : sysdba
hostname: localhost
port : 1521
sid : ORCL
我收到此错误:ora-01017 无效的用户名/密码;登录被拒绝
可能是什么问题?检查什么?
提前致谢
i installed Oracle 11.2.0 64bit & Oracle SQL developer 2.1.1.64 on Windows-7 64bit
i try to connect to database like this:
username: scott
password: tiger
role : sysdba
hostname: localhost
port : 1521
sid : ORCL
and i got this error: ora-01017 invalid username/password; logon denied
what can be the problem ? what to check ?
thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
11g允许区分大小写的密码,所以首先检查密码TIGER(也许是Tiger)
11g allows for case-sensitive passwords, so firstly check the password TIGER (and maybe Tiger)
由于数据库位于您的本地计算机上,最简单的方法是使用操作系统身份验证连接到它,并将密码重置为已知值,然后使用您想要的工具进行连接。在 Windows 上,您可以以 *nix 风格执行此操作。首先找到您的 oracle rdbms 安装位置并将该值分配给 ORACLE_HOME 环境变量。使用命令行工具。
(确保您记住这次的密码,包括大小写,因为 11g 密码区分大小写。)sqlplus 应该位于 %ORACLE_HOME%\bin 中。之前检查一下。
我希望这有帮助。
since the database is on your local machine, easiest is to connect to it using os authentication and reset the password to a known value and then use that to connect using the tool you want. On windows you can do this in the *nix style. First find where your oracle rdbms installation is located and assign that value to the ORACLE_HOME environment variable. Use the commandline tool.
(make sure you remember the password this time, including case as since 11g passwords are case sensitive.) sqlplus should be in %ORACLE_HOME%\bin. Check this before.
I hope this helps.
账户解锁了吗?作为特权(SYS 帐户)尝试运行:
如果帐户被锁定,请尝试:
另外,您似乎正在尝试使用 SCOTT 帐户以 SYSDBA 身份连接到数据库。我相信默认情况下该架构缺乏必要的帐户权限。尝试以 SCOTT/TIGER 身份登录,连接为“正常”,而不是“sysdba”。
-CJ
Is the account unlocked? As a privileged (SYS account) try running:
If the account is locked, try:
Also it appears you are trying to connect to the database as SYSDBA using the SCOTT account. I believe by default this schema lacks the necessary account privileges. Try logging in as SCOTT/TIGER connecting as "normal", not "sysdba".
-CJ
使用:
orapwd 文件=$ORACLE_HOME/dbs/orapw$ORACLE_SID 密码=Euro2016 条目=5
授予 sysdba 给 scott;
现在您可以连接...
Use:
orapwd file=$ORACLE_HOME/dbs/orapw$ORACLE_SID password=Euro2016 entries=5
grant sysdba to scott;
Now you can connect...