Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5ed8a80cf9 | ||
|
|
4d93f45e49 | ||
|
|
2dba253a32 | ||
|
|
531c6f407b | ||
|
|
1f0c66490c | ||
|
|
ba2f2459a2 | ||
|
|
ed42bcb1ca | ||
|
|
29f5ad5b72 | ||
|
|
9e95c3c95f | ||
|
|
e66f735e74 | ||
|
|
f0f338d9a4 | ||
|
|
2d82ee31e5 | ||
|
|
b093e617bf | ||
|
|
5563060ceb | ||
|
|
315eb47b5c | ||
|
|
b3f2099e19 |
@@ -27,7 +27,7 @@ SELECT
|
|||||||
a.mode_status,
|
a.mode_status,
|
||||||
a.state,
|
a.state,
|
||||||
a.redundancy,
|
a.redundancy,
|
||||||
to_char(a.create_date, 'DD/MM/YYYY HH24:MI')
|
to_char(a.create_date, 'DD/MM/YYYY HH24:MI') "Create Date"
|
||||||
FROM
|
FROM
|
||||||
v$asm_disk a,
|
v$asm_disk a,
|
||||||
v$asm_diskgroup dg
|
v$asm_diskgroup dg
|
||||||
|
|||||||
@@ -11,6 +11,24 @@ echo "<pre>"
|
|||||||
ps -ef | grep tnslsnr| grep -v grep
|
ps -ef | grep tnslsnr| grep -v grep
|
||||||
echo "</pre>"
|
echo "</pre>"
|
||||||
|
|
||||||
|
echo "<h2>Statut des listeners :</h2>"
|
||||||
|
ps -ef | grep tnslsnr| grep -v grep | while read l
|
||||||
|
do
|
||||||
|
# Récupérer le chemin du binaire tnslsnr à partir de la sortie de ps
|
||||||
|
binary_path=$(echo $l | awk '{print $8}' | sed 's#/bin/tnslsnr##')
|
||||||
|
# Extraire le nom du listener
|
||||||
|
listener_name=$(echo $l | awk '{print $9}')
|
||||||
|
# Construire la commande lsnrctl status
|
||||||
|
lsnrctl_command="$binary_path/bin/lsnrctl status $listener_name"
|
||||||
|
# exécuter la commande
|
||||||
|
echo "<br><pre>"
|
||||||
|
echo $lsnrctl_command
|
||||||
|
echo export TNS_ADMIN=$binary_path/network/admin
|
||||||
|
export TNS_ADMIN=$binary_path/network/admin
|
||||||
|
eval "$lsnrctl_command"
|
||||||
|
echo "</pre><br>"
|
||||||
|
done
|
||||||
|
|
||||||
echo "<h2>Uptime :</h2>"
|
echo "<h2>Uptime :</h2>"
|
||||||
echo "<pre>"
|
echo "<pre>"
|
||||||
uptime
|
uptime
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ COL Pct_Used FORMAT 999.00 HEAD "% Used"
|
|||||||
|
|
||||||
select
|
select
|
||||||
a.tablespace_name,
|
a.tablespace_name,
|
||||||
|
t.bigfile,
|
||||||
a.bytes_alloc/1024/1024 alloc,
|
a.bytes_alloc/1024/1024 alloc,
|
||||||
(a.bytes_alloc - nvl(b.bytes_free, 0))/1024/1024 used,
|
(a.bytes_alloc - nvl(b.bytes_free, 0))/1024/1024 used,
|
||||||
(nvl(b.bytes_free, 0))/1024/1024 free,
|
(nvl(b.bytes_free, 0))/1024/1024 free,
|
||||||
@@ -77,6 +78,7 @@ where
|
|||||||
union all
|
union all
|
||||||
select
|
select
|
||||||
h.tablespace_name,
|
h.tablespace_name,
|
||||||
|
dt.bigfile,
|
||||||
(sum(h.bytes_free + h.bytes_used))/1024/1024 alloc,
|
(sum(h.bytes_free + h.bytes_used))/1024/1024 alloc,
|
||||||
(sum(nvl(p.bytes_used, 0)))/1024/1024 used,
|
(sum(nvl(p.bytes_used, 0)))/1024/1024 used,
|
||||||
(sum((h.bytes_free + h.bytes_used) - nvl(p.bytes_used, 0)))/1024/1024 free,
|
(sum((h.bytes_free + h.bytes_used) - nvl(p.bytes_used, 0)))/1024/1024 free,
|
||||||
@@ -95,7 +97,8 @@ where
|
|||||||
and h.tablespace_name = dt.tablespace_name
|
and h.tablespace_name = dt.tablespace_name
|
||||||
group by
|
group by
|
||||||
h.tablespace_name,
|
h.tablespace_name,
|
||||||
dt.contents
|
dt.contents,
|
||||||
|
dt.bigfile
|
||||||
order by
|
order by
|
||||||
1
|
1
|
||||||
;
|
;
|
||||||
|
|||||||
2
sql/26_rman_configuration.sql
Normal file
2
sql/26_rman_configuration.sql
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
prompt <h2>Configuration RMAN: pramètres modifiés :</h2>
|
||||||
|
select * from V$RMAN_CONFIGURATION;
|
||||||
Reference in New Issue
Block a user