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一个过去。解决。

参考附件

 /etc/oratab 文件用处 

分类: 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状态。

时间: 2024-09-08 16:15:45

unable to copy the file to /etc/oratab的相关文章

win7 U盘出错日志---We were unable to copy your files. Please check your USB device and the selected ISO file and try again (转)

已找到解决出现:"We were unable to copy your files. Please check your USB device and the selected ISO file and try again."这个问题的方法了. 方法:插上要U启的U盘后,运行-->diskpart list disk(列出磁盘) select disk #(选择磁盘#) clean(清理) create partition primary(创建主要分区) select part

Failed during checkstyle execution: Unable to find suppressions file at location: src/checkstyle/checkstyle-suppressions.xml

<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.3.6.RELEASE</version> </parent>   springboot的parent节点配置错误,则会报下面的错   [INFO] ----------------

Yii中使用gii遇到“unable to write the file”

 Yii中使用gii遇到"unable to write the file" 显然这是因为gii没有权限来写文件,所以如果你按照http://www.yiichina.com/doc/guide/2.0/start-gii 这里和之前的步骤来做的话,你必须先把下面文件先删除: rm /var/www/html/basic/models/Country.php rm /var/www/html/basic/controllers/CountryController.php rm /v

JSPSmart实现文件上传时file和text表单同时提交的问题

js|上传|问题 原来这世界,就是一个圆.自始至终我都在圆圈里运动,从起点到起点,从终点到终点.在网上搜了无数的资料,为了寻找text表单和file文件一起提交的方法,累的脑袋直响.最后回到了开始的地方.找到了那条,曾经被我忽略的代码.原来,它可以这样简单. 好吧,我直切正题,下面的例子中有从网上哪位前辈写的内容,我只是稍加改动,写本文没有商业目的,前辈原谅我没引入你的大名啊. 程序有一个提交页面,其实用html就好了,不过原代码用的是jsp我也拿来用吧. selectfile.jsp---->

【原创】Copy源文件,并去掉注释

原创 /**  DelComment.java * *   Copy this file to Copy.java,  *   and get rid of the comments. * *  Author:李文雄.033534026 *  Class :电子政务 * *   Time:04-08-2005 * *  可以把一些//和/*嵌套的注释也能够去掉, *   另外也可以区别出那些是字符串的字符,而不是注释. *   完成的功能比较好 * */package Class;import

struts-plugin.xml-SSH配置,出现了unable to load struts2-spring-plugin

问题描述 SSH配置,出现了unable to load struts2-spring-plugin Unable to load configuration. - [unknown location] at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69) at org.apache.struts2.dispatcher.Dispatcher.in

W3C 用于在 web 应用中处理文件的 API(W3C File API for representing file objects in web applications)

File API W3C Last Call Working Draft 12 September 2013 This Version: http://www.w3.org/TR/2013/WD-FileAPI-20130912/ Latest Published Version: http://www.w3.org/TR/FileAPI/ Latest Editor's Draft: http://dev.w3.org/2006/webapi/FileAPI/ Previous Version

Guava翻译系列之File

使用guava处理文件 读写文件是一个程序员的核心能力! 令人意外的事,虽然java有非常丰富的并且强壮的I/O接口,但是却不怎么好用. 虽然在java7中已经有了一些改善. 但是我们还是要学一下guava的I/O相关的工具. 这一章我们要学习一下内容: -- 使用Files类处理文件的移动和复制,或者从文件中读取内容到字符串中 -- Closer 类 给我们提供非常简洁干净的方式去确保文件被正确关闭 -- ByteSource 和 CharSource 类,是inputStream和reade

How to create PFX file

--First, thanks my colleague Hanker's collection. How to create PFX file 打开Microsoft.NET Framework的SDK命令提示,详细操作步骤如下:   1.创建一个自己签署的X.509证书.cer和一个私钥文件.pvk,用到.NET自带的makecert工具,命令如下:  cd C:\Program Files\Microsoft Visual Studio 9.0\SmartDevices\SDK\SDKTo