How do with connect to informix database?
how do with connect to informix database?I think use own sminformix.jar with java studio creator
Two steps:
1. Tell Creator about the Informix drivers:
Data Sources -> Edit Database Server Types -> New
Navigate to the appropriate jar files; besides sminformix.jar, you will need smbase.jar and smutil.jar. They can be found in the Java Studio Creator release, for use within the IDE.
Fill in the other parts of the dialog. I don't know what form Informix URL's take; you may need to look on the Informix site for that.
2. Create an Informix Data Source, using the newly defined Server Type.
Similar Messages
-
How can I connect to a database from ipaq with cldc??
how can I connect to a database from ipaq with cldc??
Hi Again
There is a library by Mimer which allows you do connect to a Mimer SQL Server, don't know must about it, but here is a link.
http://developer.mimer.com/
If that doesn't suit you, I suspect that you will have to use some sort of proxy solution. Either by creating a servlet to accept the sql string you want to send, or by creating your own custom proxy server running J2EE. The servlet or the proxy server must be able to receive an SQL String, do the query to the actual database and return the results in some sort of format to the mobile device. Maybe just a space delimited string.
Hope this helps
-Daur -
How can I connect to the database using ODBC within excel.
Hi,
How can I connect to the database using ODBC within excel and just refresh the data when needed.
Thanks,
Priyanka
Edited by: user554934 on Jun 9, 2009 2:53 AMThis is NOT an APEX relevant question, try posting it in the SQL/PL/SQL Forum..
Thank you,
Tony Miller
Webster, TX -
How do i connect ms access database in Eclipse ?
Help me to solve the problem
how do i connect ms access database in Eclipse ?
Its urgent please
give any link that gives the procedure to connect ...........The Eclipse WTP by default has a database explorer: Window - Show View - Data. Finally rightclicking at the new "DB Servers" console gives straightforward menu options.
-
Use 2 App modules with connection to 2 databases on 1 UIX page?
Is it possible use 2 different Application modules with connection to different databases on one UIX page?
Thank you.Yes.
Use a <bc4j:registryDef> with two <bc4j:rootAppModule>'s inside. Everything else is the same as the single root application module case.
More documentation is available in the UIX Developer's Guide available in the JDeveloper help system and online at:
http://helponline.oracle.com/uix/help/
Kind Regards. -
How do I connect to a database on a different machine(URGENT PLEASE)
Hello all
I have a Web server which is on a Linux box but the database I wish to connect to is on Windows NT. How can I connect to the data source.
Both Linux and Windows machines are on the same network at the moment but will change later on.
Please e-mail on [email protected]
thanxsI think there are 3 ways to do so
1. JDBC
2. ODBC-JDBC bridge
3. don't remember the third
I would check it with JDBC section of the javasoft site. Also since your web server is on a linux box, you probably will not be able to use ODBC-JDBC bridge. I would try the JDBC method, but that requires you to get the JDBC driver for the database that you are trying to connect to!
good luck
Ku916 -
DB Connect to Informix Database
Hi all,
Currently I am trying to do DB Connect to the Informix Database source system. However, everytime I tried to establish the connection, I always got an error saying that "the server is not listed as a dbserver name" with error message no 25555.
I am sure that the database server name which I used is the correct one and the database exists.
Is there any other configuration which I need to do before creating this connection?
Thanks a lot for your help.dear Mona,
welcome to SDN ...
have you followed the steps in 'transfering data with db connect' doc ?
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/2f0fea94-0501-0010-829c-d6b5c2ae5e40
and oss mentioned for informix in that doc ?
hope this helps.
*it's sufficient to post the same message in one of the 'business intelligence' forum. -
How can I connect to a database using Java Web Start?
When I run the application without Java Web Start, the program can get the driver and connect to the database. However, when I try to use this same application with Java Web Start, the program can not load the driver. Why is this happening? I am using a mySql database driver.
I assume you are trying to connect using JDBC, are did you include the jdbc jar in your resources ?
-
How can I connect to my database ORACLE from JavafX?
Hi! ¿Anybody have a example to learn how could connect my ORACLE database from my javafx application?
Just use JDBC like you do in a regular Java program.
Either you translate the code to JavaFX (creating Java objects, etc.) or you do a Java layer to simplify access. -
How can i connect to remote database from netbeans
Hi,
I have got MySQL database server installed and running on a different machine. Is there any way to connect and browse database remotely using netbeans 5.5?
I have added connector/driver for that database. i can connect and browse the database with host: "localhost" and port number. But when i specified the ip address of that machine, it gives me error.
Can anyone help please.
cheers.well, its not working in App server either.
In App server admin console, on that connection pool if i define servername as "localhost", it works fine. If i change it to the remote machine's ip address, then it doesn't work.
Any idea will be appreciated.
cheers. -
How can I connect to the database using the Oracle Remote Diagnostic Agent?
Now I try to study RDA on Windows XP platform,when I run 'rda.cmd',there is a question 'Enter password for 'SYSTEM@'',what is the answer?
Because I didn't know how to connect to database,there are many error messages - RDA-00510: SQL execution disabled,What can I do?Metalink Note:314422.1 to start
It is asking you to tell how to connect to 'the database that you are investigating' over a network. The answer .... the password for the userid called 'system' in the database specified after the @
I am confused ... you do not know how to connect to your database? -
How can I connect to WinCC database (best by use of OLE DB provider)?
Post Author: MarkusR
CA Forum: Data Connectivity and SQL
Hello,
if I connect to the WinCC database by using the WinCC OLE DB provider I do not get the tables I expect.
E.g. I would like to see the AlgViewEnu or other tables/views of AlarmLogging or TagLogging.
Who can help?Hi
I have not used asp.net with CS4, due to it using an old version of the framework, so unfortunately I cannot really help in solving the problem. But I can remember having a similar problem with DW8, a tutorial for connecting to the database in DW8 is - http://www.webdesign.org/html-and-css/tutorials/asp-net-in-dreamweaver-8.7367.html. I also seem to remember that the connection required the old, (very old) Jet4 access database connector to be installed to work correctly.
These problems, and the fact that MS keeps updating the framework every year or so, (which are often not backwardly compatible) are why I use Visual Studio for .net C# sites, and no longer actively develop them, but I must admit I still prefer C# to PHP.
PZ -
How do I connect to a database on a different machine
Hello all
I have a Web server which is on a Linux box but the database I wish to connect to is on Windows NT. How can I connect to the data source.
Both Linux and Windows machines are on the same network at the moment but will change later on.
thanxsConnecting is as good as u do in anyother environment...
I have a Web server which is on a Linux box but the
database I wish to connect to is on Windows NT. How
can I connect to the data source.You mean connect to database or DataSource ? If you are planning to lookup a data source and get a connection... you have to create a datastore first and give a jndi name so that you can lookup and get a connection....
Both Linux and Windows machines are on the same
network at the moment but will change later on.This will not give any problem ..
thanxs -
How does it connect to the database
can anyone pls tell me how the below coding connect to the database, and if i want to change to use other type of connection, which part of the coding should i use? thank
loginAction.jsp
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<html><!-- InstanceBegin template="/Templates/biome.dwt.jsp" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- InstanceEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK href="bios.css" type=text/css rel=stylesheet>
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>
<body leftmargin="0" topmargin="0">
<%@ include file="useAndImport.jsp" %>
<%
String username = (String)session.getAttribute("username");
session.setMaxInactiveInterval(10*60);
boolean isLoggedIn=work.isUsable(username)?true:false;
%>
<table width="100%" height="22" border="0" cellpadding="0" cellspacing="0" bgcolor="#CC3300" class="statusloginsearch">
<tr>
<SCRIPT LANGUAGE="JavaScript">
<!-- Idea by: Nic Wolfe ([email protected]) -->
<!-- Web URL: http://fineline.xs.mw -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=500');");
// End -->
</script>
<form action=loginAction.jsp method=POST>
<td width="77%" valign="baseline" nowrap id="statusbar"> <% if (isLoggedIn)
out.println("<img src=images/active.gif width=10 height=15 align=middle><font size=1 color=white face=Verdana, Arial, Helvetica, sans-serif><b>Welcome, " + username + " </b></font>");%> <% if (!isLoggedIn) { %>
<font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Username:</font><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
<input type=text name=username class="form" <%= work.getValueAttribute(username) %> >
<font color="#FFFFFF"> Password:</font>
<input type=password name=password class="form">
<input type="submit" name="action" value="Login" class="formbutton" onfocus="this.blur()" onmouseover="this.className='formbuttonover';" onmouseout="this.className='formbutton';" onmousedown="this.className='formbuttonover';" onmouseup="this.className='formbuttonover';">
<input type="reset" name="action" value="Reset" class="formbutton" onfocus="this.blur()" onmouseover="this.className='formbuttonover';" onmouseout="this.className='formbutton';" onmousedown="this.className='formbuttonover';" onmouseup="this.className='formbuttonover';">
<img src="images/question.gif" alt="what's this?" width="15" height="15" border="0" align="middle">
<% } %>
</font></td>
</form>
<td width="23%" valign="baseline" nowrap id="statusbar"> <div align="right">
<% if (isLoggedIn)
out.println("<form action=SignOut.jsp method=POST><input type=submit name=action value=Logout class=formbutton onfocus=this.blur() onmouseover=this.className='formbuttonover'; onmouseout=this.className='formbutton'; onmousedown=this.className='formbuttonover'; onmouseup=this.className='formbuttonover';></form> <a href=tour.jsp><img src=images/newtothissite.gif border=0 align=middle></a>");%>
</div></td>
</tr>
</table>
<table width="650" border="0" cellspacing="4" cellpadding="1">
<tr>
<td><!-- InstanceBeginEditable name="main" -->
<table width="580" border="0">
<tr>
<td><strong><font color="#CCCCCC" size="+2" face="Arial, Helvetica, sans-serif">ERROR</font></strong></td>
</tr>
</table>
<%-- loginAction.jsp --%>
<%
String username1 = request.getParameter("username");
String password=request.getParameter("password");
boolean isUsername=work.isUsable(username1);
boolean isPassword=work.isUsable(password);
String usernameQuoted=work.getSingleQuoted(username1);
String usernameParam = work.makeUrlParameter("username",username1);
ResultSet resultset;
if(isUsername && isPassword) {
resultset=db.executeQuery
("SELECT * FROM users WHERE USERNAME = " + usernameQuoted);
if (resultset.next() &&
resultset.getString("password").equals(password))
out.println("<font color=green>You are logged on.</font>");
session.setAttribute("username", username1);
String accessLevel = resultset.getString("access_level");
session.setAttribute("access", accessLevel);
if(accessLevel.equals("0"))
response.sendRedirect("Welcome.jsp");
else if(accessLevel.equals("3"))
response.sendRedirect("Admin.jsp");
%>
<%
} else {
out.print(work.tryAgain(
"<font size=2 color=red face=Verdana, Arial, Helvetica, sans-serif><b>Your username and/or password are incorrect.</b>",
"Login.jsp"+usernameParam));
} else {
out.print(work.tryAgain(
"<font size=2 color=red face=Verdana, Arial, Helvetica, sans-serif><b>Your login information is incomplete.",
"Login.jsp"+usernameParam));
%>
<!-- InstanceEndEditable -->
</td>
</tr>
</table>
</body>
<!-- InstanceEnd --></html>
useAndImport.jsp
<%-- thingsToUseAndImport.jsp --%>
<jsp:useBean id="db"
class="kw.search.DbAccess"
scope="application"/>
<jsp:useBean id="work"
class="kw.search.Worker"
scope="application"/>
<jsp:useBean id="dataB"
class="bb.messageBoard.DataB"
scope="application"/>
<jsp:useBean id="forum"
class="bb.messageBoard.Forum"
scope="application"/>
<%@ page import="java.text.DateFormat, java.util.Vector, java.io.*" %>
DbAccess.java
package kw.search;
import java.sql.*;
public class DbAccess implements java.io.Serializable {
private Connection connection;
private Statement statement;
String db = "btc";
String user = "javauser";
String password = "javauser";
String dbUrl = "jdbc:mysql://localhost:3306/" +db;
//dbUrl = "jdbc:mysql://localhost:3306/"+db;
public DbAccess ()
throws ClassNotFoundException, SQLException
Class.forName("com.mysql.jdbc.Driver");
//connection = DriverManager.getConnection ("jdbc:mysql://localhost:3306/btc?"+"user=javauser&password=javauser");
connection = DriverManager.getConnection
(dbUrl+"?user="+user+"&password="+password);
connection.setAutoCommit(false);
statement = connection.createStatement();
public void executeUpdate(String sqlCommand)
throws SQLException
statement.executeUpdate(sqlCommand);
public ResultSet executeQuery(String sqlCommand)
throws SQLException
return statement.executeQuery(sqlCommand);
public void commit() throws SQLException
connection.commit();
public void rollback() throws SQLException
connection.rollback();
protected void finalize() throws SQLException
statement.close();
connection.close();
}This section of your code makes the connection:
public DbAccess ()
throws ClassNotFoundException, SQLException
Class.forName("com.mysql.jdbc.Driver");
//connection = DriverManager.getConnection ("jdbc:mysql://localhost:3306/btc?"+"user=javauser&password=javauser");
connection = DriverManager.getConnection
(dbUrl+"?user="+user+"&password="+password);
connection.setAutoCommit(false);
statement = connection.createStatement();
public void executeUpdate(String sqlCommand)
throws SQLException
statement.executeUpdate(sqlCommand);
public ResultSet executeQuery(String sqlCommand)
throws SQLException
return statement.executeQuery(sqlCommand);
public void commit() throws SQLException
connection.commit();
public void rollback() throws SQLException
connection.rollback();
} -
Security issues with connecting pdf to database
I have a pdf form that is being called from a webform as part
of a web application. The PDF has two dropdown lists that I was
populating from a SQL Server Database. I had created a special user
that had select access only to the tables for the dropdowns.
My question is are there any known security issues with
regard to allowing a pdf to connect to a database this way. The PDF
is being called from a secure connection but I don't know if
opening this database connection to populate these dropdowns
exposes a security hole of any sort. If it does, do you have a
solution to make this secure? I am asking because another developer
on the project brought up the issue of this design creating a
security risk and I haven't been able to find anything online
discussing it either way.
Thanks!
MaureenHello Maureen,
Thanks for posting, but I'm not sure I see if your question
relates to Acrobat.com
Are you using any of the Acrobat.com Services as any part of
your workflow?
Thanks!
Pete
Maybe you are looking for
-
I'm trying to set up the "ICE" (In Case of Emergency) Contact Card on my iPhone. (As recommended by Emergency Personnel, as it is the card they will look for on your phone in the event you are in an accident.) After inserting my Brother's and my Son'
-
How to change the default text "There are no items to show in this view" in the visual webpart
Hi, I am using a visual webpart and in that if there are no items in the list it is showing the default text "There are no items to show in this view." I want to change this default text. I checked the forums here there are multiple ways are shown b
-
I have a new PC,windows 7.I wanted to syns my iPod shuffle 4,but it failed.I tried to restore but it failed,too. Every time when I connect iPod to PC, itunes automatically starts restoring iPod,but detects error at once:"An iPod has been detected, bu
-
Problem with Java Mail Program
Hi Everyone... Please help me to sort out this problem... I am getting this Exception while executing the code pasted below... javax.mail.AuthenticationFailedException at javax.mail.Service.connect(Service.java:306) at javax.mail.Service.connect(Serv
-
WINDOWS MEDIA FILE WON'T WORK IN TIGER
Every since I upgraded to TIGER none of my windows media files work. They worked in PANTHER just fine. I keep getting CONNOT play back the file. The format in invalid. PLEASE HELP ME.