IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Connexions aux bases de données Oracle Discussion :

[Forms] developer connexion odbc


Sujet :

Connexions aux bases de données Oracle

  1. #1
    Membre du Club
    Inscrit en
    Mars 2005
    Messages
    52
    Détails du profil
    Informations forums :
    Inscription : Mars 2005
    Messages : 52
    Points : 46
    Points
    46
    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.

  2. #2
    Membre averti
    Profil pro
    Inscrit en
    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 : 409
    Points
    409
    Par défaut
    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,

  3. #3
    Membre du Club
    Inscrit en
    Mars 2005
    Messages
    52
    Détails du profil
    Informations forums :
    Inscription : Mars 2005
    Messages : 52
    Points : 46
    Points
    46
    Par défaut
    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

  4. #4
    Expert éminent sénior
    Avatar de SheikYerbouti
    Profil pro
    Inscrit en
    Mai 2003
    Messages
    6 760
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2003
    Messages : 6 760
    Points : 11 862
    Points
    11 862
    Par défaut
    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

  5. #5
    Membre averti
    Profil pro
    Inscrit en
    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 : 409
    Points
    409
    Par défaut
    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

  6. #6
    Membre averti
    Profil pro
    Inscrit en
    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 : 409
    Points
    409
    Par défaut
    aprés vérifications, dans l'aide de Forms 6i j'ai trouvé ceci :
    ........

    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.


  7. #7
    Membre du Club
    Inscrit en
    Mars 2005
    Messages
    52
    Détails du profil
    Informations forums :
    Inscription : Mars 2005
    Messages : 52
    Points : 46
    Points
    46
    Par défaut
    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.

  8. #8
    Membre du Club
    Inscrit en
    Mars 2005
    Messages
    52
    Détails du profil
    Informations forums :
    Inscription : Mars 2005
    Messages : 52
    Points : 46
    Points
    46
    Par défaut
    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.

  9. #9
    Membre averti
    Profil pro
    Inscrit en
    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 : 409
    Points
    409
    Par défaut
    J'ai trouve le fichier oca_info.pdf dans mon repertoire de 10g,

    Voici le titre apparaissant en 1ière page :

    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 :

    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 ......

Discussions similaires

  1. Connexion ODBC entre base ORACLE et Developer
    Par sessime dans le forum Oracle
    Réponses: 5
    Dernier message: 04/05/2006, 09h44
  2. Connexion ODBC entre base ORACLE et Developer
    Par sessime dans le forum Windows
    Réponses: 1
    Dernier message: 03/05/2006, 13h28
  3. [Foxpro]Connexion ODBC par programme
    Par Richard MORRISSEY dans le forum Autres SGBD
    Réponses: 3
    Dernier message: 07/07/2003, 21h55
  4. connexion ODBC FileMaker pro 5 à ArcView 8.2
    Par Alex Blond dans le forum Autres SGBD
    Réponses: 4
    Dernier message: 16/06/2003, 17h08
  5. Connexion ODBC
    Par Anonymous dans le forum Réseau
    Réponses: 2
    Dernier message: 23/04/2002, 12h10

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo