繁体   English   中英

Oracle和Sql开发人员连接

[英]Oracle and Sql developer Connection

如何查找我的Oracle数据库的SID。 我的系统中安装了Oracle 11g,我想在SQL开发人员和oracle之间建立连接。 但是,当我使用默认SID即xe测试连接时,它给我一个ORA-12505错误。

如果可以使用sqlplus连接到数据库,则只需执行以下操作即可显示SID /实例名称:

show parameter instance_name 

或交替

select instance_name from v$instance; 

在Oracle 11g的SQL Developer默认连接中:

转到连接>新建连接

Connection Name =  HR or use any other name
User name = hr
Password = Your Password (This is the password that you selected during the installation of the of Oracle 11g) 

选中“保存”选项

role: default
port 1521
SID : orcl

如果要创建SYSDBA帐户:(管理员帐户)

Connection Name =  admin ORCL or use any other name
User name = sys

Password = Your Password (这是在Oracle 11g的安装过程中选择的密码)

role: sysdba (from the drop down)
port 1521
SID : orcl

测试并保存连接

万一您的HR帐户因连接次数过多而被锁定,而无法登录到SYS DBA帐户,可以解决此问题。

在列表上的对象列表中,转到“其他用户”。

转到人力资源帐户>右键单击

EDIT USER

选择所需的密码,然后取消选中“帐户已锁定”和“密码已过期”选项(如果已选中)。

暂无
暂无

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

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