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"
6
6
export localbankqueueschema=" aquser"
7
7
export banksubscribername=" banka_service"
8
8
export 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}' ) "
10
10
export 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 {
39
39
final String bankdbuser = System .getenv ("bankdbuser" );
40
40
final String bankdbpw = System .getenv ("bankdbpw" );
41
41
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 ";
43
43
44
44
//transfer id is currently just the currentTimeMillis and not persisted
45
45
private Map <String , TransferInformation > transferLedger = new HashMap <>();
Original file line number Diff line number Diff line change @@ -6,23 +6,25 @@ metadata:
6
6
spec :
7
7
8
8
# # DB edition
9
- edition : express
9
+ edition : free
10
+ # # Use only alphanumeric characters for sid
11
+ sid : FREE
10
12
11
13
# # Secret containing SIDB password mapped to secretKey
12
14
adminPassword :
13
15
secretName : %SIDB_ADMIN_PWD_SECRET%
14
16
15
17
# # Database Image
16
18
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
19
21
20
22
# # Persistence is optional for prebuilt DB image
21
23
# # 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"
26
28
27
29
# # Count of Database Pods.
28
30
replicas : 1
Original file line number Diff line number Diff line change 2
2
3
3
database=$1
4
4
password=$2
5
- connection=' XEPDB1 '
5
+ connection=' FREEPDB1 '
6
6
7
7
{
8
- echo " alter session set container=XEPDB1 ;"
8
+ echo " alter session set container=FREEPDB1 ;"
9
9
echo " connect sys/$password @$connection as sysdba"
10
10
cat AdminCreateUsers-SIDBXE.sql
11
11
echo " conn aquser/$password @$connection "
You can’t perform that action at this time.
0 commit comments