48
Views
2
Comments
Solved
[Oracle Connector P9] Run a procedure in current session
Question
oracle-connector-p9
Web icon
Forge asset by João Grazina

Hello,

When I call a function or procedure, it will open a new session. How can I make it run in the current transaction?

2017-10-19 17-43-31
Khalil Dahham
Solution

Leaving the connection name and other database credentials empty will run the procedure in the current database session.

Capture.PNG
2024-10-25 08-47-19
Eduardo Pires

Hi Khalil, i think you can set your transaction name in Outsystems flow and at begin your function or procedure set again for same transaction with something like that:

SET TRANSACTION NAME 'transaction_name';

Check Oracle documentation: https://docs.oracle.com/en/database/oracle/oracle-database/18/cncpt/transactions.html#GUID-7690181F-8293-47B9-ADC1-905BD9C3AF57

2017-10-19 17-43-31
Khalil Dahham
Solution

Leaving the connection name and other database credentials empty will run the procedure in the current database session.

Capture.PNG
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.