16 Commits
v1701 ... v0202

Author SHA1 Message Date
Yacine31
5ed8a80cf9 Update 20a_tbs_details.sql 2024-02-02 03:11:51 +01:00
Yacine31
4d93f45e49 Update 01_asm.sql 2024-02-02 01:47:43 +01:00
Yacine31
2dba253a32 Update 09_os_info.sh 2024-02-02 00:52:28 +01:00
Yacine31
531c6f407b Update 09_os_info.sh 2024-02-02 00:50:31 +01:00
Yacine31
1f0c66490c Update 09_os_info.sh 2024-02-02 00:48:15 +01:00
Yacine31
ba2f2459a2 Update 09_os_info.sh 2024-02-02 00:45:55 +01:00
Yacine31
ed42bcb1ca Update 09_os_info.sh 2024-02-02 00:43:51 +01:00
Yacine31
29f5ad5b72 Delete 11_listener.sh 2024-02-02 00:24:46 +01:00
Yacine31
9e95c3c95f update listener status 2024-02-02 00:24:23 +01:00
Yacine31
e66f735e74 Update 11_listener.sh 2024-02-02 00:11:20 +01:00
Yacine31
f0f338d9a4 Update 09_os_info.sh 2024-02-02 00:10:56 +01:00
Yacine31
2d82ee31e5 Create 11_listener.sh 2024-02-02 00:09:35 +01:00
Yacine31
b093e617bf Update 09_os_info.sh 2024-02-02 00:04:18 +01:00
Yacine31
5563060ceb Update 09_os_info.sh 2024-02-02 00:03:00 +01:00
Yacine31
315eb47b5c Update 09_os_info.sh
ajout de lsnrctl status
2024-02-01 23:58:56 +01:00
Yacine31
b3f2099e19 Create 26_rman_configuration.sql 2024-01-23 18:51:42 +01:00
4 changed files with 25 additions and 2 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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
; ;

View File

@@ -0,0 +1,2 @@
prompt <h2>Configuration RMAN: pramètres modifiés :</h2>
select * from V$RMAN_CONFIGURATION;