Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle find unusable indexes

SELECT OWNER, INDEX_NAME, NULL AS PARTITION_NAME, NULL AS SUBPARTITION_NAME, TABLESPACE_NAME
FROM DBA_INDEXES
WHERE STATUS = 'UNUSABLE'
UNION ALL	-- Index partitions:
SELECT INDEX_OWNER, INDEX_NAME, PARTITION_NAME, NULL AS SUBPARTITION_NAME, TABLESPACE_NAME
FROM DBA_IND_PARTITIONS
WHERE STATUS = 'UNUSABLE'
UNION ALL	-- Index subpartitions:
SELECT INDEX_OWNER, INDEX_NAME, PARTITION_NAME, SUBPARTITION_NAME, TABLESPACE_NAME
FROM DBA_IND_SUBPARTITIONS
WHERE STATUS = 'UNUSABLE';
Comment

PREVIOUS NEXT
Code Example
Sql :: put line oracle 
Sql :: list all triggers in sql server 
Sql :: view column data type sql 
Sql :: could not find driver (SQL: PRAGMA foreign_keys = ON;) 
Sql :: oracle columns in all_tables 
Sql :: Duplicating a MySQL table with all the data Command 
Sql :: mysql return 0 if null 
Sql :: postgresql db owner change 
Sql :: how to restart mysql in linux 
Sql :: Query the list of CITY names ending with vowels (a, e, i, o, u) from STATION. Your result cannot contain duplicates. Input Format The STATION table is described as follows: 
Sql :: mysql change database charset and collation 
Sql :: mysql ALTER TABLE ADD COLUMN BOOLEAN AFTER DEFAULT "1"; 
Sql :: postgresql change column type 
Sql :: sql_mode=only_full_group_by 
Sql :: select users 
Sql :: raise application error in oracle 
Sql :: oracle modify column type 
Sql :: primary key reset in SQL database 
Sql :: t-sql remove all non-alphanumeric characters from a string 
Sql :: oracle stop job 
Sql :: InnoDB: page_cleaner: 1000ms intended loop took 7742ms. The settings might not be optimal 
Sql :: how to add a index to live table sql 
Sql :: postgres connection string 
Sql :: python mysql select 
Sql :: String concatenation in PostgreSQL 
Sql :: ms sql how to see active job current run time 
Sql :: psql restore from tar 
Sql :: dao function to check if database contains value 
Sql :: sometimes i cant edit sql developer 
Sql :: copy sql table 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =