Skip to content

Commit f0617da

Browse files
authored
Update README.md
1 parent d3cb00d commit f0617da

File tree

1 file changed

+65
-41
lines changed

1 file changed

+65
-41
lines changed

fa_pg_ora_snap/README.md

Lines changed: 65 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -59,50 +59,74 @@ The code will snapshot that protection group, and then overwrite volumes on the
5959

6060

6161
```
62-
[oracle@gct-oradb-demo-dev01 py]$ python fa_pg_ora_snap.py -f ora_prd01_2_dev01.json -n dec051735 -o open -x
62+
[oracle@gct-oradb-demo-dev01 py]$ python fa_pg_ora_snap.py -f ora_prd01_2_dev01.json -n dec052338 -b -o open -x
6363
============
64-
fa_pg_ora_snap.py 1.9.0 started at 2025-12-05 17:36:23.751697
64+
fa_pg_ora_snap.py 1.9.0 started at 2025-12-05 23:38:03.169537
6565
============
6666
connecting to Flash Array:sn1-x90r2-f06-27.puretec.purestorage.com
6767
connected
6868
============
69-
determining if snapshot dec051735 exists for source pg:gct-oradb-demo-prd01-pg
70-
snapshot dec051735 exists
69+
determining if snapshot dec052338 exists for source pg:gct-oradb-demo-prd01-pg
7170
source protection group:gct-oradb-demo-prd01-pg
7271
target protection group:gct-oradb-demo-dev01-pg
7372
============
7473
setting local oracle sid and home
7574
============
75+
connecting to source database:gct-oradb-demo-prd01:1521/SJC
76+
use backup mode:True
77+
============
78+
reading source database settings
79+
database name: SWINGDB
80+
database id: 4017528888
81+
database time: 2025/12/05 23:38:03
82+
database unique name: SJC
83+
database role: PRIMARY
84+
archivelog mode: ARCHIVELOG
85+
flashback mode: NO
86+
encrypted tablespaces: 0
87+
platform name: Linux x86 64-bit
88+
version: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production,Version 19.22.0.0.0
89+
control_files: +DATA/SWINGDB/CONTROLFILE/current.266.1201708985, +FRA/SJC/CONTROLFILE/current.256.1218830433
90+
db_recovery_file_dest: +FRA
91+
db_recovery_file_dest_size: 34359738368
92+
enable_pluggable_database: FALSE
93+
============
94+
source db begin backup mode
95+
============
96+
creating snapshot for gct-oradb-demo-prd01-pg
97+
============
98+
source db end backup mode
99+
============
76100
querying the volumes for protection group:gct-oradb-demo-prd01-pg
77101
gct-oradb-demo-prd01-data-00
78102
gct-oradb-demo-prd01-data-01
79103
gct-oradb-demo-prd01-fra-00
80104
gct-oradb-demo-prd01-fra-01
81105
============
82-
reading tag from snapshot db_name:SWINGDB
83-
reading tag from snapshot db_id:4017528888
84-
reading tag from snapshot db_time:2025/12/05 17:35:22
85-
reading tag from snapshot db_unique_name:SJC
86-
reading tag from snapshot db_role:PRIMARY
87-
reading tag from snapshot archivelog_mode:ARCHIVELOG
88-
reading tag from snapshot flashback_mode:NO
89-
reading tag from snapshot platform_name:Linux x86 64-bit
90-
reading tag from snapshot encrypted_tablespaces:0
91-
reading tag from snapshot version:Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production,Version 19.22.0.0.0
92-
reading tag from snapshot backup_mode:No
93-
reading tag from snapshot control_files:+DATA/SWINGDB/CONTROLFILE/current.266.1201708985, +FRA/SJC/CONTROLFILE/current.256.1218830433
94-
reading tag from snapshot db_recovery_file_dest:+FRA
95-
reading tag from snapshot db_recovery_file_dest_size:34359738368
96-
reading tag from snapshot enable_pluggable_database:FALSE
97-
reading tag from snapshot asm_disk_group:DATA,FRA
106+
tagging the snapshot: key:db_name val:SWINGDB
107+
tagging the snapshot: key:db_id val:4017528888
108+
tagging the snapshot: key:db_time val:2025/12/05 23:38:03
109+
tagging the snapshot: key:db_unique_name val:SJC
110+
tagging the snapshot: key:db_role val:PRIMARY
111+
tagging the snapshot: key:archivelog_mode val:ARCHIVELOG
112+
tagging the snapshot: key:flashback_mode val:NO
113+
tagging the snapshot: key:platform_name val:Linux x86 64-bit
114+
tagging the snapshot: key:encrypted_tablespaces val:0
115+
tagging the snapshot: key:version val:Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production,Version 19.22.0.0.0
116+
tagging the snapshot: key:backup_mode val:Yes
117+
tagging the snapshot: key:control_files val:+DATA/SWINGDB/CONTROLFILE/current.266.1201708985, +FRA/SJC/CONTROLFILE/current.256.1218830433
118+
tagging the snapshot: key:db_recovery_file_dest val:+FRA
119+
tagging the snapshot: key:db_recovery_file_dest_size val:34359738368
120+
tagging the snapshot: key:enable_pluggable_database val:FALSE
121+
tagging the snapshot: key:asm_disk_group val:DATA,FRA
98122
============
99123
excluded volumes
100124
============
101-
listing the volumes for snapshot:dec051735
102-
name:gct-oradb-demo-prd01-pg.dec051735.gct-oradb-demo-prd01-data-00 size:120.0 GB
103-
name:gct-oradb-demo-prd01-pg.dec051735.gct-oradb-demo-prd01-data-01 size:120.0 GB
104-
name:gct-oradb-demo-prd01-pg.dec051735.gct-oradb-demo-prd01-fra-00 size:40.0 GB
105-
name:gct-oradb-demo-prd01-pg.dec051735.gct-oradb-demo-prd01-fra-01 size:40.0 GB
125+
listing the volumes for snapshot:dec052338
126+
name:gct-oradb-demo-prd01-pg.dec052338.gct-oradb-demo-prd01-data-00 size:120.0 GB
127+
name:gct-oradb-demo-prd01-pg.dec052338.gct-oradb-demo-prd01-data-01 size:120.0 GB
128+
name:gct-oradb-demo-prd01-pg.dec052338.gct-oradb-demo-prd01-fra-00 size:40.0 GB
129+
name:gct-oradb-demo-prd01-pg.dec052338.gct-oradb-demo-prd01-fra-01 size:40.0 GB
106130
============
107131
determining if target instance swingdev is running
108132
target instance is not running
@@ -119,33 +143,33 @@ gct-oradb-demo-dev01-fra-01
119143
============
120144
querying target volume details
121145
name:gct-oradb-demo-dev01-data-00 id:a67641ac-9a36-c375-baf1-298c8a98ffe5 size:120.0
122-
is a target for gct-oradb-demo-prd01-pg.dec051735.gct-oradb-demo-prd01-data-00 size:120.0 GB
146+
is a target for gct-oradb-demo-prd01-pg.dec052338.gct-oradb-demo-prd01-data-00 size:120.0 GB
123147
name:gct-oradb-demo-dev01-data-01 id:ee320b80-0bec-5a70-5032-87565859e10f size:120.0
124-
is a target for gct-oradb-demo-prd01-pg.dec051735.gct-oradb-demo-prd01-data-01 size:120.0 GB
148+
is a target for gct-oradb-demo-prd01-pg.dec052338.gct-oradb-demo-prd01-data-01 size:120.0 GB
125149
name:gct-oradb-demo-dev01-fra-00 id:173bdf4e-5d71-c89d-8e00-9746337999da size:40.0
126-
is a target for gct-oradb-demo-prd01-pg.dec051735.gct-oradb-demo-prd01-fra-00 size:40.0 GB
150+
is a target for gct-oradb-demo-prd01-pg.dec052338.gct-oradb-demo-prd01-fra-00 size:40.0 GB
127151
name:gct-oradb-demo-dev01-fra-01 id:d2680577-4c5f-f094-0a92-98f01e85c7a8 size:40.0
128-
is a target for gct-oradb-demo-prd01-pg.dec051735.gct-oradb-demo-prd01-fra-01 size:40.0 GB
152+
is a target for gct-oradb-demo-prd01-pg.dec052338.gct-oradb-demo-prd01-fra-01 size:40.0 GB
129153
============
130154
determining volume mapping
131-
nm:gct-oradb-demo-prd01-pg.dec051735.gct-oradb-demo-prd01-data-00 src id:a5abc4c3-f199-c026-7c97-a2468e4b5fda map:0 sz:120.0
155+
nm:gct-oradb-demo-prd01-pg.dec052338.gct-oradb-demo-prd01-data-00 src id:a5abc4c3-f199-c026-7c97-a2468e4b5fda map:0 sz:120.0
132156
checking for tag matched volume
133-
volume gct-oradb-demo-prd01-pg.dec051735.gct-oradb-demo-prd01-data-00 will be synced to gct-oradb-demo-dev01-data-00
134-
nm:gct-oradb-demo-prd01-pg.dec051735.gct-oradb-demo-prd01-data-01 src id:6c2937de-c30e-dde0-9613-fb15a06966b3 map:0 sz:120.0
157+
volume gct-oradb-demo-prd01-pg.dec052338.gct-oradb-demo-prd01-data-00 will be synced to gct-oradb-demo-dev01-data-00
158+
nm:gct-oradb-demo-prd01-pg.dec052338.gct-oradb-demo-prd01-data-01 src id:6c2937de-c30e-dde0-9613-fb15a06966b3 map:0 sz:120.0
135159
checking for tag matched volume
136-
volume gct-oradb-demo-prd01-pg.dec051735.gct-oradb-demo-prd01-data-01 will be synced to gct-oradb-demo-dev01-data-01
137-
nm:gct-oradb-demo-prd01-pg.dec051735.gct-oradb-demo-prd01-fra-00 src id:cbda1d30-1313-4b3e-df61-f1fa35957ac3 map:0 sz:40.0
160+
volume gct-oradb-demo-prd01-pg.dec052338.gct-oradb-demo-prd01-data-01 will be synced to gct-oradb-demo-dev01-data-01
161+
nm:gct-oradb-demo-prd01-pg.dec052338.gct-oradb-demo-prd01-fra-00 src id:cbda1d30-1313-4b3e-df61-f1fa35957ac3 map:0 sz:40.0
138162
checking for tag matched volume
139-
volume gct-oradb-demo-prd01-pg.dec051735.gct-oradb-demo-prd01-fra-00 will be synced to gct-oradb-demo-dev01-fra-00
140-
nm:gct-oradb-demo-prd01-pg.dec051735.gct-oradb-demo-prd01-fra-01 src id:feabf082-e2ce-aaa5-b1ea-8adfd586a7c4 map:0 sz:40.0
163+
volume gct-oradb-demo-prd01-pg.dec052338.gct-oradb-demo-prd01-fra-00 will be synced to gct-oradb-demo-dev01-fra-00
164+
nm:gct-oradb-demo-prd01-pg.dec052338.gct-oradb-demo-prd01-fra-01 src id:feabf082-e2ce-aaa5-b1ea-8adfd586a7c4 map:0 sz:40.0
141165
checking for tag matched volume
142-
volume gct-oradb-demo-prd01-pg.dec051735.gct-oradb-demo-prd01-fra-01 will be synced to gct-oradb-demo-dev01-fra-01
166+
volume gct-oradb-demo-prd01-pg.dec052338.gct-oradb-demo-prd01-fra-01 will be synced to gct-oradb-demo-dev01-fra-01
143167
============
144168
mapping the volumes
145-
gct-oradb-demo-prd01-pg.dec051735.gct-oradb-demo-prd01-data-00 will be syncd to gct-oradb-demo-dev01-data-00
146-
gct-oradb-demo-prd01-pg.dec051735.gct-oradb-demo-prd01-data-01 will be syncd to gct-oradb-demo-dev01-data-01
147-
gct-oradb-demo-prd01-pg.dec051735.gct-oradb-demo-prd01-fra-00 will be syncd to gct-oradb-demo-dev01-fra-00
148-
gct-oradb-demo-prd01-pg.dec051735.gct-oradb-demo-prd01-fra-01 will be syncd to gct-oradb-demo-dev01-fra-01
169+
gct-oradb-demo-prd01-pg.dec052338.gct-oradb-demo-prd01-data-00 will be syncd to gct-oradb-demo-dev01-data-00
170+
gct-oradb-demo-prd01-pg.dec052338.gct-oradb-demo-prd01-data-01 will be syncd to gct-oradb-demo-dev01-data-01
171+
gct-oradb-demo-prd01-pg.dec052338.gct-oradb-demo-prd01-fra-00 will be syncd to gct-oradb-demo-dev01-fra-00
172+
gct-oradb-demo-prd01-pg.dec052338.gct-oradb-demo-prd01-fra-01 will be syncd to gct-oradb-demo-dev01-fra-01
149173
============
150174
The Oracle base has been set to /u01/app/oracle
151175
--------------------------------------------------------------------------------

0 commit comments

Comments
 (0)