[BEGIN] 2016/11/25 下午 05:19:51 SET lines 200 COL owner_name FORMAT a10; COL job_name FORMAT a20 COL state FORMAT a12 COL operation LIKE state COL job_mode LIKE state COL owner.object for a50 SQL> -- locate Data Pump jobs: SQL> SELECT owner_name, job_name, rtrim(operation) "OPERATION", rtrim(job_mode) "JOB_MODE", state, attached_sessions FROM dba_datapump_jobs WHERE job_name NOT LIKE ‘BIN$%‘ 5 ORDER BY 1,2; OWNER_NAME JOB_NAME OPERATION JOB_MODE STATE ATTACHED_SESSIONS ---------- -------------------- ------------ ------------ ------------ ----------------- PHALWDA1 SYS_EXPORT_TABLE_01 EXPORT TABLE NOT RUNNING 0 PHALWDA1 SYS_EXPORT_TABLE_02 EXPORT TABLE NOT RUNNING 0 PHALWDA1 SYS_IMPORT_FULL_01 IMPORT FULL NOT RUNNING 0 SELECT o.status, o.object_id, o.object_type, o.owner||‘.‘||object_name "OWNER.OBJECT" FROM dba_objects o, dba_datapump_jobs j WHERE o.owner=j.owner_name AND o.object_name=j.job_name 5 AND j.job_name NOT LIKE ‘BIN$%‘ ORDER BY 4,2; STATUS OBJECT_ID OBJECT_TYPE OWNER.OBJECT --------------------- ---------- --------------------------------------------------------- -------------------------------------------------- VALID 76494 TABLE PHALWDA1.SYS_EXPORT_TABLE_01 VALID 76497 TABLE PHALWDA1.SYS_EXPORT_TABLE_02 VALID 81868 TABLE PHALWDA1.SYS_IMPORT_FULL_01 SQL> drop table PHALWDA1.SYS_EXPORT_TABLE_01; Table dropped. SQL> drop table PHALWDA1.SYS_EXPORT_TABLE_02; Table dropped. SQL> drop table PHALWDA1.SYS_IMPORT_FULL_01; Table dropped. SQL> purge dba_recyclebin; DBA Recyclebin purged. SET lines 200 COL owner_name FORMAT a10; COL job_name FORMAT a20 COL state FORMAT a12 COL operation LIKE state COL job_mode LIKE state COL owner.object for a50 SQL> -- locate Data Pump jobs: SQL> SELECT owner_name, job_name, rtrim(operation) "OPERATION", rtrim(job_mode) "JOB_MODE", state, attached_sessions FROM dba_datapump_jobs WHERE job_name NOT LIKE ‘BIN$%‘ 5 ORDER BY 1,2; no rows selected spool obj.out set linesize 200 trimspool on set pagesize 2000 col owner form a30 col created form a25 col last_ddl_time form a25 col object_name form a30 col object_type form a25 SQL> select OWNER,OBJECT_NAME,OBJECT_TYPE, status, to_char(CREATED,‘dd-mon-yyyy hh24:mi:ss‘) created ,to_char(LAST_DDL_TIME , ‘dd-mon-yyyy hh24:mi:ss‘) last_ddl_time from dba_objects where object_name like ‘ET$%‘ / select owner, TABLE_NAME, DEFAULT_DIRECTORY_NAME, ACCESS_TYPE OWNER OBJECT_NAME OBJECT_TYPE STATUS CREATED LAST_DDL_TIME ------------------------------ ------------------------------ ------------------------- --------------------- ------------------------- ------------------------- PHALWDA1 ET$081400230001 TABLE VALID 01-oct-2016 08:35:49 01-oct-2016 08:35:49 from dba_external_tables order by 1,2 / OWNER TABLE_NAME ------------------------------ ------------------------------------------------------------------------------------------ DEFAULT_DIRECTORY_NAME ACCESS_TYPE ------------------------------------------------------------------------------------------ --------------------- PHALWDA1 ET$081400230001 BACKUP CLOB SQL> SQL> spool off SQL> quit Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options oracle@phalrdb1: /home/oracle> ls cc chk_cmd chk_lst dba_cmd obj.out oracle@phalrdb1: /home/oracle> more obj.out SQL> set linesize 200 trimspool on SQL> set pagesize 2000 SQL> col owner form a30 SQL> col created form a25 SQL> col last_ddl_time form a25 SQL> col object_name form a30 SQL> col object_type form a25 SQL> SQL> select OWNER,OBJECT_NAME,OBJECT_TYPE, status, 2 to_char(CREATED,‘dd-mon-yyyy hh24:mi:ss‘) created 3 ,to_char(LAST_DDL_TIME , ‘dd-mon-yyyy hh24:mi:ss‘) last_ddl_time 4 from dba_objects 5 where object_name like ‘ET$%‘ 6 / OWNER OBJECT_NAME OBJECT_TYPE STATUS CREATED LAST_DDL_TIME ------------------------------ ------------------------------ ------------------------- --------------------- ------------------------- -------------------- ----- PHALWDA1 ET$081400230001 TABLE VALID 01-oct-2016 08:35:49 01-oct-2016 08:35:49 SQL> SQL> select owner, TABLE_NAME, DEFAULT_DIRECTORY_NAME, ACCESS_TYPE 2 from dba_external_tables 3 order by 1,2 4 / OWNER TABLE_NAME ------------------------------ ------------------------------------------------------------------------------------------ DEFAULT_DIRECTORY_NAME ACCESS_TYPE ------------------------------------------------------------------------------------------ --------------------- PHALWDA1 ET$081400230001 BACKUP CLOB SQL> SQL> spool off oracle@phalrdb1: /home/oracle> sqlplus / as sysdba SQL*Plus: Release 11.2.0.4.0 Production on Fri Nov 25 17:33:55 2016 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> drop table PHALWDA1.ET$081400230001 purge; Table dropped. [END] 2016/11/25 下午 05:35:40
|