Ask a Question related to ASP Database, Design and Development.
-
Scott #1
A Note About ORA-02041: client database did not begin a transaction...
I received this error message when I was running my
package.procedure to access a remote database
view -- via a database link -- on one database
to another. (I am using the Oracle OLEDB Provider: Provider=OraOLEDB.Oracle)
I was able to eliminate it by adding this line of code to
my procedure:
SET TRANSACTION READ ONLY;
before the SELECT statement in my procedure and add
COMMIT;
after the SELECT statement in my procecure. Hope this
helps someone out there!!
My final package/procedure (called SCOTTPAK.SQL) looks like this:
CREATE OR REPLACE PACKAGE SCOTTPAK AS
TYPE curREFCUR IS REF CURSOR;
PROCEDURE GetStuff (pkey IN NUMBER,
a_cursor OUT curREFCUR);
END SCOTTPAK;
/
SHOW ERRORS
CREATE OR REPLACE PACKAGE BODY SCOTTPAK AS
PROCEDURE GetStuff (pkey IN NUMBER,
a_cursor OUT curREFCUR) IS
BEGIN
--ADD THIS LINE!!
SET TRANSACTION READ ONLY;
OPEN a_cursor FOR
SELECT COL1,COL2,COL3
FROM ops$admin.vwMyView@myDBLink
WHERE product_key=pkey;
--ADD THIS LINE!!
COMMIT;
END GetStuff;
END SCOTTPAK;
/
SHOW ERRORS
Scott Guest
-
Database corrupt, can we use the transaction log?
We discovered yesterday database corruption and with help from my previous posting we checked the database. A few tables do have problems and... -
A note to add to ASPFAQ.com for database compacting
I also forgot to mention that inherited deny permission take precedence over allow permissions. joker wrote: > Well here are some articles... -
Transaction id and transaction isolation
Hi Two questions. I am using Informix IDS 9.4 on Windows. 1. I would like to be able to get hold of the transaction id while still in the... -
Error in Database Transaction
Has any one see the following error message. System.Runtime.InteropServices.COMException (0x8004D025): The partner transaction manager has... -
Connecting to Oracle 8.0.4 Database using 8.1.7 client
I am installing an SAP application server, and would like it to be as clean as possible. Is it possible to use Oracle 8.1.7 client software to... -
Scott #2
A Note About ORA-02041: client database did not begin a transaction...
I received this error message when I was running my
package.procedure to access a remote database
view -- via a database link -- on one database
to another. (I am using the Oracle OLEDB Provider: Provider=OraOLEDB.Oracle)
I was able to eliminate it by adding this line of code to
my procedure:
SET TRANSACTION READ ONLY;
before the SELECT statement in my procedure and add
COMMIT;
after the SELECT statement in my procecure. Hope this
helps someone out there!!
My final package/procedure (called SCOTTPAK.SQL) looks like this:
CREATE OR REPLACE PACKAGE SCOTTPAK AS
TYPE curREFCUR IS REF CURSOR;
PROCEDURE GetStuff (pkey IN NUMBER,
a_cursor OUT curREFCUR);
END SCOTTPAK;
/
SHOW ERRORS
CREATE OR REPLACE PACKAGE BODY SCOTTPAK AS
PROCEDURE GetStuff (pkey IN NUMBER,
a_cursor OUT curREFCUR) IS
BEGIN
--ADD THIS LINE!!
SET TRANSACTION READ ONLY;
OPEN a_cursor FOR
SELECT COL1,COL2,COL3
FROM ops$admin.vwMyView@myDBLink
WHERE product_key=pkey;
--ADD THIS LINE!!
COMMIT;
END GetStuff;
END SCOTTPAK;
/
SHOW ERRORS
Scott Guest



Reply With Quote

