Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Oracle client and networking components were not found

456957Oct 12 2005 — edited Oct 5 2007
sir,
I am developing my project and i am getting the following error. i have oracle 10g database in my system and developing .net forms. there is an other system of my friend. in his system it is working perfectly. he has the same configuration as i have. we haave windows XP as OS. i have loaded the 10g from his system to my system.database and .net both are installed on my system only.it is a standalone pc. i have tried so many time but not able to fix my problem. in his system my forms are working perfectly. so kindly help me out to fix my problem. here is the error i am getting.
------------------------------------------------------------------------------------------------------------------------

Server Error in '/exp' Application.
________________________________________
Oracle client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or later client software installation. Provider is unable to function until these components are installed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.OleDb.OleDbException: Oracle client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or later client software installation. Provider is unable to function until these components are installed.

Source Error:

Line 56:
Line 57: con= new OleDbConnection("Provider=MSDAORA.1;User ID=scott;Password=Tiger");
Line 58: con.Open();
Line 59: cmd=new OleDbCommand("Insert into dept values(50,'ram','ravi')",con);
Line 60: int sa= cmd.ExecuteNonQuery();

Source File: c:\inetpub\wwwroot\exp\webform1.aspx.cs Line: 58

Stack Trace:

[OleDbException (0x80004005): Oracle client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or later client software installation.

Provider is unable to function until these components are installed.]
System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr)
System.Data.OleDb.OleDbConnection.InitializeProvider()
System.Data.OleDb.OleDbConnection.Open()
exp.WebForm1.Button1_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\exp\webform1.aspx.cs:58
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()

________________________________________
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
-----------------------------------------------------------------------------------------------------------------------
Please help me..........................

Comments

843804
well, of course
843804
Hi hpsmartyz

I couldnt get that response
Can you send me some example code

Regards
Sharmila
camickr
import java.awt.*;
import java.beans.*;
import java.awt.event.*;
import javax.swing.*;

public class SplitPaneResizing extends JFrame implements PropertyChangeListener
{
	JSplitPane left;
	JSplitPane right;

	public SplitPaneResizing()
	{
		JSplitPane main = new JSplitPane();
		getContentPane().add( main );
		left = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
		right = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
		main.setLeftComponent( left );
		main.setRightComponent( right );
//
		left.setTopComponent( createPanel(Color.RED) );
		left.setBottomComponent( createPanel(Color.GREEN) );
		right.setTopComponent( createPanel(Color.BLUE) );
		right.setBottomComponent( createPanel(Color.WHITE) );
//
		left.addPropertyChangeListener( this );
		right.addPropertyChangeListener( this );
	}

	private JPanel createPanel(Color background)
	{
		JPanel panel = new JPanel();
		panel.setPreferredSize( new Dimension(200, 100) );
		panel.setBackground( background );
		return panel;
	}

	public void propertyChange(PropertyChangeEvent e)
	{
		if ("dividerLocation".equals(e.getPropertyName()))
		{
			Object source = e.getSource();
			JSplitPane target = (source.equals(left)) ? right : left;
			int location = ((Integer)e.getNewValue()).intValue();

			if (location != target.getDividerLocation())
				target.setDividerLocation( location );
		}
	}

	public static void main(String[] args)
	{
		SplitPaneResizing frame = new SplitPaneResizing();
		frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
		frame.pack();
		frame.setLocationRelativeTo( null );
		frame.setVisible(true);
	}
}
843804
Hi Camickr

That was great help.
But can u help me in avoiding teat flickering that happens when I drag the horizontal divider ,which I havent observed while dragging the vertical divider.

Thank In Advance
Sharmila

camickr
I don't see any flicker with my example.

I have no idea what kind of components you have on your panels (I'm not a mind reader) so the only suggestion is to use the following method on your left/right splitPanes.:

setContinuousLayout(false);


843804
Hi Camickr

Sorry , If I have explained the issue in another sense.
In SplitPaneResizing.java,we have explicitly made the dividers of the two SpliPanes (left and right) to map each other with respect to any change of the the other.

Due to this explict mapping we can find a little variation between the dividers of left and right dividers

hope you can help me out.

Regards
Sharmila
camickr
Addition to my code in reply 3. If you want continuous update of the divider location then you can use:
left.setContinuousLayout(true);
right.setContinuousLayout(true);
1 - 7
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 2 2007
Added on Oct 12 2005
2 comments
123,418 views