第11、12讲:Chapter 03--Managing an Oracle Instance
2011-05-02 13:07
501 查看
shutdown normal //要一直等到远程访问的客户推出数据库后,才能关闭。
在创建表并赋值后,如果不提交”commit“ ,事务是无法完成的。
shutdown transactional //等到远端对话结束后才能关闭
所以在一般情况下,用得最多的关闭命令是:shutdown immediate
-----------------------------------------
Diagnostic files :诊断文件
代码里面包括详细的日志信息
文件分两大类:
1、alertSID.logfile //只有一个文件
2、trace files:Background trace files、User trace files//生命周期内产生的文
件
Bckground trace files:是一个进程遇到错误时就会产生一个trace files,这种情况
比较少。
User trace files:记录单个用户访问数据库产生的错误。也可以设定一个参数,可以
记录用户的每一个动作。
Session level:
命令:alter session set sql_trace=true //在当前会话执行
注意:此命令可能需要重新登录后才会生效
Instance level:
在instance 下设置的trace信息,则会使每个用户登录都会记录下每一条操作详细信息
,会影响数据库的性能。一般我们只有在诊断机器疑难杂症才使用。
在创建表并赋值后,如果不提交”commit“ ,事务是无法完成的。
shutdown transactional //等到远端对话结束后才能关闭
所以在一般情况下,用得最多的关闭命令是:shutdown immediate
-----------------------------------------
Diagnostic files :诊断文件
代码里面包括详细的日志信息
文件分两大类:
1、alertSID.logfile //只有一个文件
2、trace files:Background trace files、User trace files//生命周期内产生的文
件
Bckground trace files:是一个进程遇到错误时就会产生一个trace files,这种情况
比较少。
User trace files:记录单个用户访问数据库产生的错误。也可以设定一个参数,可以
记录用户的每一个动作。
Session level:
命令:alter session set sql_trace=true //在当前会话执行
注意:此命令可能需要重新登录后才会生效
Instance level:
在instance 下设置的trace信息,则会使每个用户登录都会记录下每一条操作详细信息
,会影响数据库的性能。一般我们只有在诊断机器疑难杂症才使用。
相关文章推荐
- 第06讲:Chapter 03--Managing an Oracle Instance
- 第08、09讲:Chapter 03--Managing an Oracle Instance.swf
- 第10讲:Chapter 03--Managing an Oracle Instance
- Fundamental I 03 Managing an Oracle Instance
- 03 Managing an Oracle Instance
- Oracle Tips 3 (Managing an Oracle Instance)
- QUESTION 118 You are managing an Oracle Database 11g instance with ASM storage. You lost an ASM disk
- You are managing an Oracle Database 11g instance and an Oracle Database 10g instance on the same mac
- Oracle sql developer Unable to create an instance of the Java Virtual Machine
- 81.You are managing an Oracle Database 11g database with this backup strategy: - Every Sunday night,
- Oracle环境变量引发“Connected to an idle instance.”错误
- [bbk2901] 第57集 - Chapter 14-Using Oracle Dasta Storage Structures Efficiently(03)
- (Alex note)managing oracle instance
- 68.You are managing an Oracle Database 11g database. You want to ensure the recovery of the database
- Cannot create an instance of OLE DB provider "OraOLEDB.Oracle" for linked server "xxxxxxx".
- [bbk2863] 第54集 - Chapter 13-Using Oracle Blokcs Efficeintly[03]
- Oracle 10g RAC sqlplus / as sysdba Connected to an idle instance
- Oracle SQL Developer - Unable to create an instance of the Java Virtual Machine
- Oracle SQL Developer - Unable to create an instance of the Java Virtual Machine
- ORACLE学习笔记:Chapter 03--Oracle Architectural Components