오라클 DB 내에 옵션 기능을 사용하는 내역을 확인 하는 쿼리
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 |
prompt Oracle Database Option Usage prompt _______________________________________________________ prompt COL "Host Name" FORMAT A30; COL "Option/Management Pack" FORMAT A60; COL "Used" FORMAT A5; with features as( select a OPTIONS, b NAME from ( select 'Active Data Guard' a, 'Active Data Guard - Real-Time Query on Physical Standby' b from dual union all select 'Advanced Compression', 'HeapCompression' from dual union all select 'Advanced Compression', 'Backup BZIP2 Compression' from dual union all select 'Advanced Compression', 'Backup DEFAULT Compression' from dual union all select 'Advanced Compression', 'Backup HIGH Compression' from dual union all select 'Advanced Compression', 'Backup LOW Compression' from dual union all select 'Advanced Compression', 'Backup MEDIUM Compression' from dual union all select 'Advanced Compression', 'Backup ZLIB, Compression' from dual union all select 'Advanced Compression', 'SecureFile Compression (user)' from dual union all select 'Advanced Compression', 'SecureFile Deduplication (user)' from dual union all select 'Advanced Compression', 'Data Guard' from dual union all select 'Advanced Compression', 'Oracle Utility Datapump (Export)' from dual union all select 'Advanced Compression', 'Oracle Utility Datapump (Import)' from dual union all select 'Advanced Security', 'ASO native encryption and checksumming' from dual union all select 'Advanced Security', 'Transparent Data Encryption' from dual union all select 'Advanced Security', 'Encrypted Tablespaces' from dual union all select 'Advanced Security', 'Backup Encryption' from dual union all select 'Advanced Security', 'SecureFile Encryption (user)' from dual union all select 'Change Management Pack', 'Change Management Pack (GC)' from dual union all select 'Data Masking Pack', 'Data Masking Pack (GC)' from dual union all select 'Data Mining', 'Data Mining' from dual union all select 'Diagnostic Pack', 'Diagnostic Pack' from dual union all select 'Diagnostic Pack', 'ADDM' from dual union all select 'Diagnostic Pack', 'AWR Baseline' from dual union all select 'Diagnostic Pack', 'AWR Baseline Template' from dual union all select 'Diagnostic Pack', 'AWR Report' from dual union all select 'Diagnostic Pack', 'Baseline Adaptive Thresholds' from dual union all select 'Diagnostic Pack', 'Baseline Static Computations' from dual union all select 'Tuning Pack', 'Tuning Pack' from dual union all select 'Tuning Pack', 'Real-Time SQL Monitoring' from dual union all select 'Tuning Pack', 'SQL Tuning Advisor' from dual union all select 'Tuning Pack', 'SQL Access Advisor' from dual union all select 'Tuning Pack', 'SQL Profile' from dual union all select 'Tuning Pack', 'Automatic SQL Tuning Advisor' from dual union all select 'Database Vault', 'Oracle Database Vault' from dual union all select 'WebLogic Server Management Pack Enterprise Edition', 'EM AS Provisioning and Patch Automation (GC)' from dual union all select 'Configuration Management Pack for Oracle Database', 'EM Config Management Pack (GC)' from dual union all select 'Provisioning and Patch Automation Pack for Database', 'EM Database Provisioning and Patch Automation (GC)' from dual union all select 'Provisioning and Patch Automation Pack', 'EM Standalone Provisioning and Patch Automation Pack (GC)' from dual union all select 'Exadata', 'Exadata' from dual union all select 'Label Security', 'Label Security' from dual union all select 'OLAP', 'OLAP - Analytic Workspaces' from dual union all select 'Partitioning', 'Partitioning (user)' from dual union all select 'Real Application Clusters', 'Real Application Clusters (RAC)' from dual union all select 'Real Application Testing', 'Database Replay: Workload Capture' from dual union all select 'Real Application Testing', 'Database Replay: Workload Replay' from dual union all select 'Real Application Testing', 'SQL Performance Analyzer' from dual union all select 'Spatial' ,'Spatial (Not used because this does not differential usage of spatial over locator, which is free)' from dual union all select 'Total Recall', 'Flashback Data Archive' from dual ) ) select t.o "Option/Management Pack", t.u "Used", d.DBID "DBID", d.name "DB Name", i.version "DB Version", i.host_name "Host Name", to_char(sysdate, 'YYYY-MM-DD HH24:MI:SS') "ReportGen Time" from (select OPTIONS o, DECODE(sum(num),0,'NO','YES') u from ( select f.OPTIONS OPTIONS, case when f_stat.name is null then 0 when ( ( f_stat.currently_used = 'TRUE' and f_stat.detected_usages > 0 and (sysdate - f_stat.last_usage_date) < 366 and f_stat.total_samples > 0 ) or (f_stat.detected_usages > 0 and (sysdate - f_stat.last_usage_date) < 366 and f_stat.total_samples > 0) ) and ( f_stat.name not in('Data Guard', 'Oracle Utility Datapump (Export)', 'Oracle Utility Datapump (Import)') or (f_stat.name in('Data Guard', 'Oracle Utility Datapump (Export)', 'Oracle Utility Datapump (Import)') and f_stat.feature_info is not null and trim(substr(to_char(feature_info), instr(to_char(feature_info), 'compression used: ',1,1) + 18, 2)) != '0') ) then 1 else 0 end num from features f, sys.dba_feature_usage_statistics f_stat where f.name = f_stat.name(+) ) group by options) t, v$instance i, v$database d order by 2 desc,1 ; prompt prompt prompt Oracle Database Usage Options Details prompt _______________________________________________________ prompt COL "Option/Management Pack" FORMAT A60; COL "Used" FORMAT A5; COL "Feature being Used" FORMAT A50; COL "Currently Used" FORMAT A14; COL "Last Usage Date" FORMAT A18; COL "Last Sample Date" FORMAT A18; COL "Host Name" FORMAT A30; with features as( select a OPTIONS, b NAME from ( select 'Active Data Guard' a, 'Active Data Guard - Real-Time Query on Physical Standby' b from dual union all select 'Advanced Compression', 'HeapCompression' from dual union all select 'Advanced Compression', 'Backup BZIP2 Compression' from dual union all select 'Advanced Compression', 'Backup DEFAULT Compression' from dual union all select 'Advanced Compression', 'Backup HIGH Compression' from dual union all select 'Advanced Compression', 'Backup LOW Compression' from dual union all select 'Advanced Compression', 'Backup MEDIUM Compression' from dual union all select 'Advanced Compression', 'Backup ZLIB, Compression' from dual union all select 'Advanced Compression', 'SecureFile Compression (user)' from dual union all select 'Advanced Compression', 'SecureFile Deduplication (user)' from dual union all select 'Advanced Compression', 'Data Guard' from dual union all select 'Advanced Compression', 'Oracle Utility Datapump (Export)' from dual union all select 'Advanced Compression', 'Oracle Utility Datapump (Import)' from dual union all select 'Advanced Security', 'ASO native encryption and checksumming' from dual union all select 'Advanced Security', 'Transparent Data Encryption' from dual union all select 'Advanced Security', 'Encrypted Tablespaces' from dual union all select 'Advanced Security', 'Backup Encryption' from dual union all select 'Advanced Security', 'SecureFile Encryption (user)' from dual union all select 'Change Management Pack (GC)', 'Change Management Pack (GC)' from dual union all select 'Data Masking Pack', 'Data Masking Pack (GC)' from dual union all select 'Data Mining', 'Data Mining' from dual union all select 'Diagnostic Pack', 'Diagnostic Pack' from dual union all select 'Diagnostic Pack', 'ADDM' from dual union all select 'Diagnostic Pack', 'AWR Baseline' from dual union all select 'Diagnostic Pack', 'AWR Baseline Template' from dual union all select 'Diagnostic Pack', 'AWR Report' from dual union all select 'Diagnostic Pack', 'Baseline Adaptive Thresholds' from dual union all select 'Diagnostic Pack', 'Baseline Static Computations' from dual union all select 'Tuning Pack', 'Tuning Pack' from dual union all select 'Tuning Pack', 'Real-Time SQL Monitoring' from dual union all select 'Tuning Pack', 'SQL Tuning Advisor' from dual union all select 'Tuning Pack', 'SQL Access Advisor' from dual union all select 'Tuning Pack', 'SQL Profile' from dual union all select 'Tuning Pack', 'Automatic SQL Tuning Advisor' from dual union all select 'Database Vault', 'Oracle Database Vault' from dual union all select 'WebLogic Server Management Pack Enterprise Edition', 'EM AS Provisioning and Patch Automation (GC)' from dual union all select 'Configuration Management Pack for Oracle Database', 'EM Config Management Pack (GC)' from dual union all select 'Provisioning and Patch Automation Pack for Database', 'EM Database Provisioning and Patch Automation (GC)' from dual union all select 'Provisioning and Patch Automation Pack', 'EM Standalone Provisioning and Patch Automation Pack (GC)' from dual union all select 'Exadata', 'Exadata' from dual union all select 'Label Security', 'Label Security' from dual union all select 'OLAP', 'OLAP - Analytic Workspaces' from dual union all select 'Partitioning', 'Partitioning (user)' from dual union all select 'Real Application Clusters', 'Real Application Clusters (RAC)' from dual union all select 'Real Application Testing', 'Database Replay: Workload Capture' from dual union all select 'Real Application Testing', 'Database Replay: Workload Replay' from dual union all select 'Real Application Testing', 'SQL Performance Analyzer' from dual union all select 'Spatial' ,'Spatial (Not used because this does not differential usage of spatial over locator, which is free)' from dual union all select 'Total Recall', 'Flashback Data Archive' from dual ) ) select t.o "Option/Management Pack", t.u "Used", t.n "Feature being Used", t.v "Version", t.cu "Currently Used", t.du "Detected Usage", t.lud "Last Usage Date", t.ts "Total Samples", t.lsd "Last Sample Date", d.DBID "DBID", d.name "DB Name", i.version "Curr DB Version", i.host_name "Host Name", to_char(sysdate, 'YYYY-MM-DD HH24:MI:SS') "ReportGen Time" from ( select f.OPTIONS o, 'YES' u, f_stat.version v, case when f_stat.name in ('Oracle Utility Datapump (Export)', 'Oracle Utility Datapump (Import)') then 'Data Pump Compression' when f_stat.name in ('Data Guard') then 'Data Guard Network Compression' else f_stat.name end n, f_stat.CURRENTLY_USED cu, (f_stat.DETECTED_USAGES) du, to_char(f_stat.LAST_USAGE_DATE, 'DD-MON-YY HH24:MI:SS') lud, (f_stat.TOTAL_SAMPLES) ts, to_char(f_stat.LAST_SAMPLE_DATE, 'DD-MON-YY HH24:MI:SS') lsd from features f, sys.dba_feature_usage_statistics f_stat where f.name = f_stat.name and ( (f_stat.currently_used = 'TRUE' and f_stat.detected_usages > 0 and (sysdate - f_stat.last_usage_date) < 366 and f_stat.total_samples > 0 ) or (f_stat.detected_usages > 0 and (sysdate - f_stat.last_usage_date) < 366 and f_stat.total_samples > 0) ) and ( f_stat.name not in('Data Guard', 'Oracle Utility Datapump (Export)', 'Oracle Utility Datapump (Import)') or (f_stat.name in('Data Guard', 'Oracle Utility Datapump (Export)', 'Oracle Utility Datapump (Import)') and f_stat.feature_info is not null and trim(substr(to_char(feature_info), instr(to_char(feature_info), 'compression used: ',1,1) + 18, 2)) != '0') ) ) t, v$instance i, v$database d order by t.o,t.n,t.v ; |
오라클 DB 내에 옵션 기능을 사용하는 내역을 확인 하는 쿼리
Link exchange is nothing else but it is just placing the other persons weblog link on your page at proper place and other person will also do similar in support of you. kkceddekbabd
Today, while I was at work, my sister stole my apple ipad and tested to see if it can survive a 30 foot drop, just so she can be a youtube sensation. My apple ipad is now destroyed and she has 83 views. I know this is entirely off topic but I had to share it with someone! fkbabgddebbc
Attractive section of content. I just stumbled upon your website and in accession capital to assert that I get in fact enjoyed account your blog posts. Any way Ill be subscribing to your feeds and even I achievement you access consistently rapidly. kdeeffdccacdkeeg
I got this website from my friend who told me concerning this web site and at the moment this time I am visiting this web page and reading very informative content here. gdbgfggkcdge
I just like the helpful info you supply on your articles. I will bookmark your blog and take a look at once more here regularly. I’m somewhat sure Ill learn a lot of new stuff right right here! Best of luck for the following! cefdebfdfakf
Fantastic website. A lot of useful information here. I’m sending it to a few pals ans also sharing in delicious. And naturally, thank you in your sweat! egdcdbdkdgdd
You made some really good points there. I checked on the internet for additional information about the issue and found most people will go along with your views on this site. edkfbdgcdebg
Only wanna tell that this is very useful , Thanks for taking your time to write this. ckeckcegfdgegckd
location within my public complexes! ekcabddegfff
Fckin awesome things here. I am very glad to see your article. Thanks a lot and i’m looking forward to contact you. Will you please drop me a mail? eagedkfdaekg
I really enjoy reading on this website, it holds great articles. Don’t put too fine a point to your wit for fear it should get blunted. by Miguel de Cervantes. dffecafgdaaegeee
Hi to every body, it’s my first pay a visit of this webpage; this web site carries awesome
and genuinely excellent information for visitors.
I chisel been devoid for a instance, but now I retrieve why I utilized to drinkable this leger. Convey you, I talent try and insure rearwards pol oft. How ofttimes you update your website?