Connecting to an Oracle database after clicking on a foi

Does anyone know how or have any examples on how to connect to an oracle database after clicking on a 'feature of interest' in MapViewer? I want to be able to click on a 'feature of interest' on the map, and have a list of records from an oracle table displayed using the identified key of the foi. I am able to create the feature of interest, and add the event listener for 'mouse click', but am unsure how to connect to the database at this point. I have been able to connect to the database in a different jsp, but not from here. Thank you.

1. Create a JSP page that does the database query. It should take the foi id as an input parameter.
2. In the foi mouse click listener, display the JSP page in iframe. The iframe can be placed outside the map or inside the info window. The function should do something like this.
function myClickListener(point, foi)
mapview.displayInfoWindow(point, "<iframe id='my_iframe_id' frameborder=0 width=300px height=400px />", 300, 400) ;
var myIframe = document.getElementById("my_iframe_id") ;
myIframe.src = "http://myhost/myjsp?key=" + foi.id ;
}

Similar Messages

  • REP-0309: Unable to connect to the specified database after three attempts.

    Hi,
    I am getting the following error in cloned instance when I developed one custom report (rdf) and copied that report into custom top reports folder. and ran that report using custom responsbility.
    that report query is like this
    select user_name,user_id,start_date,end_date from fnd_user.
    simple report...
    ==========================
    Current system time is 30-JUL-2008 11:36:16
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    USERID='0'
    APPLLCSP Environment Variable set to :
    XML_REPORTS_XENVIRONMENT is :
    /u01/testora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    XENVIRONMENT is set to: /u01/testora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    Enter Password:
    Enter Password:
    Enter Password:
    REP-0501: Unable to connect to the specified database.
    ORA-01017: invalid username/password; logon denied
    REP-0501: Unable to connect to the specified database.
    ORA-12154: TNS:could not resolve service name
    REP-0501: Unable to connect to the specified database.
    ORA-12154: TNS:could not resolve service name
    REP-0309: Unable to connect to the specified database after three attempts. Access denied.
    Report Builder: Release 6.0.8.25.0 - Production on Wed Jul 30 11:36:16 2008
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter Username: Enter Username:
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 779500.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 30-JUL-2008 11:36:17
    =========================================
    what might be the problem...
    I developed the report in 10g Report Builder. and moved to 1.5.10.2 instance... ran that report in my report builder using apps user and..it is running fine in my report builder.

    hi bsubbu
    your password of custom application user schema at database level should be similar with the password at application level
    for instance your custom application schema name and password is xxgis/xxgis , we register this schema at application site by this navigation
    security> oracle > register >database username (xxgis) > password (xxgis)
    here you might have change your custom application user's password at database level using
    alter user xxgis identified by newpassword;
    change this user password at application site also :
    security> oracle > register> database username (xxgis) > password (newpassword)
    i understand this from the document
    Regards
    Message was edited by:
    user608721

  • No connection to an oracle database

    Hello
    I have installed database Rel. 2. JDevelopper 9.0.3.2 with BI Beans 9.0.3.6.
    Additionally I installed the warehouse builder 9.2.0.2.8.
    After I created a repository, a runtime repository and a target schema, I wanted to connect to my Oracle Database. But in the second window when you create a connector I can't choose a database. I can only mark unspecified...
    Does anybody know why???
    Damian

    Yes I tried to use OWB.
    I looked at OTN Documentation
    (Oracle9i Warehouse Builder Installation and Configuration Guide)
    So I installed OWB Design Time with the Installer, then I
    installed the Design Repository using the Repository
    Assistant. In addition I performed the OWB Server Side installation using Oracle Universal Installer. Then I installed a Runtime Repository, a Runtime Access User and a Warehouse Builder Target Schema.
    After this installation I started the OWB Client and connected as Repository User. I received the make a ODBC Connection. But I want also make a connection to my local oracle database within a connector...
    Now in this Printscreen (http://home.datacomm.ch/crettaz/printscreen.jpg) I can't choose my database. I have do configure more things?

  • How sql developer connects to a oracle database

    hi,
    I wonder how sql developer connects to a oracle database. does it use oracle client like Toad?
    How does it make the connection with oracle server?
    Sameera

    924164 wrote:
    hi,
    I wonder how sql developer connects to a oracle database. does it use oracle client like Toad?
    How does it make the connection with oracle server?
    SameeraWelcome to OTN
    From Left side Tab click on (+) New Connection. Then at the window give a connection name,User name,Password.
    Then provide Host Name, Port and SID
    Click on Test button and then save or connect.
    Hope this will help you

  • Problem connect form6i and Oracle Database 10g

    I can't connect form6i to Oracle Database 10g
    When complete user/password@database fatal error produce:
    "Oracle Forms Designer has encountered a problem and needs to close. We are sorry for the inconvenience"
    Error Detail:
    AppName: ifbld60.exe     AppVer: 6.0.8.27     ModName: ora805.dll
    ModVer: 0.0.0.0     Offset: 000b4f04
    Product Install:
    - Forms Version: Forms [32 bits] Versión 6.0.8.27.0
    - Oracle Database: 10.2.0
    - Win XP professional with SP2.
    Any idea what might cause Forms to shutdown ubnormally?
    Thanks

    If your database is using the AL32UTF8 character set, Forms 6i cannot connect.
    Read this thread:
    connecting form 6i  to oracle database 10G express edition

  • Trouble connecting to remote oracle database

    Hi,
    i'm having trouble connecting to an oracle database (Release 9.2.0.6.0) using the ojdbc14.jar from the oracle website. Can anybody spot the problems that i need to sort out to get it working? Code and error stack below.
    Thanks,
    Pat
    Code:
    import java.sql.*;
    public class Query1 {
    public static void main (String[] args) {
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    String url = "jdbc:oracle:thin:@175.3.41.248/KNWAPROD";
    String user = "username";
    String password = "password";
    Connection conn = DriverManager.getConnection(url,user,password);
    Statement stmt = conn.createStatement();
    ResultSet rs;
    rs = stmt.executeQuery("select count(*) from FACT_FAULT;");
    while ( rs.next() ) {
    // String lastName = rs.getString("Lname");
    System.out.println("In while loop!");
    conn.close();
    } catch (Exception e) {
    e.printStackTrace();
    System.err.println("Got an exception! ");
    System.err.println(e.getMessage());
    Error stack:
    java.sql.SQLException: Io exception: SO Exception was generated
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:274)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:319)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:344)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:148)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:545)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at Query1.main(Query1.java:13)
    Got an exception!
    Io exception: SO Exception was generated

    You have:
    String url = "jdbc:oracle:thin:@175.3.41.248/KNWAPROD";Example URLs I've seen/used are:
    String url = "jdbc:oracle:thin:@//myhost:1521/orcl";
    String URL = "jdbc:oracle:thin:scott/tiger@//myhost:1521/orcl"In other words, I think you've munged your URL; you need some slashes and a port number (1521 is the default).

  • Connecting to an Oracle database using ASP

    Hi
    I am having problems connecting to an Oracle database using ASP. I am trying to do this for a school project the school's database server is running Oracle 9i. The repository is version 6. The web server I have access to only has ASP not ASP.net. What kind of connection string would I need to be able to connect to the database?

    You do need to ensure that the Oracle client and Oracle server are compatible, but that is generally pretty easy to accomplish. Unless you are trying to cross more than one major release (i.e. 9.2 client to a 7.3.4 database), you're pretty safe there.
    You could try downloading and installing the latest 8.1.7.x Oracle ODBC driver from OTN on the machine with the 8.1.7 Oracle client (I believe the last ODBC patchset was 8.1.7.10), but I don't have particular confidence that that will solve the problem. If it doesn't, we can do an ODBC trace to focus in on the issue, but installing a new driver is a much easier process, so that probably ought to be the first step.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Error when connecting to an Oracle Database

    Hi, I'm trying to connect to an oracle database by calling a javabean from a jsp page. When I try to connect however I get this error:
    java.lang.UnsatisfiedLinkError: C:\oracle\ora92\jdbc\lib\ocijdbc10.dll: The specified procedure could not be found
         java.lang.ClassLoader$NativeLibrary.load(Native Method)
         java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
         java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
         java.lang.Runtime.loadLibrary0(Runtime.java:822)
         java.lang.System.loadLibrary(System.java:992)
         oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:2963)
         oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:225)
         oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:348)
         oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:139)
         oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:79)
         oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:563)
         java.sql.DriverManager.getConnection(DriverManager.java:525)
         java.sql.DriverManager.getConnection(DriverManager.java:171)
    I am trying to connect to the database using OCI and its tns name. Also right now I'm just using the tomcat bundled in the netbeans ide.
    Anyone have any ideas on what's wrong?

    Why not use a type IV JDBC driver, available forfree download from Oracle? No
    need for any DLL then.The standard Oracle driver comes with "oci" and
    "thin" drivers.
    Thin driver is 100% java.
    oci driver uses the dlls.
    What version of Oracle are you using? I am guessing
    10?
    Have you got Oracle Client installed on this machine?
    (Stupid question I know)
    What URL connection string are you using?
    Does the "thin" driver work? ie url
    "jdbc:oracle:thin:@[IP_ADDRESS]:[PORT]:[SID]"
    Cheers,
    evnafetsThere's another advantage of the thin driver: you don't have to have the client installed or TNS names defined for it to work.
    %

  • Connecting to Non-Oracle Databases

    How can we connect to Non-oracle databases like MS-SQL server using Developer Forms and reports?
    can any body please provide steps to do this.

    HI
    to connect to Non-Oracle Database u have to use OCA ,,,u have to define ODBC data source for the database <source1> u want to connect. to connect from the forms or reports
    user name/password@ODBC:source1.
    hope this help u
    try to look for the developer help

  • Connecting to an oracle database questions

    <p>Our current solution to connecting to our oracle database uses the following code:</p><p>    ReportClientDocument clientDoc = new ReportClientDocument;</p><p>    java.sql.ResultSet rs =  fetchResultSet(driverName, connectStr, userName, password, <u>query</u>);</p><p>    clientDoc.getDatabaseController().setDataSource(rs, <u>tableName</u>,tableName+"_ResultSet"); </p><p>The code for subreports is very similar, but isn&#39;t necessary for my question. The problem w/ this approach is we have to define the SQL query and the table name in the JSP, which we shouldn&#39;t have to do considering both of these are stored in the report. Any changes to the reports&#39; sql would then require someone to edit the jsp, which is just bad.  </p><p>I have been reading up on the ConnectionInfo and ConnectionInfos classes (nice naming convention btw) and the CrystalReportViewer.setDataBaseLogonInfos() method, and I believe a solution may lie here. The problem is the tutorials on using the ConnectionInfo class assume the database name is stored in the report, and we do not want to assume this. We are developing our reports to be used by our customers, who may name their database whatever they want so long as the tables inside it are what we specify. Because of this assumption, I have yet to find a good explanation of how to use the setAttributes(PropertyBag) method which is the only I have seen to specify the database name (within a connection string). I have examples of it, but nothing that defines the key/value pairs required in the PropertyBag to create a connection to an oracle database. </p><p>Is there some documentation on the key/value pairs needed by the PropertyBag? Also, if there is another (easier) solution I am overlooking then please let me know, thanks.</p><p>-Sam Morehouse</p><p>HBF Group, Inc </p><p> </p>

    <p>got it working, here&#39;s some sample code.  </p><p> </p><p><%<br />    try{<br />        ReportClientDocument clientDoc = new ReportClientDocument();<br />        clientDoc.open(reportName, 0);<br />    <br />        ConnectionInfos connInfos = new ConnectionInfos();<br />        IConnectionInfo iConnInfo = new ConnectionInfo();<br /><br />        PropertyBag bag = new PropertyBag();<br />        bag.put("Database Class Name",driverName);    // "oracle.jdbc.driver.OracleDriver"<br />        bag.put("Connection URL",connectStr);        // "jdbc:oracle:thin:@dbName:1521:sid"<br />                            <br />        PropertyBag pb = new PropertyBag();<br />        pb.put(PropertyBagHelper.CONNINFO_CRQE_LOGONPROPERTIES ,bag);<br />        pb.put(PropertyBagHelper.CONNINFO_DATABASE_DLL ,"crdb_jdbc.dll");<br />        iConnInfo.setAttributes(bag);<br />        <br />        iConnInfo.setUserName(userName);<br />        iConnInfo.setPassword(password); <br />                <br />        iConnInfo.setAttributes(pb);<br />            <br />        connInfos.add(iConnInfo);<br />        session.setAttribute(reportName, clientDoc);<br />        session.setAttribute("reportSource", clientDoc.getReportSource());<br /><br />        //Setup viewer. Only going to include the relevant line, the rest can be found</p><p>        //elsewhere.<br /></p><p>        CrystalReportViewer oCrystalReportViewer = new CrystalReportViewer();                   oCrystalReportViewer.setDatabaseLogonInfos(connInfos);                                      }    </p><p>catch(ReportSDKExceptionBase exc)%></p>

  • Connecting to an oracle database

    Hi! I am a student of Computer Engineering. I was hoping someone could help me out giving me options of could be wrong in my database application.
    The problem is this:
    I connect to an oracle database and i have a username, password and an url direction. Apparently the connection is fine, because my program does not show any errors or exceptions, but when I try to retrieve data from the tables I have in my space of the database, the ResultSet object appears to be empty. And I don't have any idea what the problem is, because when I write the select statement directly in the console, the database retrieves me the information I ask, but it doesn't retrieve me anything when I do it through my program.
    I will put the part of my code that is causing me trouble... I hope someone can help me:
    //this is the part when I connect to the database
    public void connectToDB() {
    try {
         // Register the ORACLE: oracle:thin driver
    try {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    catch (NoClassDefFoundError e){
    System.out.println(e);
    return;
    System.out.println("Oracle driver succesfully loaded.");
    // Connection
    System.out.println("Connecting to the database... ");
         conn = DriverManager.getConnection(CONEXION_URL,USUARIO,
    PASSWORD);
    System.out.println("Authentification process...");
    System.out.println("Access granted.");
    System.out.println("Connection successful.");
    //conn.setAutoCommit(true);
    } catch (SQLException e) {
    System.out.println("Connection failed!");
    System.out.println(e);
    //this is the part when I make a select statement that doesn't retrieves me
    //anything
    public void consultaRecibosPeriodo(){
    String nombre="",domicilio,fechaContrato,fechaExpedicion;
    int importe;
    String query = "SELECT NOMBRE FROM CLIENTE";
    try{
    if(conn!=null){
    System.out.println("Entra a consultaRecibosPeriodo");
    Statement stmt = conn.createStatement();
    ResultSet resultado = stmt.executeQuery(query);
    System.out.println(conn);
    while(resultado.next()){
    System.out.println("entra al while ");
    nombre=resultado.getString("NOMBRE");
    System.out.println("nombre " + nombre);
    }catch(SQLException e){System.out.println("Error: " + e);}
    }

    Hi,
    Before loop on your resulset check add this test :
    if(resultado.first())  {
      while(resultado.next()){
      System.out.println("entra al while ");
       nombre=resultado.getString("NOMBRE"); // Is NOMBRE is a filed in your table ??
    System.out.println("nombre " + nombre);
    }skippye

  • Connect to Remote Oracle Database

    I am unsuccessfully trying to connect to remote Oracle database using OleDB/ODBC/Oracle Client.
    Do I have to install Oracle Client in order to use those drivers and which version?
    I would really appreciate any help. THANK YOU!

    Marina,
    Please refer this question to the general Installation forum. Thanks!
    The short answer is yes, you need to have the Oracle client software installed.

  • Connect to an Oracle database by using oracle.jdbc.OracleDriver: error

    Hi,
    I'm trying to connect to an Oracle database so we can retrieve notes of tables, views and packages.
    By using the API of Data Modeler (transformation script) we want to add these notes to corresponding objects in Data Modeler.
    I'm starting with this:
    importPackage(java.lang);
    importPackage(java.awt);
    importPackage(java.sql); 
    java.lang.Class.forName("oracle.jdbc.OracleDriver");
    An error occurs when I run this code:
    It has to be a Java thing...
    Anyone a suggestion?

    Problem solved! One of my colleagues referred to this post: Import user defined properties from Oracle Designer
    More in detail: it's about this couple of lines:
    // Copy the ojdbc6.jar file to ..\datamodeler-home\jlib directory 
    // Add this line to datamodeler.conf 
    //      AddJavaLibFile  ../../jlib/ojdbc6.jar 
    I changed my datamodeler.conf file, restarted DM and now there's no longer an error when I am trying to use the Oracle JDBC drive.

  • Urgent : Hoe to connect to a ORACLE database throught WEBDYNPRO JAVA

    HI All
    i am very new to Developer Studio,
    i want to connect to an oracle database through wedynpro java.
    i have seen some tutorials on SDN. i know something about adding external JARs and OJDBC .
    Can anyone send me the sample code to connect to a database
    <b>very urgent</b>
    Thanks in advance
    Sushma

    Hi Sushma
    Ask your system Admin for servername,portnumber of database server
    Connection conn=null;
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    conn =DriverManager.getConnection ("jdbc:oracle:thin:@<servername>:<portnumber>:DB","uname", "pwd");
    Statement stmt=conn.createStatement();
    ResultSet rs=stmt.executeQuery("select * from <tablename>"); // select statment
    while(rs.next())
    IXXElement nodeConnection=wdContext.createXXElement(); //creating a node to store the data from oracle
    nodeConnection.setYY(rs.getInt("YY")); // setting the values into input fields
    nodeConnection.setAA(rs.getInt("AA"));
    nodeConnection.setBB(rs.getInt("BB"));
    wdContext.nodeXX().addElement(nodeConnection); // adding the node
    catch(Exception ex)
    finally
    try
    conn.close(); // closing the connection
    catch(Exception e)
    welcome to SDN and All the best from SDN Webdynpro JAVA
    Regards
    Chaitanya.A

  • Software to connect to a Oracle database server.

    Does anyone know of software that enables me to connect to a Oracle database server, and check out the content? Doesn't need to have a gui.
    Orjanp...

    JAVA + JDBC type 4.

Maybe you are looking for