File tree Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 1
- FROM ubuntu:14.04.1
1
+ FROM ubuntu:14.04.4
2
2
3
3
MAINTAINER Wei-Ming Wu <wnameless@gmail.com>
4
4
Original file line number Diff line number Diff line change 1
- Copyright [ 2014] [ Wei-Ming Wu]
1
+ Copyright 2014 Wei-Ming Wu
2
2
3
3
Licensed under the Apache License, Version 2.0 (the "License");
4
4
you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change @@ -15,6 +15,11 @@ Run with 22 and 1521 ports opened:
15
15
docker run -d -p 49160:22 -p 49161:1521 wnameless/oracle-xe-11g
16
16
```
17
17
18
+ Run this, if you want the database to be connected remotely:
19
+ ```
20
+ docker run -d -p 49160:22 -p 49161:1521 -e ORACLE_ALLOW_REMOTE=true wnameless/oracle-xe-11g
21
+ ```
22
+
18
23
Connect database with following setting:
19
24
```
20
25
hostname: localhost
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
LISTENERS_ORA=/u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
3
3
4
- cp " ${LISTENERS_ORA} .tmpl" " $LISTENERS_ORA " &&
5
- sed -i " s/%hostname%/$HOSTNAME /g" " ${LISTENERS_ORA} " &&
6
- sed -i " s/%port%/1521/g" " ${LISTENERS_ORA} " &&
4
+ cp " ${LISTENERS_ORA} .tmpl" " $LISTENERS_ORA " &&
5
+ sed -i " s/%hostname%/$HOSTNAME /g" " ${LISTENERS_ORA} " &&
6
+ sed -i " s/%port%/1521/g" " ${LISTENERS_ORA} " &&
7
7
8
8
service oracle-xe start
9
+
10
+ if [ " $ORACLE_ALLOW_REMOTE " = true ]; then
11
+ export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
12
+ export PATH=$ORACLE_HOME /bin:$PATH
13
+ export ORACLE_SID=XE
14
+ echo " alter system disable restricted session;" | sqlplus -s SYSTEM/oracle
15
+ fi
You can’t perform that action at this time.
0 commit comments