Logminer的使用步骤
Logminer的使用步骤:1)先确定是否设置了UTL_FILE_DIR参数。以sys用户登录系统后,执行show parameter utl_file_dir查看是否有值。如果没有,设置该参数,该参数不能在线修改:SQL> alter system set utl_file_dir='/export/home/oracle/app/oracle/oradata/logmnr' scope=spfile;系统已更改。然后重启DB:SQL>shutdown immediate;SQL>startup;2)导出DB的数据字典到一个文件中。SQL> exec dbms_logmnr_d.build(dictionary_filename=>'$file', dictionary_location=>'$dir');其中:$file是存储数据字典的文件名,可以任意
SID和Serial#的概念
SID和Serial#共同确定一唯一的session。它们的定义如下:SID: Session identifierSERIAL#:Session serial number. Used to identify uniquely a session's objects. Guarantees that session-level commands are applied to the correct session objects if the session ends and another session begins with the same session ID.Sid就是用来标识一个session的,它一般和process是对应的。一个process一般对应一个session,只要process不结束,则这个process建立的session具有同样的SID。在session结束后,新的session建立时,SID被重用