Home » Developer & Programmer » Forms » Problem with exec_sql.execute in 11g (Forms[32Bit] 11.1.2.0.0, Database 10g 10.2.0.5.0 64bit, Toolkit 11.1.2.0.0)
Problem with exec_sql.execute in 11g [message #545987] Sun, 04 March 2012 08:06 Go to next message
papalpha
Messages: 5
Registered: March 2012
Location: NC
Junior Member
I am converting from 10g to 11g app server and having problem with the exec_sql.execute command. In my 10g version, the code is:
Declare
.
.
.
lv_dbms_journal_cursor exec_sql.curstype;
lv_status INTEGER;
.
.
.
BEGIN
.
.
.
IF (exec_sql.IS_OPEN (lv_dbms_journal_cursor)) THEN
exec_sql.close_cursor(lv_dbms_journal_cursor);
END IF;
lv_dbms_journal_cursor := exec_sql.open_cursor;
exec_sql.parse(lv_dbms_journal_cursor ,lv_journal_query2 ,1); -- 1 is for native sql
FOR lcv_column in 1..lv_no_columns LOOP
exec_sql.define_column(lv_dbms_journal_cursor, lcv_column, lv_column_value2, 512);
END LOOP;
lv_status := exec_sql.execute(lv_dbms_journal_cursor);



After this code caused the 11g forms session to crash, I modified the 11g version to the below, and it still crashes. Does anyone have any good suggestions?
Declare
.
.
.
lv_dbms_journal_cursor exec_sql.curstype;
lv_status PLS_INTEGER;
.
.
.
connection_id EXEC_SQL.ConnType;
BEGIN
.
.
.
connection_id := EXEC_SQL.DEFAULT_CONNECTION;
lv_dbms_journal_cursor := exec_sql.open_cursor(connection_id);
exec_sql.parse(connection_id, lv_dbms_journal_cursor, lv_journal_query2);
FOR lcv_column in 1..lv_no_columns LOOP
exec_sql.define_column(connection_id, lv_dbms_journal_cursor, lcv_column, lv_column_value2, 512);
END LOOP;
lv_status := exec_sql.execute(connection_id, lv_dbms_journal_cur
Re: Problem with exec_sql.execute in 11g [message #546011 is a reply to message #545987] Sun, 04 March 2012 10:17 Go to previous messageGo to next message
Littlefoot
Messages: 21813
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Which operating system do you have? Is it certified with Oracle software version(s) you use?
Re: Problem with exec_sql.execute in 11g [message #546020 is a reply to message #546011] Sun, 04 March 2012 10:44 Go to previous messageGo to next message
papalpha
Messages: 5
Registered: March 2012
Location: NC
Junior Member
I think it is Linux RedHat 6. Not sure of the specifics. Will try to get that info from someone who knows tommorw at work. We usually work pretty heavily with Oracle to make sure everything is compatible, but will verify tomorrow.
Re: Problem with exec_sql.execute in 11g [message #546176 is a reply to message #546020] Mon, 05 March 2012 10:00 Go to previous messageGo to next message
papalpha
Messages: 5
Registered: March 2012
Location: NC
Junior Member
Red Hat Enterprise Linux Server release 5.7
Re: Problem with exec_sql.execute in 11g [message #546285 is a reply to message #546176] Tue, 06 March 2012 01:53 Go to previous messageGo to next message
Littlefoot
Messages: 21813
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
I don't use Linux nor Forms 11g so I'm pretty much useless here. If you are sure that you are running a certified version of Oracle software and an operating system, have a look at My Oracle Support. Maybe it is a known issue and you'll find a solution, patch or, at least, workaround. Good luck!
Re: Problem with exec_sql.execute in 11g [message #546446 is a reply to message #546285] Tue, 06 March 2012 13:45 Go to previous messageGo to next message
papalpha
Messages: 5
Registered: March 2012
Location: NC
Junior Member
With further testing, I have noticed that when the query is small, less that 1600 characters, it works, but when it is large, > 2500 characters it crashes. It works in 10g appserver and forms even with the large character queries.

Any suggestions will be appreciated.
Re: Problem with exec_sql.execute in 11g [message #546451 is a reply to message #545987] Tue, 06 March 2012 14:42 Go to previous messageGo to next message
papalpha
Messages: 5
Registered: March 2012
Location: NC
Junior Member
If it helps, I have also noticed that it gives FRM-93652 when it crashes the session.
Re: Problem with exec_sql.execute in 11g [message #546544 is a reply to message #546451] Wed, 07 March 2012 05:52 Go to previous message
cookiemonster
Messages: 13925
Registered: September 2008
Location: Rainy Manchester
Senior Member
I'd suggest raising it with oracle support.
Previous Topic: Problem with detail block
Next Topic: Problem in connecting to other database user inside a form (merged 2)
Goto Forum:
  


Current Time: Fri Jul 05 23:46:09 CDT 2024