连接数据库: 方法一:使用操作系统验证方式 [oracle@strong ~]$ sqlplus / as sysdba 方法二:使用easy connect方式连接 [oracle@strong ~]$ sqlplus sys/system@192.168.56.102:1521/orcl as sysdba 方法三:使用TNS方式连接 查看示例名称以及状态: SQL> select instance_name,status from v$instance; INSTANCE_NAME STATUS ---------------- ------------ orcl OPEN 查看服务器字符集: SQL> select userenv('LANGUAGE') from dual; USERENV('LANGUAGE') ---------------------------------------------------- AMERICAN_AMERICA.AL32UTF8 关闭数据库: SQL> shutdown immediate Connected to an idle instance.:说明数据库没有启动。 启动数据库: SQL> startup 查看监听器(默认)状态: [oracle@strong ~]$ lsnrctl status 启动监听器: [oracle@strong ~]$ lsnrctl start 停止监听器: [oracle@strong ~]$ lsnrctl stop [oracle@strong oracle]$ su - Password: [root@strong ~]# shutdown -h now