Oracle

在/etc/init.d下面新建一个文件dbora,内容:
#!/bin/sh
ORA_HOME=/oracle/product/9.2.0
ORA_OWNER=oracle
su - $ORA_OWNER -c "lsnrctl start"
su - $ORA_OWNER -c "sqlplus /nolog @$ORA_HOME/dbstart.sql"

$ORA_HOME/dbstart.sql的内容:
conn / as sysdba
startup
exit

将dbora改成可执行
chmod 744 dbora

将dbstart.sql改成oracle所有
chown oracle /oracle/product/9.2.0/dbstart.sql

然后作一个连接
ln -s /etc/init.d/dbora /etc/rc2.d/S99dbora
ln -s /etc/init.d/dbora /etc/rc0.d/K10dbora

Sybase:

Before you set Adaptive Server or Backup Server to start automatically, make
sure that all network resources are available. Your server will not start if the
network is not up. Be sure that the entry for restarting the server follows any
commands in the rc directory for starting network operations. Slow start-up of
network operations may prevent servers from starting, even if commands are
in the correct order in the rc directory. You may want to designate a period of
time for your server to wait before starting by inserting a sleep command at the
beginning of the linked runserver file you created.
To configure your operating system for automatic restart of Adaptive Server
and Backup Server:
1 Create a start-up script file with contents like the following:
$SYBASE/$SYBASE_ASE/install/startserver
-f
$SYBASE/$SYBASE_ASE/install/RUN_servername
where $SYBASE/$SYBASE_ASE/install/startserver is the full path name
of the startserver utility, and
$SYBASE/$SYBASE_ASE/install/RUN_servername is the full path name
of the runserver file for the server.
2 Copy the script to the /etc/init.d directory, using syntax like the following:
cp script_name /etc/init.d/script_name
3 Review the contents of the /etc/inittab file to determine the default run
level for your operating system. The initdefault entry specifies the default
run level, which is usually 2 or 3.
4 Use the ln command to create a hard link from the runserver file to the
appropriate run control (rc) directory, rc#, where # is the default run level
obtained in step 2.
Use syntax like the following:
ln /etc/init.d/script_name
/etc/rc#.d/S##script_name
When you type the command to create this link, add an uppercase “S” and
a two-digit sequence number preceding the name of the script file. “S”
indicates a start-up file. The sequence number is necessary because files in
the rc directory are executed in order of their numbers. This file should be
executed last, so you should use a sequence number that follows all
existing numbers in ASCII order.
You can perform an ls command on the rc directory to view existing
sequence numbers. For example:
ls /etc/rc3.d/S*
returns:
/etc/rc3.d/S10syslog
/etc/rc3.d/S15nfs.server
/etc/rc3.d/S21rfs
If your script is named sybstart, type the following:
ln /etc/init.d/sybstart /etc/rc3.d/S77sybstart
In this example, you can use any number greater than 21 in place of 77.

在Solaris下自动启动oracle|Sybase相关推荐

  1. solaris如何连接oracle,solaris下安装oracle 11g与11g rac

    1.To Find Swap, RAM, and OS Version 对于 Solaris 操作系统,查看 Swap, RAM, and OS Version 的方法: swap -l /usr/s ...

  2. 在solaris上自动启动oracle

    在/etc/init.d下面新建一个文件dbora,内容: #!/bin/sh ORA_HOME=/oracle/product/9.2.0 ORA_OWNER=oracle su - $ORA_OW ...

  3. solaris oracle 磁盘阵列,Solaris 下的 oracle 的基本操作。

    一.启动.关闭数据库 1.启动数据库监听 su - oracle ---切换oracle用户(如果使用su oracle ,则启动时不运行.profile用户环境配置文件) $ lsnrctl sta ...

  4. oracle 安装找不到服务,win7 下安装oracle 11g出现错误: 启动服务出现错误 找不到服务OracleMTSRecoveryService...

    这种错误是在多次安装oracle都没有成功的情况下发生的. 正确安装oracle,是有前提条件的 1,安装最新的jdk,不是jre!!(并配好环境变量,在cmd中测试 java -version与ja ...

  5. linux下oracle开机自启动,Linux下开机自动启动Oracle的设置

    让我手动启动数据库,我决定花点时间研究下Oracle随Linux自动重启的设置,具体方法如下: 因为办公室突然停电,服务器重启后,数据库并没有跟着重启,,我才发现原来所有的数据库都没有设置开机自动重启 ...

  6. oracle 11g for solaris,solaris 11 下安装oracle 11g 与 11g RAC

    solaris 11 下安装oracle 11g 与 11g RAC 发布时间:2020-08-11 22:58:52 来源:ITPUB博客 阅读:119 作者:huiteng0 1.To Find ...

  7. centos oracle 服务自动启动,CentOS下配置Oracle 11gR2为系统服务自动启动

    CentOS下配置Oracle 11gR2为系统服务自动启动 CentOS下配置Oracle 11gR2为系统服务自动启动 为什么80%的码农都做不了架构师?>>> PS:在Wind ...

  8. 服务中启动oracle服务,Linux下如何自动启动Oracle服务

    在windows下,可以在计算机服务管理里将Oracle服务设置为自动,Linux中在Oracle安装完毕以后,如果重新启动Linux ,Oracle是不会自动启动的,你可以通过手动调用dbstart ...

  9. solaris配置php,Solaris下安装Oracle_启动Oracle及监听

    无论是在Linux下还是在Solaris下都安装过很多次Oracle,几乎都没成功过.最开始安装的时候连安装页面都见不到,后来,能够看到安 无论是在Linux下还是在Solaris下都安装过很多次Or ...

最新文章

  1. 2021-2028年中国阻燃装饰行业市场需求与投资规划分析报告
  2. Anaconda使用
  3. weblogic管理2 - 创建并启动一个managed server
  4. linux如何卸载自带的openJdk,并且安装jdk1.8
  5. python中import sys_python import sys出错怎么办
  6. IIS rest服务delete 报错
  7. KubeEdge在国家工业互联网大数据中心的架构设计与应用
  8. mt4软件较稳定的交易商服务器地址,外汇MetaTrader 4 常见交易商服务器ip地址汇总...
  9. java utf8 简繁转换 类库_Java封装简体繁体(香港台湾)转换工具
  10. java:Eclipse插件springsource-tool-suite的下载和安装
  11. 树莓派文件夹系统说明
  12. AltiumDesigner 的 PcbDoc文件转 pads 的 PCB文件
  13. python实现excel到word转换
  14. 通过JS检测360浏览器
  15. 买木头 (二分)题解
  16. 大漠穷秋:全面解读Angular 4.0核心特性
  17. 基于DEM的GIS水文分析——河网与集水区域的提取
  18. Python3教程@hikali
  19. CSS之border
  20. 压缩文件密码相关问题

热门文章

  1. CASA(Carnegie-Ames-Stanford Approach)模型、MAXENT模型
  2. 智能驾驶系统简介和测试要点分析
  3. cf #818 Div.2(A~C)
  4. 手披云雾开鸿蒙,元朝关于泰山的古诗词
  5. Long Press(长按功能)
  6. 对称矩阵的判定 C语言 SDUT
  7. 开源进企业8月27日活动
  8. 东芝2510ac请求维修cd40_东芝复印机2505AC错误CD40维修请求
  9. RIFE: Real-Time Intermediate Flow Estimation for Video Frame Interpolation——精读笔记
  10. 10G万兆光模块怎么用?组网方案详解