How to connect to the db? [message #462585] |
Fri, 25 June 2010 02:34 |
SAKOURA
Messages: 52 Registered: June 2010 Location: France
|
Member |
|
|
Hi guys,
I've just installed oracle 10g xe but i don't find any tnsnames.ora on the client station.
The only thing i obtain after the installation of oracle 10g xe client the menu Start is the access to the Sql prompt.
Can some one telle he how can we reach the host and connect to the database which is installed on a server?
Should we use the tnsnames of the server?
Thanks for the reply.
Sak.
|
|
|
|
Re: How to connect to the db? [message #462593 is a reply to message #462588] |
Fri, 25 June 2010 03:35 |
SAKOURA
Messages: 52 Registered: June 2010 Location: France
|
Member |
|
|
[quote title=Michel Cadot wrote on Fri, 25 June 2010 02:51]Quote:but i don't find any tnsnames.ora on the client station.
You don't need it to connect to a local database.
Actually, I use for some applications oracle clients 9i and 10g and on the clients needs tnsnames for the datadbase connection: my softwares need the alias only; the connection is done through the tnsnames.ora of the computer.
... I tried to connect from a pc having oracle 9i client to the 10g database 10g xe and no problem.
Quote:Can some one telle he how can we reach the host and connect to the database which is installed on a server?
Is this a local or a remote instance?
The oracle database 10g xe and the *.dbf are on a server wich is a virtual one. The oracle 10g xe client was installed on a computer different from the server.
Quote:Should we use the tnsnames of the server?
You should use the tnsnames.ora in %ORACLE_HOME%\NETWORK\ADMIN\SAMPLE, copy it in %ORACLE_HOME%\NETWORK\ADMIN and custom it for you need.
(You may also use the one on the server if it is configured to connect to itself using SQL*Net.)
i haven't understood:ok, how my distant client can recognize the host?
Thanks in advance !
|
|
|
|
Re: How to connect to the db? [message #462627 is a reply to message #462585] |
Fri, 25 June 2010 06:18 |
SAKOURA
Messages: 52 Registered: June 2010 Location: France
|
Member |
|
|
Bonjour Michel,
Je suppose que tu parles français. Je voies que t'es basé en France !
De communiquer en français est plus simple, comme ça y a pas d'ambiguité. En fait mon soucis est que ne voies pas comment je peux établir la connexion depuis un poste installé en oracle 10g xe (version client) vers mon oracle db 10g xe installé sur un serveur (qui est lui virtuel).
Le seul tnsnames.ora est sur le serveur (du moins j'en ai deux).
Voici les étapes par lesquelles je suis passées:
- Install oracle 10g xe sur un serveur virtuel
- Création d'un db via des scripts en utilisant
- Connexion à cette new db depuis un logiciel installé sur un poste ayant un client oracle 9 : connexion OK
* Config du Tnsnames du poste client (alias, hote, port, instance)
* Config de l'alias dans le logiciel
- Installation de oracle 10g xe client sur un autre poste (mac virtuelle) avec mon logiciel installé dessus
- et là je bloque, puisque je n'ai ni tnsnames ni un outil permettant de configurer l'instance style : "Assistant configuration oracle net".
Comment y parvenir ?
Merci d'avance pour ta réponse.
Sak.
|
|
|
|
|
|
|
|
Re: How to connect to the db? [message #462633 is a reply to message #462585] |
Fri, 25 June 2010 06:44 |
SAKOURA
Messages: 52 Registered: June 2010 Location: France
|
Member |
|
|
En fait le tnsnames du serveur je le mets sur le poste client en recréant la même arborescence que celle du serveur ? ou non, juste le copier dans le rep : C:\XEClient ?
|
|
|
|
Re: How to connect to the db? [message #462644 is a reply to message #462585] |
Fri, 25 June 2010 07:49 |
SAKOURA
Messages: 52 Registered: June 2010 Location: France
|
Member |
|
|
Merci beaucoup Michel pour ton aide, j'ai repris tes posts en anglais en là ça marche, super ! J'ai créé le tnsnames.ora dans : c:\xeclient\network\admin.
Merci encore une fois et bon w-e.
Sak.
|
|
|
|