GithubHelp home page GithubHelp logo

maksymbilenko / docker-oracle-12c Goto Github PK

View Code? Open in Web Editor NEW
682.0 32.0 285.0 75 KB

:whale: Docker image with Oracle Database 12c on board

License: Apache License 2.0

Shell 81.84% Dockerfile 18.16%
linux database docker oracle-db oracle-12c

docker-oracle-12c's People

Contributors

albfan avatar coldserenity avatar computerlyrik avatar d-smith avatar hakan-soysal avatar kstobbel avatar maksymbilenko avatar matthiaslohr avatar viktor-isaev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-oracle-12c's Issues

Docker image not running

% docker run -p 8080:8080 -p 1521:1521 sath89/oracle-12c                                                                                                :(
ls: cannot access /u01/app/oracle/oradata: No such file or directory
Database not initialized. Initializing database.
Starting tnslsnr
Copying database files
1% complete
2% complete
4% complete
DBCA Operation failed.
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/xe/xe.log" for further details.

Used docker run -ti -p 8080:8080 -p 1521:1521 --entrypoint=/bin/bash sath89/oracle-12c to log in and verify there is no /u01/app/oracle/oradata

Also get an error when binding:
% mkdir -p /tmp/oracle/oradata

 % docker run -p 8080:8080 -p 1521:1521 -v /tmp/oracle:/u01/app/oracle sath89/oracle-12c 
Database not initialized. Initializing database.                                              
Starting tnslsnr
Copying database files
1% complete
2% complete
4% complete
DBCA Operation failed.
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/xe/xe.log" for further details.

How to create light weight empty database

How do I modify the script to create empty database

pretty much I am trying to run docker image faster with empty database, then I will run a sql script to create my tables ..etc.

Thanks!

It's a bit weird to express gratitude with an issue, please feel free to close this :).

But I want to really thank you for making this image available. It works really well and saves a lot of unnecessary pain and trouble from setting up the development environment.

Oracle instance without DB creation from template

Maksym, Thank you for the image!

By default container is created with database from template General_Purpose. But I need container to be created without any sample db, so ...
Can I create a container that will be initiated only with my database dump?

Regards,
Mykola.

Error connecting to database from application: ORA-12541: TNS:no listener

I'm trying to connect to the oracle container in a golang project:

I'm using the connection string: "system/[email protected]:1521/xe.oracle.docker".

Note: If I replace "172.0.0.1" with "localhost" I get ORA-21561: OID generation failed.

Here are the logs of my database starting up using the command: "docker run -d -p 8080:8080 -p 1521:1521 sath89/oracle-12c":

    Database not initialized. Initializing database.
    Starting tnslsnr
    Copying database files
    1% complete
    3% complete
    11% complete
    18% complete
    26% complete
    37% complete
    Creating and starting Oracle instance
    40% complete
    45% complete
    50% complete
    55% complete
    56% complete
    60% complete
    62% complete
    Completing Database Creation
    66% complete
    70% complete
    73% complete
    85% complete
    96% complete
    100% complete
    Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/xe/xe.log" for further details.
    Configuring Apex console
    Database initialized. Please visit http://#containeer:8080/em http://#containeer:8080/apex for extra configuration if needed
    Starting web management console

    PL/SQL procedure successfully completed.

    Starting import from '/docker-entrypoint-initdb.d':
    found file /docker-entrypoint-initdb.d//docker-entrypoint-initdb.d/*
    [IMPORT] /entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*

    Import finished

    Database ready to use. Enjoy! ;)

I'm attempting to connect using the following line in go:

db, err := sql.Open("oci8", "system/[email protected]:1521/xe.oracle.docker")

The application panic s which is a golang construct akin to throwing an uncaught exception and I get the following error message:
ORA-12541: TNS:no listener

Unfortunately this is the only error message I get. No more detail.

Googling this suggests editing a file calledtnsnames.ora . I can't see this anywhere in the image.
Issue #14 mentions this file but was closed without any further comments.

Note: I am using the following oracle sql drive for Go: https://github.com/mattn/go-oci8. This project has an issue which references this oracle error message but I can't get any help from it:
mattn/go-oci8#147. As mentioned in the issue, I am doing a db.Ping() which is the point at which I get the error.

Partitioning future missing

On importing dump I got error: ORA-00439: feature not enabled: Partitioning

Could you please enable this future?

Container Database

12c introduced multitenant which is available when started as a container DB. Is it possible to start this as a container db. If so, is it documented anywhere?

Error importing dump

I am trying to import a dump when starting a new instance.
docker run -d -e IMPORT_FROM_VOLUME=true -p 1522:1521 -v /home/ssin/workspace/oracle_data:/u01/app/oracle sath89/oracle-12c

Error in the logs is
chown: changing ownership of '/u01/app/oracle/mydb.dmp': Operation not permitted
chown: changing ownership of '/u01/app/oracle': Operation not permitted

Please suggest on what I might be doing wrong. I am very new to Docker so I might be missing something very basic.

XE?

Am I mistaken -- your title says standard edition, but this is actually the express edition, right?

SYS password

Dear @MaksymBilenko,

After start the container and connect succesfully to the database as SYSTEM with password "oracle", i try to connect as SYS user with the same password as SYSTEM, but i can't access. It seems that the password is not "oracle".

Could you help me?

error while creating a container

$ docker run -d -p 8080:8080 -p 1521:1521 sath89/oracle-12c
51d56f3c691c2f20a80c889eaa08053042f0344d7eabf1493903ee01dbc74a04
[user@alpoor1 dbs]$ docker logs -f 51d56f3c691c2f20a80c889eaa08053042f0344d7eabf1493903ee01dbc74a04
Database not initialized. Initializing database.
ls: cannot access /u01/app/oracle/oradata: No such file or directory
mv: cannot remove '/u01/app/oracle-product/12.1.0/xe/dbs': Directory not empty
Starting tnslsnr
Copying database files
1% complete
2% complete
4% complete
DBCA Operation failed.
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/xe/xe.log" for further details.
[user@alpoor1 dbs]$

No tnsnames.ora file present ?

Hey there, I am an Oracle DB noob..

But shouldn't there be a tnsnames.ora file in $ORACLE_HOME/network/admin ?

I am facing this issue currently:

$ORACLE_HOME/bin/sqlplus system/oracle@localhost:1521/xe AS SYSDBA

SQL*Plus: Release 12.1.0.2.0 Production on Wed Jun 8 15:12:26 2016

Copyright (c) 1982, 2014, Oracle.  All rights reserved.

ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor


Enter user-name:

See also http://stackoverflow.com/a/16049014/1248724

Background:

I need to call $ORACLE_HOME/bin/sqlplus @niceone.sql
In niceone.sql is the following code

CONNECT system/oracle@localhost:1521/xe AS SYSDBA which failes.

UPDATE

bin/sqlplus sys/oracle@localhost:1521/xe.oracle.docker as sysdba

seems to work...

Wrong timzone for MSK

Выглядит так, будто в Оракле из данного образа устаревшие смещения таймзон
Например, если создать поле session_time и писать в него через драйвер com.oracle.jdbc:ojdbc7:12.1.0.2 можно получить смещение +4 относительно UTC
С 2014 года MSK должно быть +3

Описание как обновить
http://sbrazgin.blogspot.ru/2014/10/oracle-2014.html

Look like Orcale in the docker image have outdated timezone data

entrypoint.sh

In the entrypoint.sh script should the line:

chown 664 /etc/oratab

read:

chmod 664 /etc/oratab

Thanks

Adding data volume with Docker for Windows

I'm trying to run
docker run -d -p 8080:8080 -p 1521:1521 -v /c/tmp/ora:/u01/app/oracle sath89/oracle-12c
on Windows 10 with Docker for Windows.

ln: failed to create symbolic link '/u01/app/oracle/product': Operation not supported

Any ideas?

Thank you!

Permission denied

Hi,

I'm trying to run the image on MacOsX.
Docker is running on VirtualBox VM.
I share the /User directory between VirtualBox and my MacBook.
I've created a oracleData directory and grant all permissions.

I run the docker image using this command :

docker run -p "1521:1521" -p "8686:8080" -v /Users/xxxxx/Documents/oracleData:/u01/app/oracle sath89/oracle-12c

I get this error.

ls: cannot access /u01/app/oracle/oradata: No such file or directory
Database not initialized. Initializing database.
Starting tnslsnr
Cannot create directory "/u01/app/oracle/cfgtoollogs/dbca".
Database Configuration Assistant failed to detect options for this Oracle Installation.
/u01/app/oracle/product/12.1.0/xe/dbs/initDBUA5224665.ora (Permission denied)
Due to this failure some Database Configuration Assistant features will not be available. Do you want to continue?
Error writing into silent log -- /u01/app/oracle/cfgtoollogs/dbca/silent.log_2016-07-30_10-52-24-AM (No such file or directory)
The specified shared pool size or SGA size "297MB" does not meet the recommended minimum size requirement "331MB". This will make database creation fail. Do you want to continue?
Error writing into silent log -- /u01/app/oracle/cfgtoollogs/dbca/silent.log_2016-07-30_10-52-24-AM (No such file or directory)

Unique database identifier check passed.
Error writing into silent log -- /u01/app/oracle/cfgtoollogs/dbca/silent.log_2016-07-30_10-52-24-AM (No such file or directory)

/u01/app/oracle/ has enough space. Required space is 6140 MB , available space is 115447 MB.
File Validations Successful.
Error writing into silent log -- /u01/app/oracle/cfgtoollogs/dbca/silent.log_2016-07-30_10-52-24-AM (No such file or directory)
Cannot create directory "/u01/app/oracle/cfgtoollogs/dbca/xe".
Error writing into silent log -- /u01/app/oracle/cfgtoollogs/dbca/silent.log_2016-07-30_10-52-24-AM (No such file or directory)
Error in file copy from </u01/app/oracle/cfgtoollogs/dbca/silent.log_2016-07-30_10-52-24-AM> to </u01/app/oracle/cfgtoollogs/dbca/xe.log>
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/silent.log_2016-07-30_10-52-24-AM" for further details.

Avoid to use volume for oracle

If you remove

VOLUME ["/u01/app/oracle"]

from Dockerfile, it will be not mounted by default (empty) so you can have static databases

  1. Import a dump
  2. save a tag with docker commit
  3. Share image tagged for CI, testing, etc...

albfan@3a9a3b5

Can i reuse a database which was created on Windows?

thanks for your image!

i start a container by this:

docker run -d --name ora -p 8080:8080 -p 1521:1521 -v /home/lorry/Desktop/data:/u01/app/oracle sath89/oracle-12c

logs:

root@ubuntu:/home/lorry/Desktop# docker logs ora
found files in /u01/app/oracle/oradata Using them instead of initial database
ERROR:
ORA-12547: TNS:lost contact



ERROR:
ORA-12547: TNS:lost contact


Starting web management console
ERROR:
ORA-12547: TNS:lost contact


SP2-0306: Invalid option.
Usage: CONN[ECT] [{logon|/|proxy} [AS {SYSDBA|SYSOPER|SYSASM|SYSBACKUP|SYSDG|SYSKM}] [edition=value]]
where <logon> ::= <username>[/<password>][@<connect_identifier>]
      <proxy> ::= <proxyuser>[<username>][/<password>][@<connect_identifier>]
[IMPORT] Not a first start, SKIPPING Import from Volume '/docker-entrypoint-initdb.d'
[IMPORT] If you want to enable import at any state - add 'IMPORT_FROM_VOLUME=true' variable

Database ready to use. Enjoy! ;)

the "data" directory contains this folds:

admin
audit
cfgtoollogs
checkpoints
diag
fast_recovery_area
oradata

Where i am wrong?

mv: cannot remove

Getting the following error starting the container:

> docker logs bf6965fa6896322d3b29863730464203865792dba20ceb5d27504b611b002f72
ls: cannot access /u01/app/oracle/oradata: No such file or directory
Database not initialized. Initializing database.
mv: cannot remove '/u01/app/oracle-product/12.1.0/xe/dbs': Directory not empty

Startup container error

Hi. I tried to run this image and had error in /u01/app/oracle/cfgtoollogs/dbca/xe.log

Unique database identifier check passed.

/u01/app/oracle/ does not have enough space. Required space is 1580 MB , available space is 0 MB.

I run this command:

docker run --name local_oracle_12 -d -p 8090:8080 -p 1521:1521 -v /my/oracle/data:/u01/app/oracle sath89/oracle-12c

What did I do wrong?

Breaking change

Hey there,

It looks like your most recent change to xe is a breaking change, but when we make the change in our codebase we don't have an easy way to codify the fact that other team members need to download the newest image to have it work. Would you mind moving to semver (or similar) so that we can resolve this problem in the future?

Thanks for your work on this project!

Remote connect to Oracle

I'm trying to connect to the Oracle 12c instance created using the docker image. Command i ran:

docker run -d -p 8080:8080 -p 1521:1521 pengbai/docker-oracle-12c-r1

The image runs on a Digital Ocean VM. When i try to connect using SQLDeveloper i get the following error:

Status: Failure -Test failed: IO-error: The Network Adapter could not establish the connection

From my experience, this usually has to do with the hostname settings. Any way to resolve this?

Running with -v on Docker Toolbox fails

Hi.
I'm trying to run on a Windows 7 with Docker Toolbox installed and if i add the -v parameter the Oracle fails to start.
If i remove -v Oracle runs fine.

The command i'm running is:
docker run -v "/c/Users/oracledocker:/u01/app/oracle" -e DBCA_TOTAL_MEMORY=728 oracle

The output is:

Database not initialized. Initializing database.
Starting tnslsnr
Copying database files
1% complete
2% complete
4% complete
12% complete
13% complete
37% complete
Creating and starting Oracle instance
38% complete
41% complete
DBCA Operation failed.
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/xe/xe.log" for further de
tails.

And xe.log is:

Database Configuration Assistant failed to detect options for this Oracle Installation. 
ORA-10997: another startup/shutdown operation of this instance inprogress
ORA-09969: unable to close or remove lock file

Due to this failure some Database Configuration Assistant features will not be available. Do you want to continue?

Unique database identifier check passed.

/u01/app/oracle/ has enough space. Required space is 6140 MB , available space is 44046 MB.
File Validations Successful.
Copying database files
DBCA_PROGRESS : 1%
DBCA_PROGRESS : 2%
ORA-10997: another startup/shutdown operation of this instance inprogress
ORA-09969: unable to close or remove lock file

DBCA_PROGRESS : 4%
ORA-01012: not logged on

ORA-01012: not logged on

DBCA_PROGRESS : 12%
ORA-01012: not logged on

DBCA_PROGRESS : 13%
ORA-01012: not logged on

ORA-01012: not logged on

ORA-01012: not logged on

DBCA_PROGRESS : 37%
Creating and starting Oracle instance
ORA-10997: another startup/shutdown operation of this instance inprogress
ORA-09969: unable to close or remove lock file

DBCA_PROGRESS : 38%
ORA-01012: not logged on

ORA-01012: not logged on

ORA-10997: another startup/shutdown operation of this instance inprogress
ORA-09969: unable to close or remove lock file

DBCA_PROGRESS : 41%
ORA-01081: cannot start already-running ORACLE - shut it down first

ORA-01503: CREATE CONTROLFILE failed
ORA-01565: error in identifying file '/u01/app/oracle/oradata/xe/sysaux01.dbf'
ORA-27037: unable to obtain file status

ORA-01503: CREATE CONTROLFILE failed
ORA-01565: error in identifying file '/u01/app/oracle/oradata/xe/sysaux01.dbf'
ORA-27037: unable to obtain file status

DBCA_PROGRESS : DBCA Operation failed.

Oracle version affected by bugs 20356733/21547130

Hello MaksymBilenko. I've appreciated this docker container immensely. It's helped me a lot for the development of Join Monster. Thanks for you efforts!

I am currently troubled by a regression bug in Oracle that exists in version 12.1.0.2 or later, which I was informed about on my stack overflow question. This bug is detailed here, and there is an existing patch for it: the 12.1.0.2.160419 patch set update.

I do not have an Oracle account, so I believe I have no access to the patch. I was wondering if it would be feasible to build the patch into this container. I'm not sure how difficult that would be. If not feasible, can you offer any insights as to how I might obtain the patch?

Cannot start comitted image. Varchar to 32k?

Hey,

I actually got two issues which are more questions then actual bugs here.

  1. If I start the db (without local files) the files are in the container which is fine as its just a portable testing db. If i start the comitted image again it says:
    ls: cannot access /u01/app/oracle/oradata: No such file or directory Database not initialized. Initializing database. Starting tnslsnr Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/xe.log" for further details.
    Restarting the stopped container works though. Why does it try to reinit the db?

  2. Oracle 12c has support for varchars > 4k which I would like to use. The problem is the database has to be restartet in migration mode. Is it possible to hook this in somewhere in the init? MAX_STRING_SIZE=extended

install oracle db during container build phase

This issue is an improvement :)

The oracle installation is quite long, for me it's better to do it during container build phase

I'm using docker-compose to build and start containers, so after I launch docker-compose down command I have to install oracle again

How to connect using sqlplus?

Hello! Thank you for this image!

Can't connect to it using sqlplus command.

Launched container with:

sudo docker run -d -p 8080:8080 -p 1521:1521 -v ~/project/oracle-data:/u01/app/oracle sath89/oracle-12c

Trying to do:

sqlplus system/oracle@localhost:1521/xe

Getting:

ORA-12514: TNS:listener does not currently know of service requested in connect descriptor.

Also trying via DBeaver GUI:

2015-12-21 10-44-49

If I go to http://localhost:8080/ I will get ERR_CONNECTION_RESET.

Ports are listening:

$ sudo netstat -nltp                                                                                                                                                      
tcp6       0      0 :::8080                 :::*                    LISTEN      5719/docker-proxy
tcp6       0      0 :::1521                 :::*                    LISTEN      5727/docker-proxy

Container is running:

sudo docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS                                            NAMES
56a5acf64004        sath89/oracle-12c   "/entrypoint.sh "   17 minutes ago      Up 17 minutes       0.0.0.0:1521->1521/tcp, 0.0.0.0:8080->8080/tcp   gloomy_poitras

Ubuntu 15.10 x64, freshly installed Docker 1.9.1.

Any other information I can provide to resolve it?

Failure when restarting container

found files in /u01/app/oracle/oradata Using them instead of initial database
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/app/oracle/product/12.1.0/xe/dbs/initxe.ora'
Starting web management console
BEGIN DBMS_XDB.sethttpport(8080); END;

ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0

[IMPORT] Not a first start, SKIPPING Import from Volume '/docker-entrypoint-initdb.d'
[IMPORT] If you want to enable import at any state - add 'IMPORT_FROM_VOLUME=true' variable

Database ready to use. Enjoy! ;)

Change service name from 'xe.oracle.docker' to 'xe'

Hi, need your help with changing the service name. I tried to include a 'listener.ora' and 'tnsnames.ora'. Thanks.

tnsnames.ora:

    xe=
     (description=
         (address_list=
             (address = (protocol = TCP)(host = 127.0.0.1)(port = 1521))
         )
     (connect_data =
         (service_name=xe)
     )
    )

listener.ora:

LISTENER =
    (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
        )
    )

output from lsnrctl status:

root@3b971b8d92f5:/# lsnrctl status

LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 10-JUL-2017 08:47:09

Copyright (c) 1991, 2014, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 12.1.0.2.0 - Production
Start Date                10-JUL-2017 07:55:27
Uptime                    0 days 0 hr. 51 min. 42 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/12.1.0/xe/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/3b971b8d92f5/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=3b971b8d92f5)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=3b971b8d92f5)(PORT=8080))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "xe.oracle.docker" has 1 instance(s).
  Instance "xe", status READY, has 1 handler(s) for this service...
Service "xeXDB.oracle.docker" has 1 instance(s).
  Instance "xe", status READY, has 1 handler(s) for this service...

Extremely slow to start on MacBook pro

My docker version is as below:
Client:
Version: 1.12.6
API version: 1.24
Go version: go1.6.4
Git commit: 78d1802
Built: Wed Jan 11 00:23:16 2017
OS/Arch: darwin/amd64

Server:
Version: 1.12.6
API version: 1.24
Go version: go1.6.4
Git commit: 78d1802
Built: Wed Jan 11 00:23:16 2017
OS/Arch: linux/amd64

I start oracle docker image with following command:
docker run --name oracle -d -p 8080:8080 -p 1521:1521 sath89/oracle-12c

And it takes about 10 minutes to still in the "starting tnslsnr" line for the first time running:
ls: cannot access /u01/app/oracle/oradata: No such file or directory
Database not initialized. Initializing database.
Starting tnslsnr

Anyone knows why this happens? I can start for first time on centos within 10 minutes.

define charset can cause troubles with length

Removing NLS_LANG=.$CHARACTER_SET in impdp succesfully loads a dump. Do you want a PR to allow to disable those sets?

something like -e DEFAULT_CHARSET=false or whatever that works for you

Huge image size

The Oracle 12c image is 5.7GB while the previous xe-11g was just 792MB.
Is there anything we can do to reduce the image size?

Dump import doesn't work

ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 536
ORA-29283: invalid file operation

The reason is directory docker-entrypoint-initdb.d is owned by root, so impdp cannot create log file.
The solution would be to make it owned by oracle user.

APEX not working

Accessing apex using http://localhost:8080/apex redirects to http://localhost:8080/apex/f?p=4550:1:12290676896677 as expected, but results a blank web page.

Most urls (when accessed remotely using http://10.21.8.28:8080/apex) below are resulting HTTP 404 Not found. I suspect apache / HTTP handler config issue. Checking the filesystem in the instance, I see these resources do exist in /u01/app/oracle/product/12.1.0/xe/apex/images/; probably /u01/app/oracle/product/12.1.0/xe/apex/images/ mapping to /i is missing.

f:19 GET http://10.21.8.28:8080/i/css/apex_builder.min.css?v=4.2.5.00.08
f:32 GET http://10.21.8.28:8080/i/libraries/apex/minified/legacy.min.js?v=4.2.5.00.08
f:18 GET http://10.21.8.28:8080/i/libraries/jquery-ui/1.8.22/themes/base/jquery-ui.min.css
f:16 GET http://10.21.8.28:8080/i/css/apex.min.css?v=4.2.5.00.08
f:38 GET http://10.21.8.28:8080/i/libraries/apex/minified/builder.min.js?v=4.2.5.00.08
f:31 GET http://10.21.8.28:8080/i/libraries/apex/minified/desktop_all.min.js?v=4.2.5.00.08
f?p=4550:1:12090530455999:37 GET http://10.21.8.28:8080/i/libraries/apex/minified/widget.textarea.min.js?v=4.2.5.00.08
f?p=4550:1:12090530455999:20 GET http://10.21.8.28:8080/i/css/apex_ui.min.css?v=4.2.5.00.08
f?p=4550:1:12090530455999:31 GET http://10.21.8.28:8080/i/libraries/apex/minified/desktop_all.min.js?v=4.2.5.00.08
f?p=4550:1:12090530455999:32 GET http://10.21.8.28:8080/i/libraries/apex/minified/legacy.min.js?v=4.2.5.00.08
f?p=4550:1:12090530455999:35 Uncaught ReferenceError: apex is not defined
at f?p=4550:1:12090530455999:35
(anonymous) @ f?p=4550:1:12090530455999:35
f?p=4550:1:12090530455999:52 GET http://10.21.8.28:8080/i/apex_ui/apexlogo.png 404 (Not found)
f?p=4550:1:12090530455999:64 GET http://10.21.8.28:8080/i/apex/builder/apex-db-apps.png 404 (Not found)
f?p=4550:1:12090530455999:37 GET http://10.21.8.28:8080/i/libraries/apex/minified/widget.textarea.min.js?v=4.2.5.00.08
f?p=4550:1:12090530455999:77 GET http://10.21.8.28:8080/i/f_spacer.gif 404 (Not found)
f?p=4550:1:12090530455999:38 GET http://10.21.8.28:8080/i/libraries/apex/minified/builder.min.js?v=4.2.5.00.08
f?p=4550:1:12090530455999:110 Uncaught ReferenceError: apex is not defined
at f?p=4550:1:12090530455999:110
(anonymous) @ f?p=4550:1:12090530455999:110
apexlogo.png:1 GET http://10.21.8.28:8080/i/apex_ui/apexlogo.png 404 (Not found)
f_spacer.gif:1 GET http://10.21.8.28:8080/i/f_spacer.gif 404 (Not found)
apex-db-apps.png:1 GET http://10.21.8.28:8080/i/apex/builder/apex-db-apps.png 404 (Not found)

install another database in the docker image

Hi There

Thank you for the docker image you have provided.
Can you please explain how I could install another database for which I have an oracle dump file?

Thank you in advance for your help.

Best Regards

Mehran
Sydney, Australia

Cannot connect with sqlplus

I get ERROR: ORA-12514: TNS:listener does not currently know of service requested in connect descriptoreverytime I try to connect via sqlplus

On my machine I run
docker run --shm-size=1024MB -d -p 8080:8080 -p 1521:1521 sath89/oracle-12c

Logs show:

File Validations Successful.
Copying database files
DBCA_PROGRESS : 1%
DBCA_PROGRESS : 3%
DBCA_PROGRESS : 11%
DBCA_PROGRESS : 18%
DBCA_PROGRESS : 26%
DBCA_PROGRESS : 37%
Creating and starting Oracle instance
DBCA_PROGRESS : 40%
DBCA_PROGRESS : 45%
DBCA_PROGRESS : 50%
DBCA_PROGRESS : 55%
DBCA_PROGRESS : 56%
DBCA_PROGRESS : 60%
DBCA_PROGRESS : 62%
Completing Database Creation
DBCA_PROGRESS : 66%
DBCA_PROGRESS : 70%
DBCA_PROGRESS : 73%
DBCA_PROGRESS : 85%
DBCA_PROGRESS : 96%
DBCA_PROGRESS : 100%
Database creation complete. For details check the logfiles at:
 /u01/app/oracle/cfgtoollogs/dbca/xe.
Database Information:
Global Database Name:xe
System Identifier(SID):xe

When I log onto the docker machine through docker exec -i -t <container_id> bash I can successfully run sqlplus system/oracle@localhost:1521/xe

When I'm on my local machine and try and run that, it cannot connect:
sqlplus system/oracle@//192.168.99.100:1521/xe.oracle.docker or
sqlplus system/oracle@//192.168.99.100:1521/xe or
sqlplus system/[email protected]:1521/xe
all give me the same ORA-12162: TNS:net service name is incorrectly specified error. 192.168.99.100 is my docker-machine ip. Same happens if I try localhost

I can successfully connect to the web portal at http://192.168.99.100:8080/em and login

Any help appreciated

DBCA operation failed... not sure why, can't seem to view the log :(

s5060@DESKTOP-8VTHH4M MINGW64 ~
$ docker run -d -p 8080:8080 -p 1521:1521 sath89/oracle-12c
09179912ff6e6e08226e9e571415994e2ed60fe7cdc58c0d6b52ee87f0b6fd33

s5060@DESKTOP-8VTHH4M MINGW64 ~
$ docker logs -f 09179912ff6e6e08226e9e571415994e2ed60fe7cdc58c0d6b52ee87f0b6fd33
ls: cannot access /u01/app/oracle/oradata: No such file or directory
Database not initialized. Initializing database.
Starting tnslsnr
Copying database files
1% complete
2% complete
4% complete
DBCA Operation failed.
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/xe/xe.log" for further details.

s5060@DESKTOP-8VTHH4M MINGW64 ~
$ less /u01/app/oracle/cfgtoollogs/dbca/xe/xe.log
/u01/app/oracle/cfgtoollogs/dbca/xe/xe.log: No such file or directory

s5060@DESKTOP-8VTHH4M MINGW64 ~

Unable to increase processes in oracle 12 c docker

Am trying to increase processes for oracle 12 c.But i get the following exception
SQL> show parameter processes;

NAME TYPE VALUE


aq_tm_processes integer 1
db_writer_processes integer 1
gcs_server_processes integer 0
global_txn_processes integer 1
job_queue_processes integer 1000
log_archive_max_processes integer 4
processes integer 300
SQL> alter system set processes=500 scope=spfile;
alter system set processes=500 scope=spfile
*
ERROR at line 1:
ORA-65040: operation not allowed from within a pluggable database

[Question] How to run sqlplus with Docker for macOS?

I try command

sqlplus system/oracle@//localhost:1521/xe.oracle.docker

The result:

Last login: Sun Jan  8 14:40:32 on ttys002
➜  ~ env|grep ORACLE_SID
➜  ~ 
➜  ~ exec bash
bash-3.2$ env | grep ORACLE_SID
bash-3.2$ sqlplus system/oracle@//localhost:1521/xe.oracle.docker
bash: sqlplus: command not found
bash-3.2$ 

Cannot connect to in image DB, Strange owners of Files

Hey,

I'm trying to figure out how to start the database, so that all data is cleared when the image stops. However I cannot connect:

docker run -p 8080:8080 -p 1521:1521 -e DBCA_TOTAL_MEMORY=2048 sath89/oracle-12c

Log:

ls: cannot access /u01/app/oracle/oradata: No such file or directory
Database not initialized. Initializing database.
Starting tnslsnr
Copying database files
1% complete
3% complete
11% complete
18% complete
26% complete
37% complete
Creating and starting Oracle instance
40% complete
45% complete
50% complete
55% complete
56% complete
60% complete
62% complete
Completing Database Creation
66% complete
70% complete
73% complete
85% complete
96% complete
100% complete
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/xe/xe.log" for further details.
Configuring Apex console
Database initialized. Please visit http://#containeer:8080/em http://#containeer:8080/apex for extra configuration if needed
Starting web management console

PL/SQL procedure successfully completed.

Database ready to use. Enjoy! ;)

SQLDeveloper test says connection reset after a while. Starting with DB files on Host works except
the directories will change their owner to a user that's not logged in even though I created them with my user. This is just a little strange the database still works.

Docker-compose: Oracle container could not start after stop

I see this error after docker stop and start again and oracle did not start (run docker-compose as root user on centos 7)

# docker -v
Docker version 17.06.0-ce, build 02c1d87
# docker-compose -v
docker-compose version 1.15.0, build e12f3b9
# docker-compose stop
# docker-compose up -d
# docker-compose logs -f

found files in /u01/app/oracle/oradata Using them instead of initial database
rm: cannot remove '/u01/app/oracle-product/12.1.0/xe/dbs': Directory not empty

Here is my docker-compose.yml

oracle:
image: sath89/oracle-12c
container_name: oracle
restart: always
environment:
- CHARACTER_SET=TH8TISASCII
ports:
- 1521:1521
volumes:
- ./database:/u01/app/oracle
- /etc/localtime:/etc/localtime:ro

No UTF 8 with MacOS

When I start the image on MacOS the database is always created with the WE8MSWIN1252 encoding. Is there a way to install it with UTF8?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.