序號產生器的使用首先開始介面開啟sql plus,輸入使用者名稱system和密碼就能進入oracle
或者輸入測試用賬號sctoo和密碼, 這都是dba許可權的賬號.
可以自己新增資料庫名使用者
sql>create user username identified by password; //username和password都是使用者自定義刪除使用者sql> grant dba to username; //給使用者dba許可權
oracle刪除使用者和表空間
刪除user。
drop user xx cascade
刪除表空間。
drop tablespace tablespace_name including contents and datafiles;
刪除空的表空間,不包含物理檔案。
drop tablespace tablespace_name;
刪除空表空間,包含物理檔案。
drop tablespace tablespace_name including datafiles;
刪除非空表空間,不包含物理檔案。
drop tablespace tablespace_name including datafiles;
刪除非空表空間,包含物理檔案。
建立好資料庫使用者之後, 直接右鍵匯入sql檔案就行,也可在》sql中用命令匯入
oracle資料庫的學習
1.許可權管理 預設的三個使用者 sys 預設密碼 change on install as sysdba system manager scott tiger 建立使用者 sqlplus as sysdba 以管理員的身份登入進去 create user 使用者名稱 identified by 使...
oracle資料庫學習
最近在做使用者資料篩選的時候發現使用者資料載入和查詢比較慢,所以,參考網上資料進行了寫小優化,在資料庫中執行快了那麼一些,在這裡記錄下相關命令。做法 建立字段索引,使用instr函式。1 使用instr代替like 開頭會導致索引失效 instr的基本用法 select count from 表名 ...
Oracle資料庫學習
本章學習要點 1 子查詢 將乙個查詢包含到另乙個查詢中 1 如 emp表中,查詢與 scott 在同乙個部門的雇員資訊 原來我們是先查詢scott所在的部門即 select deptno from emp where ename scott 然後通過返回的部門號在查詢員工資訊 select from...