oradim -new -sid oratest
并且建立好init文件
C:\Documents and Settings\Administrator>set oracle_sid=oratest
SQL> startup nomount pfile='?/database/initoratest.ora'
ORACLE 例程已经启动。
Total System Global Area 139533192 bytes
Fixed Size 453512 bytes
Variable Size 109051904 bytes
Database Buffers 29360128 bytes
Redo Buffers 667648 bytes
SQL>
SQL> show parameter name
NAME TYPE VALUE
------------------------------------ ---------------------- ------------------------------
db_file_name_convert string
db_name string oratest
global_names boolean FALSE
instance_name string oratest
lock_name_space string
log_file_name_convert string
oracle_trace_collection_name string
oracle_trace_facility_name string oracled
plsql_native_make_file_name string
service_names string oratest
SQL> exit
从Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production中断开
C:\Documents and Settings\Administrator>
C:\Documents and Settings\Administrator>lsnrctl status
LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 13-11月-2007 23:58:25
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=userhostname)(PORT=1521)))
LISTENER 的 STATUS
------------------------
别名 LISTENER
版本 TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production
启动日期 13-11月-2007 21:35:04
正常运行时间 0 天 2 小时 23 分 22 秒
跟踪级别 off
安全性 OFF
SNMP OFF
监听器参数文件 d:\oracle\ora92\network\admin\listener.ora
监听器日志文件 d:\oracle\ora92\network\log\listener.log
监听端点概要...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=userhostname)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=userhostname)(PORT=8080))(Presentation=HTTP)(Session=RAW))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=userhostname)(PORT=2100))(Presentation=FTP)(Session=RAW))
服务摘要..
服务 "OEMREP" 包含 1 个例程。
例程 "OEMREP", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
服务 "PLSExtProc" 包含 1 个例程。
例程 "PLSExtProc", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
服务 "oralocal" 包含 2 个例程。
例程 "oralocal", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
例程 "oralocal", 状态 READY, 包含此服务的 1 个处理程序...
服务 "oralocalXDB" 包含 1 个例程。
例程 "oralocal", 状态 READY, 包含此服务的 1 个处理程序...
服务 "orarman" 包含 1 个例程。
例程 "orarman", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
服务 "oratest" 包含 1 个例程。
例程 "oratest", 状态 BLOCKED, 包含此服务的 1 个处理程序...
命令执行成功
C:\Documents and Settings\Administrator>
C:\Documents and Settings\Administrator>
C:\Documents and Settings\Administrator>
C:\Documents and Settings\Administrator>lsnrctl stop
LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 13-11月-2007 23:59:48
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=userhostname)(PORT=1521)))
命令执行成功
C:\Documents and Settings\Administrator>lsnrctl start
LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 13-11月-2007 23:59:55
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
启动tnslsnr:请稍候...
TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production
系统参数文件为d:\oracle\ora92\network\admin\listener.ora
写入d:\oracle\ora92\network\log\listener.log的日志信息
监听:(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=userhostname)(PORT=1521)))
监听:(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=userhostname)(PORT=1521)))
LISTENER 的 STATUS
------------------------
别名 LISTENER
版本 TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production
启动日期 13-11月-2007 23:59:55
正常运行时间 0 天 0 小时 0 分 0 秒
跟踪级别 off
安全性 OFF
SNMP OFF
监听器参数文件 d:\oracle\ora92\network\admin\listener.ora
监听器日志文件 d:\oracle\ora92\network\log\listener.log
监听端点概要...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=userhostname)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
服务摘要..
服务 "OEMREP" 包含 1 个例程。
例程 "OEMREP", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
服务 "PLSExtProc" 包含 1 个例程。
例程 "PLSExtProc", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
服务 "oralocal" 包含 1 个例程。
例程 "oralocal", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
服务 "orarman" 包含 1 个例程。
例程 "orarman", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
命令执行成功
C:\Documents and Settings\Administrator>lsnrctl status
LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 14-11月-2007 00:00:01
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=userhostname)(PORT=1521)))
LISTENER 的 STATUS
------------------------
别名 LISTENER
版本 TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production
启动日期 13-11月-2007 23:59:55
正常运行时间 0 天 0 小时 0 分 5 秒
跟踪级别 off
安全性 OFF
SNMP OFF
监听器参数文件 d:\oracle\ora92\network\admin\listener.ora
监听器日志文件 d:\oracle\ora92\network\log\listener.log
监听端点概要...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=userhostname)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
服务摘要..
服务 "OEMREP" 包含 1 个例程。
例程 "OEMREP", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
服务 "PLSExtProc" 包含 1 个例程。
例程 "PLSExtProc", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
服务 "oralocal" 包含 1 个例程。
例程 "oralocal", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
服务 "orarman" 包含 1 个例程。
例程 "orarman", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
命令执行成功
(等待一分钟左右的时间)
C:\Documents and Settings\Administrator>lsnrctl status
LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 14-11月-2007 00:01:15
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=userhostname)(PORT=1521)))
LISTENER 的 STATUS
------------------------
别名 LISTENER
版本 TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production
启动日期 13-11月-2007 23:59:55
正常运行时间 0 天 0 小时 1 分 19 秒
跟踪级别 off
安全性 OFF
SNMP OFF
监听器参数文件 d:\oracle\ora92\network\admin\listener.ora
监听器日志文件 d:\oracle\ora92\network\log\listener.log
监听端点概要...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=userhostname)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=userhostname)(PORT=8080))(Presentation=HTTP)(Session=RAW))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=userhostname)(PORT=2100))(Presentation=FTP)(Session=RAW))
服务摘要..
服务 "OEMREP" 包含 1 个例程。
例程 "OEMREP", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
服务 "PLSExtProc" 包含 1 个例程。
例程 "PLSExtProc", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
服务 "oralocal" 包含 2 个例程。
例程 "oralocal", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
例程 "oralocal", 状态 READY, 包含此服务的 1 个处理程序...
服务 "oralocalXDB" 包含 1 个例程。
例程 "oralocal", 状态 READY, 包含此服务的 1 个处理程序...
服务 "orarman" 包含 1 个例程。
例程 "orarman", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
服务 "oratest" 包含 1 个例程。
例程 "oratest", 状态 BLOCKED, 包含此服务的 1 个处理程序...
命令执行成功
C:\Documents and Settings\Administrator>