File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -581,6 +581,36 @@ ORA-28000: 账户锁定
581
581
582
582
-- 查询表的所有列及其属性
583
583
select t.* ,c .COMMENTS from user_tab_columns t,user_col_comments c where t .table_name = c .table_name and t .column_name = c .column_name and t .table_name = 要查询的表
584
+
585
+ -- 创建永久表空间
586
+ create tablespace userSpace -- 表空间名称
587
+ datafile ' C:\a pp\y eduanqiao\o radata\d bname\u seSpacer.dbf' -- 文件路径及文件名
588
+ size 50M -- 表空间大小
589
+ AUTOEXTEND ON NEXT 50M -- 每次自动扩展50M
590
+
591
+ -- 创建临时表空间
592
+ create temporary tablespace userTemp
593
+ tempfile ' C:\a pp\y eduanqiao\o radata\d bname\u serTemp.dbf'
594
+ size 50M
595
+
596
+ -- -查看表空间名称、id,文件存储位置,初始大小
597
+ select tablespace_name,file_id,file_name,bytes
598
+ from dba_data_files
599
+ order by file_id
600
+
601
+ -- 修改表空间大小
602
+ alter database
603
+ datafile ' C:\a pp\y eduanqiao\o radata\d bname\u seSpacer.dbf'
604
+ resize 1000M
605
+
606
+ -- 修改表空间大小:增加数据文件
607
+ alter tablespace USERSPACE
608
+ add datafile ' C:\a pp\y eduanqiao\o radata\d bname\U SERSPACE2.dbf'
609
+ size 500M
610
+
611
+ -- 删除表空间
612
+ drop table space USERSPACE
613
+
584
614
585
615
```
586
616
You can’t perform that action at this time.
0 commit comments