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. php7.0 连接ftp,PHPstorm连接ftp
  2. 苹果x防水测试软件,iPhone终极防水测试 iPhone XR阵亡
  3. 017 包扫描器和标记注解
  4. 使用Python在Twitter上进行基本数据分析
  5. java 操作office_Java操作word的方法
  6. 数字的与或非处理表中的多个状态(二)
  7. 手机界的革命-云手机(华为云)
  8. 决策树随机森林adaboost理论实战
  9. Linux 删除用户时报错:userdel: user zhoulijiang is currently used by process 1
  10. bitmap位图详解
  11. 【遥感微课堂】学习ENVI5.0
  12. Android 6.0 sensor 框架详解 (application层)
  13. HTML5 Canvas API详解
  14. oracle同义词只有谁可以使用,oracle 同义词(synonym)
  15. HI3516A/Hi3516D H265流结构分析
  16. ipsw —— iOS/macOS 研究瑞士军刀
  17. 浅析Android中build.gradle的实用技巧
  18. iOS 文字动画,文字逐个显示
  19. Android自定义半圆进度条 半圆渐变色进度条带指示 半圆开口大小可自由修改
  20. Intel® 2019网络技术研讨会圆满落幕

热门文章

  1. “盘古”走向产业山峦,打开了一串AI落地的新脑洞
  2. 侍魂胧月传说服务器维护中,侍魂胧月传说手游3月2日停机维护更新公告
  3. 转一位计算机牛人的心得,谈计算机和数学,很实用~
  4. 笔记:STM32——PWM波形生成以及控制电机
  5. Linux更改用户名密码
  6. RocketMQ 集群告警
  7. C++图书管理查询系统
  8. Systemback更改默认存储目录/home,并在Ubuntu18创建大于4G的Linux镜像教程
  9. opencv学习【绘图】多边形polylinesfillPoly
  10. 光明区支持现代服务业高质量发展若干措施(征求意见稿)