Home » Developer & Programmer » Forms » Forms6i sqlplus.exe try to connect 10Gdatabase
Forms6i sqlplus.exe try to connect 10Gdatabase [message #158458] Sat, 11 February 2006 08:20 Go to next message
zafri
Messages: 5
Registered: February 2006
Location: london
Junior Member
Hi.

I am not an Oracle expert but as far as I concerned the SQL code which I am using did not give the error during the form execution.
But when forms 6i’s Plus80.exe internally try to connect to Oracle Database 10G the error comes.


Lokking for a solution.

zafri



Regarding my sql code it something like this which I write in when button Press trigger:

Declare



in_file3 Text_IO.File_Type;
linebuf3 VARCHAR2(1800);
output11 varchar2(1000);

BEGIN

output11:='C:\EXPLAIN_PLUS\misc\rm_file.bat ';
Host(output11,no_screen);

:sql.execution_plan:= 'Working........................';
synchronize;


in_file3 := Text_IO.Fopen('c:\explain_plus\misc\create_table.txt', 'w');

Text_IO.Put_Line(in_file3, linebuf3);

Text_IO.put_line(in_file3,' ');

Text_IO.put_line(in_file3,' run { sql "create table PLAN_TABLE (statement_id,...object_name varchar2(30),object_instance numeric,object_type varchar2(30),optimizer varchar2(255),search_columns number,id .....partition_start varchar2(255),partition_stop varchar2(255),partition_id numeric,other long,distribution varchar2(30)) "; } ');
Text_IO.put_line(in_file3,' ');
Text_IO.put_line(in_file3,' ');


Text_IO.FCLOSE(in_file3)

Declare

un VARCHAR2(80);
pw VARCHAR2(80);
cn VARCHAR2(80);
output VARCHAR2(1000);
output2 VARCHAR2(1000);
dummy varchar2(40);
in_file Text_IO.File_Type;
linebuf VARCHAR2(1800);


BEGIN

Get_Connect_Info(un,pw,cn);



/* for Plan_table Begg. Second INNER BLOCK */
declare

dummy2 varchar2(40);

begin



select table_name into dummy2 from all_tables where table_name='PLAN_TABLE';

if dummy2 = 'PLAN_TABLE' then
output2:='rman target/ nocatalog @C:\EXPLAIN_PLUS\MISC\TRUNC2.txt ' ;
Host(output2,no_screen);

end if;

exception
when no_data_found then


output2:='rman target/ nocatalog @C:\EXPLAIN_PLUS\misc\create_table.txt ';
Host(output2,no_screen);

end; --

Re: Forms6i sqlplus.exe try to connect 10Gdatabase [message #158672 is a reply to message #158458] Mon, 13 February 2006 19:41 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Is this code all one trigger? Please review your post, use the 'code' tags to format it, and make sure you have as many 'end' statements as you have 'begin' statements.

David
Previous Topic: Visual attibutes problem
Next Topic: very urgent (how to use project builder)
Goto Forum:
  


Current Time: Fri Sep 20 05:33:47 CDT 2024