Connecting Oracle with MS-Access
Step 1: Prepare the MS-Access environment If you do not have a MS-Access environment, start by installing the required software and create a test table.
Step 2: Define ODBC connectivity Use the ODBC Administrator Utility to define a local System DSN that can be used to connect to the Access database (same machine). Ensure that the correct *.MDB database file is selected.
Step 3: Prepare the Oracle Environment Install the Oracle Database Server software on the same machine where MS-Access is installed. NOTE: It is not sufficient to only install Client Software, as we require an Oracle Net Listener and the Heterogeneous Services (ORACLE_HOMEhs directory) software to be installed as well.
Step 4: Configure and Start the Oracle Listener Configure the Oracle Listener on the Windows machine. Here is a sample LISTENER.ORA entry that can be used. Change the HOST, PORT and ORACLE_HOME entries to match your setup.
You may also use a different SID_NAME if required.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = my_windows_machine_name)(PORT = 1521)) ) ) ) SID_LIST_LISTENER=
(SID_LIST = (SID_DESC = (SID_NAME = hsodbc) (ORACLE_HOME = c:OracleOra101) (PROGRAM = hsodbc) ) )
Stop and start the listener service or from the command line: C:> lsnrctl stop C:> lsnrctl start
Step 5: Configure Oracle HS: Edit the ORACLE_HOMEhsadmininithsodbc.ora file and add your ODBC System DSN Name (ODBC1 in our case as defined in step 3). HS_FDS_CONNECT_INFO = odbc1 HS_FDS_TRACE_LEVEL = off Note: If you used a custom SID_NAME in step 4, name the file accordingly - INIT.ORA.
Step 6: Configure Oracle connectivity to Windows Machine From now on we are going to work on the Oracle Server (Unix or whatever you run) add the following TNSNAMES.ORA entry: access_db.world = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.1.31) (PORT = 1521) ) (CONNECT_DATA = (SID = hsodbc) ) (HS=OK) ) Ensure you can tnsping the new entry before continuing.
Step 7: Create a database link Create a database link using the entry defined in step 6. SQL> CREATE DATABASE LINK access_db USING 'access_db.world'; Database link created. The tables in the access database can now be queried from the Oracle environment. SQL> SELECT * FROM my_access_tab@access_db; ID Field1 Field2 ---------- -------------------- -------------------- 1 row1col1 row1col2 2 row2col1 row2col2 3 row3col1 row3col2 SQL> CREATE TABLE my_oracle_tab AS SELECT * FROM my_access_tab@access_db; Table created.
[@more@]來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9907339/viewspace-1038437/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Connecting to Nomounted databaseDatabase
- Connecting to the MySQL ServerMySqlServer
- Oracle 12C ORA-12545 While Connecting to RAC through SCAN NameOracleWhile
- Connecting with Administrative Privileges: Example (33)
- GoldenGate&ASM&Connecting to a 'BLOCKED' instanceGoASMBloC
- [轉]Connecting OBIEE 11.1.1.7 to Hadoop Data SourcesHadoop
- Connecting to ASM through the TNS Listener from a Client DesktopASMclient
- Oracle DataGuard FAL[client, ARC2]: Error 16191 connecting to 問題處理過程記錄OracleclientError
- How can I prevent users from connecting to a USB storage device?dev
- ssh-add 報錯:Error connecting to agent No such file or directoryError
- RMAN DUPLICATE Without Connecting To Target DB For Both Disk & Tape_1375864.1
- Troubleshooting: Connecting to SQL Server When System Administrators Are Locked OutSQLServer
- 機器學習之nltk download出錯:Error connecting to server: [Errno -2]機器學習ErrorServer
- Connecting To 12CR2 RAC Pluggable Database With ORA-1033Database
- NServiceBus翻譯之持久化技術(三):Using RavenDB In NServiceBus – Connecting持久化
- Hide RMAN Passwords when Connecting to a Target Database (Doc ID 183377.1)IDEDatabase
- Connecting the Dots: Document-level Neural Relation Extraction with Edge-oriented Graphs 關係抽取論文總結
- ORA-01031 While Connecting As Sysdba On Windows With A Domain User [ID 1071638.1]WhileWindowsAI
- Error connecting with SSL. error:1409442E:SSL routines:SSL3_READ_BYTES:tlsv1 alert protocol versionErrorTLSProtocol
- oracle DBLink oracleOracle
- Oracle 中$ORACLE_HOME/bin/oracle檔案Oracle
- oracle 修改ORACLE例項Oracle
- oracle安裝工具目錄常用解釋oracle wallet manager/Oracle Directory Manager /oracle net manager /Oracle Net ManagOracle
- ORACLE基礎之oracle鎖(oracle lock mode)詳解Oracle
- 【Oracle】oracle tablespace&datafile -- oracle表空間 分享[轉]Oracle
- cx_Oracle 連線 OracleOracle
- [Oracle]Oracle良性SQL建議OracleSQL
- oracle之 Oracle LOB 詳解Oracle
- [oracle]centos 7 安裝oracleOracleCentOS
- Oracle工具(Oracle Tools) – SQLT(SQLTXPLAIN)OracleSQLAI
- oracle clone oracle_home 方法Oracle
- oracle 817 archive err,oracle hangOracleHive
- 【Oracle】修改oracle監聽埠Oracle
- 【Oracle】Oracle常用EVENT之三Oracle
- 【Oracle】Oracle常用EVENT之二Oracle
- 【Oracle】Oracle常用EVENT之一Oracle
- Oracle Clusterware and Oracle Grid InfrastructureOracleASTStruct
- 【Oracle】--"任性"Oracle安裝之旅Oracle