--########## --实验模拟 --########## 1.创建一个表 create tablespace test datafile '/var/db_file/download/test01.dbf' size 10M autoextend on next 10M; create user test identified by "test" default tablespace test; grant connect,resource to test;
conn test/test create table t1(id number,name varchar2(10)); insert into t1 values (1,'tom'); insert into t1 values (2,'lucy'); insert into t1 values (3,'tomd'); insert into t1 select * from t1; SQL> commit;
--sys用户 SQL> @/home/oracle/FY_Recover_Data.SQL Package created. Package body created.
--找出test.t1表存放的目录,下一步有用 SQL> select file_name from dba_data_files f, dba_tables t where t.owner='TEST' and t.table_name='T1' and t.tablespace_name = f.tablespace_name; FILE_NAME -------------------------------------------------------------------------------- /var/db_file/download/test01.dbf