Wednesday, April 13, 2016

Multiple Oracle APEX sessions in a browser






















One of the problem that developers face when developing applications in their environment are used to multiple Oracle APEX session is the same address in a browser. Either had to use several browsers or come out of a session so re-entering an environment with a new session. I want to show you a very simple trick as result you can use multiple sessions with a browser in different separate Tabs.

Now for dealing with this problem, should be change “hosts” file and add some lines to this file.

If you use Windows OS follow below method. For another OS refer to edit-hosts-file-mac-windows

If you want to change the hosts file on windows you have to change the hosts file with notepad in administrator mode. Please make sure you have administration right or able to run notepad as administrator.

  1. Go to Start -> All Programs -> Accessories
  2. Right click Notepad and select Run as administrator
  3. Accept to run the program as administrator if you see “Windows needs your permission”.
  4. In Notepad opens Click File -> Open
  5. Type the following in the filename filed and click open. C:\Windows\System32\Drivers\etc\hosts

Then to comply with the following photo to any number you wish to enter a new address in a browser open Session.
In this example the APEX URL is: http://127.0.0.1:8080/ords/f?p

e.g.:
127.0.0.1            apexdev01.iranapex.ir
127.0.0.1            apexdev02.iranapex.ir
127.0.0.1             apexdev03.iranapex.ir

Lets’ go to use multiple sessions in a browser.


7 comments :

  1. Cool trick! Thanks.

    ReplyDelete
  2. Salam sir, i had tried same as you did but. but it didn't work. can you please help me out on that

    ReplyDelete
    Replies
    1. Hi Mohammad,

      You must "ping your-address" and get "Reply from your-ip" in command shell and if you could reply it will work correctly.

      Delete
  3. Thanks, the link for macos is not working :(

    ReplyDelete
    Replies
    1. Thanks for your reply. Also you can use this link https://phoenixnap.com/kb/how-to-edit-hosts-file-in-windows-mac-or-linux

      Delete
  4. Thanks, the link for macos is not working :(

    ReplyDelete