-
alter tablespace test1_space online/offline(改變表空間狀態); select status from dba_tablespaces where tablespace_name=“TEST1_TABLESPACE”(查詢表空間的狀態) alter tablespace test1_tablespace read only;(設置表空間為只讀狀態) select status from dba_tablespaces where tablespace_name="TEST1_TABLESPACE"(查詢即為read only 默認聯機狀態就是讀寫狀態_ [ 查看全文 ] 3小時前查看全部
-
create tablespace test1_tablespace datafile 'test1file.dbf' size 10m; 大小10M的永久表空間 create temporary tablespace temptest1_tablespace tempfile 'tempfile1.dbf' size 10m; 大小10M的臨時表空間 select file_name from dba_data_files where tablespace_name='TEST1_TABLESPACE';【表空間名要大寫】查看全部
-
truncate table new_userinfo 截斷表,只刪除表數據,不刪除表,并且刪除的數據是不可恢復的; delete from new_userinfo刪除表數據,數據可恢復; drop table new_userinfor 刪除表(刪除表結構,同時數據也就刪除了)查看全部
-
增加字段:alter table userinfo(表名) add remarks(列名) varchar2(500); 修改字段的數據類型: alter table userinfo(表名) modify column_name new_datatype; 刪除字段:alter table userinfo(表名) drop column_name; 修改表中的字段名: alter table userinfo(表名) rename column column_name to new_column_name; 修改表名:rename 舊表名 to 新表名;查看全部
-
字符型 char(n<2000) nchar(n<1000)漢字n為長度;varchar2(可變長度)nvarchar2(uni類型); 數值型 number(p(有效數字),s(小數點后位數))(5,2)有效數字5位,保留2位小數,float(n)二進制; 日期型date(公元前4712.1.1.到后9999.12.31)精確到秒,timestamp精確到小數秒; 大數據 blob 4g數據(二進制),clob 4g 字符串查看全部
-
刪除表空間 DROP TABLESPACE tablespace_name [INCLUDING CONTENTS] --[INCLUDING CONTENTS]刪除表空間的同時刪除數據文件查看全部
-
修改表空間中的數據文件 一、增加數據文件 alter tablespace tablespace_name add datafile 'xx.dbf' size xx; select file_name from dba_data_files where tablespace_name='表空間名稱' 二、刪除數據文件 alter tablespace tablespace_name drop datafile 'xx.dbf'查看全部
-
alter tablespace test1_space online/offline(改變表空間狀態); select status from dba_tablespaces where tablespace_name=“TEST1_TABLESPACE”(查詢表空間的狀態) alter tablespace test1_tablespace read only;(設置表空間為只讀狀態) select status from dba_tablespaces where tablespace_name="TEST1_TABLESPACE"(查詢即為read only 默認聯機狀態就是讀寫狀態_查看全部
-
設置用戶的默認或臨時表空間。alert user username default|temporary tablespace tablespace_name;查看全部
-
查看用戶的表空間,dba_tablespaces,user_tablespaces.查看全部
-
表,視圖,procedure這些放在永久表空間。 數據庫操作當中中間執行的過程,當執行過程結束后,存放的內容就會被自動釋放掉。 undo表空間,用于事務所修改數據的舊值。查看全部
-
表空間的分類查看全部
-
create tablespace test1_tablespace datafile 'test1file.dbf' size 10m;大小10M的永久表空間 create temporary tablespace temptest1_tablespace tempfile 'tempfile1.dbf' size 10m;大小10M的臨時表空間 select file_name from dba_data_files where tablespace_name='TEST1_TABLESPACE';(表空間名要大寫)查看全部
-
dba_tablespaces , dab_users: 系統管理員查看的數據字典 sys、system用戶 user_tablespaces , user_users: 普通用戶所查看的數據字典 scott用戶 system:系統表空間 example的輔助表空間sysaux:數據庫實例 temp:臨時 users:數據庫用戶創建數據庫對象查看全部
-
數據庫由多個表空間構成,表空間由數據文件構成 表空間——邏輯數據空間 數據文件——物理上的存儲 表空間的分類: 1.永久表空間:表,視圖等永久存儲 2.臨時表空間:存儲中間過程,暫時存放,自動釋放 3.UNDO表空間:保存被修改前信息,數據回滾,撤銷操作等查看全部
舉報
0/150
提交
取消