Hello !
I am able to read excel doc at my local drive through sqlplus(oracle).
Please help me to modify steps to access excel docs at network machine.
steps:->
1) start\settings\control\panel\administartive tolls\data source odbc\system dns\driver for microsoft excel (*.xls)\dns source at my local drive.
2)C:\oracle10g\product\10.2.0\db_1\hs\admin\initNITIN.ora
# This is a sample agent init file that contains the HS parameters that are
# needed for an ODBC Agent.
#
# HS init parameters
#
HS_FDS_CONNECT_INFO = TESTDS
HS_FDS_TRACE_LEVEL = 0
#HS_FDS_TRACE_FILE_NAME = aetna_xls.trc
#
# Environment variables required for the non-Oracle system
#
#set <envvar>=<value>
3) adding one more listener in listner.ora
SID_LIST_HSODBC_LISTENER =
(SID_LIST=
(SID_DESC=
(SID_NAME=NITIN)
(ORACLE_HOME=C:\oracle10g\product\10.2.0\db_1)
(PROGRAM=hsodbc)
)
)
HSODBC_LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1555))
)
)
4) entry in tnsnames.ora
ABC.SCF.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1555))
)
(CONNECT_DATA =
(SID=NITIN)
)
(HS=OK)
)
5)lsnrctl stop listner
6) listner start HSODBC_LISTENER
Starting tnslsnr: please wait...
TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
System parameter file is C:\oracle10g\product\10.2.0\db_1\network\admin\listener
.ora
Log messages written to C:\oracle10g\product\10.2.0\db_1\network\log\hsodbc_list
ener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1555)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1555)))
STATUS of the LISTENER
Alias HSODBC_LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
ction
Start Date 30-JUN-2007 12:30:25
Uptime 0 days 0 hr. 0 min. 3 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\oracle10g\product\10.2.0\db_1\network\admin\listene
r.ora
Listener Log File C:\oracle10g\product\10.2.0\db_1\network\log\hsodbc_li
stener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1555)))
Services Summary...
Service "NITIN" has 1 instance(s).
Instance "NITIN", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
7)create database link test
connect to "ben"
identified by joe
using 'ABC.SCF.COM';
8)SQL> select * from all_objects@testin;
OWNER OBJECT_NAME S OBJECT_ID
------------------------------ -
DATA_OBJECT_ID OBJECT_TYPE CREATED LAST_DDL_ T S T G S
------------------
--------- - - - - -
Sheet1$ 0
0 TABLE 30-JUN-07 30-JUN-07
Sheet2$ 0
0 TABLE 30-JUN-07 30-JUN-07
Sheet3$ 0
0 TABLE 30-JUN-07 30-JUN-07
My queries are :
1)Is it possible to connect to a document at network
if yes then for , do i need to map a drive.
please explaqin how what changes required to make it possible to read a network excel documnet through oracle.
Thanks in Advance
--Ajay