Oracle开机自启动
2016-10-24 10:36
218 查看
linux下启动oracle
linux下关闭oracle
oracle加入开机启动
1.编辑: vi /etc/oratab,把最后一行的N改为Y
2.修改 /etc/rc.local,在最后添加两句
su - oracle #用oracle用户登陆 sqlplus /nolog conn /as sysdba startup exit lsnrctl start exit
linux下关闭oracle
su - oracle #用oracle用户登陆 sqlplus /nolog conn /as sysdba shutdown immediate exit lsnrctl stop exit
oracle加入开机启动
1.编辑: vi /etc/oratab,把最后一行的N改为Y
# This file is used by ORACLE utilities. It is created by root.sh # and updated by either Database Configuration Assistant while creating # a database or ASM Configuration Assistant while creating ASM instance. # 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:N orcl:/u01/app/oracle:Y #这里把"N"改为"Y"
2.修改 /etc/rc.local,在最后添加两句
#!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. touch /var/lock/subsys/local # 添加下面两条 su - oracle -c 'dbstart' su - oracle -c 'lsnrctl start'
相关文章推荐
- oracle修改字符集
- 苏州市相城区漕湖人民医院虚拟化容灾系统一套
- Oracle数据同步(存储过程)修改纪录记载
- oracle 11g exp 报错 EXP-00056;ORA-12154;EXP-00000;
- Oracle 同Schema表的同步处理
- oracle中游标的用法总结及示例
- Oracle Certified Java Programmer 经典题目分析(二)
- Oracle Certified Java Programmer 经典题目分析(一)
- Oracle归档日志删除
- Oracle 表空间数据文件迁移图解
- 揭密Oracle之 七种武器
- ORACLE数据库总结03
- ORACLE数据库总结02
- ORACLE数据库总结01
- oracle恢复删除的数据
- Oracle group by 语句增强
- delphi xe连接oracle心得(备忘)纯原创,一个字一个字打的
- jdk安装 系统找不到文件C:\ProgramData\Oracle\Java\javapath\java.exe
- MYsql和oracle的存储过程的创建
- oracle+plsql的配置