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
- How do I recursively find and replace only in files named index.php on Linux webserver?
- passing text with \n as one argument in shell
- kernel module does not print packet info
- How to send ESC/POS commands to thermal printer in Linux
- (x64 Nasm) Writeline function on Linux
- How do I set the Hive user to something different than the Spark user from within a Spark program?
- Default priority of thread with SCHED_FIFO
- Calling a python function with options from shell script
- How to split a directory into parts without compressing or archiving?
- Cross compile simple standard C program on Linux for Mac
- How to offload NAPI poll function to workqueue
- python netifaces - How to get currently used network interface
- Unexpected output from function
- mingw-64 conflicting declarations when cross-compiling
- Different behavior of async with Visual Studio 2013(Windows8.1) and GCC 4.9(Ubuntu14.10)
Related Questions in ORACLE
- Column displays each count
- MAX and GROUP BY - SQL
- Best Practice for adding columns to a Table in Oracle database
- Updating an Oracle row with value from same row
- Retrieving data from Oracle database
- Ibatis execute update sql on oracle, it is not working and no exceptions
- Building an sql execution plan history
- Implementation of Rank and Dense Rank in MySQL
- how to update the date field for this specific condition using oracle query?
- Oracle stored procedure wrapping compile error with inline comments
- Android: How to connect oracle database using Android Java code?
- SQL Conditional Join on Columns
- Multi value wildcard search in ibatis
- Get count of consecutive days meeting a given criteria
- How to update the metadata of a layer in Oracle imported through FME Workbench?
Related Questions in ORACLE-SQLDEVELOPER
- Android: How to connect oracle database using Android Java code?
- Insert Into SP in Oracle Sql Developer
- Oracle 11g : staging table
- add time (char(8)) to date column
- How can I solve "Got minus one from a read call" in oracle sql developer?
- Call procedure using anonymous block in pl/sql?
- SQL - missing keyword in case when syntax
- String conversion to time
- Return multiple rows from a stored procedure
- Sql Developer conditions from Excel
- SQL - Select multiple fields from multiple tables
- executing a stored proc with output parameter
- Differences in these 2 query
- Select max value from different column in a row in oracle database
- Oracle declaring and Using Dates
Related Questions in SQLPLUS
- Ignoring User Exists Error in Oracle
- In Oracle 11g how do you time weight average data hourly between two dates?
- ORA-06502 Error Only in SQLPLUS
- Connect to two DB using Oracle wallet without TNS_ADMIN path change
- Which tables do not have indexes in Oracle?
- Why is SPOOL writing my output with LINESIZE set to 32767?
- accented letters and sql plus/AIX
- How to know what SETS are ON in SQL PLUS?
- Installing rlwrap on linux - without root permission
- Hide SQL > statements in the spool file
- SQL*Plus spool only data and exclude errors
- Recover error WshShell.exec
- How to log queries taking long time
- How to specify tablespace_name in SQLPlus Oracle select
- Write to a file in PL/SQL without spools or utl_file
Related Questions in FEDORA-33
- Mongod command shows error on Fedora33 OS
- Unable to delete network bridges on Fedora 33 & Docker
- Is there a way to fix all permissions of the directory on Fedora?
- Webpack4 in 2021 : compiling the evm decompiler Nodejs package without getting lots of compile error because webpack5 became available
- tkinter iconbitmap don't work and wm_iconbitmap also don't work
- Installing ibus-avro in Fedora 35
- Laravel install on Fedora 33
- Fedora touchpad drivers not working on lenovo laptop
- How to install and start Oracle Database Express Edition (XE) 18c on Fedora Linux with SQL-Developer IDE
- gcc on Fedora 32: How is it supposed to be "configured?"? That is, where are the files expected, etc?
- Log install and compilation
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 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! :)