Apex on one database, application schema on another database

Hi Forum
I need your help to let me whether following scenario is possible in Apex or not.
Currently we have a database that has application schema running on server A
We want to install another Database on another server ( server B) and install and configure apex on that.
Can we configure Apex that we installed on B access to database on server A?
if yes, can you please provide some hints how to do that or you can provide a link to web page.
Sincerely

Hello,
Yes you can achieve that by using database links, take a look at this link for the syntax -
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_56a.htm#2061507
you can then query etc over the link -
SELECT * FROM employees@remotedb;Note that there will be a performance overhead in operating on the remote data rather than having it 'local', so for certain data (like lookups etc) you might want to consider the use of materialized views to store a local copy of the data.
Hope this helps,
John.
http://jes.blogs.shellprompt.net
http://www.apex-evangelists.com

Similar Messages

  • Xerces : Parsingproblem when "include" one or more Schema in another

    Hi.
    My problem is that i parse an xml-document and validate it against a schema. but the schema has multiple other schemas included (i'm using "include" not "import" because all schemas using the same namespace). and the sax parser (from xerces) can't find these schemas, because he is obviously searching in the wrong directory - in fact in the dirctory of the application, not in the directory of the including schema. the path, within the "include" attribute is given relativ to the including schema.
    i'm using java 1.3.1 and have tried different xerces versions. With xerces 2.0.0 and higher, the sax parser seems not to validate at all. xerces 1.4.4 do validate but doesn't find the included schemas.
    here is the java code:
    SAXParser saxParser = new SAXParser();
    saxParser.setContentHandler(handler);
    saxParser.setErrorHandler(handler);
    InputStream ioStream =null;
    try
    saxParser.setFeature
    ("http://xml.org/sax/features/validation",true);
    saxParser.setFeature
    ("http://apache.org/xml/features/validation/schema", true);
    saxParser.setFeature
    ("http://apache.org/xml/features/validation/schema-full-checking", true);
    InputStreamReader inputstream = new InputStreamReader(m_oStream,"UTF-8");
    InputSource inputsource = new InputSource(inputstream);
    saxParser.parse(inputsource);
    heres a fragment of the including schema (Reply.xsd) (against this an xml file is validated)
    <xs:schema targetNamespace="www.interface.de" xmlns="www.interface.de" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:include schemaLocation="./KOM.xsd"/>
    <xs:include schemaLocation="./Ort.xsd"/>
    <xs:element name="Reply">
    <xs:complexType name="reply">
    <xs:choice>
    <xs:sequence>
    <xs:element name="AKOM" type="auditkom" minOccurs="0"/>
    <xs:element name="AOrt" type="auditort" minOccurs="0"/>
    these to schemas (KOM, Ort) were not found, when the parser validates an xml file. all schemas are in the same dirctory (an other then the application directory). and the absolut path to the Reply.xsd (which is found) is given in the xml file.
    can't sax from xerces handle "include" from xml-schema? or is there a version wich can?
    Thanks & Regards,
    Sascha

    Instead of importing a scema in another schema specifiy the schemas in the external-schemaLocation property.
    SAXParser saxParser = new SAXParser();
    saxParser.setProperty("http://apache.org/xml/properties/schema/external-schemaLocation", "xmlschema1.xsd, xmlschema2.xsd");

  • Can i use App schema from another Oracle database.

    Hi everyone,
    can i use application schema from another Oracle database and how can we do this. the reason is that current database where apex is installed is get very slow because of the size of database and application usage.
    Regards,
    Kashif.

    user10485983 wrote:
    Please update your forum profile with a real handle instead of "user10485983".
    can i use application schema from another Oracle database and how can we do this. the reason is that current database where apex is installed is get very slow because of the size of database and application usage.
    You can (using database links), but this will generally result in even poorer performance (unless by "another Oracle database" you mean using RAC?)
    It sounds more like you either need to upgrade your systems, or refactor your applications to have a smaller performance footprint.

  • APEX for multiple databases

    Can I install APEX in one database and use it to connect and develop applications for other databases in network.

    The two issues that I have run into with running an ApEx application in one database against data in another database is dealing with sequences and LOBs.
    If you use a database link which does not specify a user name and password to get a sequence value from a remote database in an ApEx application you get the following type of error:
    failed to parse SQL query:
    ORA-01017: invalid username/password; logon denied
    ORA-02063: preceding line from ...Since the sequence is stored in the other database and ApEx runs in the PL/SQL engine because of the engine's security, you have to use a database link with a user name and password in it like:
    CREATE DATABASE LINK db_link CONNECT TO you_username IDENTIFIED BY your_password USING your_remote_db;
    SELECT your_sequence.NEXTVAL@db_link FROM DUAL;Accessing LOB columns in your remote database cannot be done via a SELECT statement. You have to use an INSERT statement. I have my solution to this on my blog.
    Mike

  • Problem in Schemas import from one database to another

    Hi,
    I have to import the schemas from one database (10g release 1) to another database (10g release 1).
    But the problem is that through simple import (imp) the system privileges, object privileges & other things are not importing to import file. There are various objects in the schemas which are inter-related & I can't manually grant on those objects.
    I have also tried Toad Export DDL Script. But my problem is not solve through the Toad. There are other various issues occuring with TOAD.
    I have also tried SQL Developer & PL/SQL Developer but CLOB problem is occuring with them.
    The schemas which I have been creating in different database is new schemas with same name.
    AB
    Edited by: adhondiyal on Dec 26, 2010 8:55 AM

    adhondiyal wrote:
    Hi,
    I have to import the schemas from one database (10g release 1) to another database (10g release 1).
    But the problem is that through simple import (imp) the system privileges, object privileges & other things are not importing to import file. There are various objects in the schemas which are inter-related & I can't manually grant on those objects.
    I have also tried Toad Export DDL Script. But my problem is not solve through the Toad. There are other various issues occuring with TOAD.
    I have also tried SQL Developer & PL/SQL Developer but CLOB problem is occuring with them.
    ABWhy can't you use EXPDP/IMPDP
    have you given grants=y ?
    mp system/***** file=schema.dmp log=schema.log fromuser=user1 touser=user2 grants=yis the usernames of source & dest are same?
    use as if schema name is same
    expdp system/**** directory=DATA_PUMP_DIR dumpfile=schema.dmp logfile=schema.log schemas=users
    impdp system/**** dumpfile=schema.dmp logfile=schema1.log
    if schema name is different then
    expdp system/**** directory=DATA_PUMP_DIR dumpfile=schema.dmp logfile=schema.log schemas=users
    impdp system/**** dumpfile=schema.dmp logfile=schema1.log remap_schema=(source:dest)
    Thanks

  • Transporting large amounts of data from one database schema to another

    Hi,
    We need to move large amount of data from one 10.2.0.4 database schema to another 11.2.0.3 database.
    Am currently using datapump but quite slow still - having to do in chunks.
    Also the datapump files quite large so having to compress and move across the network.
    Is there a better/quicker way?
    Habe haerd about transportable tablespaces but never used them and don't know about speed - if quicker thana datapump.
    tablespace names different in both databases.
    Also source database on solaris opertaing system on sun box
    target database on aix on ibm power series box.
    Any ideas would be great.
    Thanks
    Edited by: user5716448 on 08-Sep-2012 03:30
    Edited by: user5716448 on 08-Sep-2012 03:31

    user5716448 wrote:
    Hi,
    We need to move large amount of data from one 10.2.0.4 database schema to another 11.2.0.3 database.
    Pl quantify "large".
    Am currently using datapump but quite slow still - having to do in chunks.
    Pl quantify "quite slow".
    Also the datapump files quite large so having to compress and move across the network.
    Again, pl quantify "quite large".
    Is there a better/quicker way?
    Habe haerd about transportable tablespaces but never used them and don't know about speed - if quicker thana datapump.
    tablespace names different in both databases.
    Also source database on solaris opertaing system on sun box
    target database on aix on ibm power series box.
    It may be possible, assuming you do not violate any of these conditions
    http://docs.oracle.com/cd/E11882_01/server.112/e25494/tspaces013.htm#ADMIN11396
    Any ideas would be great.
    Thanks
    Edited by: user5716448 on 08-Sep-2012 03:30
    Edited by: user5716448 on 08-Sep-2012 03:31Master Note for Transportable Tablespaces (TTS) -- Common Questions and Issues [ID 1166564.1]
    HTH
    Srini

  • How to copy one schema into another

    I need to copy one schema into another. That means, all the tables, views, constraints, etc, and all the data as well.
    I have a dmp file of source-schema (created daily with expdp by our backup schedule).
    Can I use impdp to import this dmp file into dest-schema? I'm thinking about something like this:
    The dmp file was created with:
    expdp source-schema/pwd DIRECTORY=dmpdir DUMPFILE=myproject.dmp
    Create the copy on dest-schema with:
    impdp dest-schema/pwd DIRECTORY=dmpdir DUMPFILE=myproject.dmp
    (dest-schema is an existing schema on the same machine. I'll drop all the tables before executing the command. Is there anything else I should do first?)
    If this approach is not feasible, kindly suggest me an alternative.
    Thank you.
    Edited by: mgro on Apr 16, 2010 3:22 AM (changed 2nd command: expdp to impdp)

    Thank you both. Dean, I've made a note of your proposed command. May use it next time.
    In the end I used the following command and it worked for me. I added TABLE_EXISTS_ACTION=REPLACE since the destination was not empty.
    First I ran these command logged in as SYS
    GRANT Import Full Database TO dest-schema;
    GRANT Create Any Directory TO dest-schema;
    GRANT Unlimited Tablespace TO dest-schema;
    impdp
    dest-schema/pwd
    DIRECTORY=dmpdir
    DUMPFILE=myproject.dmp
    REMAP_SCHEMA=source-schema:dest-schema
    TABLE_EXISTS_ACTION=REPLACE
    LOGFILE=implog.log
    There were some errors though. The import process complained about constraints referencing non-existent primary keys.
    It turns out that the source schema has some constraints that are marked with status DISABLED. These constraints either:
    - are not part of the DUMP file
    or
    - are in the DUMP file but skipped during import
    Don't know if this is a bug or by design behavior.

  • Installing one APEX for multiple databases servers.

    Hello, everyone.
    I'm new on this world of Oracle solutions, and I would like
    very much your help.
    Here in my company I have five database servers, and I want to install
    the Oracle Apex in a way that I only need access one webpage and have
    the possibility to edit all the database.
    For instance:
    Imagine that I have five machines and each one has a instance of one database.
    I would instal the Apex on each machine. But I would like to open the Apex on
    my browser only once, and have the capability to work with all databases.
    It would be like the Apex had a scrollbar and I could choose wich database to work.
    Is that possible? If it is, could be done with XML DB server? What is the best HTTP server to use in this case?
    Thanks for your attention.
    Sorry if I wasn't clear, I'm new and I'm learning.
    Regards, Leandro R. de Freitas.

    Hi,
    as you describe this, it is not possible. An Apex instance is installed in an Oracle instance and is as a result is tied very closely to that instance.
    That being said, it is still possible to access data in different database instances from a seperate database by the use of database links, though this is can be a little complicated and not always desirable from a performance point of view. Whether this is desirable in your instance depends on the architecture of your applications.
    For example, if your 5 different instances are part of one distributed application, it may be desirable to install Apex in one instance that may be termed the master instance and have it access data from the other instances via database links, which should already exist in a distributed application.
    On the other hand, if your applications are quite distinct, then I would see it as desirable to have seperate installations of Apex in each instance. This would enable different release cycles and versioning if required, lead towards better performance and avoid single point of failure. If you need a united front end to these applications then you could maybe create a gateway application on one of the Apex instances, though how you deal with sign on would depend on your architecture eg Single Sign on vs LDAP etc. You could simply create an HTML page somewhere on your intranet that points to these applications and then let each application deal with sign on.
    I hope this helps.
    Andre

  • How do I move a table from one schema to another schema?

    How do I move a table from one schema to another schema?

    Grant access to the table from the source schema to destination schema.
      GRANT SELECT ON <TABLE_NAME> TO  <DESTINATION SCHEMA>A simple way would be to use CREATE Table with select syntax (in destination schema)
      CREATE TABLE <TABLE_NAME> AS SELECT * FROM <SOURCE SCHEMA>.<TABLE_NAME><li>However, you would be in <b><u>trouble when the table has index,constraints and triggers</u></b>.
    So you can better of grab the DDL statement of the table(and any additional components) andd then create the table in the destination schema.You can use SQL developer, Toad or Apex's Object browser for this.
    After the table is created, Insert the records using SELECT.
    INSERT INTO <TABLE_NAME> SELECT * FROM <SOURCE SCHEMA>.<TABLE_NAME>This question is discussed in great detail in this <b>AskTom thread</b>

  • DR database Needs Different Application Schemas

    I am looking for experienced thoughts on Logical Standby database configurations using Data Guard...
    I have a Production database containing three application-specific schemas along with a handfull of schemas supporting business data. The DR site needs to receive replicated business data, but allow extra schemas to exist to support DR-side apps, which have a configuration based on location. E.g. the DR-side apps need to be setup using paswords that are hashed using hostnames, which are different given the DR site...
    My initial thoughts are to use a Logical Standby configuration to solve this, opening the standby database to allow the creation of extra application schemas.
    Can anyone tell me how suitable a solution this is, or if there is a better alternative?
    Oracle documentation explains that Logical standby database are generally used to off-load reporting and backups so I am concerned that my solution is going to produce management problems later down the line.
    Any comments much appreciated!
    Richard

    Many thanks for getting back to me!
    I agree that Logical standbys are not ideal for DR, but I can't see any other option in my situation. The problem is that a Physical standby won't work because I need the DR database to contain different application data to the Live site.
    Can you think of any other approved/reccommended solutions or technologies that will help, where Prod and DR are both single instance 10g DBs?
    One thought is to have separate databases on the DR side: one to host the app schemas and one acting as a physical standby for business data.
    Many thanks again,
    Richard

  • Error in switching from one database location  to another database location in Crystal Reports using JSP

    Hi,
    Please help me in resolving the issue while changing the database dynamically in crystal reports using JSP. I followed the below link to change DB connection dynamically.
    CRJava Modify DB Location
    Please help me on this.
    While switching from one database to another i found the issue.
    dbController.replaceConnection(oldConnectionInfo, newConnectionInfo,pFields,replaceParams);
    The Error is:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Subreport does not exist.---- Error code:-2147467259 Error code name:failed
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:2284)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:732)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:166)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:528)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:526)
        at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:524)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:423)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:480)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:421)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:351)
        at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)
        at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)
        at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)
        at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)
        at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)
        at com.crystaldecisions.proxy.remoteagent.RemoteAgent.char(SourceFile:220)
        at com.crystaldecisions.proxy.remoteagent.RemoteAgent.new(SourceFile:240)
        at com.crystaldecisions.proxy.remoteagent.RemoteAgent.do(SourceFile:452)
        at com.crystaldecisions.proxy.remoteagent.RemoteAgent.if(SourceFile:429)
        at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.performDo(SourceFile:156)
        at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.a(SourceFile:106)
        at com.crystaldecisions.sdk.occa.report.application.an.a(SourceFile:65)
        at com.crystaldecisions.sdk.occa.report.application.ParameterFieldController.a(SourceFile:1921)
        at com.crystaldecisions.sdk.occa.report.application.ParameterFieldController.setCurrentValues(SourceFile:2237)
        at com.crystaldecisions.sdk.occa.report.application.ParameterFieldController.setCurrentValue(SourceFile:2328)
        at org.apache.jsp.DynamicDB_jsp._jspService(DynamicDB_jsp.java:255)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
    Caused by: com.crystaldecisions.reports.reportdefinition.ReportModificationException: Subreport does not exist.
        at com.businessobjects.reports.sdk.requesthandler.ParameterRequestHandler.a(SourceFile:229)
        at com.businessobjects.reports.sdk.requesthandler.ParameterRequestHandler.for(SourceFile:214)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1492)
        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:660)
        ... 47 more
    Any help Appreciated.
    Thanks
    Penchal

    Do you have subreports in your reports?
    If yes, set the connection info for the subreports as well.
    Additionaly refer to the below discussion
    http://scn.sap.com/thread/3153289
    As you are using Crystal reports for ecllipse runtime libraries to build your jsp, you would need to post your dicussions in the below forum to get better response.
    http://scn.sap.com/community/crystal-reports-for-eclipse
    The above space is dedicated for the issues with crystal reports for ecllipse.
    Thanks,
    Prithvi

  • Transfer of Data from one Database to Another

    Respected Guys
    Is there any way to transfer few fields from different tables located on a Database Server used by SAP to an other database used by an another application. The other database also have same fields and and Tables structure.
    Both databases are located on different servers and are oracle9i.
    Is there any way to transfer real time data from one database to another. If not then any way by which we can preiodically can transfer the data.
    Thnx

    Hi
    U can use a <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/9c/d736b880c34f76b507bac7751a0474/frameset.htm">DBCON (Database Connection) tool</a>.
    Here you should call another database and write SQL native code in order to transfer/read the data.
    Max

  • Best LKM to move data from with in Oracle from one schema to another Schema

    Hi Gurus,
    What is the best KM to move data from one schema to another schema within same oracle database.
    Thanks in advance

    Dear,
    If your source and target are on the same database server then you dont need LKM.
    You have to 1. create one data server for the database server
    2. Create one physical schema for your source and another physical schema for your target under the above created data server.
    3. Then create models for each above created physical schema
    In this case you just need IKM knowledge module
    Please refer http://oditrainings.blogspot.in/2012/08/odi-interface-source-target-on-same.html
    If your source and target are on different server then you must create two different data servers in topology. You have to use LKM.
    The best LKM to use is LKM oracle to Oracle dblink. But you should have proper grants to use it
    If your source has very few records you can go with LKM SQL to Oracle other wise use LKM oracle to Oracle dblink

  • Work schema in another database?

    I am creating data server and physical schema, one question is:
    Is it possible to set up work schema in another db instead of source/target dbs? from the set up drop down, I only can see the schema from current db, even I have db link.
    Since it is difficult to get priviledge to create new schema in source and taget dbs, and dba doesn't like it.
    Please help, thanks.!

    This defeats the purpose of the work schema. We use this area for our LKMs, to load into the data server where the target exists. Also, any work that is done to integrate in the IKM should always be done local to the target data server.
    You should have have a frank conversation with your DBA about the architecture of this tool, and how it's designed to utilize the source and target databases for EL-T.

  • Move a procedure from one database to another database

    Hi all,
    I have a procedure belonging to a schema in one of the databases in a server (say host A).
    I have a new server (say host B) and I have installed RDBMS and have created a database.
    Now, I want to move that particular procedure (in host A) to the new schema of a database in host B.
    What are the steps to be followed? please help me out.
    Note: It is not moving a procedure from one database to another, infact from one host to database in another host.
    Thanks,
    ora_sri

    The steps are:
    1. Pay more attention to your instructor in school.
    2. Do your web searches using google.com so as not to ask other people to help you cheat on your exams.
    3. Apologize to your instructor.
    How do I know you are a student?
    1. No version number.
    2. No such thing as host A and B
    3. If you had ever written a procedure in your life you would already know the answer.
    So let us add #4 to the first list.
    4. Write a stored procedure, save it to your hard disk, and then stare at the file you created until inspiration strikes you.
    Sorry for being harsh here but I spent 10 years teaching Oracle at the University of Washington and I failed students
    who did what you did. Even asked that one be expelled. So I am doing you quite a favor and hope you learn the lesson
    I am trying to teach for your own good.

Maybe you are looking for