How to connect to oracle database from visual basic 2010 express edition
I have installed visual basic 2010 express edition on windows xp. But visual basic 2010 express edition supports Microsoft sql server database file,Microsoft sql server compact 3.5, Microsoft access database file. I want to connect to oracle database from visual basic 2010 express edition. So what drivers are required and how to do connectivity?
Hello,
I wasn't clear on what you were using to make the connection. I had a look in Visual Studio 2010 (don't have express to test sorry).
I think you mean the Data Sources available under the menu Data-> Datasources. this seems to match the description you give when I
look at the list of datasource options.
In here you can make ODBC connections via the Microsoft .net Data Provider .
If you select ODBC as a datasource you can see listed the DSN's you created - for example I see 2 which use the Oracle ODBC driver.
This assumes you installed an Oracle Client + the oracle version of the ODBC driver (comes with the oracle client).
Once you created a server connection then you should see it in the server explorer.
You can also download the Oracle Developer Tools for Visual Studio which is an add on for VS.
** I suspect this is only for VS 2010 and I didn't see that Express was supported.
http://www.oracle.com/technetwork/developer-tools/visual-studio/overview/index-097110.html
Let me know if that helps.
John
Similar Messages
-
How to connect to Oracle database from webdynprojava application
Hi
How to connect to Oracle database from webdynprojava application. where can we provide the code to connect to database.?
Thank You.Hi,
You need to create Java Bean model. The bean is a typical java bean with default constructor, getter and setter. You can have additional methods for query etc. The attributes in the class will be your model node and attributes.
However you need to configure the connection and create JNDI using visual administrator before writing the code.
You can also consider writing Session EJB with oracle and using them in WD.
http://help.sap.com/saphelp_nwce10/helpdata/en/45/dcaa4f05535591e10000000a1553f7/frameset.htm
Srini -
I want to know how to set the password encrytacion a database. Accdb from Visual Basic 2010 for a report. Rpl
You have to connect via ODBC, then use code along the lines of what is described here:
http://scn.sap.com/thread/3526924
by me on March 28 and Jan on March 29.
Also see KBA: 1686419 - SAP Crystal Reports designer does not recognize Access *.accdb file
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
Connect to oracle database with visual studio 2005
Hi, i have a oracle database called orcl (10.2). I am trying to connect with this database with visual studio 2005. I do this:
In Server Explorer, right click in Data Connection and click in add connection.
I choose oracle database and oracle provider.
In server name I write the name of my computer, and i write the user and pass of the data base (sys or system) but it gives me this error: "ora-12514 listener doesnt know the asket for service in the description one of connection" (translated of Spanish)
what i have to write in server name? host, host:port, LISTENER,.... what?
ThanksSometimes, you can check names using from the command line:
$> tnsping <orcl>
TNS Ping Utility for 32-bit Windows: Version 8.1.7.0.0 - Production on 10-ENE-20
06 09:01:04
(c) Copyright 1997 Oracle Corporation. All rights reserved.
Attempting to contact (ADDRESS=(PROTOCOL=TCP)(HOST=server1)(PORT=1521))
Realizado correctamente (0 mseg)
$> -
Connect to Oracle database from Perl on Solaris x86
Hi,
How can I connect to Oracle database using Perl scripts on Solaris x86. It seems that DBD-Oracle Perl module requires Oracle client installed to work. Is there any Oracle client available for Solaris x86? Any one got a workaround? Thanks.
Angus LeeYes, you absolutely must have some portions of the rdbms installed before you can proceed. If your Solaris x86 machine is only a client, then you can get away with installing just ?/rdbms/mesg and ?/rdbms/lib.
I have Oracle 7.3.4, 8.0.5, 8.0.6, and 8.1.6 for Intel Solaris 2.6. I don't know if they'll run on Solaris 8 or 9 but I'm trying to upgrade at this very moment. As long as you conform to Oracle developer license, then you may download them from my machine.
I believe the reason Oracle dropped their Intel Solaris port is probably because Sun went through a period where they themselves dropped their Intel port. They've picked back up and if enough Oracle on Intel Solaris customers scream, then Oracle might pick it back up again too.
Send me an email if you're interested in the downloads. -
Not connecting to Oracle Database from Oracle BIEE 10g on Windows 7 machine
Hi friends,
I succesfully installed OBIEE 10g on my Windows 7 (Ultimate) machine using the assistance from one of your threads.
Now I am not able to connect to Oracle 11g database. When I tried to configure through START->Control Panel --> Administrative Tools --> DATA SOURCES (ODBC) ---> ....I am seeing Oracle 11g in System DSN but I am unable to see OBIEE driver in system DSN. After setting manually, I am now seeing OBIEE driver in user DSN. So is all other 32 bitapplications like MS Acess, Excel, etc., are all in user dsn.
When I open OBIEE Administration tool, I can only see ONLY Analytics Web and nothing else. How do I connect to Oracle database. Please assist me.
Thanks in advance.
DinHi,
Your window os 32bit or 64bit -- Please conform?
Your Os 64 bit -- http://www.mycabi.net/?p=19 please read this link.
Your windows os 32 bit :
Go--> Run--> odbcad32 follow the below step
In ODBC Administration, on the System DSN tab add a new connection
1. step : Data Source: "Oracle BI Server" -->"Next"-->Name: "AnalyticsWeb"-->Server: "local"-->(everything else unchecked)-->"Next"-->Give the username for the BI Server-->"Administrator" -->(I think the password can main blanc),Port: "9703 -->(everything else unchecked)-->"Next"-->(everything unchecked)-->"Finish"
When I tried to configure through START->Control Panel --> Administrative Tools --> DATA SOURCES (ODBC) ---> ....I am seeing Oracle 11g in System DSN but I am unable to see OBIEE driver in system DSN
A. I don't no why your creating ODBC connection.
Note: Open your rpd with AnalyticsWeb and give me useranme and password --> go to physical layer select connection pool and give all credntails here.
http://gerardnico.com/wiki/dat/obiee/ociv -- please refer this link
Datasource : Your dbname (ORCL,)
username: your schema name
Password: your schema password.
Hope it help's
Thanks,
Satya -
How to connect to Oracle 11gR2 from CF9
Hi,
how to connect to Oracle 11gR2 64 bit Database from CF9?
In CF Administrator no Oracle Driver is available.
Do I have to install Oracle Client Software on Server Hardware where CF9 Server is installed?
If yes, is Oracle Instant Client is enough or do I have to install full oracle client?
Any idea?
regards ClaudiaExcellent, glad to hear it's sorted. Just be careful if you use any of the "advanced" features such as returning querysets from stored procedures or BLOBs, apparently there are differences between the JDBC and full DataDirect drivers in those cases.
However in 99% of cases you won't notice the difference. -
Connect to Oracle database from SQL Sever
Can you help on an issue of connection from SQL Server to Oracle database:
In SQL Server, I create a "linked server" to connect to Oracle database on a different machine. But it will take a unreasonable time (about 30 seconds) to call a Oracle query from SQL Server.No there are no entries required in the TNSNAMES.ORA
When you are using ODBC for connection, Oracle does not look fo rany enteries in TNSNAMES.ORA file.
Now I am able to connect to both SQL Plus and Forms 6i. But while connecting to SQL Plus its giving an error
Error accessing PRODUCT_USER_PROFILE
Warning: Product user profile information not loaded!
You may need to run PUPBLD.SQL as SYSTEM
Server not available or version too low for this feature
Connected to:
Oracle Open Client Adapter for ODBC 6.0.5.35.0
Microsoft SQL Server 08.00.0534
Also while disconnecting the Windows Program Error comes, and the application closes abruptly. -
Could not connect to Oracle database from excel macro. Getting connection not open.
Hi all,
I could not connect to oracle database using excel macro. After much R&D also, I cannot find right solution. Please help me where I am doing wrong.
Sub Button2_Click()
Dim Conn As New ADODB.Connection
Dim RS As New ADODB.Recordset
Dim Cmd As New ADODB.Command
Dim sqlText As String
Dim Row As Long
Dim Findex As Long
Dim Data As Worksheet
Dim X As Long
Dim UID As String
Dim PWD As String
Dim Server As String
Dim strCon As String
Application.Calculation = xlCalculationManual
UID = "myUserid" 'Enter the User ID
PWD = "myPassword" 'Enter the password
Server = "myHostname or myServername"
Set Data = Sheets("Sheet2")
Data.Select
Range("A:J").ClearContents
strCon1 = "Provider = Microsoft.ACE.OLEDB.12.0;DATA SOURCE=myHostName;Database=myDBname;uid=myUserid;pwd=myPassword;"
Conn.Open (strCon1)
Cmd.ActiveConnection = Conn
Cmd.CommandType = adCmdText
' Put your query next
sqlText = " select * from table "
Cmd.CommandText = sqlText
Set RS = Cmd.Execute
For X = 0 To 17
Data.Cells(1, X + 1) = RS.Fields(X).Name
Next
Do While Not RS.EOF 'this loops through the data and puts it in the spreadsheet
Row = Row + 1
For Findex = 0 To RS.Fields.Count - 1
Data.Cells(Row + 1, Findex + 1) = RS.Fields(Findex).Value
Next Findex
RS.MoveNext
Loop
Application.Calculation = xlCalculationAutomatic
Application.Calculate
End Sub
sammyI have set oci.dll in to the path specified. Prior to this I musy say that, I have 64 bit excel 2010 & installed respective drivers from the link provided http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html
But
still I am facing as:-" Provider cannot be found. It may not be properly installed."
sammy -
Cannot connect to Oracle database from SQL Server
Hi
We have set up a SQL Server linked server and tried to use this SQL Server linked server to connect to Oracle database. We are using SQL Server 2008 and Oracle client 11g 11.02.00.01. However, we got this error message:
Msg 7347, Level 16, State 1, Line 1
OLE DB provider 'OraOLEDB.Oracle' for linked server 'OurLinkedServer' returned data that does not match expected data length for column '[OraOLEDB.Oracle].Ourfieldname'. The (maximum) expected data length is 6, while the returned data length is 2.
We are able to connect some of the tables ok but some of the tables are not connected and got the above error message.
Any suggestions are greatly appreciated.
Thanks a lot
TomHi
Here is more information. We just found out that the Oracle database team changed the character set to something else and then they changed it back to UTF8.
Currently, it is using UTF8 character set on the Oracle side. Will this causing us this error message on our sql server linked server?
The error message said "The (maximum) expected data length is 6, while the returned data length is 2."
This refers to a field/column with char(1)
Any suggestions are greatly appreciated
Thank you
Tom -
How to connect Oracle database into Visual basic 6.0
Hi. I am using Oracle I Enterprise version 9.2.0.1, I have a problem for connecting oracle database into VB. I use a ODBC to connect oracle database with VB. By testing connection. Message tells me that "connection successfully", but I can not have a record display in VB. It tells me that can not publish a connection with ODBC. Please tell me why
Are you using the Oracle ODBC driver? If so, which version?
Are you writing your own VB application? What API are you using-- ADO? Can you post the code that's making a connection and the exact text of the error message?
Justin -
How to connect to oracle ebs from an external software
Hi!
I want to develop an integration for oracle EBS. Therefor I'm looking for ways how to connect to the EBS and for a repository of functions which can be called from an external program. I'm not quite sure if this is the right place to ask but I could not find anything yet so I'm trying here.
Are there any standard connectors for the EBS provided by Oracle?
Thanks,
KonradOracle Applications Architecture is a framework for multi-tiered, distributed computing that supports Oracle Applications products. In this model, various servers are distributed among multiple levels/tiers as follows:
- The Desktop Tier --> Web browser with Jinitiator or Sun JRE
- The Application Tier --> Web, Forms, Reports, Admin, and Concurrent servers
- The Database Tier --> Oracle Enterprise Edition Database
The Application tier is the layer which is responsible for:
- Hosting the various servers that process the business logic
- Managing communication between the desktop tier and the database tier
So, in order to connect to the database, you can either access the application tier, or connect directly to the database. I do not think it is possible to communicate with the application services from some other application. Therefore, you would need to connect to the database directly which can be achieved as explained in my previous reply. There is no such API which can be used to open/close a database connection. Oracle E-Business Suite is just a database with number of schemas and objects which are tightly integrated.
More details about Oracle E-Business Architecture can be found in:
Oracle Applications Concepts
http://download-uk.oracle.com/docs/cd/B25516_14/current/acrobat/11iconcepts.pdf -
Connection to oracle database from sap R/3
Hello SAP Masters,
I do have two querries.
1) I want to download the data into oracle.
so is it possible in sap?
2)please explain me how in details?
3) I tried with DBCON .
4) But when I wrote program stating the name of the connection it is giving dump.
5) So can i get two things.
6) Some sample DBCON information.
7) And after this connection how to insert the data into oracle.ie native sql code
and abap code.
8) please can any one explain me with example in details or sample code?
Regards,
Prasad Dhaygude.Hello Ajai,
Thanks raised to infinity.
Many thanks for sharing your valuable time for my querry.
Still I do have one querry as follows:
1) Actually I want to connect with the oracle database.
so I made entries like this:
database name:deepak_data
dbs: ora
username: prasad
connection information:oracle_server=ess-serverORACLE_DBNAME=INVOICE_02
now I want to ask you.
How to write native sql code in abap.
*& Report ZP *
REPORT ZP.
TABLES: Zp,dbcon.
DATA: BEGIN OF IT_ITAB OCCURS 0,
INV_NO LIKE Zp-INV_NO,
AUBEL LIKE Zp-AUBEL,
MATNR LIKE Zp-MATNR,
FKIMG LIKE Zp-FKIMG,
END OF IT_ITAB.
data:BEGIN OF IT_ITAB1 OCCURS 0,
INV_NO like Zp-INV_NO,
end of IT_ITAB1.
DATA: exc_ref TYPE REF TO cx_sy_native_sql_error,
error_text TYPE string.
DATA: WA LIKE IT_ITAB.
START-OF-SELECTION.
SELECT * FROM Zp INTO CORRESPONDING FIELDS OF TABLE IT_ITAB.
EXEC SQL.
CONNECT TO : invoice_02 USER df_truck USING df_truck
endexec.
EXEC SQL .
LOOP AT IT_ITAB.
INSERT INTO ZINVOICE_02 VALUES IT_ITAB.
ENDLOOP.
ENDEXEC.
*ENDFORM.
I wrote the code mentioned above.
But it states that field specification missing at the time of execution.
2) Please check the code and connect to statement also.
Can you please explain me with the help of sample code that how to write
connect to statement.
3) First of all I ll have to connect to database or oracle server on which oracle
database exists.
4) And then I ll have to insert the data from zinvoice02 into oracle table invoice_02.
5)Many Many thanks for your cooperation.
6) I wish you happy Navaratri and coming Dassera.
Regards,
Prasad. -
How to connect to oracle9i database from Unix
Hi All,
How can i connect to remote oracle9i database(windows based) from Unix. I have following server information Server IP, Username , Userpassword , DataBase name.Do i need any other information to connect to server?
How can i connect database from Putty?
Do i need to install SQL on the Unix to connect to oracle server?
and which C/C++ API i have to use to access tables from the remote oracle server?
please help me i am new to oracle .
Thanks in advance.Oracle generally uses a special set of software, commonly called the SQLNet or Oracle Networking, as a layer to provide a connection between the client and the database server.
In general terms,
- the client software (perhaps sqlplus, an application, ODBC) calls Oracle Networking on the client computer and says "please connect to database known as 'x'";
- Oracle Networking translates the request, often by looking up 'x' in the TNSNAMES.ORA file at the client side, to get the host name, the port the Oracle listener is waiting on, and the name of the database service to access;
- Oracle Networking contacts the computer on the required port. If the listener is there, the Oracle Networking client asks for a connection to the database service;
- The Listener (if it recognizes it) asks the database service for a 'server process';
- The database starts up a server process which grabs a network port and tells the listener which port was obtained;
- The listener tells Oracle Networking on the client which port to use;
- The client disconnects from the Listener, and reconnects at that port;
- The server process starts authentication and session initialization, after which we are good to go.
In answer to your questions:
1) How can i connect database from Putty?
That implies you want to telnet to the Windows box and run the client stuff locally on the Windows box. So that means you need to look at telnet or ssh documentation - this has nothing to do with Oracle.
2) Do i need to install SQL on the Unix to connect to oracle server?
Not really. It does mean you might want to install an Oracle CLIENT (see the download section of http://otn.oracle.com) which will initiate the sequence as above.
A different sort of client is SQL Developer, a Java-based GUI with it's own built-in Oracle Networking, that displays database stuff. That is also offered by Oracle at the same download page.
3) and which C/C++ API i have to use to access tables from the remote oracle server?
Oracle provides a C/C++ API as a pre-processor, called Pro*C. I suspect this si way beyond what you want right now.
4) please help me i am new to oracle .
Please, please, please, please, please ..... please .... purchase and read http://www.oreilly.com/catalog/oressentials3/ -
How to connect with Oracle database in JSF ?
Hi ,
am very new to JSF,i want to perform a database connection with an Oracle database through JSf.Is there any special tag as such in struts for DB connectivity in JSF?Can any one help me?No.
A database shouldn't even be reached from inside the view layer. Do it in the controller/business layer, e.g. the backing bean. Read on about JDBC, DAO, DTO. If you're already familiar with that, consider an ORM, like Hibernate.
Maybe you are looking for
-
Excise duty for manufactur plant.
Hi, we have only one plant. so deliveries are takes that plant only. In Excise configuration i treated it as a manufacturing plant ( not depo). But in the pricing procedure we have BED. I maintained it as 16%. So the value is coming in the sales orde
-
Statistical Posting for PS settlement in Funds Management ECC 6.0
Hi people Previously in 4.6C, WBS settlement (CJ88) will result in statistical posting in Funds Mgmt. But now after upgrade to ECC 6.0, it is now considered as actual posting. I know there is setting under FMCIA where you can set certain commitment i
-
Apple Mail "enable" often is shaded under Acct Info Advanced
Apple Mail often gives me problems. At times my Mail screen is blank with no folders or in- box, sent, etc. I then go to Preferences > Account Information > Advanced and have to check Enable, which is shaded. When I do so, it asks if I want to "save
-
Difference between photoshop cc and photoshop cc 2014 how do i know which one I am using?
difference between photoshop cc and photoshop cc 2014 how do i know which one I am using?
-
Urgent! hwo to handle methods in CL_GUI_PDFVIEWER
Im using the class CL_GUI_PDFVIEWER. First I open the pdf documet by OPEN_DOCUMENT method. and display it (I do in in PBO modules). Then I want to Print it using Method PRINT and then CLOSE_DOCUMENT. But these methods dont do anything. They get comp