Forms 6i SQL+ Problems

Hey Guys,
For starters I'm currently studying at the University of Northampton in the UK. One of my modules is related to Database Architecture and thus the need to use Oracle. First term I managed to install Oracle 9i onto my machine, all went as planned using the scott/tiger user and pass. Now in my second year I'm required to use Forms Developer and the problems started!
Basically after messing around with the config too much I reformatted my machine and installed Oracle Forms 6i [which has SQL+ 8.0 which I also need, plus the forms applications].
When trying to log into SQL+ using every username and password under the sun in every Oracle help guide I can find I keep getting the same error;
ORA-12203: TNS:unable to connect to destination
I'm running on Windows XP Home which apparently I've been told Oracle struggles to run with and my processor is an AMD Sempron which also isn't desirable.
One of my tutors suggested searching for TNSNAMES.ORA and I found three files;
C:\orant\NET80\ADMIN
C:\orant\NET80\TNSAPI
C:\orant\NET80\ADMIN\SAMPLE
On finding these files the suggested solution was to find the longest file and then make all versions the same.
Still no hope!
Below is a copy of the TNSNAMES.ORA file;
Beq-local.world =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = beq.world)
(PROTOCOL = BEQ)
(PROGRAM = oracle73)
(ARGV0 = oracle73ORCL)
(ARGS = '(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')
(CONNECT_DATA = (SID = ORCL)
Tcp-loopback.world =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = tcp.world)
(PROTOCOL = TCP)
(Host = 127.0.0.1)
(Port = 1521)
(CONNECT_DATA = (SID = ORCL)
Example1.world =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = tcp.world)
(PROTOCOL = TCP)
(Host = Production1)
(Port = 1521)
(CONNECT_DATA = (SID = SID1)
Example2.world =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = spx.world)
(PROTOCOL = SPX)
(Service = Server_lsnr)
(CONNECT_DATA = (SID = ORCL)
Example3.world =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = nmp.world)
(PROTOCOL = NMP)
(Server = FinanceServer1)
(Pipe = ORAPIPE)
(CONNECT_DATA = (SID = ORCL)
I realize that this is probably a rookie mistake and you’ve seen it many times but I’d very much appreciate any solutions.
I’m a newbie, so as simple and dumb language as you can manage would be appreciated. The average undergraduate isn’t so bright these days.
Many Many Thanks,
Cory

Did you get SQL*Plus from the database working? If so I'd let me inspire from the tnsnames.ora and sqlnet.ora located in $DATABASE_ORACLE_HOME/network/admin as the entries there seems to be correct.
the tnsnames.ora and sqlnet.ora located in C:\orant\NET80\ADMIN would be the right one for Forms
regards

Similar Messages

  • How to make column headers in table in PDF report appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp

    Hi my name is vishal
    For past 10 days i have been breaking my head on how to make column headers in table appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp.
    Given below is my code in c# on how i export datas from different tables in sql server to PDF report using iTextSharp:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Data.SqlClient;
    using iTextSharp.text;
    using iTextSharp.text.pdf;
    using System.Diagnostics;
    using System.IO;
    namespace DRRS_CSharp
    public partial class frmPDF : Form
    public frmPDF()
    InitializeComponent();
    private void button1_Click(object sender, EventArgs e)
    Document doc = new Document(PageSize.A4.Rotate());
    var writer = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    doc.SetMargins(50, 50, 50, 50);
    doc.SetPageSize(new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.LETTER.Width, iTextSharp.text.PageSize.LETTER.Height));
    doc.Open();
    PdfPTable table = new PdfPTable(6);
    table.TotalWidth =530f;
    table.LockedWidth = true;
    PdfPCell cell = new PdfPCell(new Phrase("Institute/Hospital:AIIMS,NEW DELHI", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK)));
    cell.Colspan = 6;
    cell.HorizontalAlignment = 0;
    table.AddCell(cell);
    Paragraph para=new Paragraph("DCS Clinical Record-Assigned Dialyzer",FontFactory.GetFont("Arial",16,iTextSharp.text.Font.BOLD,BaseColor.BLACK));
    para.Alignment = Element.ALIGN_CENTER;
    iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
    png.ScaleToFit(105f, 105f);
    png.Alignment = Element.ALIGN_RIGHT;
    SqlConnection conn = new SqlConnection("Data Source=NPD-4\\SQLEXPRESS;Initial Catalog=DRRS;Integrated Security=true");
    SqlCommand cmd = new SqlCommand("Select d.dialyserID,r.errorCode,r.dialysis_date,pn.patient_first_name,pn.patient_last_name,d.manufacturer,d.dialyzer_size,r.start_date,r.end_date,d.packed_volume,r.bundle_vol,r.disinfectant,t.Technician_first_name,t.Technician_last_name from dialyser d,patient_name pn,reprocessor r,Techniciandetail t where pn.patient_id=d.patient_id and r.dialyzer_id=d.dialyserID and t.technician_id=r.technician_id and d.deleted_status=0 and d.closed_status=0 and pn.status=1 and r.errorCode<106 and r.reprocessor_id in (Select max(reprocessor_id) from reprocessor where dialyzer_id=d.dialyserID) order by pn.patient_first_name,pn.patient_last_name", conn);
    conn.Open();
    SqlDataReader dr;
    dr = cmd.ExecuteReader();
    table.AddCell("Reprocessing Date");
    table.AddCell("Patient Name");
    table.AddCell("Dialyzer(Manufacturer,Size)");
    table.AddCell("No.of Reuse");
    table.AddCell("Verification");
    table.AddCell("DialyzerID");
    while (dr.Read())
    table.AddCell(dr[2].ToString());
    table.AddCell(dr[3].ToString() +"_"+ dr[4].ToString());
    table.AddCell(dr[5].ToString() + "-" + dr[6].ToString());
    table.AddCell("@count".ToString());
    table.AddCell(dr[12].ToString() + "-" + dr[13].ToString());
    table.AddCell(dr[0].ToString());
    dr.Close();
    table.SpacingBefore = 15f;
    doc.Add(para);
    doc.Add(png);
    doc.Add(table);
    doc.Close();
    System.Diagnostics.Process.Start("AssignedDialyzer.pdf");
    if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.Yes)
    var writer2 = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    else if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.No)
    this.Close();
    The above code executes well with no problem at all!
    As you can see the file to which i create and save and open my pdf report is
    AssignedDialyzer.pdf.
    The column headers of table in pdf report from c# windows forms using iTextSharp are
    "Reprocessing Date","Patient Name","Dialyzer(Manufacturer,Size)","No.of Reuse","Verification" and
    "DialyzerID".
    However the problem i am facing is after execution and opening of document is my
    column headers in table in pdf report from
    c# and datas in it all appear in bold.
    I have browsed through net regarding to solve this problem but with no success.
    What i want is my pdf report from c# should be similar to following format which i was able to accomplish in vb6,adodb with MS access using iTextSharp.:
    Given below is report which i have achieved from vb6,adodb with MS access using iTextSharp
    I know that there has to be another way to solve my problem.I have browsed many articles in net regarding exporting sql datas to above format but with no success!
    Is there is any another way to solve to my problem on exporting sql datas from c# windows forms using iTextSharp to above format given in the picture/image above?!
    If so Then Can anyone tell me what modifications must i do in my c# code given above so that my pdf report from c# windows forms using iTextSharp will look similar to image/picture(pdf report) which i was able to accomplish from
    vb6,adodb with ms access using iTextSharp?
    I have approached Sound Forge.Net for help but with no success.
    I hope anyone/someone truly understands what i am trying to ask!
    I know i have to do lot of modifications in my c# code to achieve this level of perfection but i dont know how to do it.
    Can anyone help me please! Any help/guidance in solving this problem would be greatly appreciated.
    I hope i get a reply in terms of solving this problem.
    vishal

    Hi,
    About iTextSharp component issue , I think this case is off-topic in here.
    I suggest you consulting to compenent provider.
    http://sourceforge.net/projects/itextsharp/
    Regards,
    Marvin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to be a Forms & PL/SQL Expert?

    Hi Experts, I am very new to Oracle Forms and PL/SQL. I have been doing development in Forms (mostly in 10g but I also in 6i) and PL/SQL for little over 2 years.
    My problem is, I don't know much about how to progress up the ladder to be an Oracle Forms & PL/SQL expert.
    My other big problem is trying to find out how to keep pace with the latest development in Forms and PL/SQL.
    For example, my manager asked me how to print a file in a client printer. I could not give him a solution at once. Only after couple of hours of searching did I find the solution using WebUtil.
    Another instance a manger asked me how to encrypt data in Oracle forms. Again I had to do an extensive search on the web.
    Can an "expert" give a solution at once, without going to the web?
    Another time I was asked to do a performance tuning and could not do it since I have not done before. I tried to follow the method found in this site using a personal DB in my machine but could not simulate a situation.
    How do you keep track of latest developments?
    Are their any sites to go to?
    Is there a routine you can follow?
    Do you have to do R&D regularly? How often?
    How many hours of reading web-sites (on Forms, PL/SQL stuff) should you do for a week?
    How do YOU experts do it?
    You advice would be greatly appreciated.

    First of all I don't consider myself an expert, so my advice here might be flawed as they are based on my experiences ;)
    Can an "expert" give a solution at once, without going to the web?Frankly I hardly know how to write a file using text_io or utl_file, or use some other somewhat regular-use supplied packages without looking them up in the documentation. Well I somehow know, but the code will most certainly throw compile errors. This is due to the fact that the entire oracle documentation is huge, and there are version dependend manuals, and I never liked memorizing things I could easily look up. It just doesn't make sense to memorize entire documentations when you can look them up. So even for basics I go to the web...
    For example, my manager asked me how to print a file in a client printer. I could not give him a solution at once. Only after couple of hours of searching did I find the solution using WebUtil. So in the end you found a solution yourself didn't you?
    Another instance a manger asked me how to encrypt data in Oracle forms. Again I had to do an extensive search on the web.I am around forms a few years, and I don't know an ad-hoc answer to that. I might have a clue, but for a advice I'd have to try and most certainly consult google.
    Another time I was asked to do a performance tuning and could not do it since I have not done before. I tried to follow the method found in this site using a personal DB in my machine but could not simulate a situation. And you know at least where to start now even if you didn't solve the problem, don't you?
    When I started programming C/C++ in school we had a teacher who I consider a C-Guru. Sometimes the answer to how would I implement X? was I don't know exactly yet, but let me do some research and I'll show you. Needless to say that we certainly got our answers. The same guy taught Java with the opening phrase I don't know much about Java, but it is Object-Oriented, the Syntax is C like,and the documentation is quite extensive. He explained things better to us then others who asserted knowing Java.
    IMHO curiosity and being keen to experiment are much more valuable then the ability to memorize manuals and APIs. You might solve your problems with your actual knowledge today, but tomorrow there are new challenges which require new knowledge to be accumulated.
    If you face a problem don't hesitate to get your hands dirty. If a program doesn't do what it's supposed to do fire up the debugger, look at diagnostic infos and see why it fails instead crying about that you don't know why. If you need to learn a new language install the compiler, and write code until it compiles and does what you want it to do. If you need to work with the new asdf server enterprise edition install it, turn it upside down, blow it's config into pieces until it stops working and maybe get it running after that.
    Everything else boils down to showing an active interest in the things you do. There is no formula saying "spend X hours a week on asktom and eventually become a database expert". I regularly (can't say how often) visit asktom because I like reading the questions there. I don't do it because I must or want to become an expert someday, it is simple curiosity.
    As for places to look this is answered easily: the key source for informations on new products is the vendors homepage. It's OTN for oracle, MSDN for microsoft, ubuntu.com for ubuntu, and what ever else. Technical articles etc. about the products are at least listed there.
    Of course in software development there is (at least) one rule which always applies:
    always write code as if the person who will maintain your code is a maniac serial killer that knows where you live
    cheers

  • Forms pl/sql in oracle adf

    hi how can i re use this oracle forms pl/sql
    {PROCEDURE perform_logon IS
    error_message varchar2(100);
    usr_id integer;
    fail_cnt integer;
    fail_limit integer;
    pwd sms_users.pwd%type;
    pwd_dt date;
    pwd_dt_period integer;
    sysdt date;
    msg_lvl varchar2(20) := :system.message_level;
    cursor usr is
      select id,pwd_change_dt,sysdate,pwd,login_failure_count
      from sms_users
      where user_id = :logon.usr_id
    --  and   pwd     = sms_secure.crypt('USR',id,:logon.pwd)
    BEGIN
    set_clnt_details;
      if :logon.usr_id is null then
            error_message := 'User id must be specified';
         sms_code.error_message('SMS-'||to_char(0000001)||': '||error_message,'', 'E', 'SMS');
      end if;
      if :logon.pwd is null then
            error_message := 'Password must be specified';
         sms_code.error_message('SMS-'||to_char(0000002)||': '||error_message,'', 'E', 'SMS');
      end if;
      pwd_dt_period := sms_global.ref_code('SMS','PWD_PERIOD',30,1);
      fail_limit    := sms_global.ref_code('SMS','PWD_FAIL_LIMIT',3,1);
      open usr;
      fetch usr into  usr_id,pwd_dt,sysdt,pwd,fail_cnt;
      if usr%NOTFOUND then
         close usr;
                 sms_alog.record(:global.clnt_user    
                         ,:global.clnt_host_name ||':'||:global.clnt_ip_addr
                         ,'Logon'
                         ,:logon.usr_id
                         ,'Not SMS User'
                         ,:logon.usr_id
                         ,'sms0000');
            error_message := 'Logon to SMS Denied';
         sms_code.error_message('SMS-'||to_char(0000003)||': '||error_message,'', 'E', 'SMS');
      end if;
      close usr;
      if fail_cnt > fail_limit then
                       sms_alog.record(:global.clnt_user    
                         ,:global.clnt_host_name ||':'||:global.clnt_ip_addr
                         ,'Logon - PWD'
                         ,:logon.usr_id ||':'||fail_cnt||':'||fail_limit
                         ,'Password retry limit exceeded'
                         ,:logon.usr_id
                         ,'sms0000');
            error_message := 'Password error limit have been exceeded contact the Administrator';
         sms_code.error_message('SMS-'||to_char(0000014)||': '||error_message,'', 'E', 'SMS');
      end if;       
      if pwd <> sms_secure.crypt('USR',usr_id,:logon.pwd) then
       sms_global.set_user_id(:logon.usr_id);
            update sms_users
              set login_failure_count = nvl(login_failure_count,0) + 1
              where id = usr_id
              :system.message_level := 15;
                          sms_alog.record(:global.clnt_user    
                         ,:global.clnt_host_name ||':'||:global.clnt_ip_addr
                         ,'Logon - PWD Error'
                         ,:logon.usr_id ||':'||:logon.pwd
                         ,'Wrong user Password'
                         ,:logon.usr_id
                         ,'sms0000');
              commit;
              :system.message_level := msg_lvl;
            error_message := 'Logon to SMS Denied';
         sms_code.error_message('SMS-'||to_char(0000003)||': '||error_message,'', 'E', 'SMS');
      else
           if fail_cnt > 0 then
            update sms_users
              set login_failure_count = 0
              where id = usr_id
                          sms_alog.record(:global.clnt_user    
                         ,:global.clnt_host_name ||':'||:global.clnt_ip_addr
                         ,'Logon - PWD Correct'
                         ,:logon.usr_id
                         ,'Reset Failed count'
                         ,:logon.usr_id
                         ,'sms0000');
              :system.message_level := 15;
              commit;
              :system.message_level := msg_lvl;
        end if;            
                          sms_alog.record(:global.clnt_user    
                         ,:global.clnt_host_name ||':'||:global.clnt_ip_addr
                         ,'Logon - PWD Correct'
                         ,:logon.usr_id
                         ,'Success'
                         ,:logon.usr_id
                         ,'sms0000');
      end if; 
      if trunc(pwd_dt + pwd_dt_period) < sysdt then
            login_pwd_title;
         hide_an_item('logon.new_pwd1',1);
         hide_an_item('logon.new_pwd2',1);
                               sms_alog.record(:global.clnt_user    
                         ,:global.clnt_host_name ||':'||:global.clnt_ip_addr
                         ,'Logon - PWD Expired'
                         ,:logon.usr_id
                         ,'Password use Expired'
                         ,:logon.usr_id
                         ,'sms0000');
            error_message := 'Password Expired. Please change password.';
         sms_code.error_message('SMS-'||to_char(0000004)||': '||error_message,'', 'E', 'SMS');
      end if;       
       sms_global.set_user_id(:logon.usr_id);
       :global.User := :logon.usr_id;
       validate_usr_profiles (:logon.usr_id);
    END;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi.
    you can call procedures or functions without problems, and thus reuse
    see the doc http://docs.oracle.com/cd/E24382_01/web.1112/e16182/bcadvgen.htm#sm0297

  • Forms with SQL Server

    hi,
    Is it possible to connect forms with sql server? if yes, how?
    Any help will be highly appreciated

    Maybe. see:
    <Note:212382.1> How to Build Forms against Microsoft Sql Server
    also do a Metalink search on:
    'oracle client adaptor'
    Best of luck,
    ejs

  • Dynamic function call in Forms PL/SQL [SOLVED]

    I have a 10G form, which has a dropdown list of values. Depending on the value selected, I look up a setup table which will tell me the name of the database package/function to call.
    I then want to call that function with a bind IN parameter and then retrieve the function return value (which is a varchar2 containing message(s) as a stream of text) to display to the user.
    I have searched high and low and cannot find a good example.
    (a) forms_ddl doesn't seem to have the ability
    (b) dbms_sql - some forums/blogs warn away from this due to db version dependencies
    (c) exec_sql seems to be very basic and more aimed at odbc calls, rather than calls to native oracle db functions.
    Here is example pseudo-code of what I am attempting to do on a WHEN-BUTTON-PRESSED trigger
    DECLARE
    v_Param1 VARCHAR2 := 'myInputValue';
    v_FunctionName VARCHAR2 := 'MYDBPKG.MYFUNCTION';
    v_DynamicSQL VARCHAR2;
    v_Result VARCHAR2;
    BEGIN
    v_DynamicSQL := 'BEGIN :v_result:='||v_FunctionName||'('||chr(39)||v_Param1||chr(39)||')'; END';
    Bind v_result variable;
    execute dynamic sql;
    message('the resulting text was <'||v_result||'>');
    END;
    Obviously, my code above has the function name hard-coded, but my real-life code would retrieve this function name from a database table, so I cannot call the function directly in the Forms PL/Sql.
    where the db package/function looks like this:
    create or replace package MYDBPKG as
    function myfunction(I_Param VARCHAR2) return VARCHAR2;
    end mydbpkg;
    Anybody got a good example ?
    Thanks
    Alan
    Edited by: Alan Lawlor on 11-May-2011 09:34

    Alan Lawlor wrote:
    (a) forms_ddl doesn't seem to have the ability
    (b) dbms_sql - some forums/blogs warn away from this due to db version dependencies
    (c) exec_sql seems to be very basic and more aimed at odbc calls, rather than calls to native oracle db functions.you forgot
    (d): don't use dynamic SQL
    As far as I am concerned (from the code I am exposed to) 99,9% of dynamic SQL code is at best used when there is no need for it and at worst it is impemented the most horrific way you can imagine. OK, this is not the entire truth: in 0,4% it is used when there is no need for it, and in the other 0,5% it is used wrong. And in the other 99% it is a combination of both: it is used when there is no need for it plus it is used wrong. So the very best thing you can do is to avoid dynamic SQL.
    but my real-life code would retrieve this function name from a database tablePlease don't do that. This is one of the worst things to do. Forget about the fact that it is a big security hole and most certainly will trash the shared pool of the database and bringing your server down. Most important to developers is that it is a hell of a nightmare to maintain and a lot worse to debug.
    So seriously think about if you want to go down the Dynamic SQL route.
    cheers

  • Oracle forms to SQL SERVER

    Hi
    I have to connect oracle forms to sql server, as per documentation, I created a ODBC string for SQL SERVER, In connect dialog box for oracle forms I entered username, password and @ODBC_string:Database_Name in connect.
    I am not able to connect. Please help me.
    Avinash

    Perhaps your question is more suitable for the Forms forum:
    Forms
    There's APEX as well: http://www.oracle.com/technology/products/database/application_express/html/apex_for_forms.html

  • VERY URGENT - Adobe forms with email problems

    I THERE - I AM A ADOBE FORMCENTRAL CLIENT I HAVE MY PAYEMENTS ON DAY BUT FOR SOME REASON THE ADOBE STOP RESENDING TO MY EMAUIL ACOUNT AND TO MY CLIENTS  EMAIL ACCOUNT THE SUMARY OF THE FORM THAT IS SUBMITED. THIS IS VERY URGENT THAT BE FIXED FROM YOU SIDE PLS LET ME KNOW WHAT IS HAPENING.
    PLS FIX THIS URGENT AS I HAVE MY CLIENTS SCREEMING ON ME
    PLS ANSWER TO
    [email protected]

    Now is working
    after 2 hours is working now. but this have never hapen before. now I am
    woried with this ADOBE FORM system!!!! it can hapen and I never know.
    br
    henrique
    2014-04-25 21:29 GMT+01:00 Josh_Corey <[email protected]>:
        Re: VERY URGENT - Adobe forms with email problems
    created by Josh_Corey <http://forums.adobe.com/people/Josh_Corey> in
    FormsCentral - View the full discussion<http://forums.adobe.com/message/6331228#6331228

  • Forms/Designer 10g - problem with attached libraries

    I've problem with forms with attached libraries. All of libraries have removed paths. I can run all forms without any problem on my local application server from Forms Builder 9i or Designer 9i. I added all paths in registry FORMS90_PATH. WORKINGDIRECTORY in formsweb.cfg is blank.
    Unfortunately I can't do it with Developer 10g on second workstation. I added all paths in registry FORMS_PATH. WORKINGDIRECTORY in formsweb.cfg is blank too. When form is running I get ORA-06508. I can't store all files (fmb, fmx, pll, plx etc.) in one folder because I've to use CVS. In this case I can't set any folder in WORKINGDIRECTORY.

    Assuming Forms 10.1.2.x, FMX, MMX, PLX, and OLB files are found based on the value of FORMS_PATH which is set in default.env and not the Registry. This applies to runtime only. The Builder uses the Registry.
    Understand that "runtime" refers to any time a form is displayed in a browser, regardless of whether is was started from the Builder or Application Server.
    Also, be aware that if you have FMX, MMX, or PLX files which were created in older versions they must be recompiled using the 10.1.2 compiler.

  • Apex 4.02 BUG. Form on SQL wizard

    One of the last pages of the form on SQL wizard lets you specify what pages to go to after cancel and submit.
    You can not enter something like &P7_PAGE_ID. here. Because when you finish the wizard you get an invalid number message. You must enter a number here and then when the form is generated go back and change this number back to &P7_PAGE_ID.

    Yes, I guess this is a Bug.
    1. When you speciify a WHERE clause in the Wozard it adds extra quotes when appending the WHERE into the Report SELECT.
    I think thats the root cause, all others just follow as a consequence.
    a. Because the query cannot be parse ( two single quotes) the Use Generic Column Names (parse query at runtime only) is automtacillay set
    b. This leads to COL01 to COL60
    c. Which is turn leads to the link not working.
    I could easily recreate the scenario.
    To fix it I did the following
    1. Removed the extra quotes from the query
    2. Selected Use Query-Specific Column Names and Validate Query and Saved
    It started working correct.
    I suggest you edit your Thred name add BUG at the begining so that it gets spotted by Oracle folks on the forum.
    Regards

  • Two SQL problems

    First problem...
    SQL root will not access all databases...
    If I try to access al databases using SQL Administrator the connection is refused even if I use root.
    all databases are accessable va individual username and password..
    Tried changing root password with GUI but makes no difference...
    Second SQL problem...
    10.4.11 server failed all raid volumes so corrupted no rescue was possible on any volume reinstall failed as well...
    Have rebuilt the server using 10.5.6 I will have to manually import the SQL databases from the old server... what do I do ??? I cannot boot the old server so cannot do an SQL export or anything...
    Thanks...

    Hi Jun,
    Can i contribute a little for ur 2nd problem.
    This error is coz, If u are using a filter against a File "data store" u can't test it, only against RDBMS query will be tested at data store level.
    Well, for using that filter and make sure its working, drag and drop the source file in the interface (u can get the filter) and make it to execute on STAGING.
    Thanks,
    Guru

  • Small SQL problem

    Hello,
    I have a small SQL problem...
    I am designing an online bank using servlets for a university project and it allows customers to view their statements. They select which of their account numbers they want to view the statement for and the start and end date of the statement.
    The problem lies with the dates. Here is the SQL:
    SELECT date, details, amount, balance
    FROM HISTORY
    WHERE bankaccnumber=13494925 And date>=1/1/01 And date<=31/1/01;
    All of the books I have looked at show dates in '1/1/01' format but whenever I try it this way I get a 'Data type mismatch in criteria expression' error (the 'date' field in the Database IS a Date type).
    Although, whenever I run the query in Access and prompt the user to enter the start and end date, it works fine.
    I have spoken to a few people and no-one seems to know why it is not working.
    Any ideas???
    Thanks

    If your database is MS Access and you don't expect to switch to something else, then write this:
    SELECT date, details, amount, balance
    FROM HISTORY
    WHERE bankaccnumber=13494925 And [date]>=#1/1/01# And [date]<=#1/31/01#
    Note that you MUST format your dates as MM/DD/YY and not as DD/MM/YY, that's an Access rule, and that you will probably have to "quote" your column name "date", which I think is a reserved word in SQL and hence a bad choice for column name.
    Personally I always use PreparedStatements. That way my SQL would look like this:
    SELECT date, details, amount, balance
    FROM HISTORY
    WHERE bankaccnumber=13494925 And date>=? And date<=?
    and I would use the setDate() method to fill in the parameters. Since this method uses a Date as a parameter, I don't need to fight with date formats, the JDBC driver handles that for me.

  • Conectar el Forms con SQL-SERVER

    Hola...
    Necesito informacisn de como conectar el forms con sql-server 7.0, ya que he logrado mediante sql-plus, dicha conexisn, pero el forms arroja una alerta con pura basura y no seconecta.
    Agradecerma cualquier uinformacisn al respecto.
    Gracias..

    Hola...
    Necesito informacisn de como conectar el forms con sql-server 7.0, ya que he logrado mediante sql-plus, dicha conexisn, pero el forms arroja una alerta con pura basura y no seconecta.
    Agradecerma cualquier uinformacisn al respecto.
    Gracias..

  • Form Rules SQL PCG

    Hi
    I have a client scenario in which we need to check the Header amount of a blanket PO to be compared with
    line amounts.
    If line amounts exceed header amount then an error must be thrown.
    I am trying to create a form rule SQL. for that i started with a small code just to check if we can loop in the lines block and retrieve the values of unit price.
    I am facing an issue when i go and check the results in PO form
    below is the sql code its on when-validate-record in form rule element
    l_item_price      number;
    l_curr_rec number;
    l_last_rec boolean ;
    BEGIN
    fnd_message.Clear;
    First_Record;
    l_curr_rec := name_in('SYSTEM.CURSOR_RECORD');
    l_item_price    := name_in('PO_LINES.UNIT_PRICE');
    Loop
    fnd_message.Clear;
    fnd_message.set_string(l_item_price);
    fnd_message.show;
    if name_in('SYSTEM.LAST_RECORD')= 'TRUE' then
    exit;
    else
    NEXT_RECORD;
    end if;
    end loop;
    END;
    The error says "Illegal Restricted COPY Procedure in WHEN-VALIDATE-RECORD"
    any suggestion would be of help
    Thanks

    Have a look at the PCG user guide (http://docs.oracle.com/cd/E25459_01/doc.730/e25384.pdf). Look at Chapter 6 "Creating Subscribers". Subscribers is how to define under which circumstance should the security rule fire. I hope that helps.

  • Wierd SQL problem when calling StoredProc from Forms's JavaBean

    Hello,
    I have a Oracle Forms form and it contains JavaBean that uses Oracle DB via JDBC. Wierd thing is that sometimes I get following error in Oracle Forms.
    Error: ORA-06550 line, column 13: PLS-00201: identifier 'F1' must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored.
    What in earth this means? Sometimes I don't get it put after a while it starts appearing again.
    F1 is a following function in DB:
    CREATE OR REPLACE FUNCTION F1 ( PN$Param IN NUMBER )
    RETURN VARCHAR2
    IS
    BEGIN
    DBMS_LOCK.Sleep( PN$Param ) ;
    RETURN ('Function ended at ' || To_Char(SYSDATE,'HH24:MI:SS') );
    END;
    My Oracle Forms Pushbutton code is following: (WHEN-BTN-PRESSED)
    Declare
         LC$Res Varchar2(32000) ;
    Begin     
    Set_Custom_Property( 'EMP.BEAN',
    1, 'INITCONN', 'jdbc:oracle:thin:@localhost:1521:demo') ;
    Set_Custom_Property( 'EMP.BEAN', 1, 'INITUSER', 'scott' ) ;
    Set_Custom_Property( 'EMP.BEAN', 1, 'INITPWD' , 'tiger' ) ;           
    Set_Custom_Property( 'EMP.BEAN', 1, 'INITFUNC',
    'begin ? := ' || 'F1(10);' || ' end;' ) ;
    Message('Command sent'); synchronize;      
    End ;
    And JavaBean just fetch data using JDBC code below:
    CallableStatement function = conn.prepareCall (sQuery);
    function.registerOutParameter(1, Types.CHAR);
    function.execute ();
    sValue = function.getString (1) ;
    function.close();
    The purpose is to wait 10 seconds and then return time after that.
    I have put JavaBeans code in jar file, signed it and declated it to Oracle Forms.
    When I have created F1 I have granted execute public access:
    grant execute on F1 to public;
    Have anyone any ideas what could cause this kind of error?
    Cheers!

    Do they give support to their sample snippets?
    Yep, StoredProc+PLSQL is taken from French site's sample to this sample
    but that is the real issue of samples. Or do you disagree?
    But I and my collague have same problems with same kind of thing.
    One thing was that taking time from DB might charge more user rights... but I'm not sure. So, please tell if you know something. Quite mnny seems to have problems with that SP.

Maybe you are looking for

  • Does Apple Canada have the worst customer support ever?

    Yes! Ask me why... I'm posting here a) to warn other Mac users what to expect if you ever need customer support and b) because there's no where you can actually e-mail comments to Apple, and trying to contact customer support has been fruitless (see

  • Mutating Trigger error while updating table

    Hi Guys, I am updating one table and after trigger also fire at the same time. Now, I want to avoid mutating trigger error. Can any one help me on this. Thanks in advance! Regards, -LRK

  • Ipod Classic not recognized in Windows.

    Hey folks, I have had the same problem as alot of you. I bought an 80gb to replace a 30gb 5th gen classic. The 80gb, did not show up in my computer or in iTunes at all. It did however show up in the device manager. If this happens to you, I got a sol

  • Second box - menu lags and just rebooted

    Sick of this now. Soon as our remortgage is fixed I'm switching to sky. Had this second box for a few months. Takes forever to respond to remote and now it just rebooted while watching an on demand film. Disruptive annoying piece of absolute junk, BT

  • GRN Date or MB1C date should be considered for batch

    Dear All, Our customer wants to include GRN date (MIGO) and Goods posting date (MB1C) as a Characteristic for a batch. And he wants the system to pick up these dates automatically for batch. So in batches will be sorted out based on GRN (MIGO) or Goo