473,403 Members | 2,323 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Oracle Connection

164 100+
Hi

I have a doubt that...

I want my database to be in the server. I mean LAN server..

My project is distributable. The database at Server should be connected with Lan clients.

Is it possible to use Oracle at Lan server?

Do I have to use Ip Address of that server?

Give me some ideas please..

I dont know much about it.

Oracle might be 8 or 9i.

Plz guide me detailly plz

Thanx
Oct 10 '07 #1
21 3447
debasisdas
8,127 Expert 4TB
you just need to specify the host string for the conection along with usename and password.
Oct 11 '07 #2
arunbalait
164 100+
you just need to specify the host string for the conection along with usename and password.
Hi I need connection string for Oracle..
I want to connect Oracle with VB through Lan. Not directly with oracle by entering Username, Password and Host String.

CN.Open "Provider=MSDAORA.1;Password=manager;User ID=system;Persist Security Info=True"

I tried the above connection string but no result...

Thanx....
Oct 16 '07 #3
debasisdas
8,127 Expert 4TB
Hi I need connection string for Oracle..
I want to connect Oracle with VB through Lan. Not directly with oracle by entering Username, Password and Host String.

CN.Open "Provider=MSDAORA.1;Password=manager;User ID=system;Persist Security Info=True"

I tried the above connection string but no result...

Thanx....
Kindly post the exact error message with error number for the above connection string.
Oct 16 '07 #4
arunbalait
164 100+
Kindly post the exact error message with error number for the above connection string.

Expand|Select|Wrap|Line Numbers
  1. Run Time Error: 91
  2.  
  3. Object or With Block Variable not set


Here I tried for local Oracle connection not with Lan Server.

If I give data source =Ipaddress

Am getting error like

Expand|Select|Wrap|Line Numbers
  1. Run-Time Error '-2147217805(80040e73)
  2. Format of the initialization string does not conform to the OLEDB specification

Thanks.
Oct 16 '07 #5
arunbalait
164 100+
Hi

I solved the Oracle Connection problem

I tried by installing MSDAC. After installing this component its working.

But am unable to connect with remote systems.

Expand|Select|Wrap|Line Numbers
  1. strConn = "UID=system;PWD=manager;" & _
  2.                 "driver={Microsoft ODBC for Oracle};" & _
  3.                 "SERVER=;"
Am using connection string like given above.

If I want to connect with remote systems what changes do i have to make with the Connection String..

Thanx
Oct 18 '07 #6
debasisdas
8,127 Expert 4TB
Are you able to connect to the remote server using SQL * PLUS ?
Oct 18 '07 #7
arunbalait
164 100+
Are you able to connect to the remote server using SQL * PLUS ?
Nope... I couldnt.. Thats what my doubt... I want to connect with remote system.

How to make connection with Remote systems?

Thanx
Oct 19 '07 #8
debasisdas
8,127 Expert 4TB
Nope... I couldnt.. Thats what my doubt... I want to connect with remote system.

How to make connection with Remote systems?

Thanx
You need to modify the entries in the TNSNAMES.ORA file.
Oct 19 '07 #9
arunbalait
164 100+
You need to modify the entries in the TNSNAMES.ORA file.
Hi

I dont know much in Oracle

Please let me know how and what to modify in the TNSNAMES.ORA?

Thankx
Oct 19 '07 #10
debasisdas
8,127 Expert 4TB
usually the file contains somthing like this

MES =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.35.15.3)(PORT = 1521))
)
(CONNECT_DATA =
(SID = MES)
)
)
BDCORA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.35.12.16)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl1)
)
)
test =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.35.12.220)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = test)
)
)

try to add the name,ipaddress of the remote server to your file

the TNSNAME.ORA file is located at folllwing path in 10g.

\oracle\product\10.2.0\db_1\NETWORK\ADMIN
Oct 19 '07 #11
arunbalait
164 100+
try to add the name,ipaddress of the remote server to your file

the TNSNAME.ORA file is located at folllwing path in 10g.

\oracle\product\10.2.0\db_1\NETWORK\ADMIN
But as a client How could I configure the Ip address?

Actually Oracle 10g was installed in the server. The database I want to connect also there. Am running as client, so if i want to connect with the database for my application then what changes do I have to make.

I tried using DSN (ODBC) and Oracle provider they all showing errors like couldnot connect.

If i opened SQL*Plus how sould I have to connect with the database in the server?

Thanx
Oct 25 '07 #12
debasisdas
8,127 Expert 4TB
Do you have oracle client installed on your PC or not ?

You need to make changess to the TNSNAME.ORA fiel in your PC not in the server.
Oct 25 '07 #13
arunbalait
164 100+
Do you have oracle client installed on your PC or not ?

You need to make changess to the TNSNAME.ORA fiel in your PC not in the server.

Oh.. Thanks. And I have Installed Oracle 10g client. I shall try changing that TNSNAME.ORA file.

Actually am creating a workbench for DataEntry Operators, after completing the project I should deploy the project to all of them. Should I have to install Oracle client to all the Machines?

Thanks
Oct 26 '07 #14
amitpatel66
2,367 Expert 2GB
Oh.. Thanks. And I have Installed Oracle 10g client. I shall try changing that TNSNAME.ORA file.

Actually am creating a workbench for DataEntry Operators, after completing the project I should deploy the project to all of them. Should I have to install Oracle client to all the Machines?

Thanks
If you want to access oracle from all those machines then yes you have to install client in all the machines with proper TNS entry
Oct 26 '07 #15
debasisdas
8,127 Expert 4TB
Actually am creating a workbench for DataEntry Operators, after completing the project I should deploy the project to all of them. Should I have to install Oracle client to all the Machines?
Yes you need to install oracle client in all the machines from where you want to run the application and also you need to configure the file to connect to the desired oracle server.
Oct 26 '07 #16
arunbalait
164 100+
Yes you need to install oracle client in all the machines from where you want to run the application and also you need to configure the file to connect to the desired oracle server.
Yep I configured that file. But I couldnt connect with the database

Am getting error message that ORA-12560 TNS: Protocol adapter error

I searched for the listener service to start. But I found nowhere.

Whats the problem with it?
Thanx
Oct 26 '07 #17
amitpatel66
2,367 Expert 2GB
Yep I configured that file. But I couldnt connect with the database

Am getting error message that ORA-12560 TNS: Protocol adapter error

I searched for the listener service to start. But I found nowhere.

Whats the problem with it?
Thanx
symptom: TNS-00530: TNS: Protocol adapter error

symptom: Local connections can be established

cause: The listener has been started using a different (e.g. local
System)
account while the OracleService has been started using another (e.g.
a named
Administrator) account. In that situation the listener may not be
allowed to
create dedicated server processes which are under Windows created as
threads
within the Oracle.exe.

fix:

Verify that the OracleService and the ListenerService have been started
using
the same account. Unless for special reasons, the default local System
account
should not be changed.
Oct 26 '07 #18
arunbalait
164 100+
fix:

Verify that the OracleService and the ListenerService have been started
using
the same account. Unless for special reasons, the default local System
account
should not be changed.

HI,

Thanx for the reply.
I found those services have been started and running. But when am trying to connect with the server it says that error(protocol adapter error).

I have installed Oracle 10g database at server side.

Even the oracle doesnt connect with localhost.
Oct 26 '07 #19
debasisdas
8,127 Expert 4TB
Are you able to connect to the oracle server through SQL*PLUS from the server system itself. Just try once.
Oct 26 '07 #20
arunbalait
164 100+
Are you able to connect to the oracle server through SQL*PLUS from the server system itself. Just try once.
Ya I have tried to connect to the oracle server through SQL *PLUS from the server system. And its connecting.

But when am trying to connect from the remote system it doesnt connect. It says Protocol adapter error.

I am stuck up in this stage. I have finished all other works in my project.

Thanx
Oct 29 '07 #21
arunbalait
164 100+
Hi

Somebody help me please

Its urgent for me

thanx
Nov 1 '07 #22

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Harry | last post by:
Using Oracle 8i enterprise on win 2000 (sp3) Installed the standard configuration & whenever I make a connection it takes about 10 secs. It's running on a P1900 with 1gb Ram so no reason there...
5
by: SerGioGio | last post by:
Hello, I am going nuts. I am trying to connect to my local ORACLE instance using ODBC. It used to work few weeks ago, but it fails now. Connection with: - SQL*plus: connection works! -...
1
by: Cliff Cooley | last post by:
Can anybody suggest what may be causing the following problem ? I have an ASP script that opens a connection to an Oracle database using a DSN connection string, such as : Set dbConn=...
1
by: Andrew Arace | last post by:
I scoured the groups for some hands on code to perform the menial task of exporting table data from an Access 2000 database to Oracle database (in this case, it was oracle 8i but i'm assuming this...
9
by: mcbill20 | last post by:
Hello all. I just installed Oracle 10g developer tools on a machine running XP Pro and Office XP. Before this I had just the Oracle 9 client installed. I the previous configuration, I was able to...
0
by: ʹÃûÑï | last post by:
ORA-03114: not connected to ORACLE && MS's Bug?? DataBase:Oracle 817 using OracleClient,net framework 1.1 I'm using ADO.Net in C# with Oracle 817. and following is my public data access...
0
by: Anonymous User | last post by:
Hi, I am working on a mobile application that consists of a number of handheld scanners, an Xml Web service and an Oracle 9i database in a highly secure environment. The .Net Compact Framework...
2
by: Ben | last post by:
Hi, I have a problem connecting to Oracle using and ODBC connection in a ASP.Net web page. The TNS Names works fine because when I create a DSN it works, and it works in SQL Plus. Here are...
7
by: D. Patrick | last post by:
I need to connect to an Oracle database. I've never done it before. I see that with framework 1.1 you had to download ODP.NET from Oracle's site in order for the framework classes to even work....
7
by: =?Utf-8?B?QVRT?= | last post by:
HOWTO Run multiple SQL statements from ASP/ADO to an Oracle 10g. Please help, I'm trying to write an ASP page to use ADO to run a long query against an Oracle 10g database, to create tables,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.