Results 1 to 4 of 4
  1. #1
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591

    Linking to an Oracle Back End Part 2

    I posted a related thread last year which you can find here.



    https://www.accessforums.net/showthr...242#post396242

    I have linked to an Oracle backend using a file DSN with this connection string.

    Code:
    [ODBC]
    DRIVER=Oracle in OraClient11g_home1_32bit
    UID=
    TSZ=8192
    ODA=F
    MLD=0
    TLO=O
    FBS=60000
    FWC=F
    CSR=F
    MDI=Me
    MTS=T
    DPM=F
    NUM=NLS
    BAM=IfAllSuccessful
    BNF=F
    BTD=F
    RST=T
    LOB=T
    FDL=10
    FRC=10
    QTO=T
    FEN=T
    XSM=Default
    EXC=F
    APA=T
    DBA=W
    DBQ=TPDPROD.WORLD
    SERVER=TPDPROD.WORLD
    I learned from the earlier post that this connection string would be embedded in the tables and I wouldn't need to distribute or use a DSN. This seemed to work, but I tried another user and encountered this error when the Database was loading.
    This is the code that caused the error. This same code works perfectly on my machine.

    Code:
            conStr = "Driver={Oracle in OraClient11g_home1_32bit};Server=" & OraTPDDataSource & ";UID=" & TPDOraUserName & ";PWD=" & TPDOraUserPassword & _
            ";TSZ=8192;ODA=F;MLD=0;TLO=O;FBS=60000;FWC=F;CSR=F;MDI=Me;MTS=T;DPM=F;num=NLS;BAM=IfAllSuccessful;BNF=F;BTD=F;rst=T;LOB=T;FDL=10;FRC=10;QTO=T;FEN=T;XSM=Default;EXC=F;APA=T;DBA=W;DBQ=" & OraTPDDataSource
        
            conTPD.Open conStr
    Click image for larger version. 

Name:	error 1.jpg 
Views:	11 
Size:	19.7 KB 
ID:	37083

    We received this error when we simply tried to open a table.

    Click image for larger version. 

Name:	error 2.jpg 
Views:	11 
Size:	34.0 KB 
ID:	37082


    That's about it. I'll wait for your feedback.
    Last edited by Paul H; 01-22-2019 at 03:19 PM. Reason: Browser Error

  2. #2
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    Hi Paul,

    i don't think there is a problem with the connection string, but with the actual driver; all of the machines running your application have to have the same Oracle driver installed (in your case "Oracle in OraClient11g_home1_32bit"). The connection string is providing the required info but it is the driver software that actually connects to your be.

    Cheers,
    Vlad

  3. #3
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591
    Am I correct in thinking that the tables would link automatically without the File DSN if they had the correct driver?

  4. #4
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    Yes, they will "stay" linked and open OK if the right driver was installed and the right permissions were in place (I assume you used database authentication with user ID and password).

    Cheers,
    Vlad

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Linking to an Oracle Back End
    By Paul H in forum Programming
    Replies: 7
    Last Post: 04-30-2018, 12:11 PM
  2. Replies: 16
    Last Post: 03-22-2018, 09:27 AM
  3. SQL Server vs. Oracle as a Back End to Access
    By Aaron5714 in forum Access
    Replies: 1
    Last Post: 03-27-2015, 12:13 PM
  4. Replies: 1
    Last Post: 03-02-2015, 09:44 AM
  5. Replies: 9
    Last Post: 01-17-2013, 05:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums