1、启动oracle数据库:
//切换至Oracle用户:
[[email protected] ~]# su - oracle
//进入sqlplus环境,nolog参数表示不登录:
[[email protected] ~]$ sqlplus /nolog
//以管理员模式登录:
[[email protected] ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Fri Apr 17 10:13:07 2015
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected.
//启动数据库
SQL> startup
//停止数据库
SQL> shutdown immediate
2、数据库监听:
//启动监听服务
[[email protected] ~]# su - oracle
[[email protected] ~]$ lsnrctl start
//停止监听服务
[[email protected] ~]$ lsnrctl stop
//查看监听状态
[[email protected] ~]$ lsnrctl status
时间: 2024-10-18 05:10:29