启动Oracle

时间:2020-12-02 22:27:13

[oracle@redhat ~]$ su - oracle                                 --“切换到oracle用户”
Password:
[oracle@redhat ~]$ lsnrctl start                                --“打开监听”

[oracle@redhat ~]$ sqlplus /nolog                             --“进入到sqlplus”
SQL> conn /as sysdba                                             --“连接到sysdba”
SQL> startup                                                          --“启动数据库实例”
SQL> shutdown immediate                                       --“关闭数据库实例”
[oracle@redhat ~]$ lsnrctl stop                                 --“关闭监听”