Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:oracle [2024/10/13 04:11] – [Oracle DB Demo Database] darron | tools:oracle [2024/10/13 22:26] (current) – [Resources] darron | ||
---|---|---|---|
Line 1: | Line 1: | ||
====Oracle==== | ====Oracle==== | ||
- | This is a demo install of Oracle Database Server 21c and 23c on Oracle Linux 8. | + | This is a demo install of Oracle Database Server 21c, 23c and 23ai on Oracle Linux. |
===Environment=== | ===Environment=== | ||
Line 9: | Line 9: | ||
===Operating system=== | ===Operating system=== | ||
- | Oracle Linux 8 is preferred since version | + | Use Oracle Linux 8.10 for Oracle Database 21c or 23c and Oracle Linux 9.4 for Oracle |
- | by Oracle | + | |
[[https:// | [[https:// | ||
- | ==Oracle Linux 8.5== | + | ==Oracle Linux 8.10== |
- | + | ||
- | OracleLinux-R8-U5-x86_64-dvd.iso | + | |
- | + | ||
- | ==Oracle Linux 8.9== | + | |
- | + | ||
- | OracleLinux-R8-U9-x86_64-dvd.iso | + | |
- | + | ||
- | ==Oracle Linux 9.3== | + | |
- | + | ||
- | OracleLinux-R9-U3-x86_64-dvd.iso | + | |
+ | [[https:// | ||
==Oracle Linux 9.4== | ==Oracle Linux 9.4== | ||
Line 75: | Line 65: | ||
===Firewall=== | ===Firewall=== | ||
- | Disable the firewall | + | Disable the firewall |
< | < | ||
Line 360: | Line 350: | ||
| | ||
</ | </ | ||
+ | |||
+ | __Listener__ | ||
+ | |||
+ | Edit the .ora files in the following directory and change the hostname to 0.0.0.0 | ||
< | < | ||
Line 365: | Line 359: | ||
</ | </ | ||
- | Edit the .ora files and change the hostname to 0.0.0.0. | + | |
===Oracle DB Systemd=== | ===Oracle DB Systemd=== | ||
==23c== | ==23c== | ||
+ | |||
+ | __Stop__ | ||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | |||
__Start__ | __Start__ | ||
Line 383: | Line 383: | ||
==23ai== | ==23ai== | ||
+ | |||
+ | __Stop__ | ||
+ | < | ||
+ | / | ||
+ | </ | ||
__Start__ | __Start__ | ||
Line 564: | Line 569: | ||
SQL> | SQL> | ||
</ | </ | ||
- | ===Oracle DB Setup==== | + | ===Oracle DB Setup (optional) |
==23c or 23ai== | ==23c or 23ai== | ||
Line 856: | Line 861: | ||
GRANT CREATE SESSION TO dbuser CONTAINER=CURRENT; | GRANT CREATE SESSION TO dbuser CONTAINER=CURRENT; | ||
GRANT CREATE TABLE TO dbuser CONTAINER=CURRENT; | GRANT CREATE TABLE TO dbuser CONTAINER=CURRENT; | ||
+ | GRANT CREATE TYPE TO dbuser | ||
+ | GRANT CREATE PROCEDURE TO dbuser CONTAINER=CURRENT; | ||
ALTER USER dbuser QUOTA UNLIMITED ON USERS CONTAINER=CURRENT; | ALTER USER dbuser QUOTA UNLIMITED ON USERS CONTAINER=CURRENT; | ||
</ | </ | ||
Line 940: | Line 947: | ||
<?php | <?php | ||
/* | /* | ||
- | * PHP test for Oracle | + | * PHP test for Oracle |
*/ | */ | ||
Line 948: | Line 955: | ||
* Connect to PDB | * Connect to PDB | ||
*/ | */ | ||
- | $con = oci_connect(' | + | $con = oci_connect(' |
if ($con === false) | if ($con === false) | ||
die(" | die(" | ||
Line 1040: | Line 1047: | ||
[[https:// | [[https:// | ||
+ | [[https:// | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[https:// |