Oracle介绍SVRMGRL命令

文章作者 100test 发表时间 2007:03:14 13:38:53
来源 100Test.Com百考试题网


启动方法:
[oracle@lin /ora]$ svrmgrl 
oracle server manager release 3.1.5.0.0 - production
oracle8i enterprise edition release 8.1.5.0.1 - production
with the partitioning and java options
pl/sql release 8.1.5.0.0 ? production
如何获得使用帮助
打入help,得到: 下面是简单的语法描述,详细资料请看oracle server manager users guide.
svrmgr> help
startup      [dba] [force] [pfile=filespec] [exclusive | shared]
[mount dbname | open dbname] [nomount] 
shutdown     [normal | immediate | abort] 
monitor      for graphical modes only, bring up a monitor 
archive log  [start] [stop] [list] [next] [] [all] [destination] 
recover      { [database [manual] ] | [tablespace ts-name [,tsname]] } 
connect      [username [/password] ] [internal] [@instance-spec]
disconnect 
set          options: instance, echo, termout, timing, numwidth, charwidth
show         longwidth, datewidth, autoprint and for show: all, spool
exit
rem
sql statements can also be executed.
以系统用户oracle登录:
svrmgr> connect internal
connected.
关闭数据库,现在尝试一下?!
svrmgr> shutdown
database closed.
database dismounted.
oracle instance shut down.
启动数据库吧, 我想给它指定参数,并且打开:
svrmgr> startup pfile=/ora/dbs/initora8.ora open ora8
oracle instance started.
total system global area                         23670160 bytes
fixed size                                          64912 bytes
variable size                                     6656000 bytes
database buffers                                 16777216 bytes
redo buffers                                       172032 bytes
database mounted.
database opened.
测试一下啦, 先看看数据库的系统文件吧:
svrmgr> 0select * from system.sysfiles.
tsname                         fname                                blocks
------------------------------ -------------------------------------------------
system             /u01/app/oracle/oradata/ora8/system01.dbf           89600
oem_repository     /u01/app/oracle/oradata/ora8/oemrep01.dbf           2560
rbs                /u01/app/oracle/oradata/ora8/rbs01.dbf              6144
temp               /u01/app/oracle/oradata/ora8/temp01.dbf             5120
users              /u01/app/oracle/oradata/ora8/users01.dbf            5120
indx               /u01/app/oracle/oradata/ora8/indx01.dbf             5120
6 rows 0selected.
嗯, 感觉不错,现在退出休息一下吧。
svrmgr> exit
server manager complete.


相关文章


Oracle数据库自动启动失灵
2006年官方消息:Oracle8i认证即将退休
进程导致CPU100%解决步骤
认证加密两招解除VPN安全隐患
Oracle介绍SVRMGRL命令
Oracle9iRMAN备份及恢复步骤
使用Web服务虚拟化Oracle数据库
SQLServer索引结构及其使用之一
法国前5家电子商务网站访问量及活跃用户比例
澳大利亚华人论坛
考好网
日本华人论坛
华人移民留学论坛
英国华人论坛