CONNECTING TO AN EXTERNAL DATABASE USING webOS
Hi, I have a php code which i hosted on wampserver and a MySql database which I hosted in phpmyadmin. I have tried using Ajax request function which I wrote in the scene assistance file to call the PHP to access the database but its not working. Please does anyone have an idea why its not working?
Post relates to: Pre 2 p102eww (Verizon)
Questions like yours are best asked over at the webOS Developer's Forum. The Palm Support Community here is geared to answering end-user questions about devices, not programming information.
https://developer.palm.com/
WyreNut
I am a Volunteer here, not employed by HP.
You too can become an HP Expert! Details HERE!
If my post has helped you, click the Kudos Thumbs up!
If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!
Similar Messages
-
Cross Reference within external Database using XREF API
Hi Experts,
Can we do Cross Reference within external Database using XREF API uses JDBC to access the Oracle Database Stored Procedures in SAP PI? How to use a JNDI Data source to access the DB and how to do the Connection Pooling will be done by the SAP J2EE server? Kindly let me know step by step proceedings.
Regards
ArchanaHello Archana,
It can be done with a Lookup call in a mapping.
Here's a little article about the topic in the SAP wiki:
http://wiki.sdn.sap.com/wiki/display/XI/HowtouseCrossReferencewithinexternal+Database
With kind regards
Sebastian -
ABAP report from fields connecting to an external database
Hi All,
The requirement is to connect some GL data with external audit data which is stored in an oracle database. These two table data has to be merged and a report has to be generated.
I heard we could connect to the external database from the R/3 4.7 version through DBconnect. Has anyone come across any such requirement and done a similar report, could you give me the inputs please.
regards
GirishQuestions like yours are best asked over at the webOS Developer's Forum. The Palm Support Community here is geared to answering end-user questions about devices, not programming information.
https://developer.palm.com/
WyreNut
I am a Volunteer here, not employed by HP.
You too can become an HP Expert! Details HERE!
If my post has helped you, click the Kudos Thumbs up!
If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked! -
API for connecting to an external database object
Hi,
Can anyone provide me with the API for connecting to the external database table and to create , update and delete data with an Oracle external database object.
Wish you great time.
Best Regards
SidQuestions like yours are best asked over at the webOS Developer's Forum. The Palm Support Community here is geared to answering end-user questions about devices, not programming information.
https://developer.palm.com/
WyreNut
I am a Volunteer here, not employed by HP.
You too can become an HP Expert! Details HERE!
If my post has helped you, click the Kudos Thumbs up!
If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked! -
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 TrivediSteps
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 -
Connection to an external database.
Hi we r using native sql commands and are connecting to external database. As far as I know from the discussions here i thought that these sort of connections are maintained in the table dbcon. But i don't see any entries in that table.
WHere as i could connect to that database succesfully and getting the records.
The table name for the external system is NOVARTIS.TABLE_ADDRESS@ANK like this.
Where could be that settings made.Try this Forum Thread:-
1. In developer server you have to configure the tnsnames.ora. For doing this you should talk with a person who knows how to configure this file. In the register you should especify: protocol, host and port to connect to the other database system.
2. Then, you enter a register in the DBCON table. In this entrie you especify user, password, database id (in my case I wrote ORA because i am connecting to an oracle database), and in the enviroment field you write the name or alias of the register in the tnsnames.ora
3. In the abap program you use native sql sentences for connecting to the external database. This is an example:
EXEC SQL.
CONNECT TO :p_conexion AS 'C1'
ENDEXEC.
IF SY-SUBRC EQ 0.
EXEC SQL.
SET CONNECTION 'C1'
ENDEXEC.
EXEC SQL PERFORMING save_data.
SELECT COD_CGE, COD_SAX, TO_CHAR(FECHA,'YYYYMMDD'),
VALOR, HORA, TIPO, PAIS, SOCIEDAD
INTO :wa_serv_aux
FROM TEST_TABLE
WHERE FECHA >= TO_DATE( :W_FEC1 , 'YYYY/MM/DD')
AND FECHA <= TO_DATE( :W_FEC2 , 'YYYY/MM/DD')
ENDEXEC.
EXEC SQL.
ROLLBACK
ENDEXEC.
EXEC SQL.
DISCONNECT 'C1'
ENDEXEC.
In the form save_data i insert the work area into the internal table.
And that`s all. The most important thing is to configurate the tnsnames.ora file on the server side.
<i><b>Note:- One small suggestion, Before Posting Thread in SDN, search for the related topics in SDN forums and then post your thread, it would be helpfull for everybody.</b></i>
Regards:-
<b>Santosh</b>
Message was edited by: Santosh (INDIA) -
Can't Connect to the Mysql Database using J2SE jdk1.5
Can anyone tell me why this error occurs ????????????????????
Following are the codes ;
package dbconnect2;
import java.sql.*;
public class dbconn2 {
public static final String URL =
"jdbc:mysql://localhost:3306/test";
public static final String USERNAME = "test";
public static final String PASSWORD = "password";
* @param args the command line arguments
public static void main(String[] args) throws Exception {
// TODO code application logic here
Connection connection = null;
try {
Class.forName("com.mysql.jdbc.Driver");
connection = DriverManager.getConnection(URL,
USERNAME, PASSWORD);
Statement stm = connection.createStatement();
ResultSet rs = stm.executeQuery("select * from emp");
while (rs.next())
String strnaam = rs.getString("emp_name");
System.out.println(strnaam);
finally {
if (connection != null)
connection.close();
================================================================================
This is the run time error ;
init:
deps-jar:
compile:
run:
Exception in thread "main" java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at dbconnect2.dbconn2.main(dbconn2.java:39)
Java Result: 1
BUILD SUCCESSFUL (total time: 2 seconds)
please help me to sort this out
Thanks
SishaniI've solved the DW problem by changing the site folders from
'db' to 'wwwroot' e.g. 'C:\CFusionMX\db\' is now
'C:\CFusionMX\wwwroot\
However I'm now back to my original problem. I've lost my
mqysql connection in CF Adminstrator. Before I made these changes I
could connect to my mysql databases using the following settings:
JDBC URL: jdbc:mysql://localhost:3306/test
Driver Name: MySQL Connector J
using the following Java path and file:
C:\CFusionMX\wwwroot\WEB-INF\lib\mysql-connector-java-3.0.17-ga-bin.jar
Now these settings give me the following error:
"Connection verification failed for data source: javaserver
[]java.sql.SQLException: SQLException occurred in JDBCPool
while attempting to connect, please check your username, password,
URL, and other connectivity info.
The root cause was that: java.sql.SQLException: SQLException
occurred in JDBCPool while attempting to connect, please check your
username, password, URL, and other connectivity info"
Any suggestions on this would also be welcome.
Thanks again to everyone for their help.
Sincerely,
Graham A. Kerby -
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 -
I want to connect to a Profile database using the Sanchez JDBC Driver.
I want to connect to a Profile database using the Sanchez JDBC Driver. Is that possible? Would I need to create an extension?
You can't do it directly - only those databases listed in the help under third party databases are supported.
You may well be able to write an extension to connect to an additional database, but it seems like a lot of work. -
How to Connect Microsoft SQL 2000 database using JDBC
Hi all..
I want to connect Microsoft SQL 2000 database using JDBC. I want from initial steps also. (about JDBC driver & its installation)
ThankzJust checkout the SQL Server JDBC Driver Documentation at the manfacturer's site: http://msdn2.microsoft.com/en-us/data/aa937724.aspx
-
How can I connect to MySQL external database
Hello.
I have a SAP system running in SQL Server 2003.
I need to connect to external MySQL DB., to operate with this information in ABAP program.
I have done the step necesary... I mean I go to DBCO transaction and configure the connection like this:
DB CONNECTION --> AFIS
DBMS --> MSS
user name --> xxxxxx
DBpass -->xxxxxx / xxxxxx
Conn Info -->MSSQL_SERVER=192.168.1.233 MSSQL_DBNAME=alliance OBJECT_SOURCE=alliance
I do a test program, when I do the statement CONNECT TO, sy-subrc 0 and connection = DEFAULT... I mean, with this form I cannot connect to MySQL Database...
Can you help me to do this?? I think the problem it's the connection string in DBCO... but I'm not sure...,
Would be possible to connect by MySQL ODBC??? I mean , installing the ODBC driver in my SAP server, and using this in ABAP Program??
Thks.
DATA: BEGIN OF wa,
cod_modelo(20),
END OF wa.
DATA: dbs TYPE dbcon-con_name.
DATA: con(20) TYPE c.
DATA : ls_wa LIKE wa.
con = 'AFIS'. "DB Connection in DBCO above
EXEC SQL.
CONNECT TO :con
ENDEXEC.
WRITE sy-subrc. ---> The result it's 4
EXEC SQL.
GET CONNECTION :con
ENDEXEC.
WRITE : con. --> The result it's DEFAULT
EXEC SQL.
SET CONNECTION DEFAULT
ENDEXEC.
write : con. --> The result it's DEFAULT> It's for it, that when I go to DBCO... in DBMS ---... I can select Oracle, MSSQLServer, DB2... for this Databases..., exists the library (lib_dbsl)???
yes, for all those databases exists the database interface library.
> In resume:
> IT'S NOT POSSIBLE CONNECT TO MYSQL!!! ... I cannot believe it!!!...
Well - as far as I remember there were some times ago efforts to port SAP applications to MySQL. That would explain why there's also a file "DDLMYS.TPL" created if you execute R3ldctl during a system copy - amongst DDL files for all other databases. I believe this was at the time MySQL was promoting SAPDB/MaxDB.
MySQL is historically not a database engine for software, that requires transactional integrity; there were extensions to support that (InnoDB or others) and there was no customer demand in getting MySQL as engine for SAP applications. And only develop an interface to be able to connect to an external MySQL engine is not worth the effort.
However, there is hope Some BusinessObjects applications also run with and against MySQL engines, depending on how the strategy to integrate those into the SAP software stack there may (or may not) be an interface for that database in the future.
Markus -
Connecting AIR with external database
Is it possible to connect AIR application to the external database in MySQL technology?
Are you trying to connect to a MySQL database on a web server somewhere? If so, by far the easiest way to do so is to use some sort of application server layer (e.g. PHP, ColdFusion, Java) on the web server, and have the AIR application call the PHP (or whatever) code to get the data. That is the approach that all the links Greg has given you are talking about.
Of course, in order to make that work you need to know enough PHP/Java/ColdFusion to write that middle layer. In the example you're asking about, the information it wants to know is the name of the server that the MySQL database is running on, and the MySQL username and password for the MySQL account that your PHP code is supposed to use. There are tons of resources on the web for writing PHP code that accesses MySQL, so you'll find much more and better information in other places than what you'll find in the Adobe AIR forums.
However, maybe you want to have the MySQL server running directly on the user's computer rather than on a web server somewhere. In that case you would have a few options:
Run a web server and application server (e.g. Apache and PHP) on the user's computer and use those to connect between the AIR application and the MySQL server.
Write Java code to communicate between the MySQL server and the AIR app, and call that code using Merapi (http://merapiproject.net/)
Run the MySQL server on the user's computer and call the server directly from AIR using ActionScript. While there is no built-in support for MySQL in AIR, there is a third-party (open source) library for calling MySQL directly from ActionScript available here: http://code.google.com/p/assql/. I haven't tested it so I have no idea how complete it is, but it's a solution to consider.
However, in all three cases you're depending on some external pieces that have to be installed and loaded separate from your AIR application. (For instance, most users probably don't want a MySQL server running on their computer all the time if they aren't using your AIR app all the time -- so you'd want a way to start and stop the server, which also couldn't be done directly in AIR.) People do write applications that use external resources like this, but it's not the easiest thing to implement.
If you're really wanting to run the database locally, the best solution (assuming it works for your needs) is to use AIR's built in local SQL database engine (based on SQLite). If you've looked at that option already, and found that it doesn't work for you, I'd be interested to know more about what you're trying to accomplish that you can't accomplish with the AIR local database. -
Connecting to a Mysql database using CF Administrator and DW
I can't create a mysql datasource in CF Administrator.
If I use the following datasource settings in CF
Administrator:
JDBC URL: jdbc:mysql://localhost:3306/test
Drive Class: MySQL Connector J
AND (note the emphasis) I set my local and remote folders in
my DW site local folder, remote folder and testing server folders
all to C:\CFusionMX\db\, I can connect to my mysql database in CF
Administrator.
However, with these DW site folder settings, DW doesn't
recognize any databases (Access or Mysql) at all.
When I change my DW site folder settings to 'wwwroot'
(e.g.local folder C:\CFusionMX\db\' is changed to
'C:\CFusionMX\wwwroot') DW now lists all my CF Administrator
databases.
The problem is CF Administrator can't connect to my Mysql
data sources. It gives me the error:
"Connection verification failed for data source: javaserver
[]java.sql.SQLException: SQLException occurred in JDBCPool
while attempting to connect, please check your username, password,
URL, and other connectivity info.
The root cause was that: java.sql.SQLException: SQLException
occurred in JDBCPool while attempting to connect, please check your
username, password, URL, and other connectivity info"
I've tried changing the 3306 port to 8500, but this doesn't
help.
My java path and connector file is:
C:\CFusionMX\wwwroot\WEB-INF\lib\mysql-connector-java-3.0.17-ga-bin.jar,
Is this a ID/password problem? I've tried both 'root' and
leaving the ID field in the CF Administrator add data source block,
both to no avail. I don't have a password set in Mysql for 'root'
either.
Any help would be gratefully appreciated. I've been working
on this for weeks and keep running into one problem after another.
Thanks a million in advance.
Sincerely,
Graham A. Kerby1) ensure mysql server is running
2) there are numerous tutorials for mysql installation out
there
3) there are good free mysql admin tools out there
4) use both the above to verify your mysql installation is
correct
5) please tell me you do have your zonealarm DISABLED
hth
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com -
Connecting to a Mysql database using a ColdFusion server
can't create a mysql datasource in CF Administrator.
If I use the following datasource settings in CF
Administrator:
JDBC URL: jdbc:mysql://localhost:3306/test
Drive Class: MySQL Connector J
AND (note the emphasis) I set my local and remote folders in
my DW site local folder, remote folder and testing server folders
all to C:\CFusionMX\db\, I can connect to my mysql database in CF
Administrator.
However, with these DW site folder settings, DW doesn't
recognize any databases (Access or Mysql) at all.
When I change my DW site folder settings to 'wwwroot'
(e.g.local folder C:\CFusionMX\db\' is changed to
'C:\CFusionMX\wwwroot') DW now lists all my CF Administrator
databases.
The problem is CF Administrator can't connect to my Mysql
data sources. It gives me the error:
"Connection verification failed for data source: javaserver
[]java.sql.SQLException: SQLException occurred in JDBCPool
while attempting to connect, please check your username, password,
URL, and other connectivity info.
The root cause was that: java.sql.SQLException: SQLException
occurred in JDBCPool while attempting to connect, please check your
username, password, URL, and other connectivity info"
I've tried changing the 3306 port to 8500, but this doesn't
help.
My java path and connector file is:
C:\CFusionMX\wwwroot\WEB-INF\lib\mysql-connector-java-3.0.17-ga-bin.jar,
Is this a ID/password problem? I've tried both 'root' and
leaving the ID field in the CF Administrator add data source block,
both to no avail. I don't have a password set in Mysql for 'root'
either.
Any help would be gratefully appreciated. I've been working
on this for weeks and keep running into one problem after another.
Thanks a million in advance.
Sincerely,
Graham A. KerbyIf it were me I would use the MySQL JDBC driver and not ODBC. Then DSN versus not-DSN wouldn't be an issue.
-
Connection error to 9i database using JDBC thin driver
When trying to connect to a new 9i database using the JDBC thin driver, I received the following error:
java.sql.SQLException: ORA-00600: internal error code, arguments: [ttcgcshnd-1], [0], [], [], [], [], [], []
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java)
at oracle.jdbc.ttc7.TTC7Protocol.fetch(TTC7Protocol.java)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java)
at oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java)
at oracle.jdbc.driver.OracleDatabaseMetaData.getTables(OracleDatabaseMetaData.java)
I have no problem with my code connecting to an Oracle 8 database, just 9i.
I'm trying to debug in Visual Cafe (JDK 1.1.7) and have both the classes111.zip and the nls_charset11.zip in my CLASSPATH.
Any suggestions would be appreciated. ThanksIf you're using 8i 8.1.7.1 or 8i 8.1.7.0 thin JDBC drivers on NT, then you can get them to connect to 9i by applying the 8i 8.1.7.1 Patch available at:
http://technet.oracle.com/software/tech/java/sqlj_jdbc/htdocs/solsoft.html
You might have to register/login first.
Basically, it's just a case of replacing a class already in your classes111.zip or classes12.zip with the class in the patch.
Took me a while to find this, but it worked first time after patching. Hope this helps.
Maybe you are looking for
-
Last night when i tried to sign a document i received the mesage below and after that it says this document can't be signed what can i do to fix this problem. Error encountered while signing: The Windows Cryptographic Service Provider reported an err
-
Nano iPod photo dock and S video out?
Has anyone with an iPod photo dock slipped their nano into it to see if the photos will display on a TV (attcheed via S-video?) Since Apple didn't offer a video cable out for nano, I suspect it doesn't output slideshows, but it would be interesting t
-
How to make automatic backups of NW Portal systems?
Hi All, We have SAP CRM, ECC and NW Portal using MaxDB databases. For DB Backups and monitoring, we are using Database Studio. But in this DatabaseStudio, we have no calendar and no automatic backups is possible. In SAP ECC and CRM, we can access the
-
How do i fix elements 7 app crash
how do i fix elements 7 app crash
-
Hii All There is a requiement in condition record where we want to have a warning pop up when we enter the valid from date i.e. whenever the valid from date is in past the system should give a pop up message. Can anyone let me know the settings where