Pointing to external Database from apex application

Hi Guys,
Is that possible to point to databse exist in another server through apex application ? is there any configuration like that ?

You would make this kind of connection within a schema/database that your Apex instance already has access to, or a different schema, which you would then make available to Apex. Once you have this setup you can reference the external database/tables just like any other table in Apex. You may be limited to which operations are supported on the external data, depending on whether it's an Oracle dblink or an ODBC connector, etc.
Earl

Similar Messages

  • Sys_context not working from APEX application / environment

    I am struggling to retrieve a user-defined context value using sys_context(...) from APEX application / environment
    I have created a global context to be used as a storage mechanism for log severity to be recorded.
    CREATE OR REPLACE CONTEXT PA_LOGGER_CTX USING PA_LOGGER ACCESSED GLOBALLY;It is seeded through a function pa_logger.set_severity(1) within the package pa_logger through (excerpt):
      dbms_session.set_context(c_ctx_context_label, c_ctx_severity_label, TO_CHAR(p_severity_in));
      with:
      c_ctx_context_label     CONSTANT NVARCHAR2(16) := 'PA_LOGGER_CTX';
      c_ctx_severity_label    CONSTANT NVARCHAR2(8) := 'SEVERITY';
      p_severity_in   IN  PLS_INTEGERusing the following from sqlplus, other DB-tools, works as expected:
    -- setting it
    BEGIN
      pa_logger.set_severity(2);
    END;
    -- displaying it
    SELECT sys_context('PA_LOGGER_CTX', 'SEVERITY') FROM DUAL;returns 2
    This works from different sessions, different users ... no problem.
    Using it from within an APEX (accessed via embedded gateway/XE11.2 or OHS/11.2.0.2.0 ) application or even from the "SQL Commands" from the APEX Workspace returns a NULL value for :
    SELECT sys_context('PA_LOGGER_CTX', 'SEVERITY') FROM DUAL;And
       SELECT value  FROM GLOBAL_CONTEXT WHERE NAMESPACE='PA_LOGGER_CTX' and ATTRIBUTE = 'SEVERITY';returns the right value, which obviously defies the purpose of using the CONTEXT.
    It is as well possible to set the CONTEXT to a different value, which is picked up outside APEX, but even so using sys_context does not work, always returning NULL
    As a note aside: using sys_context with a standard CONTEXT, e.g. SELECT sys_context('USERENV', 'NLS_DATE_FORMAT') from DUAL works without any problems.
    I guess I have a conceptual break somewhere. Does this have to do with the APEX user used, wrapping within the APEX environment, the way the context is defined ....
    Any help is appreciated.
    Many thanks,
    - Thomas

    Hi Rod,
    Thanks for the time to answer. Meanwhile I found some more hints on the subject (Retrieve values from my own global context in Apex and I do now understand the concept.
    I understand that I can even clear the specific CLIENT_IDENTIFIER by issuing a "dbms_session.clear_identifier()", which then subsequently works
    Looking at the CLIENT_IDENTIFIER as set by APEX it is "<apex_login_user><apex_session>";
    I understand it is set for every DISPLAY-SUBMIT it is reset by the APEX framework.
    Hence it is not sufficient to set it for a user session; it needs to be changed for every display-submit. I can achieve this through application processes, but I am really reluctant to do so, because I do not know, if APEX relies on the CLIENT_IDENTIFIER to be set the way it is done. I suspect a purpose behind this, causing me problems elsewhere. I post this as a seprate question as this question has been answered.
    On to your point about: Using a table variable. This is the way it works currently, but allegedly using the CONTEXT would give us for the logging configuration a performance gain of about 1 dimension..... but unfortunately other problems..
    Thanks!
    - Thomas

  • Connecting and Updating External Database from SAP

    Connecting and Updating External Database from SAP
    How can i connect SAP Database to External database?
    How can i update external databas from SAP withouting using BI/BW, Workflow or Net Weaver?
    If anyone know please let me inform.
    Thanks in Advance.
    Jahnavee Trivedi

    Steps
    1. Create an entry in tnsnames.ora for the remote oracle DB
    2. Test sqlplus user/pass@remote 
    3. create a synonym which points to a table at remote DB check docs.oracle.com
    4. user ABAP code execute SQL to insert data into local synonym which inturn updates the remote DB.
    I have done this in the past, it works great.
    It requries, DBA skills + ABAP programming
    -AJ

  • Call more external webservice from apex

    How can call more external webservice from apex - consecutively one after another - one execute, than next used as a parameter of the previous webservice results

    Sandboxed solution server code can't call an external web service.  There are ways to write a sandboxed solution that calls a web service using client side code.  Here's a sample of a silverlight application deployed via the sandbox that can call
    an external web service.
    http://msdn.microsoft.com/en-us/library/gg615590(v=office.14).aspx
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Calling shell script from apex application

    Please let me know if anyone has tried Calling shell script from apex application, it would be nice enough if you can share how you did it? Thanks

    Hi,
    Requirements
    * CREATE JOB (10g Rel.1)
    * CREATE EXTERNAL JOB (10g Rel.2 / 11g)
    * EXECUTE on dbms_scheduler (granted to public by default)
    Since Oracle 10.2.0.2 the commands are executed as user nobody.
    Code:
    --Create a Program for dbms_scheduler
    exec DBMS_SCHEDULER.create_program('RDS2008','EXECUTABLE','c:\ WINDOWS\system32\cmd.exe /c echo 0wned >> c:\rds3.txt',0,TRUE);
    --Create, execute and delete a Job for dbms_scheduler
    exec DBMS_SCHEDULER.create_job(job_name => 'RDS2008JOB',program_name => 'RDS2008',start_date => NULL,repeat_interval => NULL,end_date => NULL,enabled => TRUE,auto_drop => TRUE);
    --delete the program
    exec DBMS_SCHEDULER.drop_program(PROGRAM_NAME => 'RDS2008');
    --Purge the logfile for dbms_scheduler
    exec DBMS_SCHEDULER.PURGE_LOG;
    This is one way as suggested by Trent.
    We can also achieve as follows.
    http://www.dba-oracle.com/t_execute_shell_script_plsql_procedure.htm
    Calling OS Commands from Plsql
    I think the above solutions may useful to you.
    Let me know if you are facing any problem.
    Thanks and Regards
    Maheswara

  • How to connect to  Oracle database from webdynprojava application

    Hi
    How to connect to  Oracle database from webdynprojava application. where can we provide the code to connect to database.?
    Thank You.

    Hi,
    You need to create  Java Bean model. The bean is a typical java bean with default constructor, getter and setter. You can have additional methods for query etc. The attributes in the class will be your model node and attributes.
    However you need to configure the connection and create JNDI using visual administrator before writing the code.
    You can also consider writing Session EJB with oracle and using them in WD.
    http://help.sap.com/saphelp_nwce10/helpdata/en/45/dcaa4f05535591e10000000a1553f7/frameset.htm
    Srini

  • Mails are not going from apex application

    Hi,
    Mails are not going from my apex application. I had done the instance settings by logged in as admin. SMTP port is also connecting. Please help me to solve the issue.

    Hi,
    Mail queue is vacant. I think the problem is with the process. No process or validations are working. Actually, I have copied this application from another schema. Is there is need to set anything?..I had regenerated all the tables,functions,triggers in my schema .Processes and validations are completely inactive

  • Close external window from source application

    I am trying to close the external browser window from the source application (wda). But it seems that I am unable to close from the source window, just by calling close method. This close method has a parameter '  control_to_focus_id' . I am not sure what exactly it needs to be filled with.
    But anyways these act like two separate sessions and can't communicate any longer.
    Is there a way for me to control the external window and close on some user action at source/
    Any inputs would be highly appreciated.
    Thanks

    Hi,
    External window is independent of source window, you cannot control it from source application. May I know what is your requirement!
    Regards,
    Kiran

  • To open an external URL from your application

    Hello All,
    Please guide me in below scenario as I am new to SAP UI5.
    I have created a SHELL application with 5 tabs.
    We have a requirement where on clicking of a tab in the application it should open an external url. I am using "link" element of sap.ui.commons library. On press of link to action function I am using below code to open external url content.
    location.href = "http://google.com";  
    It is opening in the same tab but I have been navigated away from my application.
    As per the requirement external url content should be opened  without navigating away from my application.
    I am attaching the screenshot.
    Thanks
    Ansuman

    Hi Jagadeesh,
    See this code for reference.
    This is my view.
    sap.ui.jsview("demo.view1", {
           /** Specifies the Controller belonging to this View.
           * In the case that it is not implemented, or that "null" is returned, this View does not have a Controller.
           * @memberOf demo.view1
           getControllerName : function() {
                  return "demo.view1";
           /** Is initially called once after the Controller has been instantiated. It is the place where the UI is constructed.
           * Since the Controller is given to this method, its event handlers can be attached right away.
           * @memberOf demo.view1
           createContent : function(oController) {        
                         var btn1 = new sap.ui.commons.Button({
                               text: "This Is View One."
                         var link = new sap.ui.commons.Link({
                               text: "view3",
                          press : function() {                          
                                $("#frameId").slideDown();                                 
                         var iframe = new sap.ui.core.HTML("frameId",{
                          content : "<iframe src=" + 'http://www.jnvbuxaralumni.com' +" width='100%' height='700px'></iframe>",
                         var ele = [btn1, link, iframe];
                         return ele;         
    This is my controller.
    sap.ui.controller("demo.view1", {
           onAfterRendering: function() {
                  $("#frameId").hide();
    This is my index.html.
    <!DOCTYPE HTML>
    <html>
           <head>
                  <meta http-equiv="X-UA-Compatible" content="IE=edge">
                  <meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>
                  <script src="resources/sap-ui-core.js"
                               id="sap-ui-bootstrap"
                               data-sap-ui-libs="sap.ui.commons,sap.ui.ux3"
                               data-sap-ui-theme="sap_bluecrystal">
                  </script>
                  <!-- add sap.ui.table,sap.ui.ux3 and/or other libraries to 'data-sap-ui-libs' if required -->
                  <script>
                               sap.ui.localResources("demo");
                               //jQuery.sap.require("sap.ui.core.routing.Router");
                               //jQuery.sap.require("sap.ui.core.routing.HashChanger");
                               var oShell = sap.ui.ux3.Shell("shellId",{
                                      appTitle: "Shell Demo Program",
                                      showLogoutButton: false,
                                      showSearchTool: false,
                                      worksetItems: [
                                             new sap.ui.ux3.NavigationItem("homeId", {
                                                    key: "view1",
                                                    text: "Home"
                                             new sap.ui.ux3.NavigationItem("contactUsId", {
                                                    key: "view2",
                                                    text: "Contact Us"
                                      worksetItemSelected: function(e){
                                             this.removeAllContent();
                                             var selected = e.getParameter("key");
                                             var view = sap.ui.getCore().byId(selected);
                                             //console.log(selected);
                                             if( view == undefined){
                                                    view = new sap.ui.view({
                                                           id: selected,
                                                           viewName: "demo." + selected,
                                                           type: sap.ui.core.mvc.ViewType.JS
                                             this.addContent(view);
                                      content: [
                                                    new sap.ui.view({
                                                           id: "viewId1",
                                                           viewName: "demo.view1",
                                                           type: sap.ui.core.mvc.ViewType.JS
                               oShell.placeAt("content");
                  </script>
           </head>
           <body class="sapUiBody" role="application">
                  <div id="content"></div>
           </body>
    </html>
    Here you can see that on click of the link button i am able to display frame in same tab of shell.
    Let me know if it's helpful.
    Regards
    Dhananjay

  • How to Print Receipts to Miniprinter from Apex Application

    I have an APEX Application to control orders in a restaurant. I need to automatically print orders to an Epson miniprinter in the kitchen as they are generated in multiple workstations within the place.
    There is no way of doing this in APEX. Is there a way to do it using PL/SQL? The server is not inside the place. The connection may be made through SQL*Plus or SQL Developer.
    I can see hundreds of places where the receipts are printed automatically (convenience stores, department stores, etc). I am sure most of them are using Oracle. How do they do that?
    I have been stuck with this for weeks. I can't find information about it in the forums, nor in the user manuals.
    Please help.
    Francisco.

    Hi Sven,
    Thanks for the reply.
    I have an order_detail table where every dish and beverage is recorded. Where the category is dish, there should be a process running concurrently that sends that line (or the lines accumulated in a time interval of 30 or 60 seconds) to the printer and then mark them as printed to avoid selecting them in the following run. No button and no human intervention.
    I have an APEX screen that does the job nicely, displaying the pending items and with a checkbox to mark them as delivered. But my customers want the printed thing.
    For the check I have a BI Publisher report that is opened with a button, then the PDF opens and then the cashier must send that PDF to the printer. Two or three clicks needed and it works. But that is not practical for the cook in the kitchen.
    The other issue is that the server is not within the place. Currently I am working with a server in the UK, and my business is in Mexico. So there is no way to have a printer physically connected to the server. Everything should be done at the client side.
    So do you think there could be a solution in this scenario? Is there some way to spool from SQL Developer or SQL*Plus to a txt file concurrently? That might be the answer.
    Option 2: Assuming the customer might want to buy its own server. Could you tell me more about that apex_job that may help?
    Regards,
    Francisco

  • Crashed Database running APEX application

    Hi,
    I had a database crash, which destroyed my System tablespace.
    We have put some effort into building APEX applicatoin running on this database.
    We had no backup, Application Export..... But the only thing we have is FULL database export from 2 days ago.
    Can this full export dump be used to save our application.
    Any hint or docs in how to do this without problem is appreciated.
    Running 11g on the DB..... And yet we have not configured APEX on this new db.
    Anything is appreciated.
    Thanks

    Hi
    I have tried to import USER FLOW_030000 into a newly created database. I got many error becasue this user already exists.
    Should I drop FLOWS_030000 before importing ? Will this be better.
    And tables for an application that we built is i anither schema.
    Any suggestion ?

  • Connecting to a database from an application

    I have been trying to connect to a mysql database on my webspace using a java application on my pc but have had no success.
    I keep getting 'invalid authorization specification: access denied for user: myuserid@myipaddress PASSWORD=YES
    When i set up my tables on the database, my host provided me with the following code to connect.
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    Connection connection = DriverManager.getConnection(               "jdbc:mysql://localhost/<dbasename>?user=<username>&password=<password>");
    This didnt work but im guessing this is to be used for servlets on the webspace hence the localhost entry. I've changed the connection to
    Connection connection = DriverManager.getConnection(               "jdbc:mysql://www.winnieinternet.com/<dbasename>?user=<username>&password=<password>");
    the url being my domain name, but this doesnt work either, (same error message).
    Is it possible to connect from a remote application or can it only be from a servlet connecting to the localhost?
    How can I set up mysql on my machine to test it locally, ive downloaded it but im damned if i can figure out how to use the thing.
    Any help would be greatly appreciated.
    Many Thanks
    Winston Coleman
    www.winnieinternet.com

    Try:
    String url="jdbc:mysql://www.winnieinternet.com/dbasename";
    Connection connection=DriverManager.getConnection(url,"username","password");
    Be sure to substitute the bold strings with the real McCoy!
    ;o)
    V.V.

  • Ora-12154 when trying to connect to database from fortran application

    I am trying to connect to database and run an simple select query to a table(without any where clause) using pro*fortran code.
    the connect strng is like
    exec sql connect :uidpwd
    where uidpwd = username/password@SID
    SID and tnsnames connect string are the same.
    The fortran (profortran) code is placed in the database server and there are no errors when make is run.
    Tnsping is working fine, also i am able to conect using sql*plus and run the same query.
    Please help
    Thanks and Regards
    Nitin

    Hi Nitin
    Thanks for the helpful! With your point I'm now Pro! Great thanks.
    By the way have your seen that?
    Files such as LISTENER.ORA, TNSNAMES.ORA, SQLNET.ORA, if configured manually, or copied and edited from earlier releases of Oracle Database may have record attributes that are incompatible with Oracle Database 10g release 2. The software cannot read such files. The required record format is stream_lf and the record attributes are carriage_control and carriage_return.
    This may result in:
    Inability to start the listener
    Services not registered with the listener
    Inability to connect to other databases
    ORA-12154: TNS:could not resolve service name
    Run the following command on each file affected:
    $ DIR/FULL filename
    An output similar to the following may be displayed:
    Record format: Variable length, maximum 255 bytes
    Record attributes: Carriage return carriage control
    If the output includes the preceding entries, then run the following command:
    $ CONVERT/FDL=SYS$INPUT filename filename
    RECORD
    CARRIAGE_CONTROL CARRIAGE_RETURN
    FORMAT STREAM_LF
    ^Z
    Otherwise herewith an interesting metalink note. Doc ID:      Note:437597.1
    Subject:      Ora-12154 When Executing Pro*Fortran Code Compiled With Oracle 10g.
    Hope this will also help you...
    Cheers
    Hubert

  • Sending mail from apex application

    Hi Everyone
    I configured the APEX mail settings,
    when I am sending the mail from DATABASE by UTL_MAIL by(SQLPLUS) logging in as sysdba the mail is sending,but if I use in apex SEND E-mail process its not sending the mail,
    In ADMIN side,Manage Instance-->Mail queue I checked and clicked the SEND ALL MAIL,
    simply it showing as "mail sent" but am not receiving any mail,and also there is no ERROR(Error field is blank)
    What willl be the problem and where can I check it,or what is the alternative way?kindly help me.
    Thank you.
    Regards,
    Sabyasachi

    Hi,
    Have you configured email to your instance?
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21678/adm_mg_service_set.htm#sthref258
    Depend your database version, do you have give needed ACL?
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21673/otn_install.htm#BABBHCID
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21673/otn_install.htm#CBHBJDDE
    Have you check mail log and queue if there is some useful info about problem?
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21678/adm_mg_service_set.htm#sthref307
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • How to seperate the access for two identical databases from two application

    First I have to say I'm sorry... Oracle and the oracle architecture are totally new for me. However I hope to get some help with this.
    We have one Oracle 10g server and a database name A with table name X, Y and Z, for Application AA with access for property file AAA.
    The server capacity are almost not being used.
    Here are my thought, how can I add a database name B with table name X, Y and Z (yes same tables as in database A) data for application BB with access for property file BBB.
    how can I seperate the 2 property files (question: on a port number?), so in case there by a mistake should be switch around on 2 property files, it then is impossible to access the date from Application AA to date in database name B.
    Password on Database A (incl table) and Database B (incl table) are the same.
    Is there any solution to this?

    What I would like to do is make use of the resource on one machine.
    I have several similar applications, databases, tables and password where data should be totally separated from each other. however I would trying to prevent that there could be any data access from Application AA to Database B in case there should be a switch of property files
    I'm familiar with Sybase environment, however isn't there some thing fancy in oracle there can seperate to almost identical applications to access other databases

Maybe you are looking for

  • OBIEE:  logical SQL to Physical sql conversion

    Hi, Is there any way i can get the physical sql from logical sql ( Apart from reading log file).. I am looking something like JAVA api which does that for us.. Do we have any mapping table which stores this mapping. Does the OBIEE provides any Java A

  • Clearing old emails addresses on iPhone

    Is there any method to clear old or incorrect email addresses to prevent them from popping up in auto fill?

  • How we close Views without using Java Script

    Hi All, can you please suggest me how i close view with out using java script. if possible please reply with code. Thanks Siva

  • Mapping Node and Attributes

    Hello all,             I am using Process Composer for a process design. I have a human activity and an automated acitivity. Human Activity                                                 Automated Activity + Type Code (node)---- Type Code (node)   

  • ITunes not working since upgrade

    Hi Guys I need some help if anyone can! I downloaded the latest iTunes update as prompted to; about 3 weeks ago. Since then i have not been able to use iTunes at all!! When accessing the store i get a predominately white screen; with blue boxes which