How to use oracle APEX with an distant database located on a distant server

Hi there,
I'm a brand new user with Oracle Technologies. I've installed ORACLE 10g XE and updated APEX to 4.0 version on my laptop.
My Manager has setup a distant server with a Linux Red Hat. He has installed on this server EBS R12 with a 11i database.
As a training, I'd like to play with the tables located on the server with the APEX 4.0 installed on my laptop.
As the server is on the same local network and following the description above, is it possible to plug my local APEX to the server database ?
If not, does it mean I have to install APEX on the 11i server database and then connect to the server to play with those tables ?
Thanks a lot for your time and support ACEs members.
Regards,
Ulrich

Hi Ulrich,
yes, you can access other database from your APEX database. The mechanism used to do this is called a "database link". You need to create such a database link in your local database, then you can access the remote database like this:
SELECT *
  FROM databaselink@EMP
;If you want to use such remote objects from within APEX you need to create local views to wrap this (search the forum for apex and database links, you'll find interesting threads).
brgds,
Peter
Blog: http://www.oracle-and-apex.com
ApexLib: http://apexlib.oracleapex.info
BuilderPlugin: http://builderplugin.oracleapex.info
Work: http://www.click-click.at

Similar Messages

  • How to use Oracle APEX with Oracle12c - Beginner

    Hi. I have been using for months Oracle Application Express thanks to the online workspace on https://apex.oracle.com/i/index.html.
    Now, I want to create my production environment. I have installed Oracle Database 12c on a virtual machine (Oracle Virtual Box) based on Windows Server 2008 R2 (64 bit) o.s.
    I have created a new database and, during this process, I have selected only "Oracle Application Express" as database's option. Now, I don't know how to use APEX, how to configure the Listener and whatever I need to let the users may use my APEX's applications. Thank you very much for any help. Please consider that I am a beginner and I don't know how to master the administrative-side of APEX.
    Saverio

    Hi Neruda from Italy,
    Neruda from Italy wrote:
    Thank you very much. Anyway, If I installed Oracle11g then the list of instructions to follow in order to configure Oracle Apex is the following?
    Installing and Configuring Oracle Application Express and BI Publisher in Oracle Database 11g Release 2
         By Oracle 11g, do you mean Oracle Database 11g Express Edition?
         The list of instructions are correct in a way but the OBE is somewhat old (Instead you should always go for Oracle Documentation).
         Following are the installation guides for APEX versions:
    APEX 5.0 - https://docs.oracle.com/cd/E59726_01/install.50/e39144/toc.htm
    APEX 4.2 - http://docs.oracle.com/cd/E37097_01/install.42/e35123/toc.htm
         As you are going for configuring Embedded PL/SQL Gateway (as given in the OBE above) here are the detailed steps to install APEX and configure EPG:
    APEX 5.0 - https://docs.oracle.com/cd/E59726_01/install.50/e39144/epg.htm#HTMIG386 (skip the steps for Oracle Database 12c)
    APEX 4.2 - http://docs.oracle.com/cd/E37097_01/install.42/e35123/otn_install.htm#HTMIG389
         If you deem that your question is answered, then please close the thread by marking the appropriate replies helpful/correct.
    Regards,
    Kiran

  • How to use Oracle partitioning with JPA @OneToOne reference?

    Hi!
    A little bit late in the project we have realized that we need to use Oracle partitioning both for performance and admin of the data. (Partitioning by range (month) and after a year we will move the oldest month of data to an archive db)
    We have an object model with an main/root entity "Trans" with @OneToMany and @OneToOne relationships.
    How do we use Oracle partitioning on the @OneToOne relationships?
    (We'd rather not change the model as we already have millions of rows in the db.)
    On the main entity "Trans" we use: partition by range (month) on a date column.
    And on all @OneToMany we use: partition by reference (as they have a primary-foreign key relationship).
    But for the @OneToOne key for the referenced object, the key is placed in the main/source object as the example below:
    @Entity
    public class Employee {
    @Id
    @Column(name="EMP_ID")
    private long id;
    @OneToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="ADDRESS_ID")
    private Address address;
    EMPLOYEE (table)
    EMP_ID FIRSTNAME LASTNAME SALARY ADDRESS_ID
    1 Bob Way 50000 6
    2 Sarah Smith 60000 7
    ADDRESS (table)
    ADDRESS_ID STREET CITY PROVINCE COUNTRY P_CODE
    6 17 Bank St Ottawa ON Canada K2H7Z5
    7 22 Main St Toronto ON Canada     L5H2D5
    From the Oracle documentation: "Reference partitioning allows the partitioning of two tables related to one another by referential constraints. The partitioning key is resolved through an existing parent-child relationship, enforced by enabled and active primary key and foreign key constraints."
    How can we use "partition by reference" on @OneToOne relationsships or are there other solutions?
    Thanks for any advice.
    /Mats

    Crospost! How to use Oracle partitioning with JPA @OneToOne reference?

  • How to Use Oracle 8i with MapX?

    I am trying to work with oracle 8i 1.6 and mapX 4.5 but un-able to do so. I tried by adding server layer but couldn't do so.
    Help !!

    Crossposted: Re: How to use Oracle partitioning with JPA @OneToOne reference?

  • Can I use Oracle APEX with MySQL Database

    Hi All,
    We are looking to create a performance dashboard using Oracle APEX for our client, but the application database is MySQL. Is it possible to create reports in APEX using data from MySQL database? If yes, are there any specific steps to be followed or any additional setups needed?
    Any inputs would be really helpful.
    Appreciate all the help
    Thanks,
    Sameer

    Hi Sameer,
    it's not possible to use apex on mysql, as stated above me by several persons.
    If you havent got any oracle database in your organization, apex would be an expensive choise unless you use the free Oracle XE (express edition), which has APEX embedded.
    There are some limitations to XE but with a bit of smart thinking it wouldnt be much of a problem.
    [check the XE information here|http://download.oracle.com/docs/cd/B25329_01/doc/install.102/b25143/toc.htm#BABIECJA]
    In short:
    - XE will use 1 CPU even if you have two or more in your system
    - There is a 4 GB data limit
    - RAM memory usage is limited to 1 GB
    - 1 installation per computer
    You can use XE as a reporting database. This will relieve your mysql database from heavy reporting processes, too.
    The XE can be used as a mini data warehouse. So you have to transfer and transform the relevant data from mysql to your XE instance.
    After that you can start building report screens etc in the embedded Apex .
    hope this helps you
    Robin

  • How to integrate Oracle Apex with Peoplesoft?

    Dear Experts,
    Is there possibility to integrate peoplesoft for higher education with oracle apex
    Regards
    Mahmoud

    This very much depends on what you mean by the first "oracle webcenter" and what kind of integration you are looking for.
    Oracle WebCenter contains three main product lines:
    - Oracle WebCenter Portal,
    - Oracle WebCenter Sites,
    - and Oracle WebCenter Content.
    Since the newest version 11.1.1.8 it is possible to store Sites' assets in WebCenter Content.
    WebCenter Portal, where the name WebCenter originated from, is another front-end technology, so it would rather co-exist next to Sites than integrate with them. See this thread WebCenter Portal and WebCenter Sites Integration for more details.

  • How to use oracle crypto with RSA

    Hi,
    I found oracle crypto and we will use it http://download-uk.oracle.com/docs/cd/B25221_04/security.1013/b25372/crypto.htm#BJFIHJFH
    but it generates an errors:
    SQL> CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "NetsafeCrypt" AS
    2 import java.lang.*;
    3 import java.io.*;
    4 import oracle.security.crypto.core.*;
    5 import oracle.security.crypto.util.*;
    6
    7 public class NetsafeCrypt {
    8 public static String RSAEncrypt(String data, String pubKeyData) {
    9 RSAPublicKey pubKey = RSAPublicKey(pubKeyData.getBytes());
    10 return "abc";
    11 }
    12 };
    13 /
    Warning: Java created with compilation errors.
    SQL> show error
    Errors for JAVA SOURCE "NetsafeCrypt":
    LINE/COL ERROR
    0/0 NetsafeCrypt:8: cannot find symbol
    0/0 symbol : class RSAPublicKey
    0/0 location: class NetsafeCrypt
    0/0 RSAPublicKey pubKey = RSAPublicKey(pubKeyData.getBytes());
    0/0 ^
    0/0 2 errors
    0/0 symbol : method RSAPublicKey(byte[])
    0/0 location: class NetsafeCrypt
    0/0 RSAPublicKey pubKey = RSAPublicKey(pubKeyData.getBytes());
    0/0 ^
    0/0 NetsafeCrypt:8: cannot find symbol
    My CLASSPATH is ok.
    echo $CLASSPATH
    /opt/app/oracle/product/11/db_1/JRE:/opt/app/oracle/product/11/db_1/jlib:/opt/app/oracle/product/11/db_1/rdbms/jlib:/opt/app/oracle/product/11/db_1/network/jlib:/opt/app/oracle/product/11/db_1/jlib/osdt_core.jar
    Regards,
    Tom

    oracle.crypto is not supported in the 10.1.x release of the oracle JVM/Database. We do support the Sun JCE encryption API's as documented by Sun. I recommend using the JCE and JSSE API's as they are the standard moving forward with later releases of Oracle.
    Setting of the client CLASSPATH has no effect on classes loaded into the database. The resolution model is explained in the Oracle Database Java Developers Guide.

  • How to use Oracle Procedures with Servlet page

    Hi all
    I'm working on Servlet pages and I need to insert and select some records from Oracle database but it has to be done by calling some already written Procedures. I've never really used them before so I'm little lost. I know where the queries are used it'll be Procedures but what is the syntax for it.Can anyone put me in right direction please.
    Thanks

    Just google it. You will find lots of examples. Here are some :
    [http://java.sun.com/docs/books/tutorial/jdbc/basics/sql.html|http://java.sun.com/docs/books/tutorial/jdbc/basics/sql.html]
    [http://onjava.com/pub/a/onjava/2003/08/13/stored_procedures.html|http://onjava.com/pub/a/onjava/2003/08/13/stored_procedures.html]

  • How to use oracle Portal with JDeveloper 10.1.3 ADF JSF

    Hi all
    I use JDeveloper 10.1.3
    I found out that the latest Portal 10.1.4 does not support JSF ADF
    IF I WANT USE PORTAL ,WHAT SHALL I DO?
    Thanks

    OracleAS Portal 10.1.4 does not support JSF portlets.
    JSF support in OracleAS Portal is in development.

  • How to use sql request with Jdev and database connection

    Hello,
    I have a login page with simple username and password inputsecret text and a button validate! I would like, when the user click on the validate button, to check in the database that the user and password matches. I've done the "Method BIndind..." with the commandButton_action and the database connection works fine.
    How can I use an already existing procedure, say authenticate, wich is stored in the database to authenticate my user ?
    Do I have to create a jdbc connection in java even if I've done the connection with the "create new database connection" wizard ?
    String s1 = "jdbc:oracle:thin:@address:1521:ORCL";
    System.out.println( "Connecting with: " );
    System.out.println( s1 );
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    this.conn = DriverManager.getConnection( s1,"user","pass");
    thanks for your help

    Creating a connection to the DB in JDeveloper doesn't mean that your application is now connected to the DB - so yes you do need to create a connection to the database using JDBC.
    One note - if you are trying to do a database user authentication the following is probably the better way to go about it:
    http://www.oracle.com/technology/products/jdev/howtos/1013/oc4jjaas/oc4j_jaas_login_module.htm

  • Use Oracle Reports with Jdeveloper 11

    Hi,
    My next question. How to use Oracle Reports with jdeveloper 11. I have more oracle reports (used with a existing forms application) and i need to migrate this application to web-adf application. I think that is very powerful to use this oracle definition reports but i not know ho to do it.
    thanks,
    Jordi

    Read the publishing reports manual of Oracle reports to see how to Web enabled your Oracle reports. You can then invoke them from an ADF application either by calling a URL or using a Web service interface.

  • How to use Oracle maps in APEX??

    I am developing one application in APEX 3.2. I need to use Oracle Map for the same.
    How to integrate Oracle maps with Apex ?? Can any one help me for this ?
    Thanks

    Nagesh.Patil wrote:
    Hi All,
    I want to use oracle workflows in my apex application.
    can anybody tell me how can I get this ?
    Thanks in advance..
    Database version : 11g XE
    Apex version : 4.0
    Nagesh Patil
    Oracle Workflow is only available as a component of EBS. It has never been available on, and is not certified for Oracle 11g, nor any version of XE.

  • How to Unpivot, Crosstab, or Pivot using Oracle 9i with PL/SQL?

    How to Unpivot, Crosstab, or Pivot using Oracle 9i with PL/SQL?
    Here is a fictional sample layout of the data I have from My_Source_Query:
    Customer | VIN | Year | Make | Odometer | ... followed by 350 more columns/fields
    123 | 321XYZ | 2012 | Honda | 1900 |
    123 | 432ABC | 2012 | Toyota | 2300 |
    456 | 999PDQ | 2000 | Ford | 45586 |
    876 | 888QWE | 2010 | Mercedes | 38332 |
    ... followed by up to 25 more rows of data from this query.
    The exact number of records returned by My_Source_Query is unknown ahead of time, but should be less than 25 even under extreme situations.
    Here is how I would like the data to be:
    Column1 |Column2 |Column3 |Column4 |Column5 |
    Customer | 123 | 123 | 456 | 876 |
    VIN | 321XYZ | 432ABC | 999PDQ | 888QWE |
    Year | 2012 | 2012 | 2000 | 2010 |
    Make | Honda | Toyota | Ford | Mercedes|
    Odometer | 1900 | 2300 | 45586 | 38332 |
    ... followed by 350 more rows with the names of the columns/fields from the My_Source_Query.
    From reading and trying many, many, many of the posting on this topic I understand that the unknown number or rows in My_Source_Query can be a problem and have considered working with one row at a time until each row has been converted to a column.
    If possible I'd like to find a way of doing this conversion from rows to columns using a query instead of scripts if that is possible. I am a novice at this so any help is welcome.
    This is a repost. I originally posted this question to the wrong forum. Sorry about that.

    The permission level that I have in the Oracle environment is 'read only'. This is also be the permission level of the users of the query I am trying to build.
    As requested, here is the 'create' SQL to build a simple table that has the type of data I am working with.
    My real select query will have more than 350 columns and the rows returned will be 25 rows of less, but for now I am prototyping with just seven columns that have the different data types noted in my sample data.
    NOTE: This SQL has been written and tested in MS Access since I do not have permission to create and populate a table in the Oracle environment and ODBC connections are not allowed.
    CREATE TABLE tbl_MyDataSource
    (Customer char(50),
    VIN char(50),
    Year char(50),
    Make char(50),
    Odometer long,
    InvDate date,
    Amount currency)
    Here is the 'insert into' to populate the tbl_MyDataSource table with four sample records.
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    SELECT "123", "321XYZ", "2012", "Honda", "1900", "2/15/2012", "987";
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    VALUES ("123", "432ABC", "2012", "Toyota", "2300", "1/10/2012", "6546");
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    VALUES ("456", "999PDQ", "2000", "Ford", "45586", "4/25/2002", "456");
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    VALUES ("876", "888QWE", "2010", "Mercedes", "38332", "10/13/2010", "15973");
    Which should produce a table containing these columns with these values:
    tbl_MyDataSource:
    Customer     VIN     Year     Make     Odometer     InvDate          Amount
    123 | 321XYZ | 2012 | Honda      | 1900          | 2/15/2012     | 987.00
    123 | 432ABC | 2012 | Toyota | 2300 | 1/10/2012     | 6,546.00
    456 | 999PDQ | 2000 | Ford     | 45586          | 4/25/2002     | 456.00
    876 | 888QWE | 2010 | Mercedes | 38332          | 10/13/2010     | 15,973.00
    The desired result is to use Oracle 9i to convert the columns into rows using sql without using any scripts if possible.
    qsel_MyResults:
    Column1          Column2          Column3          Column4          Column5
    Customer | 123 | 123 | 456 | 876
    VIN | 321XYZ | 432ABC | 999PDQ | 888QWE
    Year | 2012 | 2012 | 2000 | 2010
    Make | Honda | Toyota | Ford | Mercedes
    Odometer | 1900 | 2300 | 45586 | 38332
    InvDate | 2/15/2012 | 1/10/2012 | 4/25/2002 | 10/13/2010
    Amount | 987.00 | 6,546.00 | 456.00 | 15,973.00
    The syntax in SQL is something I am not yet sure of.
    You said:
    >
    "Don't use the same name or alias for two different things. if you have a table called t, then don't use t as an alais for an in-line view. Pick a different name, like ordered_t, instead.">
    but I'm not clear on which part of the SQL you are suggesting I change. The code I posted is something I pieced together from some of the other postings and is not something I full understand the syntax of.
    Here is my latest (failed) attempt at this.
    select *
      from (select * from tbl_MyDataSource) t;
    with data as
    (select rownum rnum, t.* from (select * from t order by c1) ordered_t), -- changed 't' to 'ordered_t'
    rows_to_have as
    (select level rr from dual connect by level <= 7 -- number of columns in T
    select rnum,
           max(decode(rr, 1, c1)),
           max(decode(rr, 2, c2)),
           max(decode(rr, 3, c3)),
           max(decode(rr, 4, c3)),      
           max(decode(rr, 5, c3)),      
           max(decode(rr, 6, c3)),      
           max(decode(rr, 7, c3)),       
      from data, rows_to_have
    group by rnumIn the above code the "select * from tbl_MyDataSource" is a place holder for my select query which runs without error and has these exact number of fields and data types as order shown in the tbl_MyDataSource above.
    This code produces the error 'ORA-00936: missing expression'. The error appears to be starting with the 'with data as' line if I am reading my PL/Sql window correctly. Everything above that row runs without error.
    Thank you for your great patients and for sharing your considerable depth of knowledge. Any help is gratefully welcomed.

  • Integration of Oracle Apex with EBS R12.1.1

    Dear All,
    We are in process of integrating Oracle Apex 4.0.2 with EBS R12.1.1 with the help of http://www.oracle.com/technetwork/developer-tools/apex/apex-ebs-wp-cabot-consulting-169064.pdf.
    After doing all the steps, the moment when we navigate from EBS application to Apex application by clicking on the EBS menu link it ends up with below error
    "404 Not Found
    Resource /OA_HTML/null/pls/apex/f not found on this server"
    After some analysis i found the below code in "LaunchApex.jsp" for getting the profile value (supposed to be 'http://myserver:port') from custom system profile "APEX_HTTP_SERVER" and prefixing to "/apex/f?p=applicationid:page::APPS:::" is not happening properly
    String l_launcher = ctx.getProfileStore().getProfile("APEX_HTTP_SERVER");
    l_launcher = l_launcher + "/apex/f?p=" + p_application + ":" + p_page;
    l_launcher = l_launcher + "::APPS:::" + p_item_names + ":" + p_item_values;
    as we found that the custom system profile "APEX_HTTP_SERVER" not exist in EBS system. But it works without any page error if we hard code the entire apex application URL in l_launcher variable, but this takes us to EBS login page instead of Apex application page.
    So i feel we can't bypass using profile value from "APEX_HTTP_SERVER" as it has some relation with EBS application session.
    So could anyone please help me how we could create custom system profile "APEX_HTTP_SERVER" or any other options to make the seamless integration of Oracle apex with EBS works without any second login page
    Thanks in advance
    Edited by: 805196 on Aug 25, 2011 12:23 AM

    Hi,
    Create a profile under Application Developer Responsibility as follow:
    Name OAE_LAUNCHER
    Application <whatever>
    User Profile Name Oracle Application Express Launcher
    Description Oracle Application Express Launcher
    2. Set above profile value under System Administrator Responsibility -> Profile -> System, and search for the ‘OAE_LAUNCHER’.
    Set the value at Site Level as:
    http://<hostname>:<Apex port>/pls/apex
    Then instead of hardcoding the URL in the jsp, just give the profile name OAE_LAUNCHER that you have just created in the jsp.
    Hope this helps you
    Brgds,
    Mini
    If this is helpful or correct, assign points promptly.

  • Integrating Oracle Apex with Oracle eBusiness Suite

    Hi All,
    Can someone give me details about how we can integrate Oracle Apex with eBusiness Suite. We have few custom forms/ reports which are being developed in Apex. We want to register these in oracle applications as standard functions and link them to user responsibilities. Is it a good idea to create ApEx as separate application or can we use an existing application (like OM).
    Any pointers, references, documents with reference to this would be very useful.
    Thanks in advance.

    or view: http://skrajend.blogspot.com/2007/06/htmldb-authentication-with-oracle.html
    There are other excelent tip from Rod West
    http://www.oracle.com/technology/products/database/application_express/pdf/Extend_Oracle_Applications_11i.pdf
    regards
    Rolando
    Edited by: RolandP on May 12, 2009 6:56 PM

Maybe you are looking for

  • Indicator of Free space on a drive

    In Snow Leopard there was a convenient listing of the amount of space used on a hard drive shown on the bottom of the drive's open window, but this seems to have dissappeared in Lion.  It is a pain to use Get Info all the time to see your usage on a

  • Aperture can't move files to trash

    My photos are on networked external hard drive, and I have the folder on the drive mounted. However, when I try to delete a photo from this drive within Aperture, I get a message saying "Cannot Move Files to Trash" "You don't have access to the Trash

  • Add field in KSB1

    Hi all, I would like to know if I could add GL field (like BKPF-XBLNR) on KSB1 Report ? And if yes, how can I do it ? Best regards, Gilles.

  • Logical DB pgmming in BSP

    Hi, Is it possible to use GET PERNR .. in BSP . rgds, J Message was edited by: J

  • WRT54GSV7 Wireless Internet Just isnt working correctly..

     I have been on the phone with AT&T and Linksys for the past 5 days for hours at a time trying to figure al lthis out and its still not 100% right. This NEEDS to get solved. Heres the basic simple rundown. I recenetly had to reinstall XP Pro on my la