<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-15147694</id><updated>2024-08-29T07:52:37.181-04:00</updated><category term="Unix/Linux"/><category term="RMAN"/><category term="Database"/><category term="Performance"/><category term="11g"/><category term="Datapump/Export/Import"/><category term="Trace"/><category term="HA"/><category term="Security"/><category term="Statistics"/><category term="Archivelog"/><category term="Network"/><category term="ASM"/><category term="CRS"/><category term="FlashBack"/><category term="Redo"/><category term="adrci"/><category term="SPACE"/><category term="scheduler"/><category term="AWR"/><category term="Opatch"/><category term="DataGuard"/><category term="Python"/><category term="OEM"/><category term="19c"/><category term="Partition"/><category term="APPS"/><category term="Audit"/><category term="Jobs"/><category term="Locks"/><category term="SQL"/><category term="Utilities"/><category term="Windows"/><category term="Entertainment"/><category term="OCP"/><category term="XML"/><title type='text'>Rupam Verma&#39;   Blog</title><subtitle type='html'>Oracle Tip&amp;#39;s &amp;amp; Trick&amp;#39;s</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://rupamverma.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Verma</name><uri>http://www.blogger.com/profile/08432083728494824445</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>265</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-15147694.post-4290748799703493903</id><published>2021-03-26T12:27:00.004-04:00</published><updated>2021-03-26T12:27:46.875-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Security"/><title type='text'>get list of user accounts -   either unlocked or password is expired.</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;SELECT&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&#39;ALTER &#39;||&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;SUBSTR(DBMS_LOB.SUBSTR(DBMS_METADATA.GET_DDL(&#39;USER&#39;,USERNAME),&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;INSTR(DBMS_LOB.SUBSTR(DBMS_METADATA.GET_DDL(&#39;USER&#39;,USERNAME),500),&#39;DEFAULT&#39;)-1) ,&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;INSTR(DBMS_LOB.SUBSTR(DBMS_METADATA.GET_DDL(&#39;USER&#39;,USERNAME),500),&#39;USER&#39;)) USER_PASS , USERNAME, PROFILE&amp;nbsp;&lt;/p&gt;&lt;p&gt;FROM&amp;nbsp; DBA_USERS&amp;nbsp;&lt;/p&gt;&lt;p&gt;WHERE USERNAME IN&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;(SELECT USERNAME&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; FROM DBA_USERS&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; WHERE (USERNAME&amp;nbsp; in&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (select username&amp;nbsp; from dba_users where (account_status like &#39;%EXPIRED%&#39; or account_status like &#39;%LOCK%&#39;))));&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/4290748799703493903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/4290748799703493903'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/2021/03/get-list-of-user-accounts-either.html' title='get list of user accounts -   either unlocked or password is expired.'/><author><name>Rupam</name><uri>http://www.blogger.com/profile/10704864736682980029</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15147694.post-7661190089120312711</id><published>2021-02-24T15:28:00.006-05:00</published><updated>2021-02-24T15:29:31.147-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python"/><title type='text'>search a pattern in file using Python</title><content type='html'>&lt;p&gt;&amp;nbsp;import re&lt;/p&gt;&lt;p&gt;pattern = re.compile(&quot;ORA-&quot;)&lt;/p&gt;&lt;p&gt;for line in open(&quot;x2.txt&quot;):&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; for match in re.finditer(pattern, line):&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print(line)&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/7661190089120312711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/7661190089120312711'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/2021/02/search-pattern-in-file-using-python.html' title='search a pattern in file using Python'/><author><name>Gunjan</name><uri>http://www.blogger.com/profile/05080554073749343687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15147694.post-7456327734527162041</id><published>2021-02-24T15:26:00.003-05:00</published><updated>2021-02-24T15:26:31.418-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unix/Linux"/><title type='text'>count number of files generated per day</title><content type='html'>&lt;p&gt;&amp;nbsp;# count number of files generated per day&lt;/p&gt;&lt;p&gt;find . -type f -printf &#39;%TY-%Tm-%Td\n&#39; | sort | uniq -c&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;# count number of files generated per hour in last 600 minutes&lt;/p&gt;&lt;p&gt;find . -cmin -600 &amp;nbsp;-type f -printf &#39;%TY-%Tm-%Td-%TH\n&#39; | sort | uniq -c&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;find . -maxdepth 1 -type f -printf &#39;%TY-%Tm-%Td\n&#39; | awk &#39;{array[$0]+=1}END{ for(val in array) print val&quot; &quot;array[val] &amp;nbsp; }&#39;|sort&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/7456327734527162041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/7456327734527162041'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/2021/02/count-number-of-files-generated-per-day.html' title='count number of files generated per day'/><author><name>Gunjan</name><uri>http://www.blogger.com/profile/05080554073749343687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15147694.post-6503800853716482172</id><published>2020-09-14T16:27:00.003-04:00</published><updated>2021-04-26T11:58:11.627-04:00</updated><title type='text'>what is causing account lock ?</title><content type='html'>&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #fcff01;&quot;&gt;check profile&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;col PROFILE format a10&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;col LIMIT format a15&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;select * from dba_profiles where resource_type=&#39;PASSWORD&#39; order by 1,2;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #fcff01;&quot;&gt;option 1&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;turn on trace : alter system set events &#39;1017 trace name errorstack level 10&#39;;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;check listener , alert.log&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;turn off trace : alter system set events &#39;1017 trace name errorstack off&#39;;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #fcff01;&quot;&gt;option 2&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;col dbusername form a15&lt;/p&gt;&lt;p&gt;col userhost form a15&lt;/p&gt;&lt;p&gt;col event_timestamp form a30&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;select dbusername,userhost,event_timestamp&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;from unified_audit_trail&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;where return_code=1017 and&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;event_timestamp&amp;gt;sysdate-1/12 order by 3&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #fcff01;&quot;&gt;option 3&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;AUDIT connect whenever &amp;nbsp;NOT SUCCESSFUL;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;AUDIT SESSION WHENEVER NOT SUCCESSFUL;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;-- oracle doc : 352389.1&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;AUDIT SESSION WHENEVER NOT SUCCESSFUL;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;select userid, userhost, terminal, clientid, TO_CHAR(NTIMESTAMP# , &#39;DD-MON-YYYY HH24:MI:SSxFF&#39;), SESSIONTIMEZONE &amp;nbsp;from aud$ where returncode=1017&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;and NTIMESTAMP# &amp;gt; sysdate - 1/12 ;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #fcff01;&quot;&gt;option 4&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;-- oracle doc : 221944.1&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;SQL&amp;gt;AUDIT CREATE SESSION BY ACCESS WHENEVER NOT SUCCESSFUL;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;SQL&amp;gt;AUDIT CONNECT BY ACCESS WHENEVER NOT SUCCESSFUL;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; col USERID format a10&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; col USERHOST format a50&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; col TERMINAL format a10&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; col userhost &amp;nbsp;form a20&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;select returncode, action#, userid, userhost, terminal, TO_CHAR(NTIMESTAMP# , &#39;DD-MON-YYYY HH24:MI:SSxFF&#39;) from aud$ where returncode=&#39;1017&#39; and action#=100&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; and NTIMESTAMP# &amp;gt; sysdate - 1/12 ;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;SELECT TO_CHAR(NTIMESTAMP# , &#39;DD-MON-YYYY HH24:MI:SSxFF&#39;), SESSIONTIMEZONE &amp;nbsp; from aud$ where returncode=1017&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;and NTIMESTAMP# &amp;gt; sysdate - 1/12 ;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/6503800853716482172'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/6503800853716482172'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/2020/09/what-is-causing-account-lock.html' title='what is causing account lock ?'/><author><name>Gunjan</name><uri>http://www.blogger.com/profile/05080554073749343687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15147694.post-1631617130632451521</id><published>2020-08-26T13:33:00.004-04:00</published><updated>2020-08-26T13:33:48.584-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="19c"/><title type='text'></title><content type='html'>&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;u&gt;Oracle 19c - CDB / PDB - useful sqls&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;sqlplus / as sysdba&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial; font-size: x-small;&quot;&gt;set lines 200&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial; font-size: x-small;&quot;&gt;COL name FORMAT A30&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial; font-size: x-small;&quot;&gt;col CON_ID form 999999&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial; font-size: x-small;&quot;&gt;col OPEN_TIME FORMAT a40&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial; font-size: x-small;&quot;&gt;col pdb form a30&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial; font-size: small;&quot;&gt;COLUMN pdb_name FORMAT A20&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial; font-size: x-small;&quot;&gt;SELECT con_id, name, open_mode, restricted, open_time &amp;nbsp;FROM gv$containers;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial; font-size: x-small;&quot;&gt;SELECT name, cdb, open_mode &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FROM &amp;nbsp; v$database;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial; font-size: x-small;&quot;&gt;SELECT name, pdb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FROM &amp;nbsp; v$services &amp;nbsp;ORDER BY name;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial; font-size: x-small;&quot;&gt;select PDB_ID,PDB_NAME,CON_ID,STATUS,LOGGING,FORCE_LOGGING from dba_pdbs ORDER BY pdb_name;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial; font-size: x-small;&quot;&gt;SELECT con_id, name, open_mode, restricted &amp;nbsp; &amp;nbsp; &amp;nbsp;FROM &amp;nbsp; v$pdbs ORDER BY name;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial; font-size: x-small;&quot;&gt;select inst_id, con_id, name, recovery_status, open_mode from gv$pdbs&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial; font-size: x-small;&quot;&gt;# the end&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/1631617130632451521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/1631617130632451521'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/2020/08/blog-post_11.html' title=''/><author><name>Gunjan</name><uri>http://www.blogger.com/profile/05080554073749343687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15147694.post-7316622159961738592</id><published>2020-08-26T13:29:00.004-04:00</published><updated>2020-08-26T13:29:26.870-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="19c"/><title type='text'></title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;b&gt;&lt;u&gt;oracle 19c &amp;nbsp;- CDB/ PDB &amp;nbsp;_ Save the state of PDB&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;-- save the state, so that pdb will open when cdb is restarted&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;sqlplus / as sysdba&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;alter pluggable database all open;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;ALTER PLUGGABLE DATABASE demo SAVE STATE instances=all;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;-- check&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;COLUMN con_name FORMAT A20&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;COLUMN instance_name FORMAT A20&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;SELECT con_name, instance_name, state FROM dba_pdb_saved_states;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;# The end&lt;/span&gt;&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/7316622159961738592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/7316622159961738592'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/2020/08/blog-post_26.html' title=''/><author><name>Gunjan</name><uri>http://www.blogger.com/profile/05080554073749343687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15147694.post-2064020811123600609</id><published>2020-08-26T13:25:00.003-04:00</published><updated>2020-08-26T13:25:46.686-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="19c"/><title type='text'></title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;b&gt;&lt;u&gt;limit PDB&#39;s to 3 in CDB in Oracle 19c&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;sqlplus / as sysdba&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;show parameter max_pdbs&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;ALTER SYSTEM SET max_pdbs=3 scope=both sid=&#39;*&#39;;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;show parameter max_pdbs&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: arial;&quot;&gt;# the end&lt;/span&gt;&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/2064020811123600609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/2064020811123600609'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/2020/08/blog-post.html' title=''/><author><name>Gunjan</name><uri>http://www.blogger.com/profile/05080554073749343687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15147694.post-1021377505810034648</id><published>2018-08-21T10:25:00.000-04:00</published><updated>2018-08-21T10:34:32.271-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="scheduler"/><title type='text'>troubleshoot - scheduler job not running</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;troubleshoot - scheduler job not running&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;sqlplus &amp;nbsp;Scott/tiger&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;-- list scheduler job&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
set lines 120&lt;br /&gt;
col SCHEDULE_NAME format a25&lt;br /&gt;
col SCHEDULE_TYPE form &amp;nbsp; a10&lt;br /&gt;
prompt from dba_scheduler_jobs&lt;br /&gt;
prompt =============&lt;br /&gt;
select job_name, schedule_name, schedule_type, enabled from dba_scheduler_jobs where owner=upper(&#39;&amp;amp;schema&#39;) ;&lt;br /&gt;
&lt;br /&gt;
-NOTE in the enabled column - TRUE means working, FALSE means not working&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;-- identify scheduler running jobs&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp;select&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;rj.job_name,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;s.username,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;s.sid,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;s.serial#,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;p.spid,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;s.lockwait,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;s.logon_time&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;from&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;user_scheduler_running_jobs rj,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;v$session s,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;v$process p&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;where&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;rj.session_id = s.sid&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;and&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;s.paddr = p.addr&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;order by&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;rj.job_name&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;SELECT max(log_date) FROM user_scheduler_job_run_details where job_name=&#39;SCH_JOB_NAME_HERE&#39;&#39;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;-- to kill by sid&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;select &#39;alter system kill session &#39;||chr(39)||s.sid||&#39;,&#39;||s.serial#||chr(39)||&#39;;&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;from user_scheduler_running_jobs rj,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;v$session s,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;v$process p&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;where rj.session_id = s.sid&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; and s.paddr = p.addr&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;order by rj.job_name;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;-- to kill by by pid&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;select &#39;kill -9 &#39;||p.spid&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;from&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;user_scheduler_running_jobs rj,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;v$session s,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;v$process p&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;where&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;rj.session_id = s.sid&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;and&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;s.paddr = p.addr&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;order by&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;rj.job_name&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;useful commands&lt;/span&gt;&lt;br /&gt;
exec dbms_scheduler.disable(&#39;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;SCH_JOB_NAME_HERE&lt;/span&gt;&#39;);&lt;br /&gt;
exec dbms_scheduler.enable(&#39;&quot;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;SCH_JOB_NAME_HERE&lt;/span&gt;&quot;&#39;);&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
exec dbms_scheduler.stop_job(&#39;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;SCH_JOB_NAME_HERE&lt;/span&gt;&#39;);&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/1021377505810034648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/1021377505810034648'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/2018/08/troubleshoot-scheduler-job-not-running.html' title='troubleshoot - scheduler job not running'/><author><name>Gunjan</name><uri>http://www.blogger.com/profile/05080554073749343687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15147694.post-4594839549973987482</id><published>2018-08-20T10:17:00.002-04:00</published><updated>2018-08-20T10:17:48.125-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python"/><title type='text'>date time in python</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
#!/usr/bin/env python&lt;br /&gt;
&lt;br /&gt;
import io&lt;br /&gt;
import datetime&lt;br /&gt;
import traceback&lt;br /&gt;
&lt;br /&gt;
AlertLogFile=r&#39;test.dat&#39;&lt;br /&gt;
EventDate=datetime.datetime(1, 1, 1, 0, 0)&lt;br /&gt;
OutputList=[]&lt;br /&gt;
&lt;br /&gt;
try:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; with io.open(AlertLogFile,mode=&#39;r&#39;) as f:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for line in f:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EventDate=datetime.datetime.strptime(line.rstrip(&#39;\n&#39;), &#39;%Y-%m-%d %H:%M:%S&#39;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # EventDate=datetime.datetime.strptime(line.rstrip(&#39;\n&#39;), &#39;%a %b %d %H:%M:%S %Y&#39;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # OutputList.append([EventDate,line.rstrip(&#39;\n&#39;)])&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OutputList.append([EventDate,line.rstrip(&#39;\n&#39;)])&lt;br /&gt;
except:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; print(traceback.format_exc())&lt;br /&gt;
&lt;br /&gt;
for o in OutputList:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; # use o[0].strftime(&#39;%a %b %d %H:%M:%S %Y&#39;) to get original Oracle style Format&lt;br /&gt;
&amp;nbsp; &amp;nbsp; print(&#39;[%s] %s&#39; % (o[0],o[1]))&lt;br /&gt;
&amp;nbsp; &amp;nbsp; # print(&#39;[%s]&#39; % (o[0]))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Data&lt;br /&gt;
oracle@lnx21426&amp;gt; cat test.dat&lt;br /&gt;
2016-11-03 12:01:13&lt;br /&gt;
2017-04-05 12:03:28&lt;br /&gt;
oracle@lnx21426&amp;gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/4594839549973987482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/4594839549973987482'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/2018/08/date-time-in-python.html' title='date time in python'/><author><name>Gunjan</name><uri>http://www.blogger.com/profile/05080554073749343687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15147694.post-3913111129719293582</id><published>2018-08-19T17:58:00.004-04:00</published><updated>2018-08-19T17:58:40.266-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="adrci"/><title type='text'>Use ADRCI or Support Workbench to package the incident.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
step 1&lt;br /&gt;
adrci&amp;gt; show alert -p &quot;message_text like &#39;%incident%&#39;&quot;&lt;br /&gt;
&lt;br /&gt;
ADR Home = /oramisc01/oracle/diag/rdbms/demoprim/demo1:&lt;br /&gt;
*************************************************************************&lt;br /&gt;
Output the results to file: /ora01/oracle/temp/alert_33812_140499732489984_demo_1.ado&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
step 2&lt;br /&gt;
adrci&amp;gt; show problem&lt;br /&gt;
&lt;br /&gt;
ADR Home = /oramisc01/oracle/diag/rdbms/demoprim/demo1:&lt;br /&gt;
*************************************************************************&lt;br /&gt;
PROBLEM_ID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PROBLEM_KEY &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LAST_INCIDENT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LASTINC_TIME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
-------------------- ----------------------------------------------------------- -------------------- ----------------------------------------&lt;br /&gt;
1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ORA 600 [ktbdchk1: bad dscn] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;80396 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2018-08-19 16:39:16.523000 -04:00&lt;br /&gt;
1 rows fetched&lt;br /&gt;
&lt;br /&gt;
step 3&lt;br /&gt;
adrci&amp;gt; show incident&lt;br /&gt;
&lt;br /&gt;
ADR Home = /oramisc01/oracle/diag/rdbms/demoprim/demo1:&lt;br /&gt;
*************************************************************************&lt;br /&gt;
INCIDENT_ID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PROBLEM_KEY &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CREATE_TIME&lt;br /&gt;
-------------------- ----------------------------------------------------------- ----------------------------------------&lt;br /&gt;
80393 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ORA 600 [ktbdchk1: bad dscn] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2018-08-19 16:38:39.543000 -04:00&lt;br /&gt;
80394 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ORA 600 [ktbdchk1: bad dscn] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2018-08-19 16:39:14.585000 -04:00&lt;br /&gt;
80395 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ORA 600 [ktbdchk1: bad dscn] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2018-08-19 16:39:15.629000 -04:00&lt;br /&gt;
80396 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ORA 600 [ktbdchk1: bad dscn] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2018-08-19 16:39:16.523000 -04:00&lt;br /&gt;
4 rows fetched&lt;br /&gt;
&lt;br /&gt;
step 4&lt;br /&gt;
show incident -mode detail -p &quot;incident_id=80393&quot;&lt;br /&gt;
&lt;br /&gt;
step 5&lt;br /&gt;
First, create the package using the problem ID displayed by the SHOW PROBLEM command.&lt;br /&gt;
adrci &amp;gt; ips create package problem 1 correlate all&lt;br /&gt;
&lt;br /&gt;
step 6&lt;br /&gt;
Next, create a zip to send to Oracle Support by specifying the package number displayed by the above command.&lt;br /&gt;
adrci &amp;gt; ips generate package 1 in &quot;/tmp&quot;&lt;br /&gt;
&lt;br /&gt;
step 6&lt;br /&gt;
send the zip file to oracle&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/3913111129719293582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/3913111129719293582'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/2018/08/use-adrci-or-support-workbench-to.html' title='Use ADRCI or Support Workbench to package the incident.'/><author><name>Gunjan</name><uri>http://www.blogger.com/profile/05080554073749343687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15147694.post-7864478260273067796</id><published>2018-08-18T16:18:00.002-04:00</published><updated>2018-08-18T16:18:31.817-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Performance"/><title type='text'>Step by Step: How to troubleshoot a slow running query in Oracle</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&amp;nbsp;-- ----------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;# Step by Step: How to troubleshoot a slow running query in Oracle&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;- &amp;nbsp;what are sessions doing&lt;br /&gt;
&lt;br /&gt;
set lines 999&lt;br /&gt;
col osuser form a10&lt;br /&gt;
col username form a10&lt;br /&gt;
col spid form a10&lt;br /&gt;
select a.sid, a.serial#,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;spid ,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sql_id,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a.inst_id,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a.osuser,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a.username, status,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;substr(to_char(logon_time,&#39;dd-mon-yy hh24:mi&#39;),1,18) logon_time,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;substr(to_char(sql_exec_start,&#39;dd-mon-yy hh24:mi&#39;),1,18) sql_exec_start,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;substr(a.module,1,18) module ,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;substr(machine,1,17) machine,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;event&lt;br /&gt;
-- &amp;nbsp; &amp;nbsp; &amp;nbsp; substr(a.program,1,16) program&lt;br /&gt;
from &amp;nbsp; gv$session a, gv$process b&lt;br /&gt;
where &amp;nbsp;a.username not in (&#39; &#39;,&#39;PATROL&#39;,&#39;SYS&#39;,&#39;DBSNMP&#39;)&lt;br /&gt;
and &amp;nbsp; &amp;nbsp;b.addr=a.paddr&lt;br /&gt;
and &amp;nbsp; &amp;nbsp;b.inst_id=a.inst_id&lt;br /&gt;
and &amp;nbsp; &amp;nbsp;a.status=&#39;ACTIVE&#39;&lt;br /&gt;
-- and &amp;nbsp; &amp;nbsp;event=&#39;inactive transaction branch&#39;&lt;br /&gt;
order by status desc, logon_time&lt;br /&gt;
/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- &amp;nbsp;blockers in standalone&lt;br /&gt;
&lt;br /&gt;
select s1.username || &#39;@&#39; || s1.machine || &#39; ( SID=&#39; || s1.sid || &#39;) is blocking&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|| s2.username || &#39;@&#39; || s2.machine || &#39;( SID=&#39; || s2.sid || &#39;)&#39; from&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;v$lock l1, v$session s1, v$lock l2, v$session s2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;where s1.sid=l1.sid and s2.sid=l2.sid&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;and l1.block=1 and l2.request &amp;gt; 0&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;and l1.id1=l2.id1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;and l2.id2=l2.id2;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- &amp;nbsp;blockers in rac&lt;br /&gt;
set pages 1000&lt;br /&gt;
select s1.username || &#39;@&#39; || s1.machine || &#39; ( SID=&#39; || s1.sid || &#39; Serial#= &#39;||s1.serial# ||&#39; Inst=&#39; ||s1.INST_ID ||&#39; ) &amp;nbsp;is blocking &#39;&lt;br /&gt;
&amp;nbsp; || s2.username || &#39;@&#39; || s2.machine || &#39; ( SID=&#39; || s2.sid || &#39; ) &#39; AS blocking_status&lt;br /&gt;
&amp;nbsp; &amp;nbsp;from gv$lock l1, gv$session s1, gv$lock l2, gv$session s2&lt;br /&gt;
&amp;nbsp; where s1.sid=l1.sid and s2.sid=l2.sid&lt;br /&gt;
&amp;nbsp; and l1.BLOCK=1 and l2.request &amp;gt; 0&lt;br /&gt;
&amp;nbsp; and l1.id1 = l2.id1&lt;br /&gt;
&amp;nbsp; and l2.id2 = l2.id2 ;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
-- top&lt;br /&gt;
get pid&lt;br /&gt;
&lt;br /&gt;
-- get sid using pid&lt;br /&gt;
select sid&lt;br /&gt;
from v$session s, v$process p&lt;br /&gt;
where p.spid = &amp;amp;pid&lt;br /&gt;
and s.paddr = p.addr;&lt;br /&gt;
&lt;br /&gt;
-- get sqlId using sid&lt;br /&gt;
select sql_id&lt;br /&gt;
from v$session&lt;br /&gt;
where sid = &amp;amp;sid;&lt;br /&gt;
&lt;br /&gt;
- get sql using sid&lt;br /&gt;
select sql_fulltext&lt;br /&gt;
from v$sql l, v$session s&lt;br /&gt;
where s.sid = &amp;amp;sid&lt;br /&gt;
and l.sql_id = s.sql_id;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Check for the wait events:&lt;br /&gt;
&lt;br /&gt;
-- Check for the particular user and session.&lt;br /&gt;
col &quot;Description&quot; format a50&lt;br /&gt;
select sid,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; decode(state, &#39;WAITING&#39;,&#39;Waiting&#39;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;Working&#39;) state,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; decode(state,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;WAITING&#39;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;So far &#39;||seconds_in_wait,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;Last waited &#39;||&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; wait_time/100)||&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; secs for &#39;||event&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;Description&quot;&lt;br /&gt;
from v$session&lt;br /&gt;
where username = &#39;GOS_USER&#39;;&lt;br /&gt;
&lt;br /&gt;
select SID, osuser, machine, terminal, service_name,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;logon_time, last_call_et&lt;br /&gt;
from v$session&lt;br /&gt;
where username = &#39;GOS_USER&#39;;&lt;br /&gt;
&lt;br /&gt;
-- &amp;nbsp;Session waits for a specific machine&lt;br /&gt;
col username format a5&lt;br /&gt;
col program format a10&lt;br /&gt;
col state format a10&lt;br /&gt;
col last_call_et head &#39;Called|secs ago&#39; format 999999&lt;br /&gt;
col seconds_in_wait head &#39;Waiting|for secs&#39; format 999999&lt;br /&gt;
col event format a50&lt;br /&gt;
select sid, username, program,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; decode(state, &#39;WAITING&#39;, &#39;Waiting&#39;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;Working&#39;) state,&lt;br /&gt;
last_call_et, seconds_in_wait, event&lt;br /&gt;
from v$session&lt;br /&gt;
where sid = &amp;amp;sid&lt;br /&gt;
/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
History of wait events in a specific session&lt;br /&gt;
&lt;br /&gt;
set lines 120 trimspool on&lt;br /&gt;
col event head &quot;Waited for&quot; format a30&lt;br /&gt;
col total_waits head &quot;Total|Waits&quot; format 999,999&lt;br /&gt;
col tw_ms head &quot;Waited|for (ms)&quot; format 999,999.99&lt;br /&gt;
col aw_ms head &quot;Average|Wait (ms)&quot; format 999,999.99&lt;br /&gt;
col mw_ms head &quot;Max|Wait (ms)&quot; format 999,999.99&lt;br /&gt;
select event, total_waits, time_waited*10 tw_ms,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;average_wait*10 aw_ms, max_wait*10 mw_ms&lt;br /&gt;
from v$session_event&lt;br /&gt;
where sid = &amp;amp;sid&lt;br /&gt;
/&lt;br /&gt;
&lt;br /&gt;
-- check data access isue&lt;br /&gt;
&lt;br /&gt;
select event&lt;br /&gt;
from v$session&lt;br /&gt;
where sid = &amp;amp;sid;&lt;br /&gt;
&lt;br /&gt;
-- check data access waits&lt;br /&gt;
select SID, state, event, p1, p2&lt;br /&gt;
from v$session&lt;br /&gt;
where sid = &amp;amp;sid;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- run sql advisor&lt;br /&gt;
&lt;br /&gt;
1. Tuning task created for specific Sql id:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SET SERVEROUTPUT ON&lt;br /&gt;
DECLARE&lt;br /&gt;
&amp;nbsp; l_sql_tune_task_id &amp;nbsp;VARCHAR2(100);&lt;br /&gt;
BEGIN&lt;br /&gt;
&amp;nbsp; l_sql_tune_task_id := DBMS_SQLTUNE.create_tuning_task (&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sql_id &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; &#39;bxa13by3718uw&#39;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scope &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; DBMS_SQLTUNE.scope_comprehensive,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; time_limit &amp;nbsp;=&amp;gt; 60,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; task_name &amp;nbsp; =&amp;gt; &#39;bxa13by3718uw_tuning_task&#39;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; description =&amp;gt; &#39;Tuning task for statement bxa13by3718uw.&#39;);&lt;br /&gt;
&amp;nbsp; DBMS_OUTPUT.put_line(&#39;l_sql_tune_task_id: &#39; || l_sql_tune_task_id);&lt;br /&gt;
END;&lt;br /&gt;
/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Executing the tuning task:&lt;br /&gt;
&lt;br /&gt;
EXEC DBMS_SQLTUNE.execute_tuning_task(task_name =&amp;gt; &#39;bxa13by3718uw_tuning_task&#39;);&lt;br /&gt;
&lt;br /&gt;
3. Displaying the recommendations:&lt;br /&gt;
&lt;br /&gt;
Once the tuning task has executed successfully the recommendations can be displayed using the REPORT_TUNING_TASK function.&lt;br /&gt;
&lt;br /&gt;
SET LONG 10000;&lt;br /&gt;
SET PAGESIZE 1000&lt;br /&gt;
SET LINESIZE 200&lt;br /&gt;
&lt;br /&gt;
SELECT DBMS_SQLTUNE.report_tuning_task(&#39;bxa13by3718uw_tuning_task&#39;) AS recommendations FROM dual;&lt;br /&gt;
&lt;br /&gt;
SET PAGESIZE 24&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Based on the tuning advisor recommendation we have to take corrective actions. These recommendation could be:&lt;br /&gt;
&lt;br /&gt;
1) Gather Statistics&lt;br /&gt;
2) Create Index&lt;br /&gt;
3) Drop Index&lt;br /&gt;
4) Join orders&lt;br /&gt;
5) Create sql profiles and many more&lt;br /&gt;
&lt;br /&gt;
After corrective action from tuning advisor run the SQL again and see the improvement.&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/7864478260273067796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/7864478260273067796'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/2018/08/step-by-step-how-to-troubleshoot-slow.html' title='Step by Step: How to troubleshoot a slow running query in Oracle'/><author><name>Gunjan</name><uri>http://www.blogger.com/profile/05080554073749343687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15147694.post-8931712522998249764</id><published>2018-08-18T16:14:00.001-04:00</published><updated>2018-08-20T10:18:15.313-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python"/><title type='text'>python program to check ocssd.log for error/issue/node eviction etc in last 48 hours</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
# python program to check ocssd.log for error/issue/node eviction etc&lt;br /&gt;
&lt;br /&gt;
#!/usr/bin/env python&lt;br /&gt;
&lt;br /&gt;
import io&lt;br /&gt;
import datetime&lt;br /&gt;
import traceback&lt;br /&gt;
&lt;br /&gt;
DayList=[&#39;Sun&#39;,&#39;Mon&#39;,&#39;Tue&#39;,&#39;Wed&#39;,&#39;Thu&#39;,&#39;Fri&#39;,&#39;Sat&#39;]&lt;br /&gt;
KeyWordList=[&#39;ORA-&#39;,&#39;Error&#39;,&#39;CRS-1013&#39;,&#39;Polling&#39;,&#39;Diskpingout&#39;]&lt;br /&gt;
# KeyWordList=[&#39;ORA-&#39;,&#39;Error&#39;,&#39;Starting ORACLE instance&#39;,&#39;Shutting down instance&#39;]&lt;br /&gt;
OutputList=[]&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;# customize to check last 48 hours in this case&lt;/span&gt;&lt;br /&gt;
SkipOldEventHours=48&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;# name and location of ocssd file . it has changed in 12c&lt;/span&gt;&lt;br /&gt;
AlertLogFile=r&#39;/ora01/grid/11.2.0.4/grid/log/`hostname`/cssd/ocssd.log&#39;&lt;br /&gt;
&lt;br /&gt;
SkipOldEventDateTimeDelta=datetime.timedelta(hours=SkipOldEventHours)&lt;br /&gt;
EventDate=datetime.datetime(1, 1, 1, 0, 0)&lt;br /&gt;
&lt;br /&gt;
try:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; with io.open(AlertLogFile,mode=&#39;r&#39;) as f:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for line in f:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for w in KeyWordList:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if w in line:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OutputList.append([EventDate,line.rstrip(&#39;\n&#39;)])&lt;br /&gt;
except:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; print(traceback.format_exc())&lt;br /&gt;
&lt;br /&gt;
for o in OutputList:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; # use o[0].strftime(&#39;%a %b %d %H:%M:%S %Y&#39;) to get original Oracle style Format&lt;br /&gt;
&amp;nbsp; &amp;nbsp; print(&#39;[%s] %s&#39; % (o[0],o[1]))&lt;br /&gt;
&lt;br /&gt;
# the end&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/8931712522998249764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/8931712522998249764'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/2018/08/python-program-to-check-ocssdlog-for.html' title='python program to check ocssd.log for error/issue/node eviction etc in last 48 hours'/><author><name>Gunjan</name><uri>http://www.blogger.com/profile/05080554073749343687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15147694.post-8236473334531562757</id><published>2018-08-18T16:06:00.003-04:00</published><updated>2018-08-20T10:18:31.057-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python"/><title type='text'>python program to check ocssd.log in oracle 11g for node eviction / issues</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
# python program to check ocssd.log in oracle 11g for node eviction / issues&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;# customize name/location of ocssd file: it has changed in 12g&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;infile = r&#39;/ora01/grid/11.2.0.4/grid/log/`hostname`/cssd/ocssd.log&#39;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
important = []&lt;br /&gt;
keep_phrases = [&quot;Diskpingout&quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;CRS-1013&quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;Polling&quot;]&lt;br /&gt;
&lt;br /&gt;
with open(infile) as f:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; f = f.readlines()&lt;br /&gt;
&lt;br /&gt;
for line in f:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; for phrase in keep_phrases:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if phrase in line:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # important.append(line.rstrip(&#39;\n&#39;))&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; important.append([line.rstrip(&#39;\n&#39;)])&lt;br /&gt;
# OutputList.append([EventDate,line.rstrip(&#39;\n&#39;)])&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break&lt;br /&gt;
&lt;br /&gt;
# print(important)&lt;br /&gt;
print infile&lt;br /&gt;
for o in important:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; # use o[0].strftime(&#39;%a %b %d %H:%M:%S %Y&#39;) to get original Oracle style Format&lt;br /&gt;
&amp;nbsp; &amp;nbsp; # print(&#39;[%s] %s&#39; % (o[0],o[1]))&lt;br /&gt;
&amp;nbsp; &amp;nbsp; print(&#39;[%s]&#39; % (o[0]))&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/8236473334531562757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/8236473334531562757'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/2018/08/python-program-to-check-ocssdlog-in.html' title='python program to check ocssd.log in oracle 11g for node eviction / issues'/><author><name>Gunjan</name><uri>http://www.blogger.com/profile/05080554073749343687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15147694.post-5336751980596529472</id><published>2018-08-18T16:01:00.004-04:00</published><updated>2018-08-20T10:18:46.860-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python"/><title type='text'>python program to check oracle alert log file for error in past 48 hours</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
# python program to check oracle alert log file for error in past 48 hours&lt;br /&gt;
&lt;br /&gt;
#!/usr/bin/env python&lt;br /&gt;
&lt;br /&gt;
import io&lt;br /&gt;
import datetime&lt;br /&gt;
import traceback&lt;br /&gt;
&lt;br /&gt;
DayList=[&#39;Sun&#39;,&#39;Mon&#39;,&#39;Tue&#39;,&#39;Wed&#39;,&#39;Thu&#39;,&#39;Fri&#39;,&#39;Sat&#39;]&lt;br /&gt;
KeyWordList=[&#39;ORA-&#39;,&#39;Error&#39;,&#39;alter&#39;]&lt;br /&gt;
# KeyWordList=[&#39;ORA-&#39;,&#39;Error&#39;,&#39;Starting ORACLE instance&#39;,&#39;Shutting down instance&#39;]&lt;br /&gt;
OutputList=[]&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;# customize hours to look for&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;SkipOldEventHours=48&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;# customize name of alert.log&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;AlertLogFile=r&#39;alert_cisdbc.log&#39;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
SkipOldEventDateTimeDelta=datetime.timedelta(hours=SkipOldEventHours)&lt;br /&gt;
EventDate=datetime.datetime(1, 1, 1, 0, 0)&lt;br /&gt;
&lt;br /&gt;
try:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; with io.open(AlertLogFile,mode=&#39;r&#39;) as f:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for line in f:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if len(line)&amp;gt;3 and line[0:3] in DayList:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # OutputList.append(line) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EventDate=datetime.datetime.strptime(line.rstrip(&#39;\n&#39;), &#39;%a %b %d %H:%M:%S %Y&#39;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if EventDate &amp;lt; datetime.datetime.now()-SkipOldEventDateTimeDelta :&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; continue &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;elif len(line)&amp;gt;3:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if EventDate &amp;lt; datetime.datetime.now()-SkipOldEventDateTimeDelta :&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; continue &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for w in KeyWordList:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if w in line:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OutputList.append([EventDate,line.rstrip(&#39;\n&#39;)])&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; continue&lt;br /&gt;
except:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; print(traceback.format_exc())&lt;br /&gt;
&lt;br /&gt;
for o in OutputList:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; # use o[0].strftime(&#39;%a %b %d %H:%M:%S %Y&#39;) to get original Oracle style Format &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; print(&#39;[%s] %s&#39; % (o[0],o[1]))&lt;br /&gt;
&lt;br /&gt;
# the end&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/5336751980596529472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/5336751980596529472'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/2018/08/python-program-to-check-oracle-alert.html' title='python program to check oracle alert log file for error in past 48 hours'/><author><name>Gunjan</name><uri>http://www.blogger.com/profile/05080554073749343687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15147694.post-7174364548321704869</id><published>2018-08-18T15:52:00.003-04:00</published><updated>2018-08-18T15:52:14.887-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unix/Linux"/><title type='text'> List TOP 10 by size directories</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
# List TOP 10 by size directories&lt;br /&gt;
du -m --max-depth 1 | sort -rn | head -11&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/7174364548321704869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/7174364548321704869'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/2018/08/list-top-10-by-size-directories.html' title=' List TOP 10 by size directories'/><author><name>Gunjan</name><uri>http://www.blogger.com/profile/05080554073749343687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15147694.post-7991221191666783616</id><published>2018-05-23T11:37:00.002-04:00</published><updated>2018-05-23T11:37:44.317-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="Partition"/><title type='text'>Get max value in partition</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Set serverout on size 1000000&lt;br /&gt;
declare&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cursor tab_part_cur IS&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; select table_name,partition_name from user_tab_partitions where table_name=&#39;MESSAGE_LOG&#39; order by 1,2;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; v_date date;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; v_pass integer := 0;&lt;br /&gt;
begin&lt;br /&gt;
&amp;nbsp; &amp;nbsp; dbms_output.put_line(&#39;These partitions can be dropped.&#39;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; for tab_part_rec in tab_part_cur&lt;br /&gt;
&amp;nbsp; &amp;nbsp; loop&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit when tab_part_cur%notfound;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; v_date :=&amp;nbsp;GET_MAX_LOG_TS(tab_part_rec.table_name,tab_part_rec.partition_name);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if v_date &amp;lt;= (sysdate - 10) then&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dbms_output.put_line(tab_part_rec.table_name||&#39; &#39;||tab_part_rec.partition_name|| &#39; &#39;||v_date );&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end if;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; end loop;&lt;br /&gt;
end;&lt;br /&gt;
/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CREATE &amp;nbsp;or replace FUNCTION GET_MAX_LOG_TS (&lt;br /&gt;
&amp;nbsp; &amp;nbsp; p_TableName &amp;nbsp; &amp;nbsp; IN VARCHAR2,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; p_PatitionName &amp;nbsp;IN VARCHAR2&lt;br /&gt;
) RETURN DATE&lt;br /&gt;
IS&lt;br /&gt;
&amp;nbsp; &amp;nbsp;v_DateVal Date;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;v_string varchar2(400);&lt;br /&gt;
BEGIN &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;v_string := &#39;SELECT max(log_ts) &amp;nbsp;v_DateVal FROM MESSAGE_LOG PARTITION(&#39;||p_PatitionName||&#39;)&#39;;&lt;br /&gt;
&lt;br /&gt;
dbms_output.put_line(v_string);&lt;br /&gt;
dbms_output.put_line(chr(10));&lt;br /&gt;
execute immediate v_string into into v_DateVal;;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; RETURN v_DateVal;&lt;br /&gt;
END GET_max_log_ts;&lt;br /&gt;
/&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/7991221191666783616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/7991221191666783616'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/2018/05/get-max-value-in-partition.html' title='Get max value in partition'/><author><name>Gunjan</name><uri>http://www.blogger.com/profile/05080554073749343687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15147694.post-590896958138061752</id><published>2018-05-23T11:20:00.001-04:00</published><updated>2018-05-23T11:20:28.194-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="Partition"/><title type='text'>list max value in partition</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
function&lt;br /&gt;
&lt;br /&gt;
CREATE OR REPLACE FUNCTION GET_HIGH_VALUE_AS_DATE (&lt;br /&gt;
&amp;nbsp; &amp;nbsp; p_TableName &amp;nbsp; &amp;nbsp; IN VARCHAR2,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; p_PatitionName &amp;nbsp;IN VARCHAR2&lt;br /&gt;
) RETURN DATE&lt;br /&gt;
IS&lt;br /&gt;
&amp;nbsp; &amp;nbsp;v_LongVal LONG;&lt;br /&gt;
BEGIN&lt;br /&gt;
&amp;nbsp; &amp;nbsp; SELECT HIGH_VALUE INTO v_LongVal&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; FROM USER_TAB_PARTITIONS&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;WHERE TABLE_NAME = p_TableName&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AND PARTITION_NAME = p_PatitionName;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; RETURN TO_DATE(substr(v_LongVal, 11, 19), &#39;YYYY-MM-DD HH24:MI:SS&#39;);&lt;br /&gt;
END GET_HIGH_VALUE_AS_DATE;&lt;br /&gt;
/&lt;br /&gt;
&lt;br /&gt;
calls function&lt;br /&gt;
Set serverout on size 1000000&lt;br /&gt;
declare&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cursor tab_part_cur IS&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; select table_name,partition_name from user_tab_partitions where table_name=&#39;BOMR_MESSAGE_LOG&#39; order by 1,2;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; v_date date;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; v_pass integer := 0;&lt;br /&gt;
begin&lt;br /&gt;
&amp;nbsp; &amp;nbsp; dbms_output.put_line(&#39;These partitions can be dropped.&#39;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; for tab_part_rec in tab_part_cur&lt;br /&gt;
&amp;nbsp; &amp;nbsp; loop&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit when tab_part_cur%notfound;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; v_date := GET_HIGH_VALUE_AS_DATE(tab_part_rec.table_name,tab_part_rec.partition_name);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if v_date &amp;lt;= (sysdate - 10) then&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dbms_output.put_line(tab_part_rec.table_name||&#39; &#39;||tab_part_rec.partition_name|| &#39; &#39;||v_date );&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end if;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; end loop;&lt;br /&gt;
end;&lt;br /&gt;
/&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/590896958138061752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/590896958138061752'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/2018/05/list-max-value-in-partition.html' title='list max value in partition'/><author><name>Gunjan</name><uri>http://www.blogger.com/profile/05080554073749343687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15147694.post-5928545637997365448</id><published>2018-05-23T11:16:00.003-04:00</published><updated>2018-05-23T11:16:45.710-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><title type='text'>rebuild unusable indexes</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Set serverout on size 1000000&lt;br /&gt;
declare&lt;br /&gt;
&amp;nbsp; &amp;nbsp; cursor idx_cur IS&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; select owner, index_name &amp;nbsp;from dba_indexes where status = &#39;UNUSABLE&#39;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; v_string varchar2(400);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
begin&lt;br /&gt;
&amp;nbsp; &amp;nbsp; dbms_output.put_line(&#39;These indexes are in unusable.&#39;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; for idx_rec in idx_cur&lt;br /&gt;
&amp;nbsp; &amp;nbsp; loop&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit when idx_cur%notfound;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dbms_output.put_line(idx_rec.owner||&#39; &#39;||idx_rec.index_name);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;v_string := &#39;alter index &#39;|| idx_rec.owner ||&#39;.&#39;|| idx_rec.index_name||&#39; rebuild;&#39;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dbms_output.put_line(v_string);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dbms_output.put_line(chr(10));&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;execute immediate v_string ;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; end loop;&lt;br /&gt;
end;&lt;br /&gt;
/&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/5928545637997365448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/5928545637997365448'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/2018/05/rebuild-unusable-indexes.html' title='rebuild unusable indexes'/><author><name>Gunjan</name><uri>http://www.blogger.com/profile/05080554073749343687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15147694.post-1271357916733594793</id><published>2018-05-23T10:53:00.000-04:00</published><updated>2018-05-23T10:53:33.700-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="Datapump/Export/Import"/><title type='text'>stream_pool_size</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;color: #275d90; font-family: Calibri; font-size: 11px; font-stretch: normal; line-height: normal;&quot;&gt;
check the spilling status and pool size recommendation of your Streams pool with following query.&lt;/div&gt;
&lt;div style=&quot;color: #275d90; font-family: Calibri; font-size: 11px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #275d90; font-family: Calibri; font-size: 11px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #275d90; font-family: Calibri; font-size: 11px; font-stretch: normal; line-height: normal;&quot;&gt;
select inst_id,STREAMS_POOL_SIZE_FOR_ESTIMATE,estd_spill_time, estd_unspill_time, streams_pool_size_factor&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #275d90; font-family: Calibri; font-size: 11px; font-stretch: normal; line-height: normal;&quot;&gt;
from gv$streams_pool_advice order by 1,5;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;color: #275d90; font-family: Calibri; font-size: 11px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/1271357916733594793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/1271357916733594793'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/2018/05/streampoolsize.html' title='stream_pool_size'/><author><name>Gunjan</name><uri>http://www.blogger.com/profile/05080554073749343687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15147694.post-6120212167669751470</id><published>2018-04-06T14:14:00.004-04:00</published><updated>2018-04-06T14:15:08.721-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Performance"/><category scheme="http://www.blogger.com/atom/ns#" term="Unix/Linux"/><title type='text'>PERFORMANCE BOTTLENECK CHECK USING OS TOOLS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
A.REAL TIME PERFORMANCE TUNING USING OS TOOLS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TOOL1:-TOP UTILITY&lt;br /&gt;
&lt;br /&gt;
check in TOP with column S where it shows ‘R’ means running and ‘S’ means sleeping.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TOOL 2:-SAR UTILITY WITH -U OPTION TO CHECK CPU AND IO BOTTLENECK&lt;br /&gt;
sar -u 10 8&lt;br /&gt;
&lt;br /&gt;
TOOL 3:VMSTAT REPORT&lt;br /&gt;
vmstat 1 10&lt;br /&gt;
r column is runnable processes&lt;br /&gt;
&lt;br /&gt;
TOOL 4:TO IDENTIFY DISK BOTTLENECK&lt;br /&gt;
sar -d 5 2&lt;br /&gt;
&lt;br /&gt;
TOOL 5:-SAR -B TO REPORT DISK USAGE&lt;br /&gt;
&lt;br /&gt;
TOOL 6:-SAR -Q TO FIND PROCESSES UNDER QUEUE.WE NEED TO LOOK BLOCKED SECTION&lt;br /&gt;
&lt;br /&gt;
TOOL 7:-TO IDENTIFY MEMORY USAGE USING SAR -R&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TOOL 8. REAL TIME PERFORMANCE TUNING USING ORATOP REPORT&lt;br /&gt;
./oratop -f -d -i 10 / as sysdba&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/6120212167669751470'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/6120212167669751470'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/2018/04/performance-bottleneck-check-using-os.html' title='PERFORMANCE BOTTLENECK CHECK USING OS TOOLS'/><author><name>Gunjan</name><uri>http://www.blogger.com/profile/05080554073749343687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15147694.post-7710084013470425685</id><published>2018-01-23T14:47:00.001-05:00</published><updated>2018-01-23T14:47:45.089-05:00</updated><title type='text'>How to get all the alert.log file entry for a date</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre style=&quot;background-color: #eff0f1; border: 0px; color: #242729; font-family: consolas, menlo, monaco, &amp;quot;lucida console&amp;quot;, &amp;quot;liberation mono&amp;quot;, &amp;quot;dejavu sans mono&amp;quot;, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant-caps: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;grep -B1 -A1 &#39;Jan 19&#39; alert.log&lt;/code&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: #eff0f1; border: 0px; color: #242729; font-family: consolas, menlo, monaco, &amp;quot;lucida console&amp;quot;, &amp;quot;liberation mono&amp;quot;, &amp;quot;dejavu sans mono&amp;quot;, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant-caps: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: #eff0f1; border: 0px; color: #242729; font-family: consolas, menlo, monaco, &amp;quot;lucida console&amp;quot;, &amp;quot;liberation mono&amp;quot;, &amp;quot;dejavu sans mono&amp;quot;, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant-caps: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;awk &#39;/Jan 19/{c=6}c&amp;amp;&amp;amp;c --&#39; alert.log&lt;/code&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant-caps: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/7710084013470425685'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/7710084013470425685'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/2018/01/how-to-get-all-alertlog-file-entry-for.html' title='How to get all the alert.log file entry for a date'/><author><name>Gunjan</name><uri>http://www.blogger.com/profile/05080554073749343687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15147694.post-229713572139040885</id><published>2017-12-19T10:51:00.002-05:00</published><updated>2017-12-19T10:51:42.261-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><title type='text'>Change Remote Window Password VPN via Mac</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
To Change Password on Window&lt;br /&gt;
&lt;br /&gt;
Press fn-control-option-del&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/229713572139040885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/229713572139040885'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/2017/12/change-remote-window-password-vpn-via.html' title='Change Remote Window Password VPN via Mac'/><author><name>Gunjan</name><uri>http://www.blogger.com/profile/05080554073749343687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15147694.post-5551068603088803097</id><published>2017-12-19T10:48:00.002-05:00</published><updated>2018-08-20T10:24:34.933-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unix/Linux"/><title type='text'>Extract range of lines from a text file in Unix</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Input File &amp;nbsp; &amp;nbsp;: orig-data-file&lt;br /&gt;
OutPut File : new-file&lt;br /&gt;
&lt;br /&gt;
Line range 100 to 110&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eff0f1; border: 0px; color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant-caps: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;sed -n &#39;100,110 p&#39; orig-data-file &amp;gt; new-file&lt;/code&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: #eff0f1; border: 0px; color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant-caps: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;awk &#39;NR&amp;gt;=100&amp;amp;&amp;amp;NR&amp;lt;=110&#39; orig-data-file &amp;gt; new-file&lt;/code&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: #eff0f1; border: 0px; color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant-caps: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;perl -ne &#39;print if 110..110&#39; orin-data-file &amp;gt; new_file&lt;/code&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: #eff0f1; border: 0px; color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant-caps: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;-- get alert.log file for particular day
awk &#39;/Jun 26/{c=6}c&amp;amp;&amp;amp;c --&#39; alert_demo.log&lt;/code&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: #eff0f1; border: 0px; color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant-caps: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;grep -B1 -A1 &#39;Jun 26&#39; alert_demo.log
&lt;/code&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant-caps: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/5551068603088803097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/5551068603088803097'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/2017/12/extract-range-of-lines-from-text-file.html' title='Extract range of lines from a text file in Unix'/><author><name>Gunjan</name><uri>http://www.blogger.com/profile/05080554073749343687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15147694.post-3376773627396963437</id><published>2017-11-29T13:22:00.001-05:00</published><updated>2017-11-29T13:25:46.960-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Performance"/><title type='text'>oratop</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Pre- requisite&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #f9f9fb; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(217, 217, 226); box-sizing: border-box; font-family: menlo, monaco, &amp;quot;courier new&amp;quot;, courier, mono, serif; font-size: 13px; line-height: 1.615; margin-bottom: 1em; overflow: auto; padding: 5px; word-wrap: normal;&quot;&gt;&lt;div style=&quot;font-family: -webkit-standard; white-space: normal;&quot;&gt;
&lt;pre style=&quot;border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(217, 217, 226); box-sizing: border-box; font-family: menlo, monaco, &amp;quot;courier new&amp;quot;, courier, mono, serif; line-height: 1.615; margin-bottom: 1em; overflow: auto; padding: 5px; word-wrap: normal;&quot;&gt;download oratop&lt;/pre&gt;
&lt;pre style=&quot;border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(217, 217, 226); box-sizing: border-box; font-family: menlo, monaco, &amp;quot;courier new&amp;quot;, courier, mono, serif; line-height: 1.615; margin-bottom: 1em; overflow: auto; padding: 5px; word-wrap: normal;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;set &amp;nbsp;oracle environment&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/pre&gt;
helpful commands&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #f9f9fb; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(217, 217, 226); box-sizing: border-box; font-family: menlo, monaco, &amp;quot;courier new&amp;quot;, courier, mono, serif; font-size: 13px; line-height: 1.615; margin-bottom: 1em; overflow: auto; padding: 5px; word-wrap: normal;&quot;&gt;&lt;div style=&quot;font-family: -webkit-standard; white-space: normal;&quot;&gt;
oratop -i 5 / as sysdba&lt;/div&gt;
&lt;div style=&quot;font-family: -webkit-standard; white-space: normal;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: -webkit-standard; white-space: normal;&quot;&gt;
oratop -bdfi5 &quot;/ as sysdba&quot;&lt;/div&gt;
&lt;div style=&quot;font-family: -webkit-standard; white-space: normal;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: -webkit-standard; white-space: normal;&quot;&gt;
to remote database&lt;/div&gt;
&lt;div style=&quot;font-family: -webkit-standard; white-space: normal;&quot;&gt;
oratop -f -i 5 sys/pass@db as sysdba&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/pre&gt;
&lt;pre style=&quot;background-color: #f9f9fb; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(217, 217, 226); box-sizing: border-box; font-family: menlo, monaco, &amp;quot;courier new&amp;quot;, courier, mono, serif; font-size: 13px; line-height: 1.615; margin-bottom: 1em; overflow: auto; padding: 5px; word-wrap: normal;&quot;&gt;&lt;/pre&gt;
&lt;br /&gt;
FOR HELP press h &amp;nbsp;and get the interactive key and enter in the main screen for example t is for table space&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/3376773627396963437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/3376773627396963437'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/2017/11/oratop.html' title='oratop'/><author><name>Gunjan</name><uri>http://www.blogger.com/profile/05080554073749343687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-15147694.post-6063817840906627260</id><published>2017-11-29T13:02:00.000-05:00</published><updated>2017-11-29T13:02:12.168-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>The UNION [ALL], INTERSECT, MINUS Operators</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;box-sizing: border-box; color: #222222; font-family: &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Neue Helvetica&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: 1.4; margin-bottom: 1.25rem; max-width: 90em; padding: 0px; text-rendering: optimizeLegibility;&quot;&gt;
&lt;span class=&quot;subhead3&quot; style=&quot;box-sizing: border-box; display: block; font-weight: bold; padding-top: 10px;&quot;&gt;UNION Example&amp;nbsp;&lt;/span&gt;The following statement combines the results of two queries with the&amp;nbsp;&lt;code style=&quot;background-color: #eeeeee; box-sizing: border-box; color: black; font-family: menlo, monaco, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; font-size: 13px; line-height: 1.615; padding: 3px 0px;&quot;&gt;UNION&lt;/code&gt;&amp;nbsp;operator, which eliminates duplicate selected rows. This statement shows that you must match datatype (using the&amp;nbsp;&lt;code style=&quot;background-color: #eeeeee; box-sizing: border-box; color: black; font-family: menlo, monaco, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; font-size: 13px; line-height: 1.615; padding: 3px 0px;&quot;&gt;TO_CHAR&lt;/code&gt;&amp;nbsp;function) when columns do not exist in one or the other table:&lt;/div&gt;
&lt;pre style=&quot;background-color: #f9f9fb; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(217, 217, 226); box-sizing: border-box; font-family: menlo, monaco, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; font-size: 13px; line-height: 1.615; margin-bottom: 1em; overflow: auto; padding: 5px; word-wrap: normal !important;&quot;&gt;SELECT location_id, department_name &quot;Department&quot;, 
   TO_CHAR(NULL) &quot;Warehouse&quot;  FROM departments
   UNION
   SELECT location_id, TO_CHAR(NULL) &quot;Department&quot;, warehouse_name 
   FROM warehouses;&lt;/pre&gt;
&lt;pre style=&quot;background-color: #f9f9fb; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(217, 217, 226); box-sizing: border-box; font-family: menlo, monaco, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; font-size: 13px; line-height: 1.615; margin-bottom: 1em; overflow: auto; padding: 5px; word-wrap: normal !important;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; color: #222222; font-family: &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Neue Helvetica&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: 1.4; margin-bottom: 1.25rem; max-width: 90em; padding: 0px; text-rendering: optimizeLegibility; white-space: normal;&quot;&gt;
&lt;span class=&quot;subhead3&quot; style=&quot;box-sizing: border-box; display: block; font-weight: bold; padding-top: 10px;&quot;&gt;UNION ALL Example&amp;nbsp;&lt;/span&gt;The&amp;nbsp;&lt;code style=&quot;background-color: #eeeeee; box-sizing: border-box; color: black; font-family: menlo, monaco, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; font-size: 13px; line-height: 1.615; padding: 3px 0px;&quot;&gt;UNION&lt;/code&gt;&amp;nbsp;operator returns only distinct rows that appear in either result, while the&amp;nbsp;&lt;code style=&quot;background-color: #eeeeee; box-sizing: border-box; color: black; font-family: menlo, monaco, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; font-size: 13px; line-height: 1.615; padding: 3px 0px;&quot;&gt;UNION&lt;/code&gt;&amp;nbsp;&lt;code style=&quot;background-color: #eeeeee; box-sizing: border-box; color: black; font-family: menlo, monaco, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; font-size: 13px; line-height: 1.615; padding: 3px 0px;&quot;&gt;ALL&lt;/code&gt;&amp;nbsp;operator returns all rows. The&amp;nbsp;&lt;code style=&quot;background-color: #eeeeee; box-sizing: border-box; color: black; font-family: menlo, monaco, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; font-size: 13px; line-height: 1.615; padding: 3px 0px;&quot;&gt;UNION&lt;/code&gt;&amp;nbsp;&lt;code style=&quot;background-color: #eeeeee; box-sizing: border-box; color: black; font-family: menlo, monaco, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; font-size: 13px; line-height: 1.615; padding: 3px 0px;&quot;&gt;ALL&lt;/code&gt;&amp;nbsp;operator does not eliminate duplicate selected rows:&lt;/div&gt;
&lt;pre style=&quot;border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(217, 217, 226); box-sizing: border-box; font-family: menlo, monaco, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; line-height: 1.615; margin-bottom: 1em; overflow: auto; padding: 5px; word-wrap: normal !important;&quot;&gt;SELECT product_id FROM order_items
UNION
SELECT product_id FROM inventories;

SELECT location_id  FROM locations 
UNION ALL 
SELECT location_id  FROM departments;

&lt;/pre&gt;
&lt;div style=&quot;box-sizing: border-box; color: #222222; font-family: &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Neue Helvetica&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: 1.4; margin-bottom: 1.25rem; max-width: 90em; padding: 0px; text-rendering: optimizeLegibility; white-space: normal;&quot;&gt;
A&amp;nbsp;&lt;code style=&quot;background-color: #eeeeee; box-sizing: border-box; color: black; font-family: menlo, monaco, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; font-size: 13px; line-height: 1.615; padding: 3px 0px;&quot;&gt;location_id&lt;/code&gt;&amp;nbsp;value that appears multiple times in either or both queries (such as &#39;&lt;code style=&quot;background-color: #eeeeee; box-sizing: border-box; color: black; font-family: menlo, monaco, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; font-size: 13px; line-height: 1.615; padding: 3px 0px;&quot;&gt;1700&lt;/code&gt;&#39;) is returned only once by the&amp;nbsp;&lt;code style=&quot;background-color: #eeeeee; box-sizing: border-box; color: black; font-family: menlo, monaco, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; font-size: 13px; line-height: 1.615; padding: 3px 0px;&quot;&gt;UNION&lt;/code&gt;&amp;nbsp;operator, but multiple times by the&amp;nbsp;&lt;code style=&quot;background-color: #eeeeee; box-sizing: border-box; color: black; font-family: menlo, monaco, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; font-size: 13px; line-height: 1.615; padding: 3px 0px;&quot;&gt;UNION&lt;/code&gt;&amp;nbsp;&lt;code style=&quot;background-color: #eeeeee; box-sizing: border-box; color: black; font-family: menlo, monaco, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; font-size: 13px; line-height: 1.615; padding: 3px 0px;&quot;&gt;ALL&lt;/code&gt;&amp;nbsp;operator.&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; color: #222222; font-family: &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Neue Helvetica&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: 1.4; margin-bottom: 1.25rem; max-width: 90em; padding: 0px; text-rendering: optimizeLegibility; white-space: normal;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;sthref3146&quot; style=&quot;box-sizing: border-box; color: #1d5aab; line-height: inherit;&quot;&gt;&lt;/a&gt;&lt;span class=&quot;subhead3&quot; style=&quot;box-sizing: border-box; display: block; font-weight: bold; padding-top: 10px;&quot;&gt;INTERSECT Example&amp;nbsp;&lt;/span&gt;The following statement combines the results with the&amp;nbsp;&lt;code style=&quot;background-color: #eeeeee; box-sizing: border-box; color: black; font-family: menlo, monaco, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; font-size: 13px; line-height: 1.615; padding: 3px 0px;&quot;&gt;INTERSECT&lt;/code&gt;&amp;nbsp;operator, which returns only those rows returned by both queries:&lt;/div&gt;
&lt;pre style=&quot;border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(217, 217, 226); box-sizing: border-box; font-family: menlo, monaco, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; line-height: 1.615; margin-bottom: 1em; overflow: auto; padding: 5px; word-wrap: normal !important;&quot;&gt;SELECT product_id FROM inventories
INTERSECT
SELECT product_id FROM order_items;
&lt;/pre&gt;
&lt;div style=&quot;box-sizing: border-box; color: #222222; font-family: &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Neue Helvetica&amp;quot;, Arial, sans-serif; font-size: 14px; line-height: 1.4; margin-bottom: 1.25rem; max-width: 90em; padding: 0px; text-rendering: optimizeLegibility; white-space: normal;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; id=&quot;sthref3147&quot; style=&quot;box-sizing: border-box; color: #1d5aab; line-height: inherit;&quot;&gt;&lt;/a&gt;&lt;span class=&quot;subhead3&quot; style=&quot;box-sizing: border-box; display: block; font-weight: bold; padding-top: 10px;&quot;&gt;MINUS Example&amp;nbsp;&lt;/span&gt;The following statement combines results with the&amp;nbsp;&lt;code style=&quot;background-color: #eeeeee; box-sizing: border-box; color: black; font-family: menlo, monaco, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; font-size: 13px; line-height: 1.615; padding: 3px 0px;&quot;&gt;MINUS&lt;/code&gt;&amp;nbsp;operator, which returns only unique rows returned by the first query but not by the second:&lt;/div&gt;
&lt;pre style=&quot;border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(217, 217, 226); box-sizing: border-box; font-family: menlo, monaco, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; line-height: 1.615; margin-bottom: 1em; overflow: auto; padding: 5px; word-wrap: normal !important;&quot;&gt;SELECT product_id FROM inventories
MINUS
SELECT product_id FROM order_items;&lt;/pre&gt;
&lt;/pre&gt;
&lt;pre style=&quot;background-color: #f9f9fb; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(217, 217, 226); box-sizing: border-box; font-family: menlo, monaco, &amp;quot;Courier New&amp;quot;, Courier, mono, serif; font-size: 13px; line-height: 1.615; margin-bottom: 1em; overflow: auto; padding: 5px; word-wrap: normal !important;&quot;&gt;
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/6063817840906627260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/15147694/posts/default/6063817840906627260'/><link rel='alternate' type='text/html' href='http://rupamverma.blogspot.com/2017/11/the-union-all-intersect-minus-operators.html' title='The UNION [ALL], INTERSECT, MINUS Operators'/><author><name>Gunjan</name><uri>http://www.blogger.com/profile/05080554073749343687</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>