How to separate APEX & Database

Hello,
I installed oracle DB+APEX & OHS in one server (database A).
And I have an existing server that has another Oracle DB (database B)
I would like to build apex application on database A while data is from database B (not use DBLINK)
I've tried to change connect string in dads.conf in server A to connect to database B and start APEX page, but the error displayed
Service Temporarily Unavailable
I've checked the connection from A to B with SQL* Plus, it works.
Do I have to install any thing on Database B?
Please help!
Thank you.

Hi,
You need Apex installed in the local database. The only easy option for accessing data in remote databases is through DB Links. You can though have multiple databases served by the same OHS, but these need their own instance of Apex.
Andre

Similar Messages

  • How Can we move files from apex database to third party database (i.e. Google drive)

    Hi All,
    I am storing the files in apex database which are uploaded through apex form. Now i want to move these files to the third party server on regular bases. Means once we stored those files in our apex database at specific time on everyday we have to move these files to google drive. How can i achieve this please do  need full.
    Version: apex 4.2
    Regards,
    Vijay J

    Hi Vijay,
    Check out the following code: https://gist.github.com/trent-/7526011
    The following need to be set accordingly
    g_upload_folder_id - the google folder ID (obtained from the URL) - used as a default to upload into a particular folder
    g_wallet_path - the path of your oracle wallet with the trusted certificates imported
    g_wallet_password - the password for the above wallet
    g_redirect_uri - The procedure that has your implementation with what to do after the user accepts
    g_client_id and g_client_secret - property's from your project out of your google API console
    l_endpoint_url in the function authorization_code_callback - the page to go to after authorizing
    This particular code is designed to use a refresh token such that once the user authorizes, the system can refresh the token whenever they need. But you can adjust this to suit your needs. I suggest reviewing the following documentation: https://developers.google.com/accounts/docs/OAuth2WebServer
    So, here is what I've done. Create a button, with a dynamic action click event with the following code:
    $.ajax({
        url: '&OWNER..google_drive.GET_AUTHORIZATION_URL',
        data: {
            p_state: &APP_SESSION.
        success: function(data){
            window.location.href=data;
    This redirects the user to the authorization page. And as you can see in the code, would run the following when authorized:
    update app_users set refresh_token = (returned token); -- that is, depending on your user management design, you would need to adjust this accordingly.
    Then to upload the file, I have an onsubmit process with:
    declare
        l_filerow apex_application_files%rowtype;
    begin
        select * into l_filerow
        from apex_application_files
        where name = :P133_ATTACH_DATA;
        :P133_GOOGLE_DOC_ID := google_drive.create_file(l_filerow.blob_content, l_filerow.mime_Type, l_filerow.filename);
    end;
    Please also review the following post, which describes the overall process of setting up the project, wallet, acl, etc: Oracle Apex Tips: Accessing Google Data
    There are probably bits of the code that need refinement, and better error checking, but hope it helps :-)

  • How to create new database on Oracle 10g

    Hi All,
    Can any one tell me how to create new database on oracle 10g.
    Thanks in Advance for your help.

    again some confusion here.....
    u said u need a new database in your first post and now you saying u need a new schema..
    one database has many schemas(users)..... ex: scott,sys,system are few of them...
    now it depends you need seperate database for test,dev environment - this is in the case u have many schemas under each database and many tables(objects) under each schema.
    OR
    You just need a separate schema (in same db) for test,dev environment...where in you will have multiple tables in each schema...U need to know the dba credentials of the db to create a new schema.
    ideally u need to have different database...You can create one with out sys/system(oracle users) password as these passwords are db dependent.
    what you need is access to the any machine where server is installed(can be the same mc where you have your dev db or a diff machine) and that will be the machine where your db will be installed (can do it through database configuration assistance),ofcourse you will need windows authentication for this.
    so you login to the same machine or access it from your machine using remote login.
    I hope that is clear.Hope i am not listing things that you already know..Just did it coz of confusion between db and schema
    Message was edited by:
    coolguy

  • Connect to APEX database using VBA+ADO code in Microsoft Excel & Word?

    I am looking at APEX as a potential replacement for a growing reporting/analysis system. As yet I have not found a clear answer on an important question.
    The current system is a shared database and a collection of Microsoft Excel and Word templates. Each template contains underlying VBA code that establishes a direct connection to the database via OLE DB (i.e. ADODB objects in VBA via the OLE DB Provider for JET).
    Each template’s underlying VBA code executes stored procedures or queries as required, the results of which are returned as Recordset objects and rendered to the Excel worksheet or Word document. Similarly, in some cases, data entered into an Excel worksheet by a user can be submitted back to the database at the click of a button, again via Recordset objects.
    Now most of our templates could easily be ported to APEX. However, there is a strong preference that some of our templates continue to exist and maintain current functionality. So we have a requirement that Excel and Word can seamlessly and directly interact with an APEX database.
    Long question short – is there a way to establish a connection and retrieve/insert data from an APEX database using OLE DB (ADODB) in VBA, as described above? I understand that APEX sits ‘on top’ of a real Oracle database, and I know Oracle provides an OLE DB Provider (OraOLEDB) for Oracle databases. Would OraOLEDB do the trick, or is it not as simple as that?
    Many thanks for your insights on this,
    Michal

    The current system is a shared database and a collection of Microsoft Excel and Word templates. Each template contains underlying VBA code that establishes a direct connection to the database via OLE DB (i.e. ADODB objects in VBA via the OLE DB Provider for JET).
    Long question short – is there a way to establish a connection and retrieve/insert data from an APEX database using OLE DB (ADODB) in VBA, as described above? I understand that APEX sits ‘on top’ of a real Oracle database, and I know Oracle provides an OLE DB Provider (OraOLEDB) for Oracle databases. Would OraOLEDB do the trick, or is it not as simple as that?Hi,
    Apex gets installed as a separate schema in an existing database.
    So it will not in any way interfere with your existing setup. You can continue to connect directly to the database from your spreadsheets, call stored procedures from VBA/ADO, etc.
    - Morten
    http://ora-00001.blogspot.com

  • APEX database sizing methods and spreadsheets

    APEX database sizing methods and spreadsheets

    Yes I asking how much space the APEX 3.2 framework requires as well as yes to how much space to allocate for your particular application that happens to be implemented in APEX. I have 1 word form that contains 10 fields that are filled in by users currenlty now. So far, I have 50 of these completed (same form) and would like to create an APEX application supported by a database that can initially contain this data in one table once migrated and be able to hold more of this data as the new online system is used. Therefore, are any sizing methods, for example, function points or excel macros, etc...that can be used to predict potential database sizes needed based on an increase in data volume.
    I ask this because currently APEX 3.2 uses Oracle Database Express Edition (XE). Oracle Database XE can address only 1GB of RAM. This limitation mainly affects how many users can access the database concurrently and how well it perform but APEX can run against a full 10g or 11g install of Database as well as XE, and you can upgrade rather nicely from XE to full DB if your needs demand

  • How to configure Apex 3.2 in Oracle11gr2 RAC eniv with single http server

    Hi All,
    1. How to connect Apex 3.2 in oracle11gr2 RAC enironment for the single http server. We dont have any load balancing server here. I Mean to say that I need connect the two nodes from the single http(dad.conf) server.
    Is it possible to connect single node database PlsqlDatabaseConnectString with TNSFormat in http dad.conf file
    Thanks,
    Rj
    Edited by: pnr on 5 Sep, 2012 12:54 AM

    It is not clear what you want. But yes thats possible. I think the RAC or DB general forum would be better suited. Since it might depend upon how your listener configuration is set up.
    Apex (OHS or Apex Listener) is just like any other client in this regard. You can set it up to connect to both rac nodes (load balancing style) or you could set it up to connect to one dedicated apex rac node.

  • How to install apex 4 with Oracle Fusion Middleware Web Tier Utilities

    Hi all,
    Does any one know how to install apex 4 with Oracle Fusion Middleware Web Tier Utilities ?
    I follow the instructions http://download.oracle.com/docs/cd/E17556_01/doc/install.40/e15513/toc.htm but there's no directory called ORACLE_HTTPSERVER_HOME\Apache and ORACLE_HTTPSERVER_HOME/ohs/modplsql/conf/dads.conf
    I don't know where's dads.conf file to make change
    Please hellp me on this case
    Thanks & regards

    A little bit odd is an understatement. The first time I found I had to download over 1Gb of stuff to run a simple web server I practically fell over! Hopefully, the Apex Listener team will update it to have backwards compatibility with mod_plsql and we can ignore trying to install Oracle Fusion Middleware Web Tier Utilities...
    However, until then the TNS Names error generally means that there isn't a TNS alias set up for the database you have referenced in the mod_plsql dad. If you open up the dads.conf file you should see something like
    PlsqlDatabaseConnectString localhost:1521:databasealias
    If you then open a command prompt and do TNSPING databasealias you should get a response like this
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = localhost)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = ***)))
    OK (20 msec)
    If you don't it means you need to add it in.
    Hope this helps

  • How to manage several databases with DWH

    hi,
    How to manage several databases within an Oracle datawarehouse.
    I.e. to memorize in a DWH the informations along various axes of analysis relating to each databases (I mean : operations, breakdowns, parmeters, caracteristic technical, statistics ...)
    Thanks
    Robert

    Mylenium, thanks for a helpful hint!
    I tried your suggestions and it seems that i have to save
    - mask shape and
    - Stroke effect settings incl. key frames
    as separate things, if i want them in the effects panel.
    When i set the Stroke effect to my preferred look (with custom colours, width, key frames for Start and Opacity) and save this as an effect, i cannot re-apply this to another mask with any of my custom settings still there. When i re-apply the saved custom Stroke effect, all settings like keyframes, custom colours and width are lost and it arrives with default settings and without any keyframes.
    Maybe i do something very wrong here?
    I wondered if i should save the mask with Stroke effect as an AE file and re-import it. But this mask can only be saved together with some footage and i don't see how to bring mask including Stroke effect into an existing composition and which of the File/Import ways to use.
    Thanks again!

  • Moving apex database to production instance using datapump

    Currently the apex database resides on a windows server and we would like to move it to our production server (unix). I don't want to create a new database for apex on the unix server but would prefer to import the apex tablespaces and users into the production instance. I tried to export just the apex schema's and then import them into a "TEST" instance on the unix side, but that doesn't seem to work since i'm getting errors indicating that the apex users don't exist in the target database. Has anyone done this before and could they identify how they did it.
    My apex database is at 10.2.0.1 and my production database is at 10.2.0.3

    The application resides in the database. Not on the app server.
    It looks like your apex installation has been upgraded a few times. Theres no point in copying all of the old files etc.
    The approach I would use is as follows:
    i) Install apex on your unix server (Install your latest version which looking at your schemas is Apex 3.01 )
    (I suspect this is the step you're trying to avoid)
    ii) You should still be able to point your existing http server to connect to the new database
    iii) Once thats up and running, export your workspace from your database and install it onto the windows server
    Then export your application and install it in the imported workspace.
    You will have a much cleaner environment (only the flows_files and flows_030100 schemas will remain).
    If you do it this way, everything will work correctly.

  • Apex to Apex Database Export

    Hello
    I've requested a new APEX workspace make a backup of an existing APEX database.
    How can I copy the whole data base to the backup workspace.
    The database has many tables and I could save a lot of time by exporting the whole data base at once instead of saving every single table as a spread sheet and importing it again.
    Regards
    Felix

    Hi Felix,
    If you have direct (SQL*Net) access to your database it's easy to use export/import or datapump, check http://docs.oracle.com/cd/B19306_01/server.102/b14215/exp_imp.htm
    This enables you to copy over tables, data etc etc, depending on your requirements.
    Regards
    Bas

  • How to separate the Webi executing duration

    Dear experts,
    I'm running a webi report connected to backend BW via universe. Any idea on how to separate the webi executing duration into BO side part, BW side part?
    Thanks,

    Hi Hong ,
    *The overall runtime can be split into 5 different parts (Database, OLAP, MDX, RFC and
    WebIntelligence) .
    *We have to gather the statistics in the SAP BW system. Use transaction SE16 (Data Browser)
    and go to table RSDDSTAT_OLAP
    *Enter User name and UTIME and calendar date object name (Bex query)
    *Press the execute button and you will get the table with all the statistics in SAP BW. Now, you
    have to separate the backend runtimes into database, OLAP and MDX runtime.
    *Gathering the Database Runtime
    Click on the header of the column “EVENTID” to mark the whole column. Set a filter by pressing
    and select the between range from 9000 to 9011.
    *Gathering the OLAP Runtime
    Click on the header of the column “EVENTID” to mark the whole column. Set a filter by pressing
    and select the between range from 2500 to 4999.
    *Gathering MDX runtime
    Click on the header of the column “EVENTID” to mark the whole column. Set a filter by pressing
    and select the between range from 40000 to 40036.
    *Gathering the Single Statistical Records STAD
    To get the memory consumption, Remote Function Calls (RFC) and the details about all the BAPIs
    called during report execution, we need to enter transaction STAD in SAP BW.
    When starting STAD, set a filter on the connection user for the Universe and select the appropriate
    start time and the length of the interval to be investigated (according to the total runtime of the report).
    This will return a set of RFC calls to the backend. Normally, the major runtime influencing part can be
    easily determined by the column “Response time (ms).
    Subtract all this times from Webi report refresh time , we get time taken at BO end.

  • How to use Logical database in function module?

    I will create a function module in HR.
    but how to use Logical database  in function module ?  Logical database PNP always show screen.in function (RFC) code , it is a matter.

    You cannot attach the LDB to the main program of the function group.
    - So you may [SUBMIT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=submit&adv=false&sortby=cm_rnd_rankvalue] a report which use the LDB and get back the data (export/import), by default in the syntax of SUBMIT the selection-screen will not be displayed
    - Use [LDB_PROCESS|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=ldb_process&cat=sdn_all], fill a structured table for selection, and get data back in another table
    - Use [HR function modules to read Infotypes|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=hrfunctionmodulestoread+Infotypes&adv=false&sortby=cm_rnd_rankvalue].
    Regards

  • How to determine logical database in a program?

    Hello guys!
    How to determine logical database in a program on Eclipse?
    I have not found any options:
    Thanks!

    Welcome to SDN
    Check the table RSOSFIELDMAP
    Assign points if useful
    Regards
    N Ganesh

  • How to create a database for sample code from Tutorial/Book?

    I want to try out the sample code from [http://shop.oreilly.com/product/0636920013471.do] for the book SQL Pocket Guide 3rd Ed.
    I have downloaded the oracle vm/appliance for oracle 11g2 and I have started sqlplus as sysdba.
    I'm feeling overwhelmed with these links describing how to create a database:
    [http://www.adp-gmbh.ch/ora/admin/creatingdbmanually.html]
    [http://tldp.org/HOWTO/Oracle-7-HOWTO-3.html]
    [http://www.adp-gmbh.ch/ora/admin/creatingdbmanually.html]
    (1) What is the command to list the existing databases?
    (2) What is the command to delete an existing database?
    (3) When creating a new database with the create database command, is it necessary to specify the logfile, character set, national character set, datafile, sysaux datafile, undo tablespace, temp table space? Do these have reasonable defaults? I'm not sure what proper directories are to specify for Linux and the examples are for windows.
    Can someone give me a simplified create database command to create a database called 3rdEdPocketGuide? Should I follow the example at [http://tldp.org/HOWTO/Oracle-7-HOWTO-3.html] and instead of orcl use 3rdEdPocketGuide?
    (4) What command do I use to execute the script that comes with the book SQL Pocket Guide 3rd Ed? This is the script that has all the drop table, create table and insert commands in it.
    (5) What command do I use in sqlplus to set the current default database prior to running this script? Perhaps this is the connect command? I don't want my script to create tables in the system database.
    (6) I tried the command "connect 3rdEdPocketGuide" and it prompted for a password! Yikes! What password? Do I need to specify a password when I create a database? I cannot tell if I have successfully created such a database or it is just prompting me for a password to thwart malicious users. Is it is possible to create databases which don't require a password or maybe a zero length password?
    Thanks
    Siegfried
    Edited by: user8816970 on Sep 26, 2012 12:01 PM
    Edited by: user8816970 on Sep 26, 2012 12:18 PM

    user8816970 wrote:
    Paul,
    Thanks! I tried changing my profile name to siegfried but I'm not seeing the change...
    Anyway, I'm trying your suggestion to use SQL Developer which was already installed in the virtual box appliance and I cannot figure out how to get a connection.
    When I use the defaults of sid=xe, port=1521, hostname=localhost and specify
    username=sysdba
    password=
    I get status: failure - test failed: listener refursed connection with the following error: ORA 12505, TNS: listener does not current know of sid given.
    So I try sid=orcl and that works better: status: failure - test failed: ORA-01017: invalid username/passowrd; login denied
    OK, sqlplus let me in with out a password, why does not this work?
    So I try checking the box for "OS Authentication" and I get the same error!
    Hoek: I tried searching the documentation and found "3 Exploring Oracle Database with SQL Developer" at http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm but following those directions did not help. Can you be more specific? The directions were for a tutorial and I need to know what the passwords are for the database set up with [http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html|http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html] . I also found [http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG|http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG] but that did not help either.
    Everyone:
    Do I need to create a user using SQL*Plus first so I can login with "Oracle SQL Developer" so I create my database called? What would be the "create user" command I would execute?
    OK, so I run sqlplus and issue these commands
    create user siegfried identified by abc ;
    grant connect to siegfried ;
    connect siegfried/abc;
    Now, how do I create a database? In Microsoft SQL Server one has to create a database first and if you just start creating tables without creating a database first, the tables will be created in the system database and this is usually undesirable.
    Sometimes a database is known in the java connection string as the catalog. Is there any such analog in oracle SQL plus?
    So now what do I do? I want to create a bunch of tables using my script I downloaded from 3rd Ed SQL Pocket Guide. Does my new user "siegfried" have the right to create tables? I guess I could try but I don't want to create tables in the system database.
    I noticed I can also use "Oracle SQL Developer" to connect with my new "siegfried" account. It seems that I should have been able to connect with sysdba... strange.
    So now I am connected in the "Oracle SQL Developer" and I see no list of databases.
    Thanks!
    Siegfried
    >Paul,
    Thanks! I tried changing my profile name to siegfried but I'm not seeing the change...
    Anyway, I'm trying your suggestion to use SQL Developer which was already installed in the virtual box appliance and I cannot figure out how to get a connection.
    When I use the defaults of sid=xe, port=1521, hostname=localhost and specify
    username=sysdba
    password=
    I get status: failure - test failed: listener refursed connection with the following error: ORA 12505, TNS: listener does not current know of sid given.
    So I try sid=orcl and that works better: status: failure - test failed: ORA-01017: invalid username/passowrd; login denied
    OK, sqlplus let me in with out a password, why does not this work?
    So I try checking the box for "OS Authentication" and I get the same error!
    Hoek: I tried searching the documentation and found "3 Exploring Oracle Database with SQL Developer" at http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm but following those directions did not help. Can you be more specific? The directions were for a tutorial and I need to know what the passwords are for the database set up with [http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html|http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html] . I also found [http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG|http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG] but that did not help either.
    Everyone:
    Do I need to create a user using SQL*Plus first so I can login with "Oracle SQL Developer" so I create my database called? What would be the "create user" command I would execute?
    OK, so I run sqlplus and issue these commands
    create user siegfried identified by abc ;
    grant connect to siegfried ;
    connect siegfried/abc;
    above does NOT use SQL*Net to connect to the instance
    >
    Now, how do I create a database? In Microsoft SQL Server one has to create a database first and if you just start creating tables without creating a database first, the tables will be created in the system database and this is usually undesirable.
    Sometimes a database is known in the java connection string as the catalog. Is there any such analog in oracle SQL plus?
    So now what do I do? I want to create a bunch of tables using my script I downloaded from 3rd Ed SQL Pocket Guide. Does my new user "siegfried" have the right to create tables? I guess I could try but I don't want to create tables in the system database.
    I noticed I can also use "Oracle SQL Developer" to connect with my new "siegfried" account. It seems that I should have been able to connect with sysdba... strange.
    So now I am connected in the "Oracle SQL Developer" and I see no list of databases.SQL Developer can only connect to the instance via SQL*Net
    >
    Thanks!
    Siegfrieda database in SQL Server is same as schema/user in Oracle

  • How to separate debit and credit values in gl statement report (daywise)

    hi
    experts,
    i have report.
    selection criteria is
    chars of account.
    gl account
    date .
    how to separate debit and credit values in gl statement?.(i know there is a indicator shkzg).
    but send me code.
    op
    date,   total credit,total debit , balances.
    also calculate opening and closing balance.
    u created such type of report then plz help me.
    thanks&regards.\
    ajay.

    Hi,
    Usually it can be determined using the field shkzg. If it contain 'S' its debit and if it contains 'H' then its credit.
    Before showing the amount you need to do like;
    IF wa_gl-shkzg = 'H'.
    wa_gl-dmbtr = wa_gl-dmbtr * (-1). " dbmtr - amount
    ENDIF.
    This will solve your problem.
    Regards
    Karthik D
    Edited by: Karthik D on Jun 3, 2009 12:29 PM

Maybe you are looking for

  • Can I boot up a Tiger Disk IMage HDD using my Macbook Pro (with Leopard)

    Before my Ibook G4 crashed (tiger 10.4) I made a disk image using super duper. I purchased a Macbook Pro (leopard) and when I tried booting the disk Image I had made using superduper on a smart disk firewire drive, it would not recognize it. I held t

  • OS X Server 3.2.2 Update shows up ...

    Well, I upgraded my Mac to 10.10 Yosemite. Then I bought the new Server 4.0 version and installed it. So there is only the 4.0 Server app on the Mac. Still, it will show me a "OS X Server 3.2.2 Update" within the App Store. Of course this cannot be i

  • How to copy a part of exchange base on another server

    Hello, how can i COPY a part of Exchange Server 2010 base on test server? I can't copy all base because there isn't enough space on test server and test server isn't in a domain and doesn't connect to the Exchange Server. I don't need to transfer (mo

  • Syncing address book contacts list to family using iCloud

    As former mobileme family pack users, we could share all contacts stored on our Mac's address book between all 4 of our iOS devices in the family. Since upgrading to iCloud we are only getting contacts from our individual accounts, is there a way to

  • Oracle: slow performance with SELECT using ojdbc14 and connection pooling

    Hello, i'm working hard the last days to solve a performance problem with our customer using a oracle 10g database. For testing I used our oracle 9.2.0.1.0 database which shows the same symptoms. All doing solved nothing: the performance while using