Two APEXs on one Instance

We have a requirement to be able to have two copies of APEX running on the same Oracle instance, one available inside the firewall and the other outside the firewall. Each version would be running different applications, public and private, but sharing a common database.
Currently we've worked round this by having the public applications running in their own FLOWS0200 schemas on a seperate instance connected to the data on the main instance through links and views. While this works for the simpler queries and reports, other things like the MRU updates and pre-fetches fail.
If we can't have a second copy (installed in OUTFLOWS_0200), has anyone any suggestions how we can just expose a sub-set of our apps through the firewall, while keeping everything else safe.
I would also like to be able to shut down the access to the application development side of APEX on this outside instance so no one can try and get through to internal or any of the workspaces.

Gavin,
Installing Apex more than one time per instance is not a good idea. Consider it on par with editing an Oracle Database file with vi or performing a cold backup on a running instance - it SEEMS like it works, but a catastrophe is simply waiting to occur.
Having said that, you can solve most of your problems by adding some directives to the HTTP server via mod_rewrite (http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html)
This tool will let you prevent certain URLs from being called from certain places - for example, you can restrict all access to the 4000-series (Apex Developer, SQL Workshop, etc) pages by using mod_rewrite. mod_rewrite could also be used to limit which apps are allowed to run from where, based on source IP address, for example.
You may want to use a 2nd HTTP server for the internal apps, which would be unrestricted, and then the external HTTP server could be very tightly locked into only displaying certain applications no matter what. This would insulate you from IP spoofing to some degree.
Hope this helps,
- Scott -

Similar Messages

  • Two sids for One instance

    Hi All,
    I have to create two sids for one database. I am using Oracle 9i on Windows machine as well as linux machine. Is there any possible to assign two sid's for one database.
    Give me the suggestions...
    Cheers,
    Moorthy.GS

    I think you need to define your term 'database' here
    In Oracle world, database is usually referred to as instance.
    a SID is one database instance, that's why, people will tell you that you can't have two SID for one database (instance)
    However, if your 'database' means the schema and data, then yes, you can run two instances (with two SID of course) to host the same schema and data.

  • Different ways to copy data between two schemas in one instance

    Hi there,
    I am searching a good way to copy data between two schemas in the same instance.
    Both schemas have an identical structure such as triggers, tables, views and so on. The only difference is the purpose: one is the productivity system and one is for development.
    I looked at datapump but I do not explicit want to export / import. I want to keep the data in the productivity schema as well as copy it to the other schema. Any ideas? I found out there is a copy statement but I dont't know how that works.
    Thank you so far,
    Jörn

    Thank you for your replies!
    I also thought of creating a second instance for development and move the dev - schema to it. I just don't know whether our server can handle both (performance?). Anyway the idea is to have a possibility to quickly rebuild the data inside a schema without indixes or triggers, just pure data. I thought the easiest way would be to copy the data between the schemas as they are exactly the same. However if you tell me DataPunp is the best solution i won't deny using it :).
    When you export data a file is created. does that also mean that the exported data is deleted inside the schema?
    best regards
    Jörn
    Ps: Guido, you are following me, aren' t you? ;-)

  • Apex application connecting to more than one instance

    My company is in evalutation mode. We currently have a Forms and Reports 10g application (using Oracle Application Server 10g...) that allows access to multiple databases that have the same schemas repeated in each, i.e. production, test, etc. The schemas hold the same database objects whether they are in production, test or another instance.
    If we migrate the application to APEX, would we have to have the application repeated in each instance or can we have it in one and rely on the database tnsnames.ora file to allow the applicaiton to access the data in that other instance? Or is there another way to be able to keep the application in APEX, in one instance and still allow users to connect to the other databases?
    Thank you for your help.
    Stacey

    Stacey,
    When you install Apex in a db instance it creates two schemas. apex_030200 & flows_files.
    The apex_030200 schema is the core of apex it contains the files needed to make the app builder, sql workshop, and everything else you use to build an app. It also contains any and all apps built within apex as well by the developer.
    Flows_files contains any uploaded files that a developer might upload and want to use.
    From their you create a workspace to develop your apps in. You then associate that workspace with one or more schemas on that instance. (It can create the schema or you can use one that already exists) This is your user data
    Here is info on the what a workspace is:
    Workspace: (From User Guide documentation page 26) http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838.pdf
    Oracle Application Express enables a single database to host large numbers of users.
    Users work in a dedicated work area called a workspace. A workspace is a virtual
    private database that enables multiple users to work within the same Oracle
    Application Express installation while keeping their objects, data and applications
    private. This flexible architecture enables a single database instance to manage
    thousands of applications.
    My suggest would be as what some others have said:
    1) Install apex on every instance you want to use
    2) Develop your apps on one instance and then export/import the app to the other instances just as you would do with any other software development system.
    3) Within the HTTP Server that channels the HTTP requests to the db you can modify the dads.conf file for your apps and use something like:
    <Location mycompany.com/apex/test/
    <Location mycompany.com/apex/dev/
    Within each of these you point to the proper db via a connect string.
    By doing this method here you would be using just ONE http server to host out many different environments across an unlimited number of instances, maybe this is what you were trying to get across in your message, maybe not.
    Hope this helps,
    Justin

  • Two apex instances on one machine

    I am trying to create two apex instances using the embedded PL/SQL gateway on a single machine. I have two database instances up and running, one for development and one for production. I successfully installed apex 3.2.1 on the development instance, created some simple apps and everything seems to work as advertised, running from port 8080.
    I installed 3.2.1 on my other instance and everthing went fine until I had to create a way to connect. My
    select dbms_xdb.gethttpport from dual;
    returned zero, so I knew I had to set a port to wake up the network services on the instance. That's where I have my question. I cannot find out whether I need to use port 8080 and somehow separate my apex instances based on the DAD or if I should use a separate port for each instance. I tried setting the httpport to 8090 on the new install and my listener shows it active, but when I hit it, I cannot get a response with ~/apex/apex_admin - just a browser password dialog.
    The apex environment on the development install continues to work fine, responding to ~:8080/apex/apex_admin.
    I am guessing that I have a logical gap somewhere. Where can I read about how to manage this kind of setup?
    Thanks,
    Brandt

    Brandt:
    You want to check if a DAD named 'apex' is configured in the Oracle instance where you have the http port set to 8090.
    Login to this instance as the sys user and run this bit of pl/sql. It will display all DADS and their mappings
    SET SERVEROUTPUT ON SIZE UNLIMITED
    DECLARE
      pths  DBMS_EPG.varchar2_table;
      dads DBMS_EPG.varchar2_table;
    BEGIN
      dbms_epg.get_dad_list(dads);
      for i in 1..dads.count loop
        DBMS_EPG.get_all_dad_mappings (
           dad_name => dads(i),
           paths    => pths);
        DBMS_OUTPUT.put_line('Mappings for DAD'|| dads(i));
        FOR j IN 1 .. pths.count LOOP
           DBMS_OUTPUT.put_line(pths(j));
        END LOOP;
    end loop;
    END;Varad
    Edited by: varad acharya on Sep 10, 2009 6:53 AM

  • One instance and two databases?

    Hello, I've installed oracle database on my server. I've read a lot of documentation to learn the basic concepts.
    Ok, I have a question. I have read that one instance only can manage ONE database. Is it true? If it's true, how on earth I can create two database? for example, I want to create database-one and database-two.
    I would create these with CREATE DATABASE command. How does Instance know if I want to access to database-one or database-two. How I indicate it in initilitation parameter file of my instance?
    In sumary, Can one instance works with two databases?

    Look at the following output. If I do not set my ORACLE_SID variable, the 9.2.0.7 client connects to the 9.2.0.7 database instance. If I set my ORACLE_SID , the same 9.2.0.7 client now connects to the 10.2.0.1 database (the database specified in the ORACLE_SID variable).
    C:\>set ORACLE_SID=
    C:\>sqlplus kkishore/kkishore
    SQL*Plus: Release 9.2.0.7.0 - Production on Mon Jul 17 09:27:55 2006
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.7.0 - Production
    SQL> exit
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.7.0 - Production
    C:\>set ORACLE_SID=ORA10GR2
    C:\>sqlplus kkishore/kkishore
    SQL*Plus: Release 9.2.0.7.0 - Production on Mon Jul 17 09:29:31 2006
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> disconnect
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL>Message was edited by:
    Kamal Kishore

  • One instance for two different application

    Hello,
    I have to solve following problem..
    need have one instance of object for two different application..fist is standard SE application and second is EE (web)..
    SE application is a server..listen on and accepting connection from mobile phone..and EE application need to show list of connected devices and should say to SE application that new device was connected..
    I would like to do this without database..only server and web app..
    I have thought about RMI..but hope there is more simple solution..
    Thanks a lot for your ideas.
    Dmitrij

    I would like to do this without database..only server and web app..You have your reasons for wanting this to be the case. If you are sure you don't want a DB, then pass the state of the object between the two ends using XML as the transport form. As someone said, you can use JMS or you can write an HTTP POST or probably other transport mechanisms other people will suggest to actually get it over the wire from one side to the other.
    As to your question of how to sync state, just make the object you're sharing final after it's been created (on the side that creates it) and make the reference that receives it and holds it final also, after you've reconstructed it from the XML you received.

  • Which is better?    Two Oracle user in one instance OR  in two instances?

    Which is better?
    I could not find any benchmark for number of instances per user
    in the same machine.
    suppose that you have two major Oracle user, from performance
    point of view it is better to make separate instances in same
    machine or keep these two users in the same instance.

    Hi.
    I understand that you will use oracle for two different
    applications on the same host.
    Each instance has its SGA and background processes. So, using
    two different schemas(users) in one instance you can share
    phisical memory between the applications. Concerning background
    processes, you can start as many of them as you wish, so it's
    not a problem. If you decided that one DBW is not enough, you
    could configure oracle to use two or more.
    best regards,
    Andrew

  • One instance registered in two rman catalogs is possible?

    Customer wants that one instance be registered in two different rman catalogs.
    and perform two different backups.
    There is a sincronism between control file and Catalog, what could mess it up having two catalogs. On the other hand there is the DBID who identify the database on each catalog.
    Can anyone clarify if this is possible or not?
    TX

    Lalbuque,
    RMAN performs a backup using a "Media Manager Layer" or "MML". There can only be one MML installed at once on a particular ORACLE_HOME and it seems that yours is TSM; you cannot run an RMAN backup to tape without an MML. This is true even if you backup WITHOUT a catalog so adding a second will not help.
    There are a number of solutions to this problem. Here are a couple.
    Firstly, you could backup your database to the non-TSM tapes without RMAN. You can do this either by shutting the database down first or you could put the database into backup mode for the duration of the backup. The former is simpler but a) requires an outage and b) requires you to be absolutely sure that your shutdown was clean. The latter requires some detailed knowledge of oracle backup concepts but avoids the other problems.
    The second solution is to backup your database to disk with RMAN and then to copy the resultant files to tape.
    Whatever solution you choose please bear three things in mind:
    1) The purpose of backup is to recover. Make sure you have a documented recovery process and test it.
    2) The use of a second catalog is not required.
    3) Test your ability to recover. Have I said that already :-)
    --Tony Hasler                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to configurate system for two database under one server

    Hi Friends,
    I installed abd created A database by oracle 10GR4 in window 32 bit 2003.
    it works.
    Then i created other B database by DBCA under this server.
    When I shutdown immediate database.
    it works well. But I can not startup mount ot startup A database again,
    I got below message as
    SQL> startup mount;
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    SQL> startup;
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    SQL> startup;
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    From EM, I saw as
    A listen Status Up
    LISTENER
    Oracle Home          
    C:\oracle\product\10.2.0\db_1\BIN
    Location          
    C:\oracle\product\10.2.0\db_1\BIN\network\admin
    BUT agent connect Status          
    Failed
    Details          ORA-12505: TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach)
    A database instance down
    Host     salerpt.net
    Port 1521
    SID SALERPT
    Oracle Home C:\oracle\product\10.2.0\db_1\BIN
    Also I try to connect as
    SQL> connect sys/salel@salerpt as sysdba;
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    Form EM, I saw listen start up.
    Then I stop it. then restart it
    I can saw B db listen and can not see A db listen.
    also
    I saw that other B database works.
    My listen info as***************
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1\BIN)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = SALERPT.NET)(PORT = 1521))
    I check physical, two database use one common bin directory .
    I do not have any experience to handle two database under one oracle server.
    How to check and configurate DB server system?
    Thanks for help.
    Edited by: user589812 on Jan 4, 2009 8:17 AM

    Jim,
    Before starting the database A, did you set ORACLE_SID=A from command line? You can run as many instances you want from single server provided you enough memory, processing power. Also try starting your instances usign window services and check and post some lines from alert.log for database A.
    tnsnames.ora entry
    DATABASE_A =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = salesrpt.net)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = DATABASE_A)
    DATABASE_B =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = salesrpt.net)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = DATABASE_B)
      )Regards
    Edited by: OrionNet on Jan 5, 2009 10:55 AM

  • Can i create more than one instance for single database?

    HI
    anybody can tell me how to create more than one instance for single database(without using RAC)?
    thanks
    Kalanidhi

    Anandji,
    I sometimes think differently. I also think like what this person is asking..(although I have installed and administering 5 different RAC databases)
    The main doubt of mine is that we create multiple instances accessing the same storage area.
    Anyway the controlfiles of all instances will have the same information except the instance_names and instance id's.
    Hence I always think , why can't it be possible to to create another instance in the same system and point it to a controlfile which is copied from the other instance.
    Why can't the same files be shared between the two instances in a same system ?
    I know I am thinking a little bit confusing...
    Anyway I need to test that also...
    Mahesh.

  • How to install more than one instances on one machine

    Hi ALL,
    I want to install more than one instances on one machine, but i am a freshman on SAP field. How and where can i get the related infomation for that? thank you very much !!

    Hi tieyan,
    Glad the information was of some help.
    For Windows, there is an older note <a href="http://service.sap.com/sap/support/notes/28392">28392</a> that has some more information. It is important also that the SAP parameter PHYS_MEMSIZE is sized correctly according to note <a href="http://service.sap.com/sap/support/notes/88416">88416</a> (the bottom of the note gives some examples). For example, if there were two central instances and the two Oracle database instances on one host, PHYS_MEMSIZE for both instance profiles (of the central instances) would be 35% of the RAM (1/2 of 70%). In the case of MSSQLSRV 2000, for PHYS_MEMSIZE you would refer to the scenarios of note <a href="http://service.sap.com/sap/support/notes/327494">327494</a>.
    If you ever want to thank somebody else for helping in answering a question, the <a href="https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement">Rules of Engagement</a> has a section 'Thank Others by Giving Points' that explains this further.
    Regards, Mark

  • Can one instance have multiple redo threads ?

    i was reading the Oracle Data guard 10g guide and it says
    Determine the appropriate number of standby redo log file groups.
    Minimally, the configuration should have one more standby redo log file group than the number of online redo log file groups on the primary database. However, the recommended number of standby redo log file groups is dependent on the number of threads on the primary database. Use the following equation to determine an appropriate number of standby redo log file groups:
    (maximum number of logfiles for each thread + 1) * maximum number of threads
    Using this equation reduces the likelihood that the primary instance's log writer (LGWR) process will be blocked because a standby redo log file cannot be allocated on the standby database. For example, if the primary database has 2 log files for each thread and 2 threads, then 6 standby redo log file groups are needed on the standby database
    while Oracle's definition of redo log states the following
    Redo Threads
    When speaking in the context of multiple database instances, the redo log for each database instance is also referred to as a redo thread. In typical configurations, only one database instance accesses an Oracle Database, so only one thread is present. In an Oracle Real Application Clusters environment, however, two or more instances concurrently access a single database and each instance has its own thread of redo.
    this is confusing, in a typical environment where only one instance accesses a database, can we have more than one redo thread ?

    Though you can create multiple threads but of no use in NON-RAC or non-parallel server configuration.
    Following is the generic formula. You should consider
    maximum number of threads = 1 for single instance (NON-RAC).
    (maximum number of logfiles for each thread + 1) * maximum number of threads
    Message was edited by:
    Reega

  • Getting Error :- Only one instance of COBRAS Export can be running at a time

    Hi All,
    I was checking the Briefcase Mode help file and it mentions for Unity Conection
    that COBRAS will run multiple instances of itself – if you schedule multiple backups to fire up at the same time they will all run at the same time.
    However if I schedule multiple backups to fire at the same time then I get the error :- "Only one instance of COBRAS Export can be running at a time".
    This also happens if the COBRAS windows is left open and the scheduled backup starts in the background.
    http://www.ciscounitytools.com/Applications/General/COBRAS/Help/COBRAS_Briefcase/COBRAS_Briefcase.htm#_Toc276653845
    I am not sure if I am making a mistake in understanding the statement :- "COBRAS will run multiple instances of itself – if you schedule multiple backups to fire up at the same time" or do we need to add any switch like lot of other application need like /m etc in the field of the scheduled backups as I see as /silent switch for process to run in background automatically but none for multiple instances.
    I am attaching the screen shots of the errors I got when
    A.) I scheduled 2 backups to run at the same time and the COBRAS application window was open "COBRASExportCUC7.exe" was running  and no backup took place and got errors for both the scheduled backups.
    And
    B.) I scheduled 2 backups to run at the same time and the COBRAS application window was closed off and "COBRASExportCUC7.exe" was not running and one of the scheduled backups started to work and the other one gave error and didn't work
    Unity Connection in use :- Version 8.0.3.20000-18
    Cobras Export :- Version 1.0 Build 76
    Please Suggest.
    Regards,
    Prad
    (E-Mail :- [email protected])

    Yeah, I’m of two minds on that – on the one hand it’s bad style to have a scheduled application popping dialog boxes (especially if you’re running as an account you don’t log in as regularly) – one the other hand I did have some sites go a while not noticing backups were failing (due to a UNC not flying any longer after a server reconfig) – folks can be bad about checking log files or the event log for issues.  A pop up would pretty much guarantee they’d notice on next login at any rate.
    I think I may stitch in email notifications in COBRAS Export in the same way they’re in the User Data Dump so failures of scheduled backups would be noticed right away (big, bright email in your box saying “failed!” would do it). 
    Either way, I’ll update the help and make sure it fails quietly for now when I update some other items on the site middle of next week.
    Thanks for the report.

  • WebLogic Error : Registered more than one instance with the same objectName

    HI there, I'm facing a big problem. I have two environments installed on the same physical machine.
    I have ALSB and WLI servers running out there.
    Environment 1 - WLI port running at 7011 domain name : stp_wli_domain and ALSB port running at 8011 domain name: stp_alsb_homo1 - folders- stp_wli_domain / stp_bea_alsb_homo
    Environmnet 2 - WLI port running at 7211 domain name : stp_wli_domain2 and ALSB port tunning at 8211 domain name : stp-alsb_homo2 - folders - stp_wli_domain2 / stp_bea-alsb_homo2
    Everything was working fine, but these days I had install new deployments on both environment and I got this error :
    java.lang.IllegalArgumentException: Registered more than one instance with the same objectName : stp_wli_domain:ServerRuntime=wli_wls01,Name=stp_wli_domain,Location=wli_wls01,Type=AIRuntime new:com.bea.wlai.management.AIRuntimeMBeanImpl@bcf22dc existing com.bea.wlai.management.AIRuntimeMBeanImpl@de02e6c
    The weird is : There is no same object name, as you can see, domains are different, folders are different and ports are diferrent, including multicast addresses.
    Have you guys seen this before ?
    I'm under pressure here, 'cause some projects had stopped to work.
    Please I would appreciate any help.
    Tks.
    Edson

    HI there, thanks for attention..
    See ...
    There's a lot of confusion with these env's .
    I did not built this, so... I'm cleaning my hands.... anyway... :)
    I must fix....
    Well basically if we have two env's, so we have different project each one right ?
    Ok, but I was told that if you have on the same network and same physical machine the name of AdminServer as "AdminServer" in all domains, so it goes with problems... I never heard about it... but is a good practice you put the names for example :
    WLI - WLIAdminServer
    ALSB - AlsbAdminServer
    WLI2 - WLiadminServer2
    ALSB2 - ALsbAdminServer2
    I would do it.. this way..
    But how it wasn't me...
    We got..
    WLI - WliAdminServer
    ALsb - AdminServer
    WLI2 - AdminServer
    ALsb2 - AdminServer
    Have you got it ?
    So... I was told that this could be a problem, almost all AdminServers with the same name... guess what ?Some Projects are back to work. but not at all.. only some.. so I 'm breathing better now... but I would like to know if you seen this before ?
    I would appreciate your help again.
    Unfortunately there's no detailed stack trace to track this
    Tks.

Maybe you are looking for