Oracle database Connectivity issue
We are using Oracle 11g database with java 1.6
When i am deploying my application i am getting below error
09:48:13,604 INFO [STDOUT] SQL Exception occured:
09:48:13,605 ERROR [STDERR] java.sql.SQLException:
09:48:13,607 ERROR [STDERR] at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
09:48:13,607 ERROR [STDERR] at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:131)
09:48:13,607 ERROR [STDERR] at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:204)
09:48:13,608 ERROR [STDERR] at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:650)
09:48:13,608 ERROR [STDERR] at oracle.jdbc.driver.T2CConnection.processOCIConnectionPooling(T2CConnection.java:997)
09:48:13,608 ERROR [STDERR] at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:239)
09:48:13,609 ERROR [STDERR] at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:508)
09:48:13,609 ERROR [STDERR] at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:133)
09:48:13,609 ERROR [STDERR] at oracle.jdbc.driver.OracleOCIConnection.<init>(OracleOCIConnection.java:60)
09:48:13,610 ERROR [STDERR] at oracle.jdbc.driver.OracleOCIConnection.<init>(OracleOCIConnection.java:44)
09:48:13,610 ERROR [STDERR] at oracle.jdbc.oci.OracleOCIConnection.<init>(OracleOCIConnection.java:36)
09:48:13,610 ERROR [STDERR] at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:49)
09:48:13,611 ERROR [STDERR] at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510)
09:48:13,611 ERROR [STDERR] at oracle.jdbc.pool.OracleOCIConnectionPool.createConnectionPool(OracleOCIConnectionPool.java:864)
09:48:13,611 ERROR [STDERR] at oracle.jdbc.pool.OracleOCIConnectionPool.<init>(OracleOCIConnectionPool.java:149)
09:48:13,614 ERROR [STDERR] at javax.servlet.GenericServlet.init(GenericServlet.java:242)
09:48:13,615 ERROR [STDERR] at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1208)
09:48:13,615 ERROR [STDERR] at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1108)
09:48:13,615 ERROR [STDERR] at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3628)
09:48:13,616 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:3851)
09:48:13,616 ERROR [STDERR] at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:299)
09:48:13,616 ERROR [STDERR] at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:138)
09:48:13,617 ERROR [STDERR] at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
09:48:13,617 ERROR [STDERR] at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
09:48:13,617 ERROR [STDERR] at org.jboss.web.deployers.WebModule.start(WebModule.java:95)
09:48:13,617 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
09:48:13,618 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
09:48:13,618 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
09:48:13,618 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
09:48:13,619 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
09:48:13,619 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
09:48:13,619 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
09:48:13,620 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271)
09:48:13,620 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670)
09:48:13,620 ERROR [STDERR] at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
This error come when my application is trying to connect to data base
try {
proxyPool = new OracleOCIConnectionPool(strUserId ,strPassword, url,poolConfig); // error is coming at this line
System.out.println("Connection pool created");
} catch (SQLException sqle) {
System.out.println("SQL Exception occured:");
sqle.printStackTrace();
if(proxyPool != null) {
proxyPool.close();
proxyPool = null;
throw sqle;
Please help me find resolution of this problem
Thanks,
Kumar
Edited by: 906270 on Jan 9, 2012 3:01 AM
906270 wrote:
We are using Oracle 11g database with java 1.6Err...no that is not all you are doing. Looks like a whole bunch of stuff is in there.
Please help me find resolution of this problemWrite a command line application in java. That means it does NOT run in jboss.
It should do nothing but connect to oracle with the OCI connection string and report the results.
Run it on the same box as jboss.
Run it as the same user as jboss.
If it succeeds then your problem is jboss or the user.
If it doesn't then report the exception that that throws. And post the code (using code tags.)
Similar Messages
-
NW 7.3 Installation - Oracle Database connection issue.
Dear SDN,
I am trying to install the SAP NW 7.3 but fail due the connection to oracle database. (My System details : Windows 7, 64 bit, 4gb ram - copyied NW7.3 server for 64 bit)
I hvae installed the Oracle database and client. I have checked and stated the services, updated the host file, started the database with SQL editor, checked the Oracle Enterprise Manager, all looks fine.
When I run the Sapinst, it finds the database but unable to process next due to connection error. error message looks like :
Cannot connect to jaiswal
Error(s) returned:
SQL Server does not exist or access denied.
SOLUTION: Check that you specified the correct name for the database server, that the server is running and you are authorized to log on to it.
Please advice on the issue.
Best Regards
Arun JaiswalDear Vincent
I am using the Oracle as database. When I extract the part-1-5 folder for Oracle database and started the run the sapinst under extracted folder > data units > _MSS.
Best Regards
Arun Jaiswal -
Oracle Database Connection ISSUE
Folks,
I Installed Oracle 8.1.7 database on a RH AS Linux server. Installation is smooth. I am able to start the server and listerner without any errors. I am able to connect through SQL Plus and JDBC Clients. After sometime(10-12 mins) something happens on the server and I am NOT able to connect to the server through JDBC client. But still I am able to connect through SQL Plus from remote machines.
Does this ring any bells to you guys ? Let me know.
thx.
Rajesh.Dear Vincent
I am using the Oracle as database. When I extract the part-1-5 folder for Oracle database and started the run the sapinst under extracted folder > data units > _MSS.
Best Regards
Arun Jaiswal -
Problem in Oracle Database Connectivity in JSP
I am having big problem such as Oracle Database connectivity problem
Following code i am used for database connection. but it throw an exception call class not found exception.
Pls any one can help me. With a sample code for Oracle Database connection in JSP
Class.forName ("oracle.jdbc.driver.OracleDriver");
String url="jdbc:oracle:thin:@172.25.44.54:1521:bbo";
con = DriverManager.getConnection(url,"user", "user123");
Thank youWell i've never used oracle or their drivers before but i'm presuming that you'd go to oracle.com or something and look for downloads. Otherwise you could goodle for Oracle JDBC drivers. Then just follow the instructions.
Again i've never used JSP but if you have a manifest file somewhere you'll need to put a class-path: entry in their referecning the jar file with the driver so that it is availble at run-time.
Wes -
NetBean, I can't establish the oracle database connection with version 9i.
In NetBean, I can't establish the oracle database connection with version 9i.
I have create the datasource and it is fine.
when i try to access the tables i get a message
"Unable to refresh children, connection is broken, unsupported feature"
in netbeans.
Does netbeans support oracle 9i version.
Thanks,
VKKIn NetBean, I can't establish the oracle database connection with version 9i.
I have create the datasource and it is fine.
when i try to access the tables i get a message
"Unable to refresh children, connection is broken, unsupported feature"
in netbeans.
Does netbeans support oracle 9i version.
Thanks,
VKK -
Oracle Provider connectivity issues in 2008 server (for Standard Users)
Hi
We're using Windows 2008 R2 server and installed a VB application. The application has the capability to connect to Access, SQL Server or Oracle Datbase using OLEDB providers. When I login as "Administrator", the application connects to all three databases.
But, When I login as "Standard user" in the server and try to connect to the Oracle Database (using Oracle OLEDB provider), the application errors "Database server doesn't exist or Access denied".
We are using Oracle 10g (oraops10.dll, version 1.102.2.20) client. We have also provided the full access rights to "Authenticated Users" and "Users" account in the server and still get this error.
Any suggestions/ideas, why this error occurs?I don't think, you're correct.
As mentioned in my post, the application works fine when I logged as "Administrator". Only for the "Standard users" logins, the application doesn't work.
The Windows Server restricts the oracle database connectivity for the standard users. My questions, does oracle require "special permission" for certain folders, so the standard users can connect to the oracle database.?
Regards, Karthik -
How to config the oracle database connection pool in IAS
Hi,
Does anyone who hows to config the oracle database connection pool in IAS?
Thanks so much!!!
[email protected]
JackyJacky,
You need do the following for oracle type4 driver:
1) register the driver:
$IAS_HOME/bin/jdbcsetup
Driver Identifier: Oracle_Type4_816 (whatever name you like)
Driver Classname: oracle.jdbc.driver.OracleDriver
Driver Classpath: .../classes12.zip (install this this zip file somewhere
and add this zip into the Classpath later).
2) DataSource Setup:
start iAS Administration Tool (iASAT)
Choose Database, unfold iAS1 (your app server instance),
choose External JDBC Datasource -> add: DataSource Registration
JNDI Name: yourPoolName
Driver Type: Oracle_Type4_816 (select what you just register)
DataSource Url: jdbc:oracle:thin:@hostName:portName:dbName
Username: your_user_name
Password: your_passwd
(Datasource Pool: using defaults for now): you can also customrize the
parameters for the pool.
3. Add classes12.zip into CLASSPATH.
In your application, you can use JNDI lookup to get the DataSource from
which you get the connection from the pool.
Hope this helps.
Good luck.
Xuran
"Jacky Yan" <[email protected]> wrote in message
news:9m0tmp$[email protected]..
Hi,
Does anyone who hows to config the oracle database connection pool in IAS?
Thanks so much!!!
[email protected]
Jacky -
Any place I can find Oracle database known issues
Hi
Is there any place I can find Oracle database known issues list for specified release?
ThanksSpecifically, see MOS Docs
555579.1 - 10.2.0.4 Patch Set - Availability and Known Issues
738538.1 - 11.1.0.7 Patch Set - Availability and Known Issues
HTH
Srini -
64 bit SAP to 32 bit External Oracle Database connectivity failing
Dear All,
We are trying to connect to an external Oracle database thru DBCON method. We are able to connect to Oracle server from our IDES server which is a 32 bit server, but when we are trying to connect our development server which is a 64 bit server, the connectivity is failing.
we copied the correct 64 bit *.lib file to the SAP server but still same result. We are getting the error message - Work Process restarted. Session terminated.
the Oracle server we are trying to connect is 32 bit, can this create some problem ?
kindly any one help us in this reagrd.
thanks in advance,
Saurabh.Hi Eric,
thanks for the advice but I am a bit confused as where to execute that sqlplus command/query ?
in the Oracle server or from SAP and what does system/password@DEV means ??
can you elaborate on this please.
here i would like to add that we have connected to the external Oracle server using linked server approach of MS SQL (our SAP default database) and so our connectivity is happening till SQL level i.e. I am able to connect to the Oracle and query it using OpenQuery syntax. the problem is appearing when I am trying to connect from the ABAP level.
kindly suggest as to what can be the solution of this issue.
thanks
Saurabh. -
Getting TXN timeout exception when getting an XA Oracle Database Connection
Running WLS 8.1 sp5 on Linux in a Cluster (4 servers)
Using Oracle 10.2.0.2.0 Thin XA driver
Running Oracle Datbase 9.2.06 or 9.2.07; I think
I am getting the SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: Transaction rolled back: Transaction timed out after 31 seconds
It fails at: weblogic.jdbc.jta.DataSource.enlist(Lweblogic/transaction/Transaction;)V(Optimized Method). The exception occurs on all 4 WLS instances at the same time.
Stack trace at bottom. This problem seems to occur on and off at about the same time. We have not been able to see other jobs that would affect it during this time.
- Max Pool Size = 25
- Current and High Connections = 5
- Num Unavaiable = 0
- Failure to Reconnect = 0
- Connection Delay ranges from 57 to 126 milliseconds
The problem occurs within an MDB. The MDB gets a msg from the JMS queue, fires off an SMTP msg, and tries to update the database and fails due to the timeout on enlisting in the XA transaction.
Any thoughts on what to look for? Read the info at http://edocs.bea.com/wls/docs81/faq/JTA.html#738205. Is it talking to the Oracle database to enlist. Since occuring on all 4, there is a central place it's failing and I guess the database is a start.
Thanks. Later...
- Wayne
Wed Jan 10 08:30:13 EST 2007: EMS: Exception: EMSSenderDao.mdbChangeMessageQueueStatus() : java.lang.Exception: getMdbDBConnection() : java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: Transaction rolled back: Transaction timed out after 31 seconds
BEA1-6A0F2B6B5AA26811FBB9
at weblogic.jdbc.jta.DataSource.enlist(Lweblogic/transaction/Transaction;)V(Optimized Method)
at weblogic.jdbc.jta.DataSource.getConnection()Ljava/sql/Connection;(Optimized Method)
at weblogic.jdbc.jta.DataSource.connect(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;(Optimized Method)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection()Ljava/sql/Connection;(Optimized Method)
at com.foo_company.ems.dao.EMSSenderDao.mdbChangeMessageQueueStatus(ILjava/lang/String;I)I(Optimized Method)
at com.foo_company.ems.ejb.emsmessageconsumer.EMSMessageConsumerBean.onMessage(Ljavax/jms/Message;)V(Optimized Method)
at weblogic.ejb20.internal.MDListener.execute(Lweblogic/kernel/ExecuteThread;)V(Optimized Method)
at weblogic.ejb20.internal.MDListener.transactionalOnMessage(Ljavax/jms/Message;)V(Optimized Method)
at weblogic.ejb20.internal.MDListener.onMessage(Ljavax/jms/Message;)V(Optimized Method)
at weblogic.jms.client.JMSSession.onMessage(Ljavax/jms/MessageListener;Lweblogic/jms/common/MessageImpl;)V(Optimized Method)
at weblogic.jms.client.JMSSession.execute(Lweblogic/kernel/ExecuteThread;)V(Optimized Method)
at weblogic.kernel.ExecuteThread.execute(Lweblogic/kernel/ExecuteRequest;)V(Optimized Method)
at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:183)
at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V(Unknown Source)Wayne Lau wrote:
> Running WLS 8.1 sp5 on Linux in a Cluster (4 servers)
> Using Oracle 10.2.0.2.0 Thin XA driver
> Running Oracle Datbase 9.2.06 or 9.2.07; I think
>
> I am getting the SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: Transaction rolled back: Transaction timed out after 31 seconds
>
> It fails at: weblogic.jdbc.jta.DataSource.enlist(Lweblogic/transaction/Transaction;)V(Optimized Method). The exception occurs on all 4 WLS instances at the same time.
>
> Stack trace at bottom. This problem seems to occur on and off at about the same time. We have not been able to see other jobs that would affect it during this time.
> - Max Pool Size = 25
> - Current and High Connections = 5
> - Num Unavaiable = 0
> - Failure to Reconnect = 0
> - Connection Delay ranges from 57 to 126 milliseconds
>
> The problem occurs within an MDB. The MDB gets a msg from the JMS queue, fires off an SMTP msg, and tries to update the database and fails due to the timeout on enlisting in the XA transaction.
>
> Any thoughts on what to look for? Read the info at http://edocs.bea.com/wls/docs81/faq/JTA.html#738205. Is it talking to the Oracle database to enlist. Since occuring on all 4, there is a central place it's failing and I guess the database is a start.
>
> Thanks. Later...
>
>
> - Wayne
Hi. At that moment the issue, whatever it is, has already happened.
Something in the processing of the transaction to this point has
already taken longer than you have specified that a transaction
must complete in. Ideally we'd like to see the JTA/JDBC/2PC debug
logging turned on, so we have lines with timestamps for every
step in your tx.
Joe
> Wed Jan 10 08:30:13 EST 2007: EMS: Exception: EMSSenderDao.mdbChangeMessageQueueStatus() : java.lang.Exception: getMdbDBConnection() : java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: Transaction rolled back: Transaction timed out after 31 seconds
> BEA1-6A0F2B6B5AA26811FBB9
> at weblogic.jdbc.jta.DataSource.enlist(Lweblogic/transaction/Transaction;)V(Optimized Method)
> at weblogic.jdbc.jta.DataSource.getConnection()Ljava/sql/Connection;(Optimized Method)
> at weblogic.jdbc.jta.DataSource.connect(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;(Optimized Method)
> at weblogic.jdbc.common.internal.RmiDataSource.getConnection()Ljava/sql/Connection;(Optimized Method)
> at com.foo_company.ems.dao.EMSSenderDao.mdbChangeMessageQueueStatus(ILjava/lang/String;I)I(Optimized Method)
> at com.foo_company.ems.ejb.emsmessageconsumer.EMSMessageConsumerBean.onMessage(Ljavax/jms/Message;)V(Optimized Method)
> at weblogic.ejb20.internal.MDListener.execute(Lweblogic/kernel/ExecuteThread;)V(Optimized Method)
> at weblogic.ejb20.internal.MDListener.transactionalOnMessage(Ljavax/jms/Message;)V(Optimized Method)
> at weblogic.ejb20.internal.MDListener.onMessage(Ljavax/jms/Message;)V(Optimized Method)
> at weblogic.jms.client.JMSSession.onMessage(Ljavax/jms/MessageListener;Lweblogic/jms/common/MessageImpl;)V(Optimized Method)
> at weblogic.jms.client.JMSSession.execute(Lweblogic/kernel/ExecuteThread;)V(Optimized Method)
> at weblogic.kernel.ExecuteThread.execute(Lweblogic/kernel/ExecuteRequest;)V(Optimized Method)
> at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:183)
> at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V(Unknown Source) -
&, &&, and @s causing ORACLE Database Project issues And SLOW Run
Hello I am encountering an issue while "Run"ing functions/sp/packages from an ORACLE DATABASE PROJECT.
We are supporting a legacy application that utilizes HTP.PRINT. We decided that it would be nice to have it as an Oracle Database Project but when we save the file it is croaking at us.
We are using
ODTwithODAC1110720
Visual Studio 2008
Oracle 10g r2
The specific issue happens when an @ is the first line in the file and when utilizing && in javascript (all being emitted from HTP.Print). Now I know we can work around these limitations (escaping the &s and wrapping the line) but is there any way to get these to work in the IDE w/o the escaping and such?
For instance:
In visual Studio Create a Function1 as such
DROP FUNCTION FUNCTION1;
CREATE FUNCTION FUNCTION1 (
PARAM1 IN NUMBER) RETURN NUMBER IS
BEGIN
HTP.PRINT (' if (popupStatus == 1 && okDisabled==false) {');
htp.print('
<style>
@media printfooter; {
} etc etc etc ');
RETURN PARAM1;
END FUNCTION1;
/You will get this result:
Connected.
------ Running '***\Project1\Functions\Script1.sql' @**.** ------
Function dropped.
SP2-0310: unable to open file "media.sql"
Enter value for okdisabled:
Operation canceled by user
-- this locks the file
If I go ahead and hit OK (in a new unlocked file)
SP2-0310: unable to open file "media.sql"
Enter value for okdisabled: old 5: HTP.PRINT (' if (popupStatus == 1 && okDisabled==false) {');
new 5: HTP.PRINT (' if (popupStatus == 1 ==false) {');
**/You will notice that when the function is created it just skips the & and @s
FUNCTION FUNCTION1 (
PARAM1 IN NUMBER) RETURN NUMBER IS
BEGIN
HTP.PRINT (' if (popupStatus == 1 ==false) {');
htp.print('
<style>
} etc etc etc ');
RETURN PARAM1;
END FUNCTION1;and just a little insult to injury on this, each "run" takes upwards to 20-25 seconds from Visual studio (this is a deal breaker for us to use the tool -- when SQL Developer takes mere moments) -- is there a configuration setting awry?
So I guess the questions are these (sorry for the ramble)
1) How, in the VS 2008 IDE, can we accommdate & and && and @s without escaping/workarounds? (these work fine in developer)
a) I have noticed that the escape character work around is ONE way ... thus if I have the package body in the Oracle Database Project, add "set escape \ " then escape all of my & and && and @s it works. but... the code is saved in Oracle without the escape characters (understandable) but if it changes in Oracle then I push the changes down I lose all of my escape characters.
2) Why does each RUN take so long? working in developer & even the Server Explorer edited function are almost instantaneous.
-- I want to add, during my escape character tests EACH RUN took upwards to 30-45 seconds, so for 4 small simple test cases it was approaching 2 minutes of just save time...
so far these two shortcomings are barrier for our company to utilize these features (it's hard to try to sell the dept. on anything that doesn't handle escapes well AND -- the big AND -- takes entirely too long to save). any advise?
thnx
Edited by: tanging on Jul 1, 2010 4:47 AMwe can just set the escape character and it works fine,
set escape '~'
create or replace ....when/if we have to pull down from production level we'll have to be mindful to change & and @s to have a preceding escape character (and add the set escape to the top) --> which is a step back from SQL Developer which handles this flawlessly.
now the timing -- I believe it to be a timing issue on our network (therefore I've wasted your time). We have a default shared drive that is anything but speedy and our "default" homes in Visual Studio pointed to the shared drive. While the project/solution were on our local drives - the temp drive was the slow default. Changing that locally seems to have made the timing issue go away. (although on the first save of the body spec after the change and reboot it took 35 seconds but on subsequent runs it Ran in acceptable time limits). -
Crystal Report Viewer Not Releasing Oracle Database Connections
I have a very simple vb.net 3.5 web application that uses the Crystal Report viewer 2008 to open a report. My requirements are as follows:
1. Reports are built by another company and provided to us and used in a web environment
2. All reports contain parameter fields
3. The web application must be generic enough that a report can be added to a list and the user simply selects the report and provides database login information. The Crystal report viewer with handle the request for parameter values and prompt the user for their values.
4. All reports connect to an Oracle 10g server.
The above requirements have been meet and we have an extremely simple web application that runs the reports. It is working very well other than the crystal report viewer is not releasing the database connections. This is bad because the credentials are on a per user basis and that same user must login to a different oracle application simultaneously. They are being denied access because the credentials are already in use. We do not have control nor influence over the policies in use on the Oracle server. Ideally we would like to control the Crystal Report viewer so that it closes connections after use.
The web application code is:
Private Sub viewReports_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
If Not IsPostBack Then
ConfigureCrystalReport()
End If
End Sub
Private Sub ConfigureCrystalReport()
'Load the Crystal Report viewer with a report.
Try
Dim reportPath As String = Server.MapPath(Session("reportname"))
crViewer.ReportSource = reportPath
Catch ex As Exception
Response.Write(Server.MapPath(Session("reportname")) & "
" & ex.Message.ToString & "
" & ex.StackTrace.ToString)
End Try
End Sub
Can anyone shed some light on this topic? Thank youHello, Timothy;
By default, having the report in session will hold it open for 20 minutes.
If you create the report as a ReportDocument object you can take it out of session and release it more efficiently. That will release the connection.
Private Sub ConfigureCrystalReports()
If (Session("hierarchicalGroupingReport") Is Nothing) Then
hierarchicalGroupingReport = New ReportDocument()
hierarchicalGroupingReport.Load(Server.MapPath("Hierarchical Grouping.rpt"))
Session("hierarchicalGroupingReport") = hierarchicalGroupingReport
Else
hierarchicalGroupingReport = CType(Session("hierarchicalGroupingReport"), ReportDocument)
End If
myCrystalReportViewer.ReportSource = hierarchicalGroupingReport
End Sub
In the Form Unload of the Viewer:
'Take the report out of session
Session("hierarchicalGroupingReport") = Nothing
Session.Contents.Remove("hierarchicalGroupingReport")
'Clean up the ReportDocument object
hierarchicalGroupingReport.Close
hierarchicalGroupingReport.Dispose()
hierarchicalGroupingReport = Nothing
GC.Collect()
Elaine -
Developer 6i with patch 18 and oracle 11g connection issue
hi ,
I installed Oracle database 11g on server ,
when login to my application and open any form or report ,get oracle connection
user and password
what should i do ?
please help meso, canot use dev 6i?I'm afraid you can't. Not certified doesn't necessarily mean it won't work, but if you have problems, you're on your own...
Of course you have two solutions : use 10g DB, or upgrade your forms to 10g. What's the problem for the latter ? -
Oracle database connectivity using oledb provider and atl classes in c++
dear friend ,
i m connecting oracle database in c++. i m using ATL classes and oledb provider for oracle. however i m facing some defficulties in stored procedure.
Normally MYSQL and sql server database is resulting result set in stored procedure i.e. we can use " select * from tablename" query in c++ to returning result. but in oracle we can not use this approch as because it dosent support. so how can i execute below stored procedure in c++ code. i have to retuen result set in STP. i m using SYS_REFCURSER in oracle . but how do i execute it in c++ code.
create PROCEDURE stp_getRecord ( p_curser SYS_REFCURSER) as
begin
open p_curser for select * from table_name;
end;
please help me asap.I tried it, commented out the reader.read and have the following connection string
string connectionString = "provider=ORAOLEDB.ORACLE; data source=ORCL; password=****; user id=****; OLEDB.NET=True"
Unfortunately the result is the same.
Edited by: Dino2dy on Nov 24, 2011 12:53 AM -
MSSQL 2005 to Oracle Database Conversion Issue
Hi Experts,
We have a requirement where we need to fetch data from MSSQL2005 and store it in Oracle DataBase.
Could you all please let me know which KM module i need to import to achieve it.
Cheers,
AndyAndy
There are a number of options. You should select based on the volume of data and platform, and flexibility of your architecture etc
- At the simplest level, you could use the LKM SQL to Oracle, which will issue a SELECT on the source and do INSERTS on the target (using prepared statements etc, so not horrendous)
- You could use the a bulk loading methodology - by using SQLUNLOAD (or bcp) and then load into Oracle using External Tables or SQLLOADER, which will probably be the fastest solution. (I created a KM which generates all the right code to load the data that way, but without a staging area, you can find it here
If you want a staging area table etc, then you could modify the code in that KM to be an LKM rather than an IKM.
Maybe you are looking for
-
Problem in RFC - File Scenario
hi all, I am doing scenario in rfc to file where , rfc is taken as sender communication channel. what is the way to configure sender communication channel. with thanks Deva
-
Itunes wont auto launch when i connect iphone
HI I have seen this has been posted before but i can't follow how to fix it. I am using iphone 3GS on PC with itunes version 6, everything is ok but when i connect via usb to the pc itunes no longer automatically launches and syncs my calender. pleas
-
Copy Customer Ref No to Vendor Ref No when create back to back Order
Hi, I would like to copy Customer Ref No to Vendor Ref No when create back to back Sales Order to Purchase Order. Please suggest a way. Does i need to do before form add? If BusinessObjectInfo.FormTypeEx = "65" And BusinessObjectInfo.BeforeAction =
-
Passing SQL-Parameters to Oracle-Reports from java
hello, i want to write an application in the following way: on a java-frontend an user can select values for different parameters. these values should be to transferred to the sql- query of the reports rdf file. what is the syntax of an parameter pas
-
No results found for Investigation Lead
Hi Experts, I am currently facing a problem while selecting Investigation lead in the investigation tab. I am not able to see any results for investigation lead. Can you please help me out in understanding where the data for investigation lead can be