After a while, I found this configuration works (at least the connection between Host and Guest) :
- After installing Virtualbox, an extra networking device appears : VirtualBox Host-only Network (1)
(see Control Panel > Network and Inteternet > Network Connections > Change adapter settings)
Host-only means you can only establish a connection between guest and host, your guest will not be able to connect to e.g. the internet - This adapter (1) has IP address 192.168.56.1
(see Control Panel > Network and Inteternet > Network Connections > Change adapter settings > Select VirtualBox Host-Only network > Details - Now change the settings of the virtual machine ovm3 in Oracle VM VirtualBox Manager:
- Select ovw3
- Click on Settings (and wait until the config is fully read)
- Click on Network and choose Adapter 1
- [x] Enable Network Adapter
- Attached to: Host-only Adapter
- Name: VirtualBox Host-Only Ethernet Adapter
- In the Advanced section I left the settings to their defaults:
- Adapter Type: Inter PRO/1000 MT Desktop (82540EM)
- Promiscuous Mode: Deny
- Mac address .....
- [x] Cable connected
- Start the virtual machine ovm3
- Configure the network settings as follows:
- System > Administration > Network
- Enter password for root
- Tab Devices : select eth0 and click on Edit
- Statically set IP address:
- Address: 192.168.56.56 (or another in range 192.168.56.x)
- Subnet mask: 255.255.255.0
- Default gateway: 192.156.56.1
- Tab Hosts: I entered the same IP (..56) for the current hostname (don't know if this is really necessary)
- Save this configuration: File > Save
- Go back to tab Devices , click on Deactivate and Activate to finalize the network setup
- Now you should be able to ping 192.168.56.56 and 192.168.56.1:
Applications > Accessoires > Terminal
ping 192.168.56.56 ... OK
ping 192.168.56.1 ... OK
pinging other IP addresses won't work because we are using the host-only configuration in VirtualBox. - Test login OVM console:
From e.g. Internet Explorer in Windows:
http:192.168.56.56:7001/ovm/console
Login as admin/Welcome1 - Test sql*plus
In ovm3: start sql*plus and login as ovs/Welcome1@XE
Also working :
- connect system/Welcome1@XE
- connect sys/Welcome1@XE as sysdba - Start Oracle Application Express
http://localhost:8080/apex/apex_admin
Login als admin/Welcome1 ... je moet onmiddellijk je paswoord wijzigen (Welkom9!) Create Workspace mvr
Login as sys/Welcome1
Create a new database user:
Database username: mvr
Application username: mvr
Password: Welcome1
Manage workspaces > mvr > Manage developers and users > create/edit user mvr en ken paswoord toe
Use http://localhost:8080/apex to login workspace mvr username admin password Welkom9! .. lukt niet (ook niet als user mvr)
Oeps ... I can't yet connect to http://192.168.56.56:80/apex from Windows
(Might not be needed anymore, because the cause was the firewall, see further)
EXEC DBMS_XDB.SETHTTPPORT(8080);exec dbms_xdb.setListenerLocalAccess (l_access =>FALSE);
Solution: Disable the firewall in ovm3 (or add port 8080 to the exception list)
System > Administration > Security Level and Firewall > Firewall: Disabled
Now I can use I.E. in Windows to use http://192.168.56.56:8080/apex
- Accessing APEX from SQL*Developer
- Tried but failed:
Hostname: 192.168.56.56
Port 1521
SID: XE
Got error:
Status: Failure - Test failed: IO Error: The Network Adapter could not establish the connection - Solution:
In ovm3: - /etc/hosts:
Verify/add 192.168.56.56 wwwdevpc37d.as.local wwwdevpc37d - In listener.ora and tnsnames.ora:
replace localhost with wwwdevpc37d.as.local - tnsping wwwdevpc37d.as.local
- In windows:
- c:\windows\system32\drivers\etc\hosts
Verify/add 192.168.56.56 wwwdevpc37d.as.local - In sql*developer add a Connection:
Connection name: test1
Username:sys
Password: Welcome1
[x] Save password
Connection type: Basis Role: sysdba
Hostname: wwwdevpc37d.as.local
Port: 1521
SID: XE
- Info Listener.ora :
su - root
su - oracle
. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh (don't forget the point + space at the start of this line)
locate listener.ora
nano /u01/app/oracle/product/11.2.0/xe/network/admin/listener.oralsnrctl status - Finally got bridged network working. This way the guest machine also can reach the internet.
(this works for me:)
Make sure host and guest OS share the same network segment e.g. 192.168.1.*
Use the correct interface in Settings > Network:
In my case:
Adapter 1 [x] Enable Network Adapter
Attached to: Bridged Adapter
Name: Intel(R) Centrino(R) Advanced-N 6230 (=my wireless network adapter of the host)
Advanced (leave the defaults): Adapter Type: Intel PRO/1000 MT Desktop 58254OEM)
Promiscuous Mode: Deny
[x] Cable connected
In the guest VM :
Not a bad idea to record your ip address and hostname in /etc/hosts
Assign IP address, gateway and DNS:
System > Administration > Network
Doubleclick the eth0 interface and fill out a static IP address, mask and gateway (same as your host)
On the DNS tab, fill out the Hostname, DNS (same as your host or e.g. 8.8.8.8)
File > Save
Activate - Nice link:
http://devhub.fm/setting-up-an-oracle-11g-sandbox-dev-environment/ - Enterprise managerstart Oracle simply type “emctl start dbconsole” into the console .. does not work
Probably because some environment variables need to be set correctly in emctl
su - root
su - oracle
. ./setenv.sh
locate emctl
... to be continued
https://localhost.localdomain:1158/em/console/aboutApplication
No comments:
Post a Comment