通过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 的呢
$ 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 的呢
解决方案 »
- 怎么获取数据库没提交的所有sql
- 数据库
- windows服务器上安装oracle的性能问题
- 关于修改透明网关配置文件的问题
- 招聘Oracle9 OCP 北京兼职教师 100元-150元/小时 mail: [email protected]
- 询问一个简单的SQL语句写法
- oracle中导出的数据能被sqlserver导入么?需要怎么做?
- 请问"PORT number","Database SID"在哪里设置?ORACLE服务不易受到攻击?
- oracle 8i 数据库服务器在 windows xp 安装的错误?
- ORA-00957: duplicate column name 建表报错,但是列名没有问题
- 关于数据库不完全恢复遇到的问题
- SQL文~求高手来~~~~~~~~~~~~~~~~~~~~~~
你通过sqlplus生成文件当然是属于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 运行一下重新设定环境