永洪社区YVP
  • 发帖数1541
  • 粉丝4

https://club.yonghongtech.com/member.php?mod=register&fromUserId=34135

[Oracle独家资料] 【oracle】Oracle 服务器重启实战

防超皇冠三 显示全部楼层 发表于 2023-4-18 10:01:08 |阅读模式 打印 上一主题 下一主题
首先查看进程
ps -ef |grep -i oracle
查看数据库实例
env |grep -i oracle
切换数据库实例
[oracle@crp ~]$ export ORACLE_SID= 数据库实例名
--数据库重启----------------
[oracle@crp ~]$ lsnrctl stop  --关闭实例
[oracle@crp ~]$ sqlplus sys/oracle as sysdba ---链接数据库
SQL> shutdown immediate   ----关闭数据库
Database closed.
Database dismounted.
ORACLE instance shut down
SQL>quit          ----退出
[oracle@crp ~]$ lsnrctl start  --启动实例
[oracle@crp ~]$ sqlplus sys/oracle as sysdba   ---链接数据库
SQL> startup              -----启动数据库
ORACLE instance started.
Total System Global Area 1603411968 bytes
Fixed Size                  2253664 bytes
Variable Size             469765280 bytes
Database Buffers         1124073472 bytes
Redo Buffers                7319552 bytes
Database mounted.
Database opened.
SQL>quit          ----退出


回复

使用道具 举报

精彩评论1

yao3979青铜一 显示全部楼层 发表于 2023-4-20 14:50:51
学习
回复

使用道具 举报

高级模式
您需要登录后才可以回帖 登录 | 免费注册

  • 官方微信

    欢迎关注永洪服务号!收费为0,价值无限

    扫码关注
  • 新浪微博

    让每位用户轻松挖掘数据价值!

    访问新浪微博
  • 智能客服
50W

会员等你来哦

Copyright   ©2012-2024  北京永洪商智科技有限公司  (京ICP备12050607) 京公网安备110110802011451号 |联系社区管理员|《永洪社区协议》
返回顶部