通过spool导出文件宿主文件属性不是当前用户而是oralce                                           test是系统用户
$ sqlplus /nolog
SQL>conn system/oracle....
SQL>spool "/tmp/test.txt"
SQL>select  ....
SQL>spool off;
$ls -l /tmp/
$-rw-r--r--   1 oracle   dba        10277  4月 29日 8:36 test.txt
这个文件的属性是属于ORACLE而应该是属于TEST 用户的为什么是ORACLE 的呢

解决方案 »

  1.   

    spool 是sqlplus命令
    你通过sqlplus生成文件当然是属于oracle用户
      

  2.   

    conn system/oracle....你先把这个搞清楚,后面会少很多问题。
      

  3.   

    呵呵 搞定 自己吧答案贴上来首现修改 ORACLE/BIN目录下ORACLE 的权限解决:
    /home/oracle/bin 
    chmod 7655 oracle
    然后重启服务器如果启动的时候出现问题
    DBA-00314错误 
    DBA-00314错误Database "ora7" possibly left running when system went down (system crash?).
    Notify Database Administrator.SQL*DBA: Release 7.0.13.1.0 - Production on Mon Dec 15 08:26:22 2003Copyright (c) Oracle Corporation 1979, 1992.  All rights reserved.DBA-00314: unable to attach to default host
    ORA-03113: end-of-file on communication channelSQLDBA>; ORA-03113: end-of-file on communication channel
    SQLDBA>; DBA-00302: not connected to a database
    SQLDBA>; 
    SQL*DBA complete.SQL*DBA: Release 7.0.13.1.0 - Production on Mon Dec 15 08:26:23 2003Copyright (c) Oracle Corporation 1979, 1992.  All rights reserved.DBA-00314: unable to attach to default host
    ORA-03113: end-of-file on communication channelSQLDBA>; ORA-03113: end-of-file on communication channel
    SQLDBA>; DBA-00302: not connected to a database
    SQLDBA>; 
    SQL*DBA complete.Database "ora7" warm started.然么修改 HOME/ORACLE/BIN目录下 所有文件777然后../ORAINST/ROOT.SH 运行一下重新设定环境