LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 728|回复: 13

这个问题在这里问比较好

[复制链接]
发表于 2004-4-28 11:56:04 | 显示全部楼层 |阅读模式
SQL> alter tablespace tools begin backup;

Tablespace altered.

SQL> !cp /u01/kypt/tools01.dbf /u02/backup/
cp: cannot open `/u01/kypt/tools01.dbf' for reading: Permission denied


SQL> !ls -l /u01/kypt/
total 27252940
-rw-r----- 1 oracle dba 12247040 Apr 21 14:27 control01.ctl
-rw-r----- 1 oracle dba 12247040 Apr 21 14:27 control02.ctl
-rw-r----- 1 oracle dba 12247040 Apr 21 14:27 control03.ctl
-rw-r----- 1 oracle dba 2147491840 Apr 21 14:28 GOLD.dbf
-rw-r----- 1 oracle dba 2147491840 Apr 21 14:28 HF.dbf
-rw-r----- 1 oracle dba 4294975488 Apr 21 14:27 indx01.dbf
-rw-r--r-- 1 oracle dba 1261 Apr 21 14:27 initkypt.ora
-rw-r----- 1 oracle dba 2147491840 Apr 21 14:28 KYPT.dbf
-rw-r----- 1 oracle dba 104858112 Apr 21 14:27 kypt_redo2_2.log
-rw-r----- 1 oracle dba 36716544 Apr 21 14:27 oem_repository.dbf
-rw-r----- 1 oracle dba 1073750016 Apr 21 14:28 RBS.dbf
-rw-r----- 1 oracle dba 104858112 Apr 21 14:27 redo01.log
-rw-r----- 1 oracle dba 104858112 Apr 21 14:27 redo02.log
-rw-r----- 1 oracle dba 104858112 Apr 21 14:27 redo03.log
-rw-r----- 1 oracle dba 2147491840 Apr 21 14:28 ROLLBACK.dbf
-rw-r----- 1 oracle dba 4294975488 Apr 21 14:28 SNAPLOG.dbf
-rw-r----- 1 oracle dba 2147491840 Apr 21 14:29 SP.dbf
-rw-r----- 1 oracle dba 3584 Apr 21 14:27 spfilekypt.ora
-rw-r----- 1 oracle dba 536879104 Apr 21 14:27 system01.dbf
-rw-r----- 1 oracle dba 2147491840 Apr 21 14:27 temp01.dbf
-rw-r----- 1 oracle dba 524296192 Apr 21 14:27 TEST.dbf
-rw-r----- 1 oracle dba 268443648 Apr 21 14:27 tools01.dbf
-rw-r----- 1 oracle dba 1073750016 Apr 21 14:27 undotbs01.dbf
-rw-r----- 1 oracle dba 1073750016 Apr 21 14:27 undotbs02.dbf
-rw-r----- 1 oracle dba 1073750016 Apr 21 14:27 UNDOTBS3.dbf
-rw-r----- 1 oracle dba 314580992 Apr 21 14:27 users01.dbf

SQL> !whoami
oracle

另:改成777也不行
发表于 2004-4-28 12:45:35 | 显示全部楼层
用lsattr看看这个文件的属性,或者直接用root来cp
 楼主| 发表于 2004-4-28 13:57:12 | 显示全部楼层
ROOT也报同样的错。
发表于 2004-4-28 14:06:20 | 显示全部楼层
数据库的操作不熟,看样子你是作备份吧,~,要不创建一个硬链接试试,

chgrp oracle  /u01/kypt/
再试试看~
 楼主| 发表于 2004-4-29 16:32:24 | 显示全部楼层
硬链接如何创建。CHGRP后,报错一样。
发表于 2004-4-29 16:49:47 | 显示全部楼层
我没有你的环境,:sorry,j见我作的实验:
/home#cp 123 ~/
cp: cannot open `123' for reading: Permission denied
/home#ll 123
-rw-r-----    1 root     root            0  4月 29 16:47 12
/home#su -
Password:
/root#cd /home
/home#chmod 644 123
/home#^D
/home#cp 123 ~/
/home#ll ~/123
-rw-r--r--    1 javalee  javalee         0  4月 29 16:49 /home/javalee/123
 楼主| 发表于 2004-4-30 23:29:25 | 显示全部楼层
问题还是没有解决...
不过多谢楼上的热心帮助.十分的感谢....
发表于 2004-5-1 00:04:48 | 显示全部楼层
最初由 takken 发表
问题还是没有解决...
不过多谢楼上的热心帮助.十分的感谢....

:sorry,很抱歉没有给你提供什么有价值的帮助,
发表于 2004-5-1 01:04:36 | 显示全部楼层
look at the /etc/fstab ,maybe the block alread set to the ro mode.
发表于 2004-5-1 06:21:47 | 显示全部楼层
就算是ro mount上也应该是可以读的.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表