日期:2014-05-16 浏览次数:20502 次
Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 Connected as SYS SQL> create tablespace mydb_tbs datafile 'J:\oradata\orcl\mydb_tbs_001.dbf' size 50m; Tablespace created SQL>
J:\oradata\orcl 的目录 2011-03-08 22:33 <DIR> . 2011-03-08 22:33 <DIR> .. 2011-03-08 22:24 7,061,504 CONTROL01.CTL 2011-03-08 22:24 7,061,504 CONTROL02.CTL 2011-03-08 22:24 7,061,504 CONTROL03.CTL 2011-03-08 22:24 104,865,792 EXAMPLE01.DBF 2011-03-08 22:33 52,436,992 MYDB_TBS_001.DBF 2011-03-08 22:24 52,429,312 REDO01.LOG 2011-03-08 22:24 52,429,312 REDO02.LOG 2011-03-08 22:24 52,429,312 REDO03.LOG 2011-03-08 22:24 251,666,432 SYSAUX01.DBF 2011-03-08 22:24 503,324,672 SYSTEM01.DBF 2011-03-08 22:02 20,979,712 TEMP01.DBF 2011-03-08 22:24 36,708,352 UNDOTBS01.DBF 2011-03-08 22:24 5,251,072 USERS01.DBF 13 个文件 1,153,705,472 字节 2 个目录 8,413,822,976 可用字节
SQL> select FILE_NAME from dba_data_files; FILE_NAME -------------------------------------------- J:\ORADATA\ORCL\USERS01.DBF J:\ORADATA\ORCL\SYSAUX01.DBF J:\ORADATA\ORCL\UNDOTBS01.DBF J:\ORADATA\ORCL\SYSTEM01.DBF J:\ORADATA\ORCL\EXAMPLE01.DBF J:\ORADATA\ORCL\MYDB_TBS_001.DBF
SQL>drop tablespace mydb_tbs including contents and datafiles cascade constraints; Tablespace dropped
SQL> select file_name from dba_data_files; FILE_NAME -------------------------------------------- J:\ORADATA\ORCL\USERS01.DBF J:\ORADATA\ORCL\SYSAUX01.DBF J:\ORADATA\ORCL\UNDOTBS01.DBF J:\ORADATA\ORCL\SYSTEM01.DBF J:\ORADATA\ORCL\EXAMPLE01.DBF SQL>
C:\>sqlplus /nolog SQL*Plus: Release 10.2.0.1.0 - Production on 星期二 3月 8 22:24:05 2011 Copyright (c) 1982, 2005, Oracle. All rights reserved. SQL> conn /as sysdba 已连接。 SQL> shutdown immediate 数据库已经关闭。 已经卸载数据库。 ORACLE 例程已经关闭。 SQL> startup ORACLE 例程已经启动。 Total System Global Area 293601280 bytes Fixed Size 1248600 bytes Variable Size 100663976 bytes Database Buffers 184549376 bytes Redo Buffers 7139328 bytes 数据库装载完毕。 数据库已经打开。 SQL>