Skip to content

Commit 95f42d2

Browse files
Update lab1_prepare_environment.txt
removed cd root (better home) and reordered the steps
1 parent 6540651 commit 95f42d2

File tree

1 file changed

+13
-21
lines changed

1 file changed

+13
-21
lines changed

data-platform/autonomous-database/autonomous-json/python-duality-views/files/lab1_prepare_environment.txt

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,12 @@ yum -y localinstall oracle-database*
1717

1818
/etc/init.d/oracle-free-23c configure
1919

20-
21-
22-
3.- Set environment variables to use sqlplus
23-
24-
cd /root
25-
echo 'export ORACLE_HOME=/opt/oracle/product/23c/dbhomeFree' >> .bashrc
26-
echo 'export PATH=$ORACLE_HOME/bin:$PATH' >> .bashrc
27-
. .bashrc
28-
29-
30-
4.- Enable firewall and automatic start of 23c Database.
20+
3.- Enable firewall and automatic start of 23c Database.
3121

3222
systemctl enable oracle-free-23c
3323
firewall-cmd --permanent --add-port=1521/tcp
3424
firewall-cmd --reload
3525

36-
37-
========== Create new user for 23c ==============
38-
=== PLEASE CHANGE YOUR_PASSWORD TO A REAL PASSWORD ! ===
39-
40-
sqlplus sys/YOUR_PASSWORD@localhost:1521/FREEPDB1 as sysdba
41-
create user myapp identified by YOUR_PASSWORD;
42-
grant db_developer_role to myapp;
43-
alter user myapp quota unlimited on users;
44-
exit;
45-
4626
=========Install python =========
4727

4828
-- We need python 3.7 or higher. We install python3.11
@@ -55,7 +35,19 @@ update-alternatives --config python3
5535
-- Install pip and Oracle Driver for python: oracledb
5636
yum install python3.11-pip
5737
python -m pip install oracledb --upgrade
38+
exit
5839

40+
4.- Set environment variables to use sqlplus
5941

42+
echo 'export ORACLE_HOME=/opt/oracle/product/23c/dbhomeFree' >> .bashrc
43+
echo 'export PATH=$ORACLE_HOME/bin:$PATH' >> .bashrc
44+
. .bashrc
6045

46+
========== Create new user for 23c ==============
47+
=== PLEASE CHANGE YOUR_PASSWORD TO A REAL PASSWORD! ===
6148

49+
sqlplus sys/YOUR_PASSWORD@localhost:1521/FREEPDB1 as sysdba
50+
create user myapp identified by YOUR_PASSWORD;
51+
grant db_developer_role to myapp;
52+
alter user myapp quota unlimited on users;
53+
exit;

0 commit comments

Comments
 (0)