将启动数据库的dbstart命令和启动监听器的lsnrctl命令手工加入到inittab文件
或用命令:
mkitab 'oralsnr:2:once:/bin/su - oracle -c "路径/lsnrctl start"'
mkitab 'oradb:2:wait:/bin/su - oracle -c "路径/dbstart"'
或用命令:
mkitab 'oralsnr:2:once:/bin/su - oracle -c "路径/lsnrctl start"'
mkitab 'oradb:2:wait:/bin/su - oracle -c "路径/dbstart"'
我试着运行了一下dbstart,系统报错说“cat: 0652-050 Cannot open /etc/oratab.”,不知道这种
情况怎么解决
#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.