unable to copy the file to /etc/oratab




检查权限
[root@m2 tmp]# ls -ltr /etc/oratab 
-rw-rw-r-- 1 grid oinstall 904 Apr 22 10:14 /etc/oratab
解决
chown oracle.oinstall 



#出现了一些错误。
#1 Unable to copy the file "rac2:/etc/oratab" to "/tmp/oratab.rac2" 
#因为rac2没有/etc/oratab这个文件,所以从rac1 rcp一个过去。解决。

参考附件

分类: Oracle

[oracle@node1 ~]$ vi /etc/oratab 

# This file is used by ORACLE utilities.  It is created by root.sh
# and updated by the Database Configuration Assistant when creating
# a database.

#



# This file is used by ORACLE utilities.  It is created by root.sh
# and updated by the Database Configuration Assistant when creating
# a database.

# A colon, ':', is used as the field terminator.  A new line terminates
# the entry.  Lines beginning with a pound sign, '#', are comments.
#
# Entries are of the form:
#   $ORACLE_SID:$ORACLE_HOME:<N|Y>:
#
# The first and second fields are the system identifier and home
# directory of the database respectively.  The third filed indicates
# to the dbstart utility that the database should , "Y", or should not,
# "N", be brought up at system boot time.
#
# Multiple entries with the same $ORACLE_SID are not allowed.
#
#
orcl:/u01/app/oracle/product/10.2.0/db_1:N

最后的N或者Y表示是否允许dbstart来启动数据库,如果为N则实例不能通过dbstart启动,表现为sqlplus连接实例时显示Connected to an idle instance.如果为Y则实例可以通过dbstart启动,sqlplus连接后数据库即为open状态。

检查权限
[root@m2 tmp]# ls -ltr /etc/oratab 
-rw-rw-r-- 1 grid oinstall 904 Apr 22 10:14 /etc/oratab
解决
chown oracle.oinstall 



#出现了一些错误。
#1 Unable to copy the file "rac2:/etc/oratab" to "/tmp/oratab.rac2" 
#因为rac2没有/etc/oratab这个文件,所以从rac1 rcp一个过去。解决。

参考附件

  /etc/oratab 文件用处  2010-05-04 09:49:20

分类: Oracle

[oracle@node1 ~]$ vi /etc/oratab 

# This file is used by ORACLE utilities.  It is created by root.sh
# and updated by the Database Configuration Assistant when creating
# a database.

#



# This file is used by ORACLE utilities.  It is created by root.sh
# and updated by the Database Configuration Assistant when creating
# a database.

# A colon, ':', is used as the field terminator.  A new line terminates
# the entry.  Lines beginning with a pound sign, '#', are comments.
#
# Entries are of the form:
#   $ORACLE_SID:$ORACLE_HOME:<N|Y>:
#
# The first and second fields are the system identifier and home
# directory of the database respectively.  The third filed indicates
# to the dbstart utility that the database should , "Y", or should not,
# "N", be brought up at system boot time.
#
# Multiple entries with the same $ORACLE_SID are not allowed.
#
#
orcl:/u01/app/oracle/product/10.2.0/db_1:N

最后的N或者Y表示是否允许dbstart来启动数据库,如果为N则实例不能通过dbstart启动,表现为sqlplus连接实例时显示Connected to an idle instance.如果为Y则实例可以通过dbstart启动,sqlplus连接后数据库即为open状态。
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值