該系列是向 韓順平 老師學習的筆記 sql
高級權限帳號:scott pwd sysdbaoracle
新建一個 Command Window,也能夠 開始,運行 sqlplus學習
鏈接命令spa
--1.0 切換帳號對象
SQL> show user;
User is "SYS"
--conn 帳號/密碼
SQL> conn system/123456
Connected to Oracle Database 11g Express Edition Release 11.2.0.2.0
Connected as systemqt
SQL> show user;
User is "SYSTEM"it
--conn 帳號/密碼 AS 角色
SQL> conn scott/tiger AS SYSDBA
Connected to Oracle Database 11g Express Edition Release 11.2.0.2.0
Connected as scott AS SYSDBAio
--2.0 disc
SQL> disc
Not logged on test
--3.0 passw[ord]
SQL> passw tigerList
--4.0 show user
--5.0 exit
--6.0 clear
其餘命令
1)start和@
說明:運行sql腳本
SQL> start D:\Oracle\test.sql
2)edit D:\Oracle\test.sql
3)&符號:獲取用戶輸入
SQL> select * from alert_qt t where t.q_name='&name';
4)set pagesize 10;
sys,system,scott等用戶,不一樣用戶看到的數據對象不同.oracle的2個主要服務:OracleTSNListener,OracleService