--2-6
select * from test.t
select * from dba_tablespaces
select * from dba_data_files
select * from dba_tables where table_name='T'
select * from dba_tables where tablespace_name='TEST3'
alter tablespace test3 offline
drop table test.t
alter tablespace test3 online
show recyclebin --sqlplus
SQL> show recyclebin
ORIGINAL NAME RECYCLEBIN NAME OBJECT TYPE DROP TIME
---------------- ------------------------------ ------------ -------------------
TTTT BIN$Xf4bg7UIR1SVaGf1/Kh2mg==$0 TABLE 2013-09-14:16:06:47
select * from "BIN$Xf4bg7UIR1SVaGf1/Kh2mg==$0" --存在特殊字符用双引号
flashback table tttt to before drop; --oracle 用6中闪回
commit
create table tttt(id int) tablespace test3
select * from dba_segments where tablespace_name='TEST3'
select * from dba_extents where segment_name='BIGT' --每个extent头的前8个blocks有特殊用途,不提供给用户使用
create table bigt tablespace test3 as select * from dba_objects; --一复制方式创建表,1w左右条数据
--段的大小小于1m时,按64k分配空间
--大于1m小于64M时,按1024m分配空间
show parameter db_block_size --sqplus 查询oracle block大小
C:\Documents and Settings\Administrator>fsutil fsinfo ntfsinfo c:
NTFS 卷序列号 : 0xe2ac36b9ac368855
版本 : 3.1
区数量 : 0x000000000e8e17ff
簇总数 : 0x0000000001d1c2ff
可用簇 : 0x00000000018e9f89
保留总数 : 0x0000000000000000
每个扇区字节数 : 512
每个簇字节数 : 4096
每个 FileRecord 段的字节数 : 1024
每个 FileRecord 段的簇数 : 0
Mft 有效数据长度 : 0x0000000008750000
Mft 起始 Lcn : 0x00000000000c0000
Mft2 起始 Lcn : 0x0000000000000010
Mft 区域起始 : 0x00000000000c8720
Mft 区域结尾 : 0x0000000000463860
这里的"每个簇字节数" 4096就是Windows上的文件系统块大小。
ntfs 4k 4*1024=4096字节,于是发现C盘是ntfs格式的
fat32 16k
insert into bigt select * from bigt
select * from dba_objects where object_name='BIGT'
select * from dba_tables where table_name='BIGT'
select * from dba_tablespaces where tablespace_name='TEST3'
ALLOCATION_TYPE --表空间分配空间的方式
UNIFORM
alter database datafile 8 resize 25m;
--em等开放的端口
--D:\oracle\product\10.2.0\db_1\install 目录上。打开:portlist.ini 文件进行查看
第二天2-6】【recyclebin】【复制方式创建表】【查询oracle block大小】【indows上的文件系统块大小】【em等开放的端口】
最新推荐文章于 2022-10-20 17:53:32 发布