启动方法:
[Oracle@lin/ora]$svrmgrl
OracleServerManagerRelease3.1.5.0.0-ProdUCtion
Oracle8iEnterpriseEditionRelease8.1.5.0.1-Production
WiththePartitioningandJavaoptions
PL/SQLRelease8.1.5.0.0–Production
如何获得使用帮助
打入help,得到:下面是简单的语法描述,具体资料请看OracleServerManagerUser'sGuide.
SVRMGR>help
STARTUP[DBA][FORCE][PFILE=filespec][EXCLUSIVESHARED]
[MOUNTdbnameOPENdbname][NOMOUNT]
SHUTDOWN[NORMALIMMEDIATEABORT]
MONITORForgraphicalmodesonly,bringupamonitor
ARCHIVELOG[START][STOP][LIST][NEXT][][ALL]['destination']
RECOVER{[DATABASE[MANUAL]][TABLESPACEts-name[,tsname]]}
CONNECT[username[/passWord]][INTERNAL]['@'instance-spec]
DISCONNECT
SEToptions:INSTANCE,ECHO,TERMOUT,TIMING,NUMWIDTH,CHARWIDTH
SHOWLONGWIDTH,DATEWIDTH,AUTOPRINTandforSHOW:ALL,SPOOL
EXIT
REM
SQLstatementscanalsobeexecuted.
以系统用户oracle登录:
SVRMGR>connectinternal
Connected.
关闭数据库,现在尝试一下?!
SVRMGR>shutdown
Databaseclosed.
Databasedismounted.
ORACLEinstanceshutdown.
启动数据库吧,我想给它指定参数,并且打开:
SVRMGR>startuppfile=/ora/dbs/initora8.oraopenora8
ORACLEinstancestarted.
TotalSystemGlobalArea23670160bytes
FixedSize64912bytes
VariableSize6656000bytes
DatabaseBuffers16777216bytes
RedoBuffers172032bytes
Databasemounted.
Databaseopened.
测试一下啦,先看看数据库的系统文件吧:
SVRMGR>select*fromsystem.sysfiles;
TSNAMEFNAMEBLOCKS
-------------------------------------------------------------------------------
SYSTEM/u01/app/oracle/oradata/ora8/system01.dbf89600
OEM_REPOSITORY/u01/app/oracle/oradata/ora8/oemrep01.dbf2560
RBS/u01/app/oracle/oradata/ora8/rbs01.dbf6144
TEMP/u01/app/oracle/oradata/ora8/temp01.dbf5120
USERS/u01/app/oracle/oradata/ora8/users01.dbf5120
INDX/u01/app/oracle/oradata/ora8/indx01.dbf5120
6rowsselected.
嗯,感觉不错,我会了,谢谢。现在退出休息一下吧。
SVRMGR>exit
ServerManagercomplete.