以下SQL脚本可以用于列出数据库最近1分钟的性能度量信息(performance metric):set linesize 80 pagesize 1400 SELECT/*+ORDERED USE_MERGE(m)*/TO_CHAR(FROM_TZ(CAST(m.end_time AS TIMESTAMP),TO_CHAR(systimestamp,'tzr'))AT TIME ZONE ...
Database YourDB has full backup YourBaackUpFile.bak.It can be restored using following two steps.Step 1:Retrive the Logical file name of the database from backup.RESTORE FILELISTONLYFROM DISK='D:BackUpYourBaackUpFile.bak'...
以下脚本可以用于收集数据库中用户的角色和表空间等信息(user_role_tbs.sql):SET pagesize 50 linesize 115 REM COLUMN username format a10 heading User COLUMN default_tablespace format a12 heading Default COLUMN temporary_...
owner AND(i.status='UNUSABLE' OR i.partitioned='YES' AND EXISTS(SELECT 'x' FROM dba_ind_partitions ip WHERE status='UNUSABLE' AND ip.index_owner=i.owner AND ip.index_Name=i.index_name UNION ALL SELECT 'x' FROM dba_ind_...