1:查看環境變量ORACLE_SID的設置狀況:sql
windows: echo %ORACLE_SID%windows
2:設置環境變量ORACLE_SID的值爲你想登陸的oracle實例的SID:oracle
set ORACLE_SID=orclide
3:鍵入命令:sqlplus / as sysdbablog
就能夠以sysdba的身份登陸到oracle了!登錄
4:在sqlplus窗口執行命令:變量
alter user you_username identified by you_password;im