alter database backup controlfile to trace
执行后察看trace文件,为什么没有controlfile的做成sql呢
trace文件生成的内容如下TKPROF: Release 8.1.7.0.0 - Production on 金 Aug 14 10:46:53 2009(c) Copyright 2000 Oracle Corporation.  All rights reserved.Trace file: c:\ORA03868.TRC
Sort options: default********************************************************************************
count    = number of times OCI procedure was executed
cpu      = cpu time in seconds executing 
elapsed  = elapsed time in seconds executing
disk     = number of physical reads of buffers from disk
query    = number of buffers gotten for consistent read
current  = number of buffers gotten in current mode (usually for update)
rows     = number of rows processed by the fetch or execute call
********************************************************************************
Trace file: c:\ORA03868.TRC
Trace file compatibility: 8.00.04
Sort options: default       1  session in tracefile.
       0  user  SQL statements in trace file.
       0  internal SQL statements in trace file.
       0  SQL statements in trace file.
       0  unique SQL statements in trace file.
      55  lines in trace file.

解决方案 »

  1.   

    你这个是user dump还是core dump的内容
      

  2.   

    user dump还是core dump?
    是意思,那个指令会生成2个trace文件么?
    我是看的udump下面的那个
      

  3.   

    就在udump下,不会没有啊
    那你试试这个语句好了,直接把备份写到确定的文件上:alter database backup controlfile to trace as 'd:\control_bak.txt';
      

  4.   

    应该是use dump,我看着生成trace文件的,所以trace文件应该没有错
      

  5.   

    老兄,不行啊,执行alter database backup controlfile to trace as 'd:\control_bak.txt';
    报ora-00933 sql未正确结束的错误
      

  6.   

    9iSQL> alter database backup controlfile to trace as 'd:\control_bak.txt';Database altered.
      

  7.   

    .8i和9i目录和管理上有很大的一些差别了你上面是用的sql trace,这里不是用sql trace看的直接在user_dump_dest的路径下打开对应的trc文件就可以看到了。
      

  8.   

    明白啦,以为trace文件都要用tkprof导一下呢