@@ -17,32 +17,12 @@ yum -y localinstall oracle-database*
17
17
18
18
/etc/init.d/oracle-free-23c configure
19
19
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.
31
21
32
22
systemctl enable oracle-free-23c
33
23
firewall-cmd --permanent --add-port=1521/tcp
34
24
firewall-cmd --reload
35
25
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
-
46
26
=========Install python =========
47
27
48
28
-- We need python 3.7 or higher. We install python3.11
@@ -55,7 +35,19 @@ update-alternatives --config python3
55
35
-- Install pip and Oracle Driver for python: oracledb
56
36
yum install python3.11-pip
57
37
python -m pip install oracledb --upgrade
38
+ exit
58
39
40
+ 4.- Set environment variables to use sqlplus
59
41
42
+ echo 'export ORACLE_HOME=/opt/oracle/product/23c/dbhomeFree' >> .bashrc
43
+ echo 'export PATH=$ORACLE_HOME/bin:$PATH' >> .bashrc
44
+ . .bashrc
60
45
46
+ ========== Create new user for 23c ==============
47
+ === PLEASE CHANGE YOUR_PASSWORD TO A REAL PASSWORD! ===
61
48
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