limit rownum

This commit is contained in:
Yacine31
2023-11-12 03:16:05 +01:00
parent 1b9b25d469
commit f159f072f6
2 changed files with 20 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
prompt <h2>lscpu </h2>
prompt <pre>
host lscpu
prompt </pre>
exit
# inventory.xml
ORA_INVENTORY=$(cat /etc/oraInst.loc | grep inventory_loc | cut -d= -f2)
cat $ORA_INVENTORY/ContentsXML/inventory.xml >> ${HTML_FILE}
# opatch
ORA_HOME=$(cat /etc/oratab | egrep -v "^$|^#" | cut -d: -f2 | sort -u)
for OH in ${ORA_HOME}
do
export ORACLE_HOME=${ORA_HOME}; ${ORA_HOME}/OPatch/opatch lspatches >> ${HTML_FILE}
done

View File

@@ -1,7 +1,7 @@
prompt <h2>Memory Resize Operations</h2>
SELECT /*+ NO_MERGE */
*
SELECT *
FROM gv$memory_resize_ops
where rownum <=50
ORDER BY
inst_id,
start_time DESC,