Comments (6)
Have solved an issue by using --mount. Unfortunately for a some reason it did not work from Windows and i had to run the command for the first time directly from docker VM.
docker run -d
-p 32118:1521
-p 35518:5500
-e ORACLE_PWD=Oracle18
--name=oracle-xe
--mount source=oracle-xe,target=/opt/oracle/oradata,volume-driver=local
--network=oracle_network
oracle-xe:18c
from docker-oracle-xe.
This is based on how it was implemented in the official Docker image from Oracle. The ORACLE_HOME
is not mounted on host and hence, any changes would not be preserved if the container was destroyed and re-created. Unfortunately, I will have to reject this PR and find a different solution.
from docker-oracle-xe.
I tried with the same but parameter -e ORACLE_PWD=...
does not seem to have any effect.
Not a single clue what the password for sys
or system
is and how to use the DB.
Even worse when entering the docker container I can not logon to reset pwd:
sh-4.2# cd /opt/oracle/product/18c/dbhomeXE/
sh-4.2# ./bin/sqlplus / as sysdba
SQL*Plus: Release 18.0.0.0.0 - Production on Tue Nov 26 17:08:54 2019
Version 18.4.0.0.0
Copyright (c) 1982, 2018, Oracle. All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied
Enter user-name: system
Enter password:
ERROR:
ORA-01017: invalid username/password; logon denied
I had the same running on my macbook before but somehow my APFS got corrupted and I had to format my disc and restart from scratch. As my docker mount before was on /data
and I now have catalina I can not reuse my time-machine backup for docker as the root FS is now read-only and prevents creating /data
(even as symlink). So I had to reinstall from scratch. Now I have an empty Oracle XE running in Docker but can neither connect as my password supplied as ORACLE_PWD does not seem to be the sys
or system
password and I do not know it nor can I reset PWD.
from docker-oracle-xe.
Also tried Oradoc_db1
and XEPDB1
as passwords cause I found those in your sources. Did not work either...
from docker-oracle-xe.
OK. Need to be oracle user and use this command instead:
[oracle@27b79a603a8e dbhomeXE]$ ./bin/sqlplus sys/Oracle18@localhost/XE as sysdba
from docker-oracle-xe.
@hohwille Can one script the change of the password so that an app can login? - I want to run OracleXE in an automated test. The passwrod seems to be set using the environment variable ORACLE_PASSWORD
in the Dockerfile
. Still having troubles to connect using Oracle's JDBC. --> Discussed at https://stackoverflow.com/q/10101517/873282
from docker-oracle-xe.
Related Issues (20)
- How access to APEX after instalination?
- Installing Oracle 18c XE fails on fresh install of Oracle Linux 7.6 UEK5 HOT 1
- Database creation fails HOT 1
- Encountered end of file HOT 1
- Oracle listener does not recognize the XEPDB1 HOT 1
- Install without Pluggable DB and other SID HOT 1
- can't log in as Apex admin HOT 1
- Installation fails due to sga_target being too small HOT 2
- Very slow startup time HOT 1
- Add password & user credentials HOT 1
- Database exists
- no SPFILE is in use
- Can't install Apex
- Totally NOOB question...
- Oracle seems to be very slow
- Build got stuck
- Error in PREIN scriptlet in rpm package oracle-database-xe-18c-1.0-1.x86_64
- 2/2 Error unpacking rpm package oracle-database-xe-18c-1.0-1.x86_64 HOT 1
- Building an image with data from existing DB HOT 1
- Using docker-compose cant't expose 1521 as 31221 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-oracle-xe.