Chinaunix首页 | 论坛 | 博客
  • 博客访问: 671447
  • 博文数量: 845
  • 博客积分: 5000
  • 博客等级: 大校
  • 技术积分: 5015
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-15 16:22
文章分类

全部博文(845)

文章存档

2011年(1)

2008年(844)

我的朋友

分类:

2008-10-15 16:27:11

YXYUP@dbatest>selecttablespace_name,sum(bytes)/1024/1024 from dba_data_files where tablespace_name='TBS' group by tablespace_name;
  TABLESPACE_NAME SUM(BYTES)/1024/1024
  -------------------- --------------------
  TBS 17
  Elapsed: 00:00:00.02
  YXYUP@dbatest>selectsegment_name,bytes/1024/1024,tablespace_name from user_segments;
  SEGMENT_NAME BYTES/1024/1024 TABLESPACE_NAME
  ------------------------------ --------------- --------------------
  TEST_BAK 6 TBS
  TEST01 6 TBS
  Elapsed: 00:00:00.07
  YXYUP@dbatest>createtable test02 tablespace tbs as select * from dba_objects;
  create table test02 tablespace tbs as select * from dba_objects
  *
  ERROR at line 1:
  ORA-01652: unable to extend temp segment by 128 in tablespace TBS
  Elapsed: 00:00:00.73
  YXYUP@dbatest>droptable test01;
  Table dropped.
  Elapsed: 00:00:00.04
  YXYUP@dbatest>showrecyclebin;
  ORIGINAL NAME RECYCLEBIN NAME OBJECT TYPE DROP TIME
  ---------------- ------------------------------ ------------ -------------------
  TEST01 BIN$VPH4ibnKVd/gQAB/AQA0Nw==$0 TABLE 2008-08-21:14:56:55
  YXYUP@dbatest>
  YXYUP@dbatest>select* from tab;
  TNAME TABTYPE CLUSTERID
  ------------------------------ ------- ----------
  BIN$VPH4ibnKVd/gQAB/AQA0Nw==$0 TABLE
  TEST_BAK TABLE
  Elapsed: 00:00:00.01
  YXYUP@dbatest>createtable test02 tablespace tbs as select * from dba_objects;
  Table created.
  Elapsed: 00:00:00.84
  YXYUP@dbatest>showrecyclebin;
  YXYUP@dbatest>select* from tab;
  TNAME TABTYPE CLUSTERID
  ------------------------------ ------- ----------
  TEST_BAK TABLE
  TEST02 TABLE
  Elapsed: 00:00:00.01
--------------------next---------------------
YXYUP@dbatest>showrecyclebin;
  YXYUP@dbatest>select* from tab;
  TNAME TABTYPE CLUSTERID
  ------------------------------ ------- ----------
  TEST_BAK TABLE
  TEST02 TABLE
  Elapsed: 00:00:00.01
  YXYUP@dbatest>droptable test02;
  Table dropped.
  Elapsed: 00:00:00.04
  YXYUP@dbatest>droptable test_bak;
  Table dropped.
  Elapsed: 00:00:00.02
  YXYUP@dbatest>select* from tab;
  TNAME TABTYPE CLUSTERID
  ------------------------------ ------- ----------
  BIN$VPH4ibnLVd/gQAB/AQA0Nw==$0 TABLE
  BIN$VPH4ibnMVd/gQAB/AQA0Nw==$0 TABLE
  Elapsed: 00:00:00.01
  YXYUP@dbatest>showrecyclebin;
  ORIGINAL NAME RECYCLEBIN NAME OBJECT TYPE DROP TIME
  ---------------- ------------------------------ ------------ -------------------
  TEST02 BIN$VPH4ibnLVd/gQAB/AQA0Nw==$0 TABLE 2008-08-21:15:14:43
  TEST_BAK BIN$VPH4ibnMVd/gQAB/AQA0Nw==$0 TABLE 2008-08-21:15:14:51
  YXYUP@dbatest>createtable test01 tablespace tbs as select * from dba_objects;
  Table created.
  Elapsed: 00:00:00.79
  YXYUP@dbatest>select* from tab;
  TNAME TABTYPE CLUSTERID
  ------------------------------ ------- ----------
  BIN$VPH4ibnMVd/gQAB/AQA0Nw==$0 TABLE
  TEST01 TABLE
  Elapsed: 00:00:00.01
  YXYUP@dbatest>flashbacktable TEST02 to before drop ;
  flashback table TEST02 to before drop
  *
  ERROR at line 1:
  ORA-38305: object not in RECYCLE BIN
  Elapsed: 00:00:00.00
  YXYUP@dbatest>flashbacktable TEST_BAK to before drop ;
  Flashback complete.
  Elapsed: 00:00:00.02
  YXYUP@dbatest>select* from tab;
  TNAME TABTYPE CLUSTERID
  ------------------------------ ------- ----------
  TEST_BAK TABLE
  TEST01 TABLE
  Elapsed: 00:00:00.01
--------------------next---------------------

阅读(362) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~