MaksymBilenko / docker-oracle-12c

:whale: Docker image with Oracle Database 12c on board
Apache License 2.0
685 stars 288 forks source link

Can i reuse a database which was created on Windows? #28

Closed lorryrio closed 7 years ago

lorryrio commented 7 years ago

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?

albfan commented 7 years ago

there should be info on cfgtoollogs

MaksymBilenko commented 7 years ago

@godblesslorry There is an issue with Docker + NTFS volumes. Try to use docker volumes like -v volume_name_without_path:/u01/app/oracle