How to use form connect to MS SqlServer?
Hi,
I want to use form9i connect to MS Sqlserver.
I try to use this to test connect.
=========================================
declare
connection_id EXEC_SQL.ConnType;
cursor_number EXEC_SQL.CursType;
-- Variables for the data to be returned into
begin
connection_id := EXEC_SQL.OPEN_CONNECTION('sa/pwd@odbc:sqlserver1');
if EXEC_SQL.IS_CONNECTED(connection_id) then
message('Connected to sqlserver');
else
message('ERROR: No connection established');
end if;
end;
=====================
But It's not work.
It's show message 'Frm-40735 and ora-306500.'
Please help me .
Thank you.
Hi,
Forms 9i doesn't support ODBC. You would need a transparent Gateway to connect to non Oracle databases
Frank
Similar Messages
-
How to use JDBC Connection Pools in a standalone application?
Hi, there,
I have a question about how to use JDBC Connection Pools in an application. I know well about connection pool itself, but I am not quite sure how to keep the pool management object alive all the time to avoid being destroyed by garbage collection.
for example, at the website: http://www.developer.com/java/other/article.php/626291, there is a simple connection pool implementation. there are three classes:JDBCConnection, the application's gateway to the database; JDBCConnectionImpl, the real class/object to provide connection; and JDBCPool, the management class to manage connection pool composed by JDBCConnectionImpl. JDBCPool is designed by Singleton pattern to make sure only one instance. supposing there is only one client to use connection for many times, I guess it's ok because this client first needs instantiate JDBCPool and JDBCConnectionImpl and then will hold the reference to JDBCPool all the time. but how about many clients want to use this JDBCPool? supposing client1 finishes using JDBCPool and quits, then JDBCPool will be destroyed by garbage collection since there is no reference to it, also all the connections of JDBCConnectionImpl in this pool will be destroyed too. that means the next client needs recreate pool and connections! so my question is that if there is a way to keep pool management instance alive all the time to provide connection to any client at any time. I guess maybe I can set the pool management class as daemon thread to solve this problem, but I am not quite sure. besides, there is some other problems about daemon thread, for example, how to make sure there is only one daemon instance? how to quit it gracefully? because once the whole application quits, the daemon thread also quits by force. in that case, all the connections in the pool won't get chance to close.
I know there is another solution by JNDI if we develop servlet application. Tomcat provides an easy way to setup JNDI database pooling source that is available to JSP and Servlet. but how about a standalone application? I mean there is no JNDI service provider. it seems a good solution to combine Commons DBCP with JNID or Apache's Naming (http://jakarta.apache.org/commons/dbcp/index.html). but still, I don't know how to keep pool management instance alive all the time. once we create a JNDI enviroment or naming, if it will save in the memory automatically all the time? or we must implement it as a daemon thread?
any hint will be great apprieciated!
SamTo my knoledge the pool management instance stays alive as long as the pool is alive. What you have to figure out is how to keep a reference to it if you need to later access it.
-
How to use a connection ODBC in crystal reports viewer?
Hi Guys!
I need to know if for update a report in crystal reports viewer, is necessary, have a connection SAP Business Objects Business Intelligence. How to use a connection ODBC in crystal reports viewer?Hi Guys!
I need to know if for update a report in crystal reports viewer, is necessary, have a connection SAP Business Objects Business Intelligence. How to use a connection ODBC in crystal reports viewer? -
How to use form has online exam
Hi,
I need to configure a form as an exam. The user fills the form but has to have all the rigth "answers" before an e-mail is sent to him stating that he has completed the training.
Thank you for any clues the would help me do this.
MathieuHow much would you charge me to setup the basic code that I could manage myself afterwards.
I am a quick learner.
I did the whole site by myself with your help and BC. www.geppp.com
I just need to have an e-mail send if a user has all the right answers to the an online exam.
Le 2013-10-08 à 20:54, Liam Dilley <[email protected]> a écrit :
Re: How to use form has online exam
created by Liam Dilley in Business Catalyst - View the full discussion
You will need to do some javascript and a matrix system to know what the options are and what the right answers are relevent to those.
How is your knowledge in this area?
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5746256#5746256
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5746256#5746256
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5746256#5746256. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Business Catalyst at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.
Mathieu Norton-Poulin, M.Ps., psychologue
Institut de Psychologie Clinique de Gatineau
4 Impasse de la Gare-Talon
Suite 202
Gatineau, Qc
J8T 0B1
Courriel: [email protected]
Web: www.mnppsychologue.com
Web: www.pftgatineau.com -
How to use Forms Default Database Connection in java class
When a form based application is started, a connection is made with underlying database. This is the Default (Primay) Database Connection.
The problem is I have some of my business logic implemented in a java class. In this class I have to make a another connection with the same database. What I want to do is to use the original Database Connection in the java class. In this I may avoid the overhead of reconnection.
Could anyone pls guide me in this way...you can't share the forms connection. Sorry :(
-
Hello Gurus,
I am new in adf and using jdev 11.1.2.3.
I am developing application in which i am using dynamic shell UI. The structure of application is i have one main application modules with the UI shell. The other modules are developed in separate application and has its own data control and task flows and then i deployed them as adf library. Then i am consuming the task flow in the main application.
As i mention each module has its own data control, so when i open a module it makes new connection with database. It means if i have opened ten modules then it is opening ten connections with database.
Is is possible i can configure somewhere to use single connection for all modules and not to open the connection for each module.
And one more thing if i undeploy the application the connection is still with database as v$session view shows it. How i can close connection if i close the tab in ui shell.
Thanks,Hi, You can explore the option of nesting your AM. Check below links to know more about them.
Decompiling ADF Binaries: What you may need to know about Nested Application Module
Nested application modules | ADF KickStart
Good luck ! -
How to use pool connection run oracle procedure?
Hi, All:
I am facing a difficulty I can not find the solution. Maybe you can help
me.
I want to call an oracle stored procedure whenever I talk to datebase to
make the application more efficient. I was able to run the procedure using
oracle thin driver but not the connection pool using Weblogic jDriver for
JDBC2.0.
Please check the following code and see what I did wrong:
The code in JSP file in Weblogic:
<%-- JSP page directive --%>
<%@ page
import="java.io.*,java.util.*,java.sql.*,weblogic.common.*,weblogic.jdbc20.c
ommon.*" %>
<%-- JSP Declaration --%>
<%!
protected Connection con = null;
ResultSet rset = null;
%>
<%-- JSP Scriptlet --%>
<% try {
Properties props = new Properties();
props.setProperty("user", "james");
props.setProperty("password", "aimjames");
Driver myDriver =
(Driver) Class.forName
("weblogic.jdbc.pool.Driver").newInstance();
con = myDriver.connect("jdbc:weblogic:pool:hdj2Pool", props);
String userid = (String)session.getAttribute("user.id");
int subid =
Integer.parseInt((String)session.getAttribute("sub.id"));
String query = "begin pkg_select.sel_req_in_001(" + userid +
", " + subid + ", ?); end;";
weblogic.jdbc.common.OracleCallableStatement cstmt =
(weblogic.jdbc.common.OracleCallableStatement)con.prepareCall(query);
cstmt.registerOutParameter(1,java.sql.Types.OTHER);
cstmt.execute();
rset = cstmt.getResultSet(1);
When I run this JSP file, the compilation is fine but the result shows
nothing. That's means I can not get the ResultSet for some reason.
The working file when I use oracle thin driver (NOT use a connection pool):
String userid = (String)session.getAttribute("user.id");
int subid = Integer.parseInt((String)session.getAttribute("sub.id"));
String query = "begin pkg_select.sel_req_in_001(" + userid +", " +subid
+", ?); end ";
CallableStatement cstmt = con.prepareCall(query);
cstmt.registerOutParameter(1,OracleTypes.CURSOR);
cstmt.execute();
ResultSet rset = (ResultSet)cstmt.getObject(1);
You may notice that I am trying to bind a parameter to an Oracle cursor. Is
there anything I did wrong in using weblogic API? I just want to let you
that in the weblogic JSP file, I also tried to use
weblogic.jdbc.oci.CallableStatement and
weblogic.jdbc20.oci.CallableStatement instead of
weblogic.jdbc.common.OracleCallableStatement, but none of them seems work.
I did check the bea site at
http://www.weblogic.com/docs51/classdocs/API_joci.html#1080420 for the
example to use:
cstmt.registerOutParameter(1,java.sql.Types.OTHER);
and I think I followed the exact procedure the example did.
Please help!
James Lee
Artificial Intelligence in Medicine, Inc.
2 Berkeley Street, Suite 403
Toronto, Ontario M5A 2W3
Tel: 416-594-9393 ext. 223
Fax: 416-594-2420
Email: [email protected]
Joseph
Thanks for the suggestion about latest version of Weblogic Server.
"coding best-practices" is not mentioned in the post.
In order to make servlet application run significantly faster, my servet how to use connection poo is much moreresonable?
It is reasonable to expect servlet to run significantly faster with connection pooling.
Is it true that geting and close a connection whenever
one time database access finished?
Already answered. Applications use a connection from the pool then return it when finished using the connection.
Will the solution affect the servlet performance?
Yes. Already answered. Connection pooling enhances performance by eliminating the costly task of creating database connections for the application.
Is there any official document to introduce connection pool program?
For the latest version
http://download.oracle.com/docs/cd/E17904_01/web.1111/e13726/toc.htm
http://download.oracle.com/docs/cd/E17904_01/web.1111/e13737/jdbc_datasources.htm#insertedID0 -
How to use forms trace file for performance tuning
I am trying to use forms trace file in order to find cause of forms application performance problem.
I have read the document B14032-03 where is described how to turn on tracing and how to convert binary trace file to xml or html format. However these xml/html files are useless because they only contain series of forms events, without possibility for grouping or sorting. Actually, they are like to database raw trace file. I need some tool, like tkprof for database trace, that will process xml/html file and generate some more useful format.
Further, I have tried to load forms trace file into relational database tables in order to use SQL for performance problem investigation. I have followed procedure described in document A92175-01, but without success.
Is there any way to process xml/html file with grouping, orderering or summing event duration or way to load either binary, xml or html trace file into structured data in database.Al-Salamu Alikum user630033
It's not : elegant at all to thank people 4 No help,it's not their problem that u don't search enough, or u don't have access to db.
We should always say thank ,or 'Jazak Allah Khiern' on both cases even they could or couldn't help u.
Finally,i expect ' an appologize or even a thankful word ' and the kindness i am sure u had to publish the solution u found in order to share it with people who had same problem or at least to give them the info to get the appreciation or the thanksful word u deserve.
Rem.Never give a bad feedback to people who tried to help u.
Regards,
Abdetu.. -
How to use form personalization to lunch concurrent program
Hi,
Now I am using the form personalization to lunch a concurrent program with global variables.But how to post the global variables to the program parameters.
Thanks and best regards
Fang
Edited by: 895910 on Dec 25, 2011 7:54 PMHi,
I have defined global variables using form personalization. But how should i launch a SRS Form to submit a request and pass the variables as parameters. What should the syntax be.
Thanks and best regards,
Fang -
HELP: do u know how to use forms pluggable java component...
Hi all,
I'm looking for a sample for using java component within Forms: how to installl them? how to use them? ...
Cyryl from franceDid you already check the demos on OTN at:
http://otn.oracle.com/sample_code/products/forms/content.html
Check the viewlets to see how to develop and deploy them and you can even get code to use them. -
How to use Form tracking (T.code-J1IUN)
Hi all,
How to use the form tracking.and How to use the J1IUN. Can anybody help give a details idea how to track the C form wether the customer is giving the form againt the billing document .
Thanks in advance.
Regards,
Abhijit.hi
As per indian C form business process J1IUN will not meet the requirements.
we have to develop Z programme for this, logic is
1. Transaction one is all CST 4 % or 3 % invoices we have to store in Z table. (daily by creating Z tcode)
2. second transaction is maintain the C from numbers for respective invoice numbers ( by crating Z code)
3.develop 2 reports, one is invoices with C from numbers another one is invoices with out c form numbers.
so by sitting with u r abaper u can give above solution -
How to use a connection across multiple request
What is the idea of using a connection across multiple requests.
Please give more details. What connections and what requests
And are you posting on the right forum? (This sounds more like a Networking/servlet question) -
Hi,
I got some problems when using Form:
java.lang.ClassCastException
at com.sun.faces.taglib.html_basic.FormTag.setProperties(FormTag.java:160).
Here is my jsp:
<%@ page contentType="text/html; charset=ISO-8859-1" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="jsfh" %>
<html>
<head>
<title>Login</title>
</head>
<body>
<!--
<p align="center"> WOW - Logon Page </p>
-->
<jsfh:form id="frmLog">
<!-- user infomation input -->
<table cellpadding="0" cellspacing="1" >
<tr>
<td> Username </td>
<td>
<jsfh:inputText id="name" size="10" value="#{user.username}"/>
</td>
<td> <font color="#FF0000" size-2> * Required for Register and Logon </font> </td>
</tr>
<tr>
<td> Email </td>
<td>
<jsfh:inputText id="email" size="30" value="#{user.email}"/>
</td>
<td> * Optional for Register and Logon </td>
</tr>
<tr>
<td> Password </td>
<td>
<jsfh:inputSecret id="password" size="8" value="#{user.password}"/>
</td>
<td> * Required for Register and Logon </td>
</tr>
</table>
<!-- command buttons -->
<table>
<tr>
<td>
<jsfh:commandButton id="cmdRegister" value="Register" disabled="{user.isLoggon}"
action="#{user.register}" />
</td>
<td>
<jsfh:commandButton id="cmdLogon" value="Logon" disabled="{user.isLoggon}"
action="#{user.logon}" />
</td>
<td>
<jsfh:commandButton id="cmdLogout" value="Logout" disabled="{user.isLoggon}"
action="#{user.logout}" />
</td>
</tr>
</table>
</jsfh:form>
<H3> Usage: </H3>
<UL>
<LI>If you are new to WOW, please click button "Register" fisrt; </LI>
<LI>If you already have an account, please click button "Logon"; </LI>
<LI>If you already logged in WOW and want to take off, please click button "Logout". </LI>
</UL>
<p> Go back to WOW main page for more information about this system. </p>
</body>
</html>
thanks,
GuangmingHi,
This forum is exclusively for the Sun Java Studio Creator related discussions. Could you please post your question in the appropriate forum.
Thanks,
Creator Team. -
How to use form components in canvas
Hai folks
Im bit cofused here. Some say that v can use forms in canvas and some say cant. Im in a hurry in developing a real time appln. Please any one come up with a solution. Is it difficult to use J2ME Polish.Hi,
the installer jar is a jar file that needs to be un-jarred, usually by double clicking the jar file. Once you (install) un-jar the
1) For example, if you download the latest solutions catalog from
https://blueprints.dev.java.net/servlets/ProjectDocumentList?folderID=4144&expandFolder=4144&folderID=0
you will download bpcatalog-ee5-ea-0.6-installer.jar
2) then you have to install/unjar it
To Install: Double-click the jar file bpcatalog-ee5-ea-0.6-installer.jar, or run 'java -jar bpcatalog-ee5-ea-0.6-installer.jar'
3)This creates a folder bpcatalog-ee5-ea-0.6/ which has the contents of the blueprints solutions catalog, including the JSF component libraries.
4) then if you want to use a JSF component library such as bp-ui-14.jar which contains the calendar component, then move/copy the bp-ui-14.jar to your application that you want to us it in.
Then you use it like any JSF component library (see the links I put on previous posting if need more detail on that)
I think the confusion you were having is that you were using the installation jar bpcatalog-1.0.1_01-installer.jar instead of the JSF component library bp-ui-14.jar in your app?
hth,
Sean
Thank you for Reply.
hen i use
"bpcatalog-1.0.1_01-installer.jar" in
my projects lib folder its not working
an exception occurred
Jan 4, 2007 6:01:49 AM
org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw
exception
org.apache.jasper.JasperException: The absolute uri:
http://java.sun.com/blueprints/ui/14 cannot be
resolved in either web.xml or the jar files deployed
with this application
at
t
org.apache.jasper.compiler.DefaultErrorHandler.jspErro
r(DefaultErrorHandler.java:50)....
can you tell me what are all the java blueprint jar
file should be placed in my project....
Since bpcatalog-1.0.1_01-installer.jar is in
installation type...... plz tell me a step by step
process.... -
How to use DB connect against secondary Oracle DB ?
Hi all,
this is the issue:
an existing BI 7.0 based on Oracle 10.2.0.2.0 has to acquire data from an external Oracle 9.2.0.6 database. We want to use DB connect functionality.
1st Q: are the existing components (DBSL and Oracle db-client) sufficient for interfacing to the secondary database?
2nd Q: would it be better practice to look at the external database as a completely separate one? which means to install separate DBSL and db-client for it.
Unfortunately neither online documentation nor SAP notes provide full clarification. Is there any experience in the field? all comments and contributions are warmly appreciated!
THX, HarryStill puzzling on that issue. Will come back when completely solved. /hs
OK, gurus, expertz and those to be, here's the story:
BI 7.0 component of SCM-APO (Oracle 10.2.) is successfully connected to remote Oracle 9.2.
Actually there have been just a couple of points to look after. First thing was to maintain the alias connection string in tnsnames.ora file. Plus this file is required twice, in the ORASID directory as well as in the <SID>ADM directory.
Next issue is that apparently Oracle 'grants' are not supported by DB-Connect. But at least there is BI support package 11 which enables us to connect to other users' objects (different user than DB-Connect user). This healed the grants issue.
Further topics have been the date conversion issue (this should already be done in the remote source DB) and name length and characters-2-B-used requirements.
Once again thanks for your contributions and happy computing!
Harry
Message was edited by:
Harald Schwenger
Maybe you are looking for
-
Doubt in transient and volatile
Hi, I have doubt in using transient n volatile modifiers class Test public static final transient int i=1; public static final volatile int i=1; //line 1 }If i use final n volatile ,having a comp err like illegal combination of fina
-
Incorrect uninstallation of W media player
Hi, After coming to know about flip4mac, I decided to uninstall the Windows media player (WMP) on my mac. To uninstall I deleted the windows media player folder in the applications folder. I now realize that this is incorrect. I should have used the
-
Where has my rental movie gone
Hi I rented a movie and it hasn't showed up on my Toshiba laptop. I have rented lots of movies but this is the first time one hasn't shown up on my computer. Can anyone help me find it or find out where it has gone. Thanks
-
Hi There, I'm currently building a restricted catalogue for one of our connected users to view a defined subset of the items in MDM through our web connection. the restriction is done through creating MDM users and then applying a named search to tha
-
I am just beginning to learn Flash for work. I want to make a slide show for my parents' anniversary. Should I do this in Flash or is that making it more difficult than necessary. I'd like to use it though to reinforce what I'm learning ? I'll most l