sqlplus / as sysdba
無需數據庫進入可用狀態,就可用用該命令登陸,運行startup來啓動。sql
sqlplus username/pwd@host/service_name,如:數據庫
sqlplus tiger/scott@localhost/orcl
sqlplus /nolog
先使用sqlplus命令,而不鏈接數據庫,而後用conn命令登陸。spa
conn tiger/scott conn tiger/scott@ip/orcl
select username,account_status from dba_users where account_status='OPEN';
show parameter service_names //查看當前數據庫service_name show parameter instance_name //查看當前SID