Précédent   Forum des professionnels en informatique > Bases de données > Oracle > Connexions aux bases de données
Connexions aux bases de données Forum d'entraide sur les problèmes de connectivité Oracle
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 14/09/2006, 19h34   #1
Futur Membre du Club
 
Inscription : mars 2005
Messages : 47
Détails du profil
Informations forums :
Inscription : mars 2005
Messages : 47
Points : 15
Points : 15
Par défaut [Forms] developer connexion odbc

Bonjour,

j'espere que vous allez bien.

bon voila, on me demande d'interfacer une base de donnee ACCESS en utilisant Forms et reports.

je sais pas si c'est possible, si oui comment. j'ai deja fouiller sur google et je trouve pas de tuto forms/odbc. j'ai par contre croisé sur google une fonction EXEC_SQL_CONNECT.

Mais ca resouds pas vraiment le probleme ou je m'y prends mal.

Si il y a un moyen detaillé (pas a pas simple) alors, merci de me le dire ou un lien.

Merci de vraiment m'aider.
ADABLA est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 15/09/2006, 15h13   #2
Membre éclairé
 
Inscription : décembre 2004
Messages : 349
Détails du profil
Informations personnelles :
Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

Informations forums :
Inscription : décembre 2004
Messages : 349
Points : 367
Points : 367
Si tu veux baser un bloc sur une table access , ca me parrait difficile voir impossible(?)...

Néanmoins, tu as la possibilité de communiquer à partir de forms avec une bdd du type access ou autre au travers d'un PJC en utilisant le(s) bon(s) driver(s) jdbc ( ODBC, INFORMIX, etc .... )...

Cordialement,
taska est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 18/09/2006, 16h48   #3
Futur Membre du Club
 
Inscription : mars 2005
Messages : 47
Détails du profil
Informations forums :
Inscription : mars 2005
Messages : 47
Points : 15
Points : 15
merci pour la reponse.
Donc par odbc je pourrait attaque ma base access.
Ok, j'ai reussi a cree la source odbc vers access. mais comment l'utilisé dans forms, comment extraires les données et ls utiliser?

Excuse moi si mes questions semblent simples, je suis pas tres experimenté !

Merci

PS: si vous avez un lien qui montre tout cec clairement , ou je compte sur une explication simple et detaillé SVP. Je suis pas beaucoup avancé dans mon projet
ADABLA est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 18/09/2006, 17h56   #4
Rédacteur

 
Avatar de SheikYerbouti
 
Inscription : mai 2003
Messages : 6 533
Détails du profil
Informations forums :
Inscription : mai 2003
Messages : 6 533
Points : 6 469
Points : 6 469
Je sais que Forms 6i supportait encore directement la connexion ODBC (ODBC : xxxx), mais depuis la 9i, c'est une autre histoire !
__________________
Rédacteur Oracle (Oracle ACE)
Guide Oracle ,Guide PL/SQL, Guide Forms 9i/10g, Index de recherche
Je ne réponds pas aux questions techniques par MP
Blogs: Forms-PL/SQL-J2EE - Forms Java Beans
SheikYerbouti est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 18/09/2006, 18h02   #5
Membre éclairé
 
Inscription : décembre 2004
Messages : 349
Détails du profil
Informations personnelles :
Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

Informations forums :
Inscription : décembre 2004
Messages : 349
Points : 367
Points : 367
Je pense qu'il n'y a aucun interêt à utiliser Forms & Report pour attaquer une BDD Access, plutôt utiliser access et ses formulaires ....

Tu peux néamoins le faire à travers un PJC mais il te faudra réécrire toute a partie transactionnelle ( la + importante !)

La solution la + rationelle consiste à migrer ta bdd Access vers une version de BDD oracle correspondant à votre besoin !

Cdlt
taska est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 19/09/2006, 10h00   #6
Membre éclairé
 
Inscription : décembre 2004
Messages : 349
Détails du profil
Informations personnelles :
Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

Informations forums :
Inscription : décembre 2004
Messages : 349
Points : 367
Points : 367
aprés vérifications, dans l'aide de Forms 6i j'ai trouvé ceci :
........

Citation:
Connecting to foreign datasources

To run this demo:

1 Create an ODBC datasource to access the dBASE Employee and Department Tables.
2 Click Next Dept and Previous Dept to move from department to department. Note the summary and formula items highlighted in yellow. No trigger code was required to calculate these values.
3 Modify the salary and commission of an employee. Note the total salary and departmental total salary are automatically updated.
4 Add or remove employees from a department. Note that the summary and formula items are automatically updated.

5 Click the Datasource tab.
6 Click Reconnect, and type connection information for the ODBC datasource you set up in Step 1. You should use the connection string odbc:demodbase. Note that after a successful connection, the information for the new datasource is displayed in the Datasource information text boxes.
7 Click the Calcform tab.
8 Repeat Steps 2-4. Notice that the same form runs against Oracle and ODBC.


Connecting to foreign datasources: Creating a dBASE ODBC datasource

To create a dBASE ODBC datasource:

1 Make sure you have installed the INTERSOLV ODBC Driver for dBASE provided with your Forms Developer installation CD. If not, rerun setup from the CD and install them.
2 Run the ODBC Administrator. You can usually find this icon in your Microsoft Windows Control Panel.
3 Click Add to add a new ODBC datasource.
4 Double-click INTERSOLV OEM 2.12 32-BIT dBASE File (*.dbf) to display the ODBC dBASE Driver Setup dialog box.
5 Type demodbase in the Data Source Name text box.

6 (Optional) Type a suitable description in the Description text box.
7 Type ORACLE_HOME\TOOLS\DEVDEM60\BIN in the Database Directory text box. For example, if your Oracle Home directory is C:\ORAWIN95, type C:\ORAWIN95\TOOLS\DEVDEM60\BIN.
8 Click OK.
9 In the ODBC Data Source Administrator, click OK.


Accessing Microsoft Access
<> Related Topics Open oca_info.pdf

To access Microsoft Access:

1 Set up your system to use the Open Client Adapter (OCA).

2 Read through the release notes and the PDF document (oca_info.pdf).

3 (Optional) Run the.SQL scripts to create and populate demo tables using the UBT utility:
UBT32.EXE user/password@ODBC:datasource[:dbname] @sqlscript Example
If dbname is not specified, the views will be created in the 'current' database for the ODBC connection.

4 Launch the Builder.

5 (Form Builder only) Set the Primary Key property for each data item to Yes. Data items correspond to columns in your datasource.

6 When you are ready to connect to the Microsoft Access datasource, type the following connect string in the Connect dialog box:
[user[/password]]@ODBC:datasource[:dbname] Example

For more information about accessing Microsoft Access, see oca_info.pdf.



About the Open Client Adapter (OCA)
Open oca_info.pdf

The Oracle Open Client Adapter (OCA) for ODBC allows applications on Microsoft Windows 3.1, Windows 95/98, and Windows NT to access ODBC-compliant datasources through ODBC drivers. The OCA requires the ODBC driver to be ODBC level 1-compliant. OCA also uses certain level 2 ODBC functionality to achieve greater performance if that capability is provided by the ODBC driver.
Using the OCA, an application can access different datasources in a consistent manner. This allows an application developer to build an application that can run unmodified against one of several datasources. Alternatively, the application can be targeted at a specific datasource, and take advantage of features particular to that system.

The OCA is installed through the Oracle Installer, which copies all necessary files to your ORACLE_HOME directory. One of these files is oca.pll, which is a PL/SQL library of functions that you can use from within applications to:

n Open auxiliary connections to other datasources in addition to the application's main connection.

n Execute arbitrary SQL statements and Stored Procedure calls on any connection.

n Retrieve results sets from non-Oracle stored procedures.

n Obtain the DBMS and ODBC driver names and versions for a given connection.

n Automatically adjust Form and Data Block properties at runtime to suit the datasource.

Click the button at the top of this topic to learn more about these functions.
For details about other installed files, refer to the release notes.

taska est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/09/2006, 21h59   #7
Futur Membre du Club
 
Inscription : mars 2005
Messages : 47
Détails du profil
Informations forums :
Inscription : mars 2005
Messages : 47
Points : 15
Points : 15
merci pour vos reponse. sur le net lors de mes recherche, plusieurs internautes parle d'une connexion odbc a partir de la chaine de connexion par ODBC:sid, mais avec des version 6i.
A croire qu'ils ont modifier pour la 9i. taska, vous l'avez deja teste votre methode avec la 9i ou 10g?

je vais essaye la methode de taska.
j'aurai prefere a partir du script sql de access reconstruire la base sous oracle, mais cela ne depends pas de moi. condition oblige.
ADABLA est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 22/09/2006, 03h01   #8
Futur Membre du Club
 
Inscription : mars 2005
Messages : 47
Détails du profil
Informations forums :
Inscription : mars 2005
Messages : 47
Points : 15
Points : 15
ben excusez moi mais ca marche pas. si il n'ya aucun moyen avec forms9i alors je laisse tomber. j'ai essaye avec odbc:mon_sid mais ca marche pas.
ADABLA est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/09/2006, 17h04   #9
Membre éclairé
 
Inscription : décembre 2004
Messages : 349
Détails du profil
Informations personnelles :
Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

Informations forums :
Inscription : décembre 2004
Messages : 349
Points : 367
Points : 367
J'ai trouve le fichier oca_info.pdf dans mon repertoire de 10g,

Voici le titre apparaissant en 1ière page :

Citation:
Using Oracle® Forms Developer,
Oracle® Reports Developer and
the Oracle Open Client Adapter
to access ODBC Data sources
ci-aprés, un extrait de la table des matières :

Citation:
Table of Contents
1. GETTING STARTED................................................................................................................ 6
1.1 SUPPORTED DATA SOURCES AND ODBC COMPLIANCE.............................................................. 6
1.2 INSTALLATION, SETUP AND SYSTEM REQUIREMENTS ................................................................ 6
1.3 CONNECTING TO AN ODBC DATA SOURCE..............................................................................10
2. BUILDING ORACLE FORMS DEVELOPER AND ORACLE REPORTS DEVELOPER
APPLICATIONS FOR ODBC DATA SOURCES.......................................................................12
2.1 OVERVIEW .............................................................................................................................12
2.2 USING SQL PLUS WITH OCA CONNECTIONS ...........................................................................12
2.3 WRITING PL/SQL FOR USE WITH OCA (ODBC) CONNECTIONS................................................15
2.4 PASS-THROUGH SQL: TECHNIQUES FOR EXECUTING NATIVE SQL .............................................17
2.5 USING ORACLE FORMS WITH OCA CONNECTIONS ...................................................................18

... allez un p'tit effort ......
taska est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 06h05.


 
 
 
 
Partenaires

Hébergement Web