免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1989 | 回复: 0
打印 上一主题 下一主题

oracle startup [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-14 15:44 |只看该作者 |倒序浏览
现在有空就上来看看!
最喜欢的是,有个简单问题没人回复,我第一个回!哈哈!

给大家个介绍 oracle startup 文章。


STARTUP

Startup a database instance.
This is a SQL*Plus command (not part of standard SQL)

Syntax:

   STARTUP [FORCE] [RESTRICT] [PFILE=filename] NOMOUNT

   STARTUP [FORCE] [RESTRICT] [PFILE=filename] MOUNT [dbname]

   STARTUP [FORCE] [RESTRICT] [PFILE=filename] OPEN [Open_options] [dbname]

Open_options:
         READ {ONLY | WRITE [RECOVER]} | RECOVER

Key:
   FORCE
                 Shut down the current Oracle instance (if it is running) with
                 SHUTDOWN mode ABORT, before restarting it.
                 If the current instance is running and FORCE is not specified,
                 an error results. FORCE is useful while debugging and under abnormal
                 circumstances. It should not normally be used.

   RESTRICT
                 Only allow Oracle users with the RESTRICTED SESSION system privilege
                 to connect to the database. Later, you can use the ALTER SYSTEM command
                 to disable the restricted session feature.

   PFILE=filename
                 The init.ora parameter file to be used while starting up the instance.
                 If PFILE is not specified, then the default STARTUP parameter file is used.
                 The default file used is platform specific.
                 For example, the default file is $ORACLE_HOME/dbs/init$ORACLE_SID.ora on UNIX,
                 and %ORACLE_HOME%\database\initORCL.ora on Windows.

   MOUNT dbname
                 Mount a database but do not open it.
                 dbname is the name of the database to mount or open.
                 If no database name is specified, the database name is taken from the
                 initialization parameter DB_NAME.

   OPEN
                 Mount and open the specified database.

   NOMOUNT
                 Don't mount the database upon instance startup.
                 Cannot be used with MOUNT, or OPEN.

   RECOVER
                 Specifies that media recovery should be performed, if necessary,
                 before starting the instance.
                 STARTUP RECOVER has the same effect as issuing the RECOVER DATABASE command
                 and starting an instance.
                 Only 'complete recovery' is possible with the RECOVER option.

                 Recovery proceeds, if necessary, as if AUTORECOVERY is set to ON,
                 regardless of whether or not AUTORECOVERY is enabled.

                 If a redo log file is not found in the expected location,
                 recovery will continue by prompting you with the suggested location  
                 and name of the subsequent log files that need to be applied.
"Be nice to people on the way up, because you'll meet them on your way down." - Wilson Mizner

Related Commands:

ALTER DATABASE
ALTER SESSION
ALTER SYSTEM enable restricted session
SHUTDOWN
ORA-01034 - Oracle not available (the database is down)

Related Views:

   DBA_PENDING_TRANSACTIONS
   DBA_JOBS_RUNNING  
   V$SESSION
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP