oracle

Microsoft Windows [版本 5.2.3790]
(C) 版权所有 1985-2003 Microsoft Corp.

C:\Documents and Settings\Administrator>cd LSNRCTL
系统找不到指定的路径。

C:\Documents and Settings\Administrator>LSNRCTL

LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 13-6月 -2010 09:1
5:29

Copyright (c) 1991, 2005, Oracle.  All rights reserved.

欢迎来到LSNRCTL, 请键入"help"以获得信息。

LSNRCTL> status
正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
LISTENER 的 STATUS
------------------------
别名                      LISTENER
版本                      TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
ction
启动日期                  13-6月 -2010 08:56:42
正常运行时间              0 天 0 小时 18 分 56 秒
跟踪级别                  off
安全性                    ON: Local OS Authentication
SNMP                      OFF
监听程序参数文件          D:\oracle\product\10.2.0\db_1\network\admin\listener.o
ra
监听程序日志文件          D:\oracle\product\10.2.0\db_1\network\log\listener.log

监听端点概要...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=gdw-htauk9s7vap)(PORT=1521)))
服务摘要..
服务 "PLSExtProc" 包含 1 个例程。
  例程 "PLSExtProc", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
服务 "orcl" 包含 1 个例程。
  例程 "orcl", 状态 READY, 包含此服务的 1 个处理程序...
服务 "orclXDB" 包含 1 个例程。
  例程 "orcl", 状态 READY, 包含此服务的 1 个处理程序...
服务 "orcl_XPT" 包含 1 个例程。
  例程 "orcl", 状态 READY, 包含此服务的 1 个处理程序...
命令执行成功
LSNRCTL> sql
NL-00853: 未定义的  命令 "sql"。请尝试 "help"
LSNRCTL> sqlplus
NL-00853: 未定义的  命令 "sqlplus"。请尝试 "help"
LSNRCTL> exit

C:\Documents and Settings\Administrator>sqlplus

SQL*Plus: Release 10.2.0.1.0 - Production on 星期日 6月 13 09:32:38 2010

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

请输入用户名:  conn sys/sys as sysdba
SP2-0306: 选项无效。
用法: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
其中 <logon>  ::= <username>[/<password>][@<connect_identifier>] | /
请输入用户名:  orcl
输入口令:
ERROR:
ORA-01017: invalid username/password; logon denied


 



请输入用户名:  scott
输入口令:
ERROR:
ORA-28000: the account is locked
 
忘记密码,还可也:
有可能是你在建数据库的时候,
修改了默认的密码
而自己又忘记了
你可再重新修改过来
sqlplus / as sysdba

alter user system identified by manager;

alter user sys identified by change_on_install;

或者改成其他的你自己容易记住的 
 0


SP2-0157: 在 3 次尝试之后无法连接到 ORACLE, 退出 SQL*Plus

C:\Documents and Settings\Administrator>sqlplus

SQL*Plus: Release 10.2.0.1.0 - Production on 星期日 6月 13 09:34:09 2010

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

请输入用户名:  system
输入口令:

连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> conn sys/sys as sysdba;
已连接。
SQL> alter user scott account unlock;

用户已更改。

SQL> commit;

提交完成。

SQL> conn scott/tiger
ERROR:
ORA-28001: the password has expired


更改 scott 的口令
新口令:
重新键入新口令:
口令已更改
已连接。
SQL>
原文地址:https://www.cnblogs.com/xianqingzh/p/1757601.html