You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Connect to your instance (using SSH), find the database pod with the following command: `kubectl get pods --all-namespaces`.
155
+
156
+
In the `oracle-database-operator-system` namespace, look for a pods like `free-XXXX`.
157
+
158
+
* Access to DB instance with the following command: `kubectl exec -it -n oracle-database-operator-system free-XXXX -- /bin/sh`
159
+
160
+
* Login as sysdba to create the user `account` that will be used in Module 3:
161
+
162
+
```sql
163
+
sqlplus / as sysdba
164
+
ALTER SESSION SET CONTAINER = freepdb1;
165
+
CREATE TABLESPACE users DATAFILE '/opt/oracle/oradata/FREE/FREEPDB1/users.dbf' SIZE 100M AUTOEXTEND ON NEXT 10M MAXSIZE 500M;
166
+
CREATE USER account IDENTIFIED BY Welcome1234## DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp;
167
+
```
168
+
169
+
This step replaces the steps from 1 to 4 in the task [**Account Microservices/Prepare Database Objects**](../../content/account/prepare-database.md).
170
+
In the step 5 of [Prepare Database Objects](../../content/account/prepare-database.md), skip the command: `create user account identified by "Welcome1234##";` and execute all the rest, since the user account has been already created.
171
+
172
+
If you need to access the db from an ssh connection, these are the commands to get `username` and `password`:
* Add an **Add Ingress Rules** in the VCN security list belonging with your VM for the `6443` port, to allow the `kubectl` connection from your desktop.
211
+
212
+
* On your desktop create an alias, to use the downloaded context to connect the remote Kubernetes, resolving the certificate issue:
213
+
214
+
```sh
215
+
alias k='export KUBECONFIG=<YOUR_DIR>/context-config.yaml; kubectl --insecure-skip-tls-verify'
216
+
```
217
+
218
+
In this way, any other `kubectl` commands in the rest of documentation can be executed as well, simply replacing `kubectl` with `k` if you are using the provisioning procedure shown so far.
0 commit comments