Oracle forms 6i hangs while connection to database

Hi,
We are runing oracle forms 6i with patch 17 on windows xp and windows 7 with oracle database 10g(10.2.0.4) 64bits on window 2003 64bits every thing is fine but sometime all of the sudden connection get stuck and unable to get access to database but other application work fine which are using 10g clients software this happen often not every day only solution is to restart the DB's I try to rise SR but didn't get proper answer from them any help is greatly appriciated...
Regards,
user622720

If you have already opened a SR with support which lacks of progress, there is only one right thing to do: Escalate the SR and/or change the severity of your SR! Read Note 199389.1 how to escalate Service Requests. Also I'd bring the database on the latest Patchlevel (10.2.0.5) with the latest CPU/PSU Patches and see if the error reproduces.
cheers

Similar Messages

  • Oracle Forms Service hangs while run time

    I have Oracle 10g, I have a from (10g) I compile and generate when I try to run from Forms Builder, I hang in a screen while is said "Oracle Application Server - Forms Service" any iideas what might be wrong of what should I check

    This sounds like a configuration issue to me. Have you modified the "default.env" file (found in %ORACLE_HOME%\forms\server) to include the path to your form in the FORMS_PATH variable? Have you installed the Oracle Jinitiator or modified the formsweb.cfg file to use the Sun JRE? If you have installed the Jinitiator or are using the Sun JRE, what version did you install? The formsweb.cfg file defaults to Jinitiator version: 1.3.1.26 and Sun JRE version: 1.4.2_06. If you have a newer version installed you will need to update the version in the formsweb.cfg to match the installed version.
    Hope this helps,
    Craig...

  • Error while connecting MYSQL Database

    Hi,
    I use a 30 days trial of Crystal Reports 2008. When i try to connect with the database i always get the next error: [http://www.visiscan.nl/error.jpg]
    The database is 4.1GB large and there is 10GB free space on the database.
    Anybody can tell me what to do?

    Hi Tom,
    As I understand the error while connecting to database is
    u201CFailed to retrieve data from databaseu201D
    There could be some could be multiple reasons for this.
    If you are using an ODBC connection then try to check the DSN. Recreate the same and then try.
    If the database is oracle check if native client is installed and try to ping from the native client to check if it responds.
    When connecting to Oracle, ensure that the Service name is identical to that used in the <ORA_HOME>/network/admin/tnsnames.ora file on the BusinessObjects XI Release 2 server.
    For ODBC databases, ensure that the ODBC DSN is exactly the same in the ODBC Manager as on the BusinessObjects XI Release 2 server.
    Please let us know if this helps
    Regards,
    Aditya Joshi

  • Can I connect Oracle Forms Builder 10g to MS Access Database

    Hi,
    I have Oracle forms builder installed in my PC. I downloaded the Oracle Database Server from the oracle website and installed that as well. But due to the installation of Database server, my system has become very slow. In order to avoid this I wanted to know if I can connect the forms builder to MS Access Database.
    Also, using ODBC I have created a database in my D:\ drive.
    If using MS access as a database is possible, then kindly guide me how to proceed with it.
    Thanks,
    Shashank Senan

    Hi Francois,
    Thanks for your reply.
    I have been working on Oracle forms from the past 1 year. I wanted to increase my expertise at the subject so thought I'll install it at my home and then try out developing and running a few small forms. So, in order to do this I downloaded and installed Developer Suite and database server. After installing the database server the system became very slow, as I mentioned earlier. Once I uninstalled the server, my system speed was back to normal. My system configuration is:
    512 MB ram, Intel Pentium 4 2.66 Ghz processor, Windows XP service pack 3,1 CPU.
    My requirement is very minimal. I just want a simple database where I can create tables, store data and connect form. If you have a have any other suggestion for my requirement then kindly help me in this regard.
    In the meantime I'll act on your suggestion and try and install the XE server.
    Thanks.
    Shashank

  • Form 9i does not connect to database

    Hi All,
    I have installed Oracle 9i database and 9i Dev Suite on my PC having Win 2000 OS. I get the following error whenever I try to run a test form in Forms 9i. The forms have been already connected to the database.
    Error is:
    "The HTTP Listener is not running on svr01 at port 8888. Please start the listener or check your runtime preferences."
    Could anybody help me please of how to handle this scenario.
    Thanks

    You need to start the OC4J instance before you run your form.
    Check out the Forms program group for the shortcut to do it.

  • Oracle form: how to retrieve data from database to pop list

    I have problem in retrieving data from database to item list in
    oracle forms.
    Can anyone help me.
    thanks.

    The next is an example but you can find this information in
    Forms Help:
    DECLARE
         G_DESCS RECORDGROUP;
         ERRCODE NUMBER;
         rg_id RECORDGROUP;
         rg_name VARCHAR2(40) := 'Descripciones';
    BEGIN
         rg_id := FIND_GROUP(rg_name);
         IF Id_Null(rg_id) THEN
         G_DESCS := Create_Group_From_Query (rg_name, 'SELECT
    DESCRIPCION DESCRIPCION, DESCRIPCION DESC2 FROM FORMAS_PAGO);
         ERRCODE := POPULATE_GROUP(G_DESCS);
         POPULATE_LIST('FORMAS_PAGO.CMBDESCRIPCION',G_DESCS);
         END IF;
    END;
    Saludos.
    Mauricio.

  • Oracle forms 6i error while compiling on oracle 10g express edition DB

    A forms created on oracle forms 6i having Dual table. But while compiling this form on oracle10g Express edition. Its Giving Error.
    What can be the solution for this. If I remove the Statement using Dual table. it works fine.
    What could be the reason and what could be the possible solutions for this.
    Thanks
    Vipin
    Edited by: user6299750 on Sep 11, 2009 9:26 PM

    Vipin,
    What is the error you are getting and what is the statement you removed? Post the removed statement, or the trigger. then it will be easy for us to understand more clearly.
    And also try to execute the statement in any SQL Editors, to check whether its working or not.
    Regards,
    Manu.
    Edited by: Manu. on Sep 12, 2009 7:34 AM

  • Oracle Enterprise Manager can't connect to database after installation

    Hello, I have a problem with Enterprise Manager. I installed Oracle 10g and the patch 10.2.0.2. After install, I could connect to database from SqlPlus without problems, but when I try to connect from AllPrograms - Oracle - DatabaseControl or since the Web browser with http://servername:1158/em nothing happen. I reviewed the status of dbconsole with emctl status dbconsole but the status is running. I recreated the repository with emca -deconfig.......-repos drop and emca -config ...... -repos create , but nothing happened. I reviewed some threads in this forum, but I didn't find the solution. Finally I could connect from the browser but with http://localhost:1158/em. Do you help me how can I connect from Database Control, because the operators in Computer Center should monitor the instance since there, and when I want to connect since my own PC how can do it?
    Thanks for your help and excuse my English, I am from Bogot&aacute; Colombia.
    Sincerely Rub&eacute;n

    Hi,
    Check the network connectivity between db server and pc from where u want to access em.
    Check the listener service.
    Check firewall settings, it should be off.
    Regards,
    Xaheer

  • Prevent form/timer hanging while holding the minimize button

    I got troubles when the customers holding the minimize button (without release) on my form, it make all forms and all timers/controls entirely hanging. And thus make some exception bugs for my application.
     Steps to Reproduce Behavior:
    In Form1,  create a Timer1 & Label1 and paste this code :
    Public Class Form1
    Public a As Long
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Timer1.Enabled = True
    Timer1.Interval = 1
    End Sub
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
    a = a + 1
    Label1.Text = a
    End Sub
    End Class
    Press F5 to run the application. You will see the number display on Label1 increase rapidly. Now try to hold the Minimize button and the timer will hang up, label1 stop increasing. Release the minimize button will make the timer resume increasing.
    I want my timer and all controls in form still working while holding the minimize button. Is there any good resolution for my issue ?

    various possible resolution. remove controlbox. remove text. draw text if wanted. draw controls. use system.timers.timer. system menu removed so no menu for move size minimize maximize close available.
    https://msdn.microsoft.com/en-us/library/system.timers.timer(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1
    form transparent background in image. movement or buttons not affect timer may affect display speed.
    Option Strict On
    Imports System.Timers
    Public Class Form1
    ' Code from this link - http://www.dreamincode.net/forums/topic/275178-drawing-icon-on-form-border/
    WithEvents Timer1 As New System.Timers.Timer
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Me.FormBorderStyle = Windows.Forms.FormBorderStyle.Sizable
    Me.ControlBox = False
    Me.Text = ""
    Me.Location = New Point(CInt((Screen.PrimaryScreen.WorkingArea.Width / 2) - (Me.Width / 2)), CInt((Screen.PrimaryScreen.WorkingArea.Height / 2) - (Me.Height / 2)))
    Timer1.Interval = 10
    AddHandler Timer1.Elapsed, AddressOf Timer1_Elapsed
    End Sub
    Private Sub Form1_FormClosing(sender As Object, e As FormClosingEventArgs) Handles Me.FormClosing
    Timer1.Enabled = False
    End Sub
    'A form with custom border and title bar.
    'Some functions, such as resize the window via mouse, are not implemented yet.
    'The color and the width of the border.
    Private borderColor As Color = Color.GreenYellow
    Private borderWidth As Integer = 3
    'The color and region of the header.
    Private headerColor As Color = Color.GreenYellow
    Private headerRect As Rectangle
    'The region of the client.
    Private clientRect As Rectangle
    'The region of the title text.
    Private titleRect As Rectangle
    'The region of the minimum button.
    Private miniBoxRect As Rectangle
    'The region of the maximum button.
    Private maxBoxRect As Rectangle
    'The region of the close button.
    Private closeBoxRect As Rectangle
    'The states of the three header buttons.
    Private miniState As ButtonState
    Private maxState As ButtonState
    Private closeState As ButtonState
    'Store the mouse down point to handle moving the form.
    Private x As Integer = 0
    Private y As Integer = 0
    'The height of the header.
    Const HEADER_HEIGHT As Integer = 25
    'The size of the header buttons.
    ReadOnly BUTTON_BOX_SIZE As Size = New Size(15, 15)
    Dim Test As Boolean = False
    Private Sub CustomBorderColorForm_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
    'Draw the header.
    Using b As Brush = New SolidBrush(Color.FromArgb(10, Color.White))
    e.Graphics.FillRectangle(b, headerRect)
    End Using
    'Draw the title text
    If Test = False Then
    Using b As Brush = New SolidBrush(Me.ForeColor)
    e.Graphics.DrawString("Anything you want Baby", Me.Font, b, titleRect)
    End Using
    ElseIf Test = True Then
    Using b As Brush = New SolidBrush(Me.ForeColor)
    e.Graphics.DrawString("Hello Dolly", Me.Font, b, titleRect)
    End Using
    End If
    'Draw the header buttons.
    If Me.MinimizeBox Then
    ControlPaint.DrawCaptionButton(e.Graphics, miniBoxRect, CaptionButton.Minimize, miniState)
    End If
    If Me.MinimizeBox Then
    ControlPaint.DrawCaptionButton(e.Graphics, maxBoxRect, CaptionButton.Maximize, maxState)
    End If
    If Me.MinimizeBox Then
    ControlPaint.DrawCaptionButton(e.Graphics, closeBoxRect, CaptionButton.Close, closeState)
    End If
    'Draw the border.
    ControlPaint.DrawBorder(e.Graphics, clientRect, borderColor, _
    borderWidth, ButtonBorderStyle.Solid, borderColor, borderWidth, ButtonBorderStyle.Solid, borderColor, borderWidth, ButtonBorderStyle.Solid, borderColor, borderWidth, ButtonBorderStyle.Solid)
    End Sub
    'Handle resize to adjust the region ot border, header and so on.
    Private Sub CustomBorderColorForm_Resize(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Resize
    headerRect = New Rectangle(Me.ClientRectangle.Location, New Size(Me.ClientRectangle.Width, HEADER_HEIGHT))
    clientRect = New Rectangle(New Point(Me.ClientRectangle.Location.X, Me.ClientRectangle.Y + HEADER_HEIGHT), _
    CType(New Point(Me.ClientRectangle.Width, Me.ClientRectangle.Height - HEADER_HEIGHT), Drawing.Size))
    Dim yOffset = (headerRect.Height + borderWidth - BUTTON_BOX_SIZE.Height) / 2
    titleRect = New Rectangle(CInt(yOffset), CInt(yOffset), _
    CInt(Me.ClientRectangle.Width - 3 * (BUTTON_BOX_SIZE.Width + 1) - yOffset), _
    BUTTON_BOX_SIZE.Height)
    miniBoxRect = New Rectangle(Me.ClientRectangle.Width - 3 * (BUTTON_BOX_SIZE.Width + 1), _
    CInt(yOffset), BUTTON_BOX_SIZE.Width, BUTTON_BOX_SIZE.Height)
    maxBoxRect = New Rectangle(Me.ClientRectangle.Width - 2 * (BUTTON_BOX_SIZE.Width + 1), _
    CInt(yOffset), BUTTON_BOX_SIZE.Width, BUTTON_BOX_SIZE.Height)
    closeBoxRect = New Rectangle(Me.ClientRectangle.Width - 1 * (BUTTON_BOX_SIZE.Width + 1), _
    CInt(yOffset), BUTTON_BOX_SIZE.Width, BUTTON_BOX_SIZE.Height)
    Me.Invalidate()
    End Sub
    Private Sub CustomBorderColorForm_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseDown
    'Start to move the form.
    If (titleRect.Contains(e.Location)) Then
    x = e.X
    y = e.Y
    End If
    'Check and press the header buttons.
    Dim mousePos As Point = Me.PointToClient(Control.MousePosition)
    If (miniBoxRect.Contains(mousePos)) Then
    miniState = ButtonState.Pushed
    ElseIf (maxBoxRect.Contains(mousePos)) Then
    maxState = ButtonState.Pushed
    ElseIf (closeBoxRect.Contains(mousePos)) Then
    closeState = ButtonState.Pushed
    End If
    End Sub
    Private Sub CustomBorderColorForm_MouseMove(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseMove
    'Move and refresh.
    If (x <> 0 And y <> 0) Then
    Me.Location = New Point(Me.Left + e.X - x, Me.Top + e.Y - y)
    Me.Refresh()
    End If
    End Sub
    Private Sub CustomBorderColorForm_MouseUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseUp
    'Reset the mouse point.
    x = 0
    y = 0
    'Check the button states and modify the window state.
    If miniState = ButtonState.Pushed Then
    Me.WindowState = FormWindowState.Minimized
    miniState = ButtonState.Normal
    ElseIf maxState = ButtonState.Pushed Then
    If Me.WindowState = FormWindowState.Normal Then
    Me.WindowState = FormWindowState.Maximized
    maxState = ButtonState.Checked
    Else
    Me.WindowState = FormWindowState.Normal
    maxState = ButtonState.Normal
    End If
    ElseIf closeState = ButtonState.Pushed Then
    Me.Close()
    End If
    End Sub
    'Handle this event to maxmize/normalize the form via double clicking the title bar.
    Private Sub CustomBorderColorForm_MouseDoubleClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseDoubleClick
    If (titleRect.Contains(e.Location)) Then
    If Me.WindowState = FormWindowState.Normal Then
    Me.WindowState = FormWindowState.Maximized
    maxState = ButtonState.Checked
    Else
    Me.WindowState = FormWindowState.Normal
    maxState = ButtonState.Normal
    End If
    End If
    End Sub
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    If Test = False Then
    Test = True
    Me.Invalidate()
    Else
    Test = False
    Me.Invalidate()
    End If
    End Sub
    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
    If Timer1.Enabled = False Then
    Timer1.Enabled = True
    Else
    Timer1.Enabled = False
    End If
    End Sub
    Private Sub Timer1_Elapsed(sender As Object, e As ElapsedEventArgs)
    Invoke(New Timer1sDelegate(AddressOf Timer1sSub))
    End Sub
    Private Delegate Sub Timer1sDelegate()
    Private Sub Timer1sSub()
    Label1.Text = Now.Ticks.ToString
    End Sub
    End Class
    La vida loca

  • How to install Oracle Form and Report 6i on existing database

    Hi all please help me,
    My system is rhel 3 (update 6). My question is how can i install Oracle form and report 6i on my machine, which is already have database 10g R2? I known i have to create two separate ORACLE_HOME. Since i already had database 10g R2, can i just go head install Oracle form and report 6i on separate ORACLE_HOME? or i need to remove database 10g R2 first, and then install Oracle form and report 6i
    Thanks in advances

    << Why Forms/Reports 6i and not something later, BTW? >>
    Presumably he has to support a client/server application. They haven't all disappeared overnight, despite what Oracle tell everyone.

  • Forms 10g hangs while running a procedure which has got lot of loops

    Hi,
    When executing a procedure in Forms 10g which fetches millions of records, application getting stuck.
    What parameter is required to be changed in forms configuration?
    Can any1 help me out???
    Thanks in advance,
    Natz.

    Particularly this passage:
    MaxBlockTime
    MaxBlockTime is the time in mili seconds to wait when reading data from the
    Runform process.
    e.g. a long query, lots of complex processing
    (default = 1000 milli sec)
    /j2EE/OC4J_BI_Forms/application/forms90app/forms90web/WEB-INF/web.xml
    or
    /j2EE/OC4J_BI_Forms/application/formsapp/formsweb/WEB-INF/web.xml
    Example
    =======
    <servlet>
    <servlet-name>l90servlet</servlet-name>
    <servlet-class>oracle.forms.servlet.ListenerServlet</servlet-class>
    <init-param>
    <param-name>maxBlockTime</param-name>
    <param-value>1800000</param-value>
    </init-param>
    </servlet>
    or
    <servlet>
    <servlet-name>lservlet</servlet-name>
    <servlet-class>oracle.forms.servlet.ListenerServlet</servlet-class>
    <init-param>
    <param-name>maxBlockTime</param-name>
    <param-value>1800000</param-value>
    </init-param>
    </servlet>
    What happens?
    =============
    For long requests (like querying a big table), the Listener
    Servlet waits for a default time of 1 second for the Forms
    runtime process to complete the request
    If the request is not completed then the Listener Servlet sends a busy
    response to the client asking the client to retry.
    The client sends a retry zero content length request to check if the query is
    complete.
    This default time of 1 second can be configured using Listener Servlet
    parameter called maxBlockTime
    Reference
    =========
    Note 218846.1 How to increase Heap size in OC4J in V2
    Francois

  • Error ORA-03108 While connecting to database on 8.1.6 from Form 6i

    I am getting error while running updates on database running on Oracle 8.1.6. from Form 6i. Both are Oracle latest products and Oracle homes are running Net8 versions shipped with products.
    ORA-03108 oranet: ORACLE does not support this interface version.
    Are there incompatibility problems in Net8 versions shipped with Oracle products?
    null

    Can I get some clarification on following:
    1. When Form runs as WebForm mode, the webform runs as appellet. Does this mean that connectivity shifts from Net8 to JDBC?.
    2. Is there possibility of above error comming because of JDBC connectivity.
    Thanks
    Sanjay Sharma
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Sanjay Sharma ([email protected]):
    [Here is further input on the error:
    1. I am not running any database link.
    2. the error is coming only when form is running as WebForm Mode. It is not coming in Client-Server Mode.
    3. The occurance is random. there is no pattern of occurance. The eror might crop-up 5 times in 50 updates. Which is strange???]Originally posted by [email protected]:
    [b]Can you confirm if the problem happens with a simpe DEPT table. Ensure you are not using database links or any other complexities. It should be ok to run against this combonation but you may want to remove any possibilites that your application could be contributing to the error.
    Regards
    Grant Ronald<HR></BLOCKQUOTE>
    null

  • Hang while connecting to Oracle 9.2 DB in VS 2005

    I use ODP 9.2.0.401 (but also tried 9.2.0.7 and 10.2.0.1) against a 9.2.0.4 Database, Client and server residing on separate XP SP2 machines.
    I use the English version of Visual Studio 2005 on a German XP machine.
    In one solution, I successfully access the DB in a web service project but cannot connect the Db from a simple test form in another project using the following code:
    Imports System.Data
    Imports Oracle.DataAccess.Client
    Public Class DalTestForm
    Private dbConn As OracleConnection
    Private Sub Button2_Click(...) Handles Button2.Click
    dbConn = New OracleConnection()
    dbConn.ConnectionString = "Data Source=sbs0.wks001;Persist Security Info=True;User ID=sbs0;Password=sbs0"
    dbConn.Open()
    Debug.Print("Connected")
    End Sub
    End Class
    The Debug.Print is never executed and the IDE hangs. Only a reboot of the client is able to kill the process "DalTest.vshost.exe" which completely loads the CPU.
    I was going to use System.Data.OracleClient which works fine but there I cannot pass array parameters to stored procedures can I ?
    I start loosing too many hours on this now. Any help is much appreciated.
    Thanks
    Stef

    There is not ODP.NET version officially supporting .NET 2.0.
    If you use any 1.x version (9.2.x or 10.1.x) , it could work or it couldn't.
    In my case it doesn't work. I will wait until the next version which is said to be 2.0 compatible (in later may it seems)
    And as you find the MS provider doesn't accept array parameters.
    Sorry

  • Published pdf form is unable to connect with database

    Hi Guys!
    I have created a PDF form using Adobe Live Cycle Designer which have some text fields namely RECORD and NAME. I have connected this form with a Database. When I enter a record in the RECORD number field the NAME field of this form has been populated with the help of XFA Script which is written on the exit event of the RECORD text field. When we publish this form, a new interactive PDF is created which works fine and populates the NAME field from the an SQL database but when I access this PDF form (which is located on a shared location) from some another location (not on the same machine where i designed this form) it is unable to connect to the database and does not work as expected.
    I think there is some thing i am missing for the database connectivity.
    If any body on this forum can help me out.
    thanks
    Here is the Script for the above form which i used to populate the NAME FIELD on the basis of enetered RECORD number.
    ----- Document.Page1.txt_MRN::exit: - (JavaScript, client) -----------------------------------------
    /* This dropdown list object will populate two columns with data from a data connection.
    sDataConnectionName - name of the data connection to get the data from.  Note the data connection will appear in the Data View.
    sColHiddenValue  - this is the hidden value column of the dropdown.  Specify the table column name used for populating.
    sColDisplayText  - this is the display text column of the dropdown.  Specify the table column name used for populating.
    These variables must be assigned for this script to run correctly.  Replace <value> with the correct value.
    var sDataConnectionName = "DataSource";  // example - var sDataConnectionName = "MyDataConnection";
    var sColHiddenValue  = "RecordNum";   // example - var sColHiddenValue = "MyIndexValue";
    var sColDisplayText  = "Name";   // example - var sColDisplayText = "MyDescription"
    // Search for sourceSet node which matchs the DataConnection name
    var nIndex = 0;
    while(xfa.sourceSet.nodes.item(nIndex).name != sDataConnectionName)
    nIndex++;
    //var oDB = xfa.sourceSet.nodes.item(nIndex);
    var oDB = xfa.sourceSet.nodes.item(nIndex).clone(1);
    oDB.open();
    oDB.first();
    // Search node with the class name "command"
    var nDBIndex = 0;
    while(oDB.nodes.item(nDBIndex).className != "command")
    nDBIndex++;
    // Backup the original settings before assigning BOF and EOF to stay
    var sBOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("bofAction");
    var sEOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("eofAction");
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayBOF", "bofAction");
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayEOF", "eofAction");
    // Clear the list
    this.clearItems();
    // Search for the record node with the matching Data Connection name
    nIndex = 0;
    while(xfa.record.nodes.item(nIndex).name != sDataConnectionName)
    nIndex++;
    var oRecord = xfa.record.nodes.item(nIndex);
    // Find the value node
    var oValueNode   = null;
    var oTextNode   =  null;
    var sRecordNum  =  $.rawValue;
    for(var nColIndex = 0; nColIndex < oRecord.nodes.length; nColIndex++)
    if(oRecord.nodes.item(nColIndex).name == sColHiddenValue)
      oValueNode = oRecord.nodes.item(nColIndex);
    else if(oRecord.nodes.item(nColIndex).name == sColDisplayText)
      oTextNode = oRecord.nodes.item(nColIndex);
    var found= 0;
    while(!oDB.isEOF())
    if (oValueNode.value== sRecordNum)
      txt_FirstName.rawValue = oTextNode.value;
      txt_LastName.rawValue = oTextNode.value;
      found = 1;
      break;
      //this.addItem(oTextNode.value, oValueNode.value);
       oDB.next();
       if (found == 0)
        txt_FirstName.rawValue = "";
        txt_LastName.rawValue = "";
    // Restore the original settings
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sBOFBackup, "bofAction");
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sEOFBackup, "eofAction");
    // Close connection
    oDB.close();

    Finally achived the database connectivity for the published pdf form developed in the Adobe LiveCycle Designer 8.0.
    There must be the same driver version of the DSN on both machines. The machine which published the form and the one accessing it.
    Use the Admin account to add the DSN on both machines.
    Get rid of the error: Connection for Source "DataConnectionName" failed because the environment is not trusted.
    Thanks
    AbdulHafeez

  • Getting error while connecting to database

    while i try to connect to the database i'm getting the foollowing error
    java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc)
    the part of my code which is used to connect to the database is as follows
    <applet code="Part1" width=500 height=500>
    </applet>
    public class Part1 extends Applet implements ActionListener
         public void init()
                   try
                        //Class.forName ("oracle.jdbc.driver.OracleDriver");
                        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   catch(ClassNotFoundException e)
                        System.out.println("EXCEPTION--"+e.getMessage());
                        System.out.println("DRIVER NOT FOUND");
              Connection conn=null;
                   try
                        //Making the database connection
                        conn= DriverManager.getConnection("jdbc:odbc:xyz");
                   catch(Exception e)
                        System.out.println("EXCEPTION IN CONNECTION::"+e.getMessage());
                        System.exit(-1);
                   }

    public class Applet1 extends JApplet {
    private JButton DbConnect = new JButton();
    private JTextArea empValues = new JTextArea();
    private Connection con;
    private JLabel jLabel1 = new JLabel();
    public Applet1() {
    public void init() {
    try {
    jbInit();
    } catch(Exception e) {
    e.printStackTrace();
    private void jbInit() throws Exception {
    this.getContentPane().setLayout(null);
    DbConnect.setText("Click to Connect to DB");
    DbConnect.setBounds(new Rectangle(90, 225, 175, 40));
    DbConnect.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    connectToDB(e);
    empValues.setBounds(new Rectangle(40, 50, 310, 150));
    jLabel1.setText("Emp Records :");
    jLabel1.setBounds(new Rectangle(45, 20, 155, 20));
    this.getContentPane().add(jLabel1, null);
    this.getContentPane().add(empValues, null);
    this.getContentPane().add(DbConnect, null);
    private void connectToDB(ActionEvent e) {
    try {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    con = DriverManager.getConnection
    ("jdbc:oracle:thin:@localhost:1521:ora9202","scott","tiger");
    empValues.setText("Connected to the Database.
    Fetching Values from DEPT Tables.\n");
    fetchValues();
    } catch (SQLException ex) {
    System.out.println("Connection Error = " + ex.toString());
    }

Maybe you are looking for