Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\my_laptop_name>lsnrctl status
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 19-JAN-2016 02:57
:19
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date 19-JAN-2016 02:35:39
Uptime 0 days 0 hr. 21 min. 41 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Log File g:\app\my_laptop_name\diag\tnslsnr\my_laptop_name-laptop\listener\
alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=my_laptop_name-laptop)(PORT=1521)))
Services Summary...
Service "orcl.2.12.151" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB.2.12.151" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
C:\Users\my_laptop_name>
现在,我的问题是,我应该在SqlDeveloper的这个对话框中写什么?
而且,看起来我忘记了用户名。
答案 0 :(得分:1)
您应该输入以下内容:
hostname: localhost
Port: 1521
SID: orcl
Username: whatever user you activated. Did you activate hr?
Password: password you supplied
如果到目前为止您尚未激活任何用户,并希望以sys身份登录,则
username: sys as sysdba password: specify password you selected for sys
以sys身份登录后,您可以激活其他用户。
答案 1 :(得分:1)
因此,连接名称是您要为连接添加“书签”的内容;对于用户名和密码,您应该尝试谷歌“oracle11g default user and password
”或者您在安装oracle11g时选择的内容; 主机名:所以如果你在同一台机器上运行它是localhost
; 端口写在该日志文本中,去搜索它; SID :说实话我不知道它是什么,但我会在这个上轻松一点,它是orcl
。
下次尝试尝试谷歌。干杯
答案 2 :(得分:0)
不要听起来很粗鲁,但你可以在第一次谷歌搜索上找到一个很好的链接:)
我正在与您分享相同的链接。请完整了解 -
http://www.oracle.com/technetwork/issue-archive/2008/08-may/o38sql-102034.html