I have put together a comprehensive guide to installing and starting Oracle Database Express Edition on Fedora 33 Linux. I had to cobble this together from numerous sources, and it works. It's not just the installation, it's also getting the database to start with the listener after installation when the machine is rebooted, how to setup a non-system database user, and how to add a connection. I hope this guide is useful to whoever comes across it. There are precious few working guides for Fedora 33 Oracle DB XE 18c and SQLDeveloper setup. Here it is:
How to install and start Oracle Database Express Edition (XE) 18c on Fedora Linux with SQL-Developer IDE
4.3k views Asked by Nicholas Stommel At
2
There are 2 answers
2
iaskakho
On
You cant create a user on the main db as you have it, you have to go into the xepdba1 in order to create a user / schema and then connect there to create tables and insert rows.
I had to install it twice because I had my ENV variables configured for previous software installed caused a mess.
Removed it and installed again, with correct ORACLE_HOME defined.
Related Questions in LINUX
- Two different numbers in an array which their sum equals to a given value
- Given two arrays of positive numbers, re-arrange them to form a resulting array, resulting array contains the elements in the same given sequence
- Time complexity of the algorithm?
- Find a MST in O(V+E) Time in a Graph
- Why k and l for LSH used for approximate nearest neighbours?
- How to count the number of ways of choosing of k equal substrings from a List L(the list of All Substrings)
- Issues with reversing the linkedlist
- Finding first non-repeating number in integer array
- Finding average of an array
- How to check for duplicates with less time in a list over 9000 elements by python
Related Questions in ORACLE
- Two different numbers in an array which their sum equals to a given value
- Given two arrays of positive numbers, re-arrange them to form a resulting array, resulting array contains the elements in the same given sequence
- Time complexity of the algorithm?
- Find a MST in O(V+E) Time in a Graph
- Why k and l for LSH used for approximate nearest neighbours?
- How to count the number of ways of choosing of k equal substrings from a List L(the list of All Substrings)
- Issues with reversing the linkedlist
- Finding first non-repeating number in integer array
- Finding average of an array
- How to check for duplicates with less time in a list over 9000 elements by python
Related Questions in ORACLE-SQLDEVELOPER
- Two different numbers in an array which their sum equals to a given value
- Given two arrays of positive numbers, re-arrange them to form a resulting array, resulting array contains the elements in the same given sequence
- Time complexity of the algorithm?
- Find a MST in O(V+E) Time in a Graph
- Why k and l for LSH used for approximate nearest neighbours?
- How to count the number of ways of choosing of k equal substrings from a List L(the list of All Substrings)
- Issues with reversing the linkedlist
- Finding first non-repeating number in integer array
- Finding average of an array
- How to check for duplicates with less time in a list over 9000 elements by python
Related Questions in SQLPLUS
- Two different numbers in an array which their sum equals to a given value
- Given two arrays of positive numbers, re-arrange them to form a resulting array, resulting array contains the elements in the same given sequence
- Time complexity of the algorithm?
- Find a MST in O(V+E) Time in a Graph
- Why k and l for LSH used for approximate nearest neighbours?
- How to count the number of ways of choosing of k equal substrings from a List L(the list of All Substrings)
- Issues with reversing the linkedlist
- Finding first non-repeating number in integer array
- Finding average of an array
- How to check for duplicates with less time in a list over 9000 elements by python
Related Questions in FEDORA-33
- Two different numbers in an array which their sum equals to a given value
- Given two arrays of positive numbers, re-arrange them to form a resulting array, resulting array contains the elements in the same given sequence
- Time complexity of the algorithm?
- Find a MST in O(V+E) Time in a Graph
- Why k and l for LSH used for approximate nearest neighbours?
- How to count the number of ways of choosing of k equal substrings from a List L(the list of All Substrings)
- Issues with reversing the linkedlist
- Finding first non-repeating number in integer array
- Finding average of an array
- How to check for duplicates with less time in a list over 9000 elements by python
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
INSTALLATION INSTRUCTIONS:
First install Fedora 33 Workstation Edition from a bootable key (to dual-boot, just leave an empty partition you want the OS to reside (recommend shrink space from Disk Management in Windows 10) and select"Automatic Partitioning" in the Fedora installer.
Install Oracle Database 18c Express Edition:
sudo dnf -y install http://mirror.centos.org/centos/7/os/x86_64/Packages/compat-libcap1-1.10-7.el7.x86_64.rpm
sudo dnf -y install http://mirror.centos.org/centos/7/os/x86_64/Packages/compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm
dnf -y install libnsl
curl -o oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm -L https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm
dnf -y install oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm
curl -o oracle-database-xe-18c-1.0-1.x86_64.rpm -L https://download.oracle.com/otn-pub/otn_software/db-express/oracle-database-xe-18c-1.0-1.x86_64.rpm
sudo dnf -y install oracle-database-xe-18c-1.0-1.x86_64.rpm
Configure the database by logging in as root then running:
At the prompt, specify the same password for the
SYS
,SYSTEM
, andPDBADMIN
accounts. Include no special characters and do not place a number at the beginning of the password.Install Java JDK11:
sudo dnf -y install java-11-openjdk-devel java-11-openjdk-jmods java-11-openjdk-src
Add the following lines to the bottom of the home user's
.bashrc
:and use
source .bashrc
Login as oracle user using:
sudo su oracle
Add the following to the end of oracle user's
.bashrc
:and type
source ~/.bashrc
Exit and go to the following site and download sql-developer: https://www.oracle.com/tools/downloads/sqldev-downloads.html
Install the .rpm and run the setup script:
For HiDPI displays, append to
/opt/oracle-sqldeveloper/sqldeveloper/bin/sqldeveloper.conf
the following:AddVMOption -Dsun.java2d.uiScale=2
How to add a non-system database user (so you don't have to see system tables): In a terminal type:
sqlplus sys as sysdba
Enter the lines:
SQL> alter session set "_ORACLE_SCRIPT"=true;
Create a local user called whatever you want. Type the password for the user in the following line after "identified by"
SQL> create user usernamehere identified by passwordhere;
Grant your user admin privileges:
SQL> grant all privileges to usernamehere;
Then exit the command prompt:
SQL> exit;
Now you can connect to your local database in the Oracle SQL Developer IDE. Search for sqldeveloper in the system shell menu. It should start up fine, now you want to add a connection to your local machine database. On the top left side of the IDE window, you should see a label called "Connections" with a green plus sign. Click on the plus sign and you will get a connection prompt. Under "Name" enter a suitable name for your local database. I called mine "LocalDatabase". Avoid using spaces or special characters besides the underscore when naming your database. For "Username" and "Password" enter the username and password you created for your non-system account in the SQL Plus command prompt. Check the "Save Password" box. Keep the Hostname (localhost), Port (1521), and SID (xe) the default values to connect to your local database. At the bottom of the Connection window, click "Test" and it should say Status: Success. Then click the "Save" button and you should see your connection added among those in the Connections window. Click "Connect" and the window will close and you will be successfully connected to the database on your local machine. Congratulations, now you can use Oracle SQL Plus on your own computer!
Restart your machine and follow the instructions at the below for reliably reconnecting to your database.
OPERATION INSTRUCTIONS (AFTER INSTALLATION):
If you have done installation steps already: First you want to start the database service. From your home user account in a terminal, type
sqlplus sys as sysdba
then enter your database password you assigned on installation. At the SQL prompt, enter
SQL> startup
Wait for the database to start, then exit with
SQL> exit
then login as oracle user:
sudo su oracle
And run:
lsnrctl start
Then for the status:
lsnrctl status
Exit to home user then open sqldeveloper and connect successfully to your locally installed database!
That's it, I hope someone finds this useful! :)