-
Esau Redwan
- PowerServer
- Friday, 10 October 2025 12:16 AM UTC
Hello Appeon Community,
Our environment:
PowerServer apps hosted IIS connected to Oracle Database 19c+
I got a question about this statement mentioned on the Appeon PowerServer documentation linked here https://docs.appeon.com/ps2022r2/Connection_differences.html
It mentions
Note
However, a few features will not work properly in short-lived connections. For example, temporary tables will fail to work in the short-lived connection. You can take advantage of a parameter called LongConnection to enable the installable cloud app to have the same long-running connection as the PowerBuilder traditional C/S app.
In the installable cloud apps, if the temp table is created in connection A, and operations in connection B try to access this temp table, then errors such as "table not found" will occur. Or the temp table created in connection A is destroyed when connection A is returned to the pool, then operations with this temp table will fail even though connection A is selected again from the pool.
How would the temp tables not work in a short-live connection with a connection pool? Lets say one user connects to our PowerServer app with short-live connection and then runs a process that uses a temp table. Once that temp table is used, a commit is processed. This happens in milliseconds, so the next user/connection can use that temp table again without "table not found" error. Is my logic not correct?
My most experience is in traditional WEB/API applications. In our Java web application using connection pools to Oracle, that traditional WEB/API application can use temp tables fine and we have more users using the same tables than our PowerServer apps. So how would a PowerServer app using connection pool with short-live connections lead to issues with temp tables?
We are having production issues where we are getting locks on the database (currently on Long connection) and cannot pinpoint the source of the locks at the moment so my idea is to possibly change that app to a short-live connection but it uses temp tables. What do you think?
Thank You for reading.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.