desc dba_data_files
select file_name from dba_data_files where tablespace_name='TEST1_TABLESPACE';
select file_name from dba_temp_files where tablespace_name='TEMPTEST1_TABLESPACE';
select file_name from dba_data_files where tablespace_name='TEST1_TABLESPACE';
select file_name from dba_temp_files where tablespace_name='TEMPTEST1_TABLESPACE';
2018-01-06
create tablespace test1_tablespace datafile 'test1file.dbf' size 10m;
create temporary tablespace teptest1_tablespace tempfile 'tempfile1.dbf' size 10m;
create temporary tablespace teptest1_tablespace tempfile 'tempfile1.dbf' size 10m;
2018-01-06
desc dba_users
select defaut_tablespaces,temporary_tablespaces from dba_users where username='SYSTEM';
alter user system
default tablespace system
select defaut_tablespaces,temporary_tablespaces from dba_users where username='SYSTEM';
alter user system
default tablespace system
2018-01-06
desc dba_tablespaces
select tablespace_name frome dba_tablespaces;
desc user_tablespaces
select tablespance_name frome user_tablespaces;
connect scott/tiger
select tablespace_name from dba_tablespaces;
select tablespace_name from user_tablespaces;
select tablespace_name frome dba_tablespaces;
desc user_tablespaces
select tablespance_name frome user_tablespaces;
connect scott/tiger
select tablespace_name from dba_tablespaces;
select tablespace_name from user_tablespaces;
2018-01-06
alter user scott account unlock;
connect scott
show user
connect scott
show user
2018-01-06
Dba_tablespaces該數(shù)據(jù)字典針對(duì)的系統(tǒng)管理員級(jí)的用戶來查看的數(shù)據(jù)字典,
user_tablespace該數(shù)據(jù)字典為普通用戶登錄后來查看的數(shù)據(jù)字典。
作為系統(tǒng)管理員登錄的時(shí)候,對(duì)應(yīng)的表空間(dba_tablespaces下面的表空間)默認(rèn)情況下為這6個(gè):
System:用來存放sys用戶的表、視圖以及存儲(chǔ)過程的數(shù)據(jù)庫對(duì)象,也被我們稱為是一個(gè)系統(tǒng)表空間。
Sysaux:作為example的一個(gè)輔助表空間。
Undotbs1:主要用于存儲(chǔ)撤銷信息的。
Temp:存儲(chǔ)sql語句處理的表和索引信息的,他是一個(gè)臨時(shí)表空間。
Users:屬于一個(gè)永久性表空間,存儲(chǔ)數(shù)據(jù)庫用戶創(chuàng)建的數(shù)據(jù)庫對(duì)象。
user_tablespace該數(shù)據(jù)字典為普通用戶登錄后來查看的數(shù)據(jù)字典。
作為系統(tǒng)管理員登錄的時(shí)候,對(duì)應(yīng)的表空間(dba_tablespaces下面的表空間)默認(rèn)情況下為這6個(gè):
System:用來存放sys用戶的表、視圖以及存儲(chǔ)過程的數(shù)據(jù)庫對(duì)象,也被我們稱為是一個(gè)系統(tǒng)表空間。
Sysaux:作為example的一個(gè)輔助表空間。
Undotbs1:主要用于存儲(chǔ)撤銷信息的。
Temp:存儲(chǔ)sql語句處理的表和索引信息的,他是一個(gè)臨時(shí)表空間。
Users:屬于一個(gè)永久性表空間,存儲(chǔ)數(shù)據(jù)庫用戶創(chuàng)建的數(shù)據(jù)庫對(duì)象。
2018-01-04
這位老師的講課我聽的比較認(rèn)真。不知道是不是因?yàn)樾詣e的原因(*^__^*) 嘻嘻……
2017-12-26
最新回答 / 心聲之新生
可以直接選擇全部忽略,不影響db的使用。Oracle執(zhí)行先決條件檢查是依賴c$共享,通常為了安全默認(rèn)都關(guān)閉了這個(gè),所以導(dǎo)致檢查不通過。打開方法很簡(jiǎn)單,確?!胺?wù)”里的Server服務(wù)正常運(yùn)行,然后在CMD命令控制臺(tái)里輸入net share c$=c:即可。
2017-12-25
在Oracle上創(chuàng)建了一個(gè)用戶,創(chuàng)建時(shí),沒有給這個(gè)用戶指定默認(rèn)表空間,這個(gè)用戶就會(huì)采用默認(rèn)的表空間——users表空間(sys和system等系統(tǒng)用戶采用的默認(rèn)表空間是system表空間),
不知不覺就記錯(cuò)了,
不知不覺就記錯(cuò)了,
2017-12-15