File tree Expand file tree Collapse file tree 4 files changed +13
-11
lines changed
src/main/java/com/cloudbank/springboot/transfers Expand file tree Collapse file tree 4 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ export localbankqueuename="BANKAQUEUE"
66export localbankqueueschema=" aquser"
77export banksubscribername=" banka_service"
88export bankdbuser=" bankauser"
9- export bankdburl=" jdbc:oracle:thin:@//$( kubectl get singleinstancedatabase cbtransfer01 -o jsonpath=' {.status.pdbConnectString}' ) "
9+ export bankdburl=" jdbc:oracle:thin:@//$( kubectl -n cloudbank get singleinstancedatabase cbtransfer01 -o jsonpath=' {.status.pdbConnectString}' ) "
1010export bankdbpw=" $( state_get .lab.fixed_demo_user_credential) "
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public class TransferController {
3939 final String bankdbuser = System .getenv ("bankdbuser" );
4040 final String bankdbpw = System .getenv ("bankdbpw" );
4141 final String bankdburl = System .getenv ("bankdburl" );
42- // bankdburl example: "jdbc:oracle:thin:@//<ip_address>:1521/XEPDB1 ";
42+ // bankdburl example: "jdbc:oracle:thin:@//<ip_address>:1521/FREEPDB1 ";
4343
4444 //transfer id is currently just the currentTimeMillis and not persisted
4545 private Map <String , TransferInformation > transferLedger = new HashMap <>();
Original file line number Diff line number Diff line change @@ -6,23 +6,25 @@ metadata:
66spec :
77
88 # # DB edition
9- edition : express
9+ edition : free
10+ # # Use only alphanumeric characters for sid
11+ sid : FREE
1012
1113 # # Secret containing SIDB password mapped to secretKey
1214 adminPassword :
1315 secretName : %SIDB_ADMIN_PWD_SECRET%
1416
1517 # # Database Image
1618 image :
17- pullFrom : container-registry.oracle.com/database/express :latest
18- prebuiltDB : true
19+ pullFrom : container-registry.oracle.com/database/free :latest
20+ prebuiltDB : false
1921
2022 # # Persistence is optional for prebuilt DB image
2123 # # if specified, the prebuilt DB datafiles are copied over to the persistant volume before DB startup
22- # persistence:
23- # size: 50Gi
24- # storageClass: "oci-bv"
25- # accessMode: "ReadWriteOnce"
24+ persistence :
25+ size : 50Gi
26+ storageClass : " oci-bv"
27+ accessMode : " ReadWriteOnce"
2628
2729 # # Count of Database Pods.
2830 replicas : 1
Original file line number Diff line number Diff line change 22
33database=$1
44password=$2
5- connection=' XEPDB1 '
5+ connection=' FREEPDB1 '
66
77{
8- echo " alter session set container=XEPDB1 ;"
8+ echo " alter session set container=FREEPDB1 ;"
99 echo " connect sys/$password @$connection as sysdba"
1010 cat AdminCreateUsers-SIDBXE.sql
1111 echo " conn aquser/$password @$connection "
You can’t perform that action at this time.
0 commit comments