暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

sqlplus -prelim option

原创 Anbob 2011-09-26
822
Main purpose of preliminary connection is to access database structures ( SGA ) in case when normal connection does not work so you can collect dumps and hunganalyze information which will be used for troubleshooting and determining cause of your hung
using sqlplus -prelim we can connect to sga but not to database...means no session is created
This option is very much helpful in hanging situtation where we cant connect to database but we may need to execute commands like oradebug.
you have any Sql*Plus 10g or latter version (ex. from client installation) and a valid net service name to connect to your 9i database you should be able to establish a "backdoor" connection.
just connect to the database using SYSDBA account
It has been arround since 10g… It’s called preliminary connection.There are two options to :
1) sqlplus -prelim / as sysdba
2) sqlplus /nolog
set _prelim on
conn / as sysdba
for example
C:\\>sqlplus -prelim sys/oracle@mytest as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on 星期一 9月 26 11:53:25 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> oradebug setmypid
已处理的语句
SQL> oradebug unlimit
已处理的语句
SQL> oradebug dump hanganalyze 1
已处理的语句
SQL> oradebug dump systemstate 10
已处理的语句
SQL> oradebug tracefile_name
/u01/app/oracle/admin/orcl/udump/orcl_ora_3958.trc
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论