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 best solutions below
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
- Is there some way to use printf to print a horizontal list of decrementing hex digits in NASM assembly on Linux
- Why does Hugo generate different taxonomy-related HTML on different OS's?
- Writes in io_uring do not advance the file offset
- Why `set -o pipefail` gives different output even though the pipe is not failing
- what really controls the permissions: UID or eUID?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Docker container unable to make HTTPS requests to external API
- Whow to use callback_query_handler in Python 3.10
- Create kea runtime directory at startup in Yocto image
- Problem on CPU scheduling algorithms in OS
- How to copy files into the singularity sandbox?
- Android kernel error: undefined reference to `get_hw_version_platform'
- Is there a need for BPF Linux namespace?
- Error when trying to execute a binary compiled in a Kali Linux machine on an Ubuntu system
- Issue with launching application after updating ElectronJs to version 28.0.0 on Windows and Linux
Related Questions in ORACLE
- sqlplus myusername/mypassword@ORCL not working with Oracle on Docker
- Oracle setting up on k8s cluster using helm charts enterprise edition
- Oracle Managed Data Access Client can't work from IIS but work for local debug environment
- If composite indexing created - indexing is called?
- Oracle Http server ISNT-07551
- why here not creating table?
- Data migration from Oracle Database Clob to GCP Bucket
- SQL Alchemy custom type, forcing blob bind parameter
- How to send message to syslog agent in plsql
- Whatever the data available in previous record it should add to the new record
- I have an Oracle SQL query that is giving me a "ORA-00918: column ambiguously defined" error on a line that is a comment line
- 'ORA-12170: TNS:Connect timeout occurredORA-12170: TNS:Connect timeout occurred' ERROR while working on oracle with laravel
- Is their any way i can open parallel query tabs
- VSCode Libraries not showing for New Java Project
- I can't ssh to my instance, Connection refused
Related Questions in ORACLE-SQLDEVELOPER
- Is their any way i can open parallel query tabs
- How to protect client secret in REST API call in Oracle Autonomous Database
- Difference between an "IS" or "AS" function/procedure declaration PL/SQL
- how can i fix the sql developer 'No TNS entries found' error?
- Inconsistent data type error: expected Date got Number
- Non English character support in Oracle SQL Developer
- SQL developer connection password forgot
- connection tab does not appear
- What formula to use in OTBI to compare two columns, then derive the joined value from a third column?
- Checking specific column in data source created of multiple tables
- Oracle SQL Developer - looping/debugging cursor behavior
- Connection to a user from RunSQL Issue
- What does sqlcl_int_runme dropped do?
- CHAR_AT function ends up with special characters
- Why doesn't the REF function in SQL return a reference, but an object instance in Oracle sql developer?
Related Questions in SQLPLUS
- sqlplus myusername/mypassword@ORCL not working with Oracle on Docker
- Editor in SQLPLUS gives error when changing default editor
- sqlplus pointing to libclntsh.so.21.1 which does not exists in $ORACLE_HOME/lib
- SP2-0734:Unknown command beginning "CONSTRAINT..."
- I am not able to understand why I am getting this type of an output in SQLPlus. If someone could help me out with this it would be great
- How to add new line in sqlplus within a bash script?
- can't login via sqlplus command but manual login works
- Error appearing while creating a table in my class in oracle 21c
- Does PostgreSQL have a feature like 'Ampersand Substitution' in SQL*Plus?
- Oracle - Load local/client file to blob column
- Merge statement into table creates duplicates?
- Running .sql script file from sqlplus succeeds, but passing the sql string as standard input of sqlplus fails with SQL> SP2-0734 in powershell
- Check oracle db mode as another user faling
- ERROR: ORA-12154: TNS:could not resolve the connect identifier specified (First time installation)
- Remove initial and trailing blank line in SQL *Plus SPOOL (SET MARKUP CSV)
Related Questions in FEDORA-33
- Installing ibus-avro in Fedora 35
- Webpack4 in 2021 : compiling the evm decompiler Nodejs package without getting lots of compile error because webpack5 became available
- Log install and compilation
- gcc on Fedora 32: How is it supposed to be "configured?"? That is, where are the files expected, etc?
- Unable to delete network bridges on Fedora 33 & Docker
- Mongod command shows error on Fedora33 OS
- How to install and start Oracle Database Express Edition (XE) 18c on Fedora Linux with SQL-Developer IDE
- Fedora touchpad drivers not working on lenovo laptop
- Laravel install on Fedora 33
- tkinter iconbitmap don't work and wm_iconbitmap also don't work
- Is there a way to fix all permissions of the directory on Fedora?
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)
Popular # Hahtags
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?
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.rpmsudo dnf -y install http://mirror.centos.org/centos/7/os/x86_64/Packages/compat-libstdc++-33-3.2.3-72.el7.x86_64.rpmdnf -y install libnslcurl -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.rpmdnf -y install oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpmcurl -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.rpmsudo dnf -y install oracle-database-xe-18c-1.0-1.x86_64.rpmConfigure the database by logging in as root then running:
At the prompt, specify the same password for the
SYS,SYSTEM, andPDBADMINaccounts. 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-srcAdd the following lines to the bottom of the home user's
.bashrc:and use
source .bashrcLogin as oracle user using:
sudo su oracleAdd the following to the end of oracle user's
.bashrc:and type
source ~/.bashrcExit 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.confthe following:AddVMOption -Dsun.java2d.uiScale=2How to add a non-system database user (so you don't have to see system tables): In a terminal type:
sqlplus sys as sysdbaEnter 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 sysdbathen enter your database password you assigned on installation. At the SQL prompt, enter
SQL> startupWait for the database to start, then exit with
SQL> exitthen login as oracle user:
sudo su oracleAnd run:
lsnrctl startThen for the status:
lsnrctl statusExit to home user then open sqldeveloper and connect successfully to your locally installed database!
That's it, I hope someone finds this useful! :)