Accesing not Oracle DB using ODBC
Hi,
I was wondering if this is possible.
If yes, can you point where to find instrucctions how to do it.
Regards,
Ahhh, now we have a question ;).
The answer is heterogenous services. With that feature you can create a database link from oracle to any ODBC datasource.
http://www.google.de/search?q=oracle+heterogenous+services+database+link+access&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:de:official&client=firefox-a
, specifically:
http://www.orafaq.com/node/60
P.S. : We actually used this feature to migrate data from MS Access and MS Excel to Oracle XE in a real world project on a tight schedule.
Regards,
~Dietmar.
Similar Messages
-
How connect the oracle/Linux using ODBC
I want to connect the Oracle which install on Linux using Odbc, so my win98 machine can connect with the oracle.
But I don't know how to do ? May I install some Odbc driver in the Linux machine? and install odbc driver in my win98 machine?
my email: [email protected]You may use this way:
1. Start on the server (Linux) Net*8 listener (lsnrctl start)
2. Install on the client (win98) Net*8 and configure it (Net8 Easy Configuration)
3. Install on the client (win98) ODBC drivers for ORACLE (by ORACLE or others) and configure it -
Executing multiple SQL statements fails using ODBC
Executing multiple SQL statements will fail with error 'ORA-00911 invalid character' when connecting to an Oracle database using ODBC driver version 8.01.07.00.
When I use either my application or the Oracle ODBC Test client utility connecting using ODBC driver version 8.01.07.00 I can only get a single CALL statement (as shown below) to execute:
CALL BHInsert (TO_DATE('2003.07.23 10:04:28','YYYY.MM.DD HH24:MI:SS'),'BATCH_ID','1:CLS_FRENCHVANILLA-1','
','Event File
Name','\\KILLIANS\BATCHCTL\SampleDemo1\JOURNALS\1.evt','','AREA1','','','','','','1','','','','','',' ','');
When I try to execute the following string with multiple CALL statements (as shown below) it fails with the following error being returned - ORA-00911: invalid character
CALL BHInsert (TO_DATE('2003.07.23 10:04:28','YYYY.MM.DD HH24:MI:SS'),'BATCH_ID','1:CLS_FRENCHVANILLA-1','
','Event File
Name','\\KILLIANS\BATCHCTL\SampleDemo1\JOURNALS\1.evt','','AREA1','','','','','','1','','','','','',' ','');
CALL BHInsert (TO_DATE('2003.07.23 10:04:28','YYYY.MM.DD
HH24:MI:SS'),'BATCH_ID','1:CLS_FRENCHVANILLA-1','Version','Recipe Header','1.0','','AREA1',' ','
','','','','1','','','','','',' ','');
CALL BHInsert (TO_DATE('2003.07.23 10:04:28','YYYY.MM.DD
HH24:MI:SS'),'BATCH_ID','1:CLS_FRENCHVANILLA-1','Version Date','Recipe Header','5/18/2001 1:28:32
PM','','AREA1',' ',' ','','','','1','','','','','',' ','');
CALL BHInsert (TO_DATE('2003.07.23
10:04:28','YYYY.MM.DD HH24:MI:SS'),'BATCH_ID','1:CLS_FRENCHVANILLA-1','Author','Recipe Header','Mark
Shepard','','AREA1',' ',' ','','','','1','','','','','',' ','');
I've tried adding a line feed in addition to the space at the end of each call but that doesn't seem to help. Also have tried unsuccessfully to change the seperator used between each call using various valid continuation characters.
Executing multiple CALL statements from within Oracle's SQL Worksheet connecting as the same user and password, as my application executes successfully. However when I try this from within the Oracle ODBC test client, it fails with the same ORA-00911 error that I'm seeing in my application.
I'm currently trying the more recent ODBC drivers, however any ideas or suggestions would be greatly appreciated.Can you take the begin ... end block and run it using SQL*Plus?
I can't think of any documentation that would specifically answer this question. I'm sure if you read & absorbed the ODBC Programmers Reference (2000+ pages) you'd be able to find out, but I don't know of a quick way to find out.
You can enable SQL*Net tracing. There are a fair number of options for enabling this tracing-- http://tahiti.oracle.com has all the Oracle manuals online, which should give you enough info to configure exactly what you want.
I would suggest, however, that you look into more performant/ scalable alternatives rather than going too far down this path. A block with lots of SQL statements with literals isn't going to make your database happy even if you get it to work.
Justin -
Error fetching data from a foxpro db using Oracle Gateway for ODBC
Hi.
I have an 10.2.0.1 database an a 11.2.0 Oracle Gateway for ODBC installed and configured.
The dblink test works fine, I can connect with the foxpro database because if I execute desc centros I can see the
columns of table centros.
The problem comes when I try to execute Select * from centros@fox1;
A syntax error is returned ([Microsoft][ODBC Visual FoxPro Driver]Syntax error. {42000,NativeErr = 200})
I paste down the output of the trace file with HS_FDS_TRACE_LEVEL=255
If I run select codcen from centros@fox1; another error is shown. Tell me if you want the other trace file.
select codcen from centros@fox1
ERROR en lÝnea 1:
ORA-00904: "CODCEN": identificador no vßlido
Oracle Corporation --- JUEVES MAY 31 2012 13:11:24.765
Heterogeneous Agent Release
11.2.0.1.0
Oracle Corporation --- JUEVES MAY 31 2012 13:11:24.750
Version 11.2.0.1.0
Entered hgogprd
HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
Entered hgosdip
setting HS_OPEN_CURSORS to default of 50
setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
setting HS_FDS_RECOVERY_PWD to default value
setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
setting HS_IDLE_TIMEOUT to default of 0
setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
setting HS_NLS_NCHAR to default of "UCS2"
setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
setting HS_FDS_DATE_MAPPING to default of "DATE"
setting HS_RPC_FETCH_REBLOCKING to default of "ON"
setting HS_FDS_FETCH_ROWS to default of "100"
setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
setting HS_FDS_MAP_NCHAR to default of "TRUE"
setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
setting HS_FDS_QUERY_DRIVER to default of "TRUE"
setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
Parameter HS_FDS_QUOTE_IDENTIFIER is not set
setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
Default value of 32 assumed for HS_FDS_SQLLEN_INTERPRETATION
setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
setting HS_FDS_DELAYED_OPEN to default of "TRUE"
setting HS_FDS_WORKAROUNDS to default of "0"
Exiting hgosdip, rc=0
ORACLE_SID is "DAVID"
Product-Info:
Port Rls/Upd:1/0 PrdStat:0
Agent:Oracle Database Gateway for ODBC
Facility:hsa
Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:DAVID
Exiting hgogprd, rc=0
hostmstr: 2057416704: HOA After hoagprd
hostmstr: 2057416704: HOA Before hoainit
Entered hgoinit
HOCXU_COMP_CSET=1
HOCXU_DRV_CSET=178
HOCXU_DRV_NCHAR=1000
HOCXU_DB_CSET=178
HOCXU_SEM_VER=102000
Entered hgolofn at 2012/05/31-13:11:25
Exiting hgolofn, rc=0 at 2012/05/31-13:11:25
HOSGIP for "HS_OPEN_CURSORS" returned "50"
HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
Invalid value of 32 given for HS_FDS_SQLLEN_INTERPRETATION
treat_SQLLEN_as_compiled = 1
Exiting hgoinit, rc=0 at 2012/05/31-13:11:25
hostmstr: 2057416704: HOA After hoainit
hostmstr: 2057416704: HOA Before hoalgon
Entered hgolgon at 2012/05/31-13:11:25
reco:0, name:SYSTEM, tflag:0
Entered hgosuec at 2012/05/31-13:11:25
Exiting hgosuec, rc=0 at 2012/05/31-13:11:25
HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
using SYSTEM as default value for "HS_FDS_DEFAULT_OWNER"
HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
Entered hgocont at 2012/05/31-13:11:25
HS_FDS_CONNECT_INFO = "Prueba_Foxpro"
RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
Entered hgogenconstr at 2012/05/31-13:11:25
dsn:Prueba_Foxpro, name:SYSTEM
optn:
Entered hgocip at 2012/05/31-13:11:25
dsn:Prueba_Foxpro
Exiting hgocip, rc=0 at 2012/05/31-13:11:25
##>Connect Parameters (len=39)<##
## DSN=Prueba_Foxpro;
#! UID=SYSTEM;
#! PWD=*
Exiting hgogenconstr, rc=0 at 2012/05/31-13:11:25
Entered hgopoer at 2012/05/31-13:11:26
hgopoer, line 233: got native error 0 and sqlstate 01000; message follows...
[*Microsoft][Administrador de controladores ODBC] El controlador no admite una versión de ODBC distinta de la que la necesita la aplicación (vea SQLSetEnvAttr)*. {01000}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:26
hgocont, line 2686: calling SqlDriverConnect got sqlstate 01000
Entered hgolosf at 2012/05/31-13:11:26
ODBC Function-Available-Array 0xFFFE 0x00FF 0xFF00 0xAA7F 0x03B3 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0xEE00 0x395C
Exiting hgolosf, rc=0 at 2012/05/31-13:11:26
DriverName:VFPODBC.DLL, DriverVer:06.86.0001
DBMS Name:Visual FoxPro, DBMS Version:03.00.0000
Exiting hgocont, rc=0 at 2012/05/31-13:11:26 with error ptr FILE:hgocont.c LINE:2686 ID:SQLDriverConnect
Entered hgopoer at 2012/05/31-13:11:26
hgopoer, line 233: got native error 0 and sqlstate HYC00; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Driver not capable {HYC00}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:26
hgolgon, line 795: calling SQLGetInfo got sqlstate HYC00
SQLGetInfo returns N for SQL_CATALOG_NAME
Exiting hgolgon, rc=0 at 2012/05/31-13:11:26 with error ptr FILE:hgolgon.c LINE:795 ID:GetInfo: Support catalogs
hostmstr: 2036506624: HOA After hoalgon
RPC Calling nscontrol(0), rc=0
hostmstr: 2036506624: RPC Before Upload Caps
hostmstr: 2036506624: HOA Before hoaulcp
Entered hgoulcp at 2012/05/31-13:11:26
Entered hgowlst at 2012/05/31-13:11:26
Exiting hgowlst, rc=0 at 2012/05/31-13:11:26
SQLGetInfo returns 0x0 for SQL_OWNER_USAGE
TXN Capable:1, Isolation Option:0x2
SQLGetInfo returns 0 for SQL_MAX_SCHEMA_NAME_LEN
SQLGetInfo returns 128 for SQL_MAX_TABLE_NAME_LEN
SQLGetInfo returns 0 for SQL_MAX_PROCEDURE_NAME_LEN
SQLGetInfo returns ` (0x60) for SQL_IDENTIFIER_QUOTE_CHAR
SQLGetInfo returns Y for SQL_COLUMN_ALIAS
16 instance capabilities will be uploaded
capno:1964, context:0x00000000, add-info: 0
capno:1989, context:0x00000000, add-info: 0
capno:1991, context:0x0001ffff, add-info: 0
capno:1992, context:0x0001ffff, add-info: 1, translation:"`"
capno:3042, context:0x00000000, add-info: 0, translation:"42"
capno:3047, context:0x00000000, add-info: 0, translation:"57"
capno:3049, context:0x00000000, add-info: 0, translation:"59"
capno:3050, context:0x00000000, add-info: 0, translation:"60"
capno:3066, context:0x00000000, add-info: 0
capno:3067, context:0x00000000, add-info: 0
capno:3068, context:0x00000000, add-info: 0
capno:3069, context:0x00000000, add-info: 0
capno:3500, context:0x00000001, add-info: 91, translation:"42"
capno:3501, context:0x00000001, add-info: 93, translation:"57"
capno:3502, context:0x00000001, add-info: 107, translation:"59"
capno:3503, context:0x00000001, add-info: 110, translation:"60"
Exiting hgoulcp, rc=0 at 2012/05/31-13:11:26
hostmstr: 2036506624: HOA After hoaulcp
hostmstr: 2036506624: RPC After Upload Caps
hostmstr: 2036506624: RPC Before Upload DDTR
hostmstr: 2036506624: HOA Before hoauldt
Entered hgouldt at 2012/05/31-13:11:27
NO instance DD translations were uploaded
Exiting hgouldt, rc=0 at 2012/05/31-13:11:27
hostmstr: 2036506624: HOA After hoauldt
hostmstr: 2036506624: RPC After Upload DDTR
hostmstr: 2036506624: RPC Before Begin Trans
hostmstr: 2036506624: HOA Before hoabegn
Entered hgobegn at 2012/05/31-13:11:27
tflag:0 , initial:1
hoi:0x12f094, ttid (len 54) is ...
00: 54455354 2E524547 52455353 2E524442 [TEST.REGRESS.RDB]
10: 4D532E44 45562E55 532E4F52 41434C45 [MS.DEV.US.ORACLE]
20: 2E434F4D 2E663033 63383037 372E392E [.COM.f03c8077.9.]
30: 34342E37 3735 [44.775]
tbid (len 10) is ...
0: 09002C00 07030000 0104 [..,.......]
Exiting hgobegn, rc=0 at 2012/05/31-13:11:27
hostmstr: 2036506624: HOA After hoabegn
hostmstr: 2036506624: RPC After Begin Trans
hostmstr: 2036506624: RPC Before Describe Table
hostmstr: 2036506624: HOA Before hoadtab
Entered hgodtab at 2012/05/31-13:11:27
count:1
table: CENTROS
Entered hgopdsc at 2012/05/31-13:11:27
Describing procedure CENTROS
Output hoada
hgopdsc, line 1426: NO hoada to print
Exiting hgopdsc, rc=942 at 2012/05/31-13:11:27
The hoada for table CENTROS follows...
hgodtab, line 904: NO hoada to print
Exiting hgodtab, rc=0 at 2012/05/31-13:11:27
hostmstr: 2036506624: HOA After hoadtab
hostmstr: 2036506624: RPC After Describe Table
hostmstr: 2036506624: RPC Before SQL Bundling
hostmstr: 2036506624: HOA Before hoxpars
Entered hgopars, cursor id 1 at 2012/05/31-13:11:27
type:0
SQL text from hgopars, id=1, len=23 ...
00: 53454C45 4354202A 2046524F 4D202243 [SELECT * FROM "C]
10: 454E5452 4F5322 [ENTROS"]
Exiting hgopars, rc=0 at 2012/05/31-13:11:28
hostmstr: 2036506624: HOA After hoxpars
hostmstr: 2036506624: RPC After SQL Bundling
hostmstr: 2036506624: RPC Before SQL Bundling
hostmstr: 2036506624: HOA Before hoxopen
Entered hgoopen, cursor id 1 at 2012/05/31-13:11:28
hgoopen, line 87: NO hoada to print
Deferred open until first fetch.
Exiting hgoopen, rc=0 at 2012/05/31-13:11:28
hostmstr: 2036506624: HOA After hoxopen
hostmstr: 2036506624: HOA Before hoxdscr
Entered hgodscr, cursor id 1 at 2012/05/31-13:11:28
Allocate hoada @ 023E983C
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]*Descriptor type out of range* {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:1(codcen): dtype:1 (CHAR), prc/scl:8/0, nullbl:0, octet:8, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:2(litcen): dtype:1 (CHAR), prc/scl:45/0, nullbl:0, octet:45, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:3(codpos): dtype:1 (CHAR), prc/scl:5/0, nullbl:0, octet:5, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:4(codprov): dtype:1 (CHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:5(codmun): dtype:1 (CHAR), prc/scl:3/0, nullbl:0, octet:3, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:6(codecol): dtype:1 (CHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:7(codesin): dtype:1 (CHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:8(cb): dtype:1 (CHAR), prc/scl:4/0, nullbl:0, octet:4, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:9(cs): dtype:1 (CHAR), prc/scl:4/0, nullbl:0, octet:4, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:10(digitocon): dtype:1 (CHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:11(cuenta): dtype:1 (CHAR), prc/scl:10/0, nullbl:0, octet:10, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopcda at 2012/05/31-13:11:28
Column:12(solar): dtype:2 (NUMERIC), prc/scl:5/0, nullbl:0, octet:10, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopcda at 2012/05/31-13:11:28
Column:13(construido): dtype:2 (NUMERIC), prc/scl:5/0, nullbl:0, octet:10, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:14(domicen): dtype:1 (CHAR), prc/scl:40/0, nullbl:0, octet:40, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:15(telef): dtype:1 (CHAR), prc/scl:11/0, nullbl:0, octet:11, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:16(fax): dtype:1 (CHAR), prc/scl:11/0, nullbl:0, octet:11, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:17(cif): dtype:1 (CHAR), prc/scl:11/0, nullbl:0, octet:11, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:18(litloc): dtype:1 (CHAR), prc/scl:30/0, nullbl:0, octet:30, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
hgodscr, line 910: Printing hoada @ 023E983C
MAX:18, ACTUAL:18, BRC:100, WHT=5 (SELECT_LIST)
hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
1 CHAR N 8 8 0/ 0 0 0 200 codcen
1 CHAR N 45 45 0/ 0 0 0 200 litcen
1 CHAR N 5 5 0/ 0 0 0 200 codpos
1 CHAR N 2 2 0/ 0 0 0 200 codprov
1 CHAR N 3 3 0/ 0 0 0 200 codmun
1 CHAR N 2 2 0/ 0 0 0 200 codecol
1 CHAR N 2 2 0/ 0 0 0 200 codesin
1 CHAR N 4 4 0/ 0 0 0 200 cb
1 CHAR N 4 4 0/ 0 0 0 200 cs
1 CHAR N 2 2 0/ 0 0 0 200 digitocon
1 CHAR N 10 10 0/ 0 0 0 200 cuenta
3 DECIMAL N 7 7 5/ 0 0 0 0 solar
3 DECIMAL N 7 7 5/ 0 0 0 0 construido
1 CHAR N 40 40 0/ 0 0 0 200 domicen
1 CHAR N 11 11 0/ 0 0 0 200 telef
1 CHAR N 11 11 0/ 0 0 0 200 fax
1 CHAR N 11 11 0/ 0 0 0 200 cif
1 CHAR N 30 30 0/ 0 0 0 200 litloc
Exiting hgodscr, rc=0 at 2012/05/31-13:11:28 with error ptr FILE:hgodscr.c LINE:615 ID:Transfer Octet Length
hostmstr: 2036506624: HOA After hoxdscr
hostmstr: 2036506624: RPC After SQL Bundling
hostmstr: 2036506624: RPC Before SQL Bundling
hostmstr: 2036506624: HOA Before hoxclse
Entered hgoclse, cursor id 1 at 2012/05/31-13:11:28
Exiting hgoclse, rc=0 at 2012/05/31-13:11:28
hostmstr: 2036506624: HOA After hoxclse
hostmstr: 2036506624: HOA Before hoadafr
Entered hgodafr, cursor id 1 at 2012/05/31-13:11:28
Free hoada @ 023E983C
Exiting hgodafr, rc=0 at 2012/05/31-13:11:28
hostmstr: 2036506624: HOA After hoadafr
hostmstr: 2036506624: HOA Before hoxpars
Entered hgopars, cursor id 1 at 2012/05/31-13:11:28
type:0
SQL text from hgopars, id=1, len=235 ...
00: 53454C45 43542041 312E2263 6F646365 [SELECT A1."codce]
10: 6E222C41 312E226C 69746365 6E222C41 [n",A1."litcen",A]
20: 312E2263 6F64706F 73222C41 312E2263 [1."codpos",A1."c]
30: 6F647072 6F76222C 41312E22 636F646D [odprov",A1."codm]
40: 756E222C 41312E22 636F6465 636F6C22 [un",A1."codecol"]
50: 2C41312E 22636F64 6573696E 222C4131 [,A1."codesin",A1]
60: 2E226362 222C4131 2E226373 222C4131 [."cb",A1."cs",A1]
70: 2E226469 6769746F 636F6E22 2C41312E [."digitocon",A1.]
80: 22637565 6E746122 2C41312E 22736F6C ["cuenta",A1."sol]
90: 6172222C 41312E22 636F6E73 74727569 [ar",A1."construi]
A0: 646F222C 41312E22 646F6D69 63656E22 [do",A1."domicen"]
B0: 2C41312E 2274656C 6566222C 41312E22 [,A1."telef",A1."]
C0: 66617822 2C41312E 22636966 222C4131 [fax",A1."cif",A1]
D0: 2E226C69 746C6F63 22204652 4F4D2022 [."litloc" FROM "]
E0: 43454E54 524F5322 204131 [CENTROS" A1]
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 200 and sqlstate 42000; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Syntax error. {42000,NativeErr = 200}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgopars, line 457: calling SQLPrepare got sqlstate 42000
Exiting hgopars, rc=28500 at 2012/05/31-13:11:28 with error ptr FILE:hgopars.c LINE:487 ID:Prepare stmt
hostmstr: 2036506624: HOA After hoxpars
hostmstr: 2036506624: RPC After SQL BundlingThe first issue I see is that Oracle 10.2.0.1 was never certified with DG4ODBC 11. Only 10.2.0.4 or 10.2.0.5 can be used as the Oracle database HS kernel requires a gateway compatibility patch and this patch is included in 10.2.0.4 or 10.2.0.5 Oracle database patch set.
Then another error in the trace is that for each column description you have an error:
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]*Descriptor type out of range* {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
It seems it is not critical as DG4ODBC continues, but a more detailed analysis would require an ODBC trace.
When looking at the table description it seems the column names are all in lower letters, for example: solar. So commonly Dg4ODBC needs to quote the names
00: 53454C45 43542041 312E2263 6F646365 [SELECT A1."codce]
10: 6E222C41 312E226C 69746365 6E222C41 [n",A1."litcen",A]
20: 312E2263 6F64706F 73222C41 312E2263 [1."codpos",A1."c]
30: 6F647072 6F76222C 41312E22 636F646D [odprov",A1."codm]
40: 756E222C 41312E22 636F6465 636F6C22 [un",A1."codecol"]
50: 2C41312E 22636F64 6573696E 222C4131 [,A1."codesin",A1]
60: 2E226362 222C4131 2E226373 222C4131 [."cb",A1."cs",A1]
70: 2E226469 6769746F 636F6E22 2C41312E [."digitocon",A1.]
80: 22637565 6E746122 2C41312E 22736F6C ["cuenta",A1."sol]
90: 6172222C 41312E22 636F6E73 74727569 [ar",A1."construi]
A0: 646F222C 41312E22 646F6D69 63656E22 [do",A1."domicen"]
B0: 2C41312E 2274656C 6566222C 41312E22 [,A1."telef",A1."]
C0: 66617822 2C41312E 22636966 222C4131 [fax",A1."cif",A1]
D0: 2E226C69 746C6F63 22204652 4F4D2022 [."litloc" FROM "]
E0: 43454E54 524F5322 204131 [CENTROS" A1]
and according to the trace the FoxPro ODBC driver doesn't like these quotes and reports a syntax error.
So this explains at least why select codcen from centros@fox1 will fail. In general the Oracle database is case insensitive and translates all object names to upper case and the select it will pass to the foreign database would be similar to:
select CODCEN from CENTROS => which will fail as FoxPro is case sensitive. So the error message ORA-00904 (missing column name) is correct and the statement you need to use is:
select "codcen" from centros@fox1;
But this might lead again to the Syntax error you got earlier => You need to check which sign (single quote, back tick, double quote) Foxpro uses to quote object names and then set the gateway parameter HS_FDS_QUOTE_IDENTIFIER accordingly.
To check which character can be used to quote column/table names you might use the Microsoft ODBc test utility which was distributed in the old MDAC 2.8:
http://www.microsoft.com/downloads/details.aspx?familyid=5067faf8-0db4-429a-b502-de4329c8c850&displaylang=en
Edited by: kgronau on Jun 1, 2012 7:27 AM
If you know where I can download the MS FoxPro ODBC driver, please let me know and I'll check. -
MS Access .mdb connection using ODBC could not resolve the connect identifier ORA-12154
Dear All,
I'm trying to use MS Access .mdb file as source to my OWB application. I need to connect to the ms access .mdb file first using odbc. Here are the step I do:
1. Define ODBC connectifity
control panel -> admin tools -> data sources -> System DSN -> Add
Choose Microsoft Access Driver (*.mdb) -> Finish
Data source name: msaccess -> Database: Select -> .mdb file location (C:\MSAccess\att2000..mdb)
2. Configure Listener
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll")
(SID_DESC =
(SID_NAME = msaccess
(ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
(PROGRAM = hsodbc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(SID_DESC =
(SID_NAME = msaccess
(ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
(PROGRAM = hsodbc)
ADR_BASE_LISTENER = C:\app\Administrator
3. Configure Oracle HS
File name initmsaccess.ora
# HS init parameters
HS_FDS_CONNECT_INFO = msaccess
HS_FDS_TRACE_LEVEL = 1
# Environment variables required for the non-Oracle system
#set <envvar>=<value>
4. Edit tnsnames.ora
msaccess=
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SID=msaccess)
(SERVICE_NAME=msaccess)
(HS=OK)
5. create database link
create database link msaccess using 'msaccess';
6. Run a query to test connection
SQL> select * from departments@msaccess;
ERROR at line 1:
ORA-12154: TNS:could not resolve the connect identifier specified
I check the tns using tnsping msaccess, it return
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhos
t)(PORT = 1521)) (CONNECT_DATA = (SID=msaccess) (SERVICE_NAME=msaccess)) (HS=OK))
OK (120 msec)
Any body know how to solve this?
Best Regards
Akhmad H GumasKlaus,
just fix the point you mention.
here are the execution result:
C:\>C:\app\Administrator\product\11.2.0\dbhome_1\bin\lsnrctl status
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 05-AUG-2014 17:10
:23
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date 05-AUG-2014 17:09:18
Uptime 0 days 0 hr. 1 min. 5 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\app\Administrator\product\11.2.0\dbhome_1\network\a
dmin\listener.ora
Listener Log File c:\app\administrator\diag\tnslsnr\eric-fd165f15bb\list
ener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "msaccess" has 1 instance(s).
Instance "msaccess", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
C:\>C:\app\Administrator\product\11.2.0\dbhome_1\bin\dg4odbc
Oracle Corporation --- TUESDAY AUG 05 2014 17:12:18.509
Heterogeneous Agent Release 11.2.0.1.0 - Production Built with
Oracle Database Gateway for ODBC
C:\>C:\app\Administrator\product\11.2.0\dbhome_1\bin\tnsping msaccess
TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 05-AUG-2
014 17:12:48
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhos
t)(PORT = 1521)) (CONNECT_DATA = (SID=msaccess)) (HS=OK))
OK (20 msec)
Looks like the problem is the missing closing bracket. Finally the query work after i fix it. Thanks a lot Klaus
Best Regards
Akhmad H Gumas -
Need to load large data set from Oracle table onto desktop using ODBC
I don't have TOAD nor any other tool for querying the database. I'm wondering how I can load a large data set from an Oracle table onto my desktop using Excel or Access or some other tool using ODBC or not using ODBC if that's possible. I need results to be in a .csv file or something similar. Speed is what is important here. I'm looking to load more than 1 million but less than 10 million records at once. Thanks.
hillelhalevi wrote:
I don't have TOAD nor any other tool for querying the database. I'm wondering how I can load a large data set from an Oracle table onto my desktop using Excel or Access or some other tool using ODBC or not using ODBC if that's possible. I need results to be in a .csv file or something similar. Speed is what is important here. I'm looking to load more than 1 million but less than 10 million records at once. Thanks.
Use Oracle's free Sql Developer
http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html
You can just issue a query like this
SELECT /*csv*/ * FROM SCOTT.EMP
Then just save the results to a file
See this article by Jeff Smith for other options
http://www.thatjeffsmith.com/archive/2012/05/formatting-query-results-to-csv-in-oracle-sql-developer/ -
How i install oracle client with ODBC using response file method
Hi,
I have managed to create a response file using OUI. Currently, I do not know what are the methods which i can install a group of computers using this response file. Any advise
Thanks in advance.
Best regards,
TonyPresumably, any method that allows you to remotely run code on the group of computers would allow you to do a silent install of the Oracle client and ODBC driver. I know Microsoft and various third parties sell such tools, but I'm not enough of a Windows admin to know anything about the relative benefits of the products in this category.
Justin -
Not able to use SRW.USER_EXIT in oracle forms.
Hi,
Below is my requirement in oracle forms:
I have a query form, which has Inventory Category Set field and Category 'From' and 'To' fields. Based on the values selected by the user for Category Set, possible combinations for Categories should be displayed in Cateogory 'From' and 'To' fields. Upon clicking the 'Find' button, only the items which belong to this category set and the range of Cateogies selected should be displayed.
Note that 'Item Categories' Key flex field should be used here. Number of Segments for each Category set will differ. To acheive this, I have attached the Key flex field to the Cateogory 'From' and 'To' fields.
In the PRE-QUERY trigger of the datablock, I have to use where condition to filter the items based on the category sets and categories. This where condition should be generated dynamically based on the search criteria.
In oracle report, we have provision to use the below USER_EXIT to get the where condition to append to my PRE-QUERY statement.
SRW.USER_EXIT('FND FLEXSQL CODE = "MCAT"
OUTPUT = ":P_WHERE_CAT"
APPL_SHORT_NAME= "INV"
MODE = "WHERE"
DISPLAY = "ALL"
NUM = ":P_STRUCT_NUM"
TABLEALIAS = "MCA"
OPERATOR = "BETWEEN"
OPERAND1 = ":P_CATEGORY_FROM"
OPERAND2 = ":P_CATEGORY_TO"');
But in forms, I am not able to use this USER_EXIT. Please let me know the alternate ways to get the where condition dynamically in forms.
Thank you in advance.
Regards,
KalyanRAISE APPLICATION_ERROR built-in is raised in a DB procedure/function or trigger.
You can write an ON-error trigger that will trap any DB error messages
or
You can use Dbms_Error_Code & Dbms_Error_Text for trapping the Error. -
I am using oracle as database and weblogic 4.5. I have copied the classes12.zip file in lib directory of weblogic. I am getting the error that oracle.sql.* and oracle.jdbc.driver.* not found when i am importing these packages in a jsp file. what i need to do to import oracle driver packages?I put it in the classpath also.
Please Advice!
Thanks in advance
AnuPamaHi Anupama,
First of all I would be surprised if you would not like to use the connection pooling feature of weblogic (in which case you might not be needing the import the classes directly), and would like to open direct connections to your database. Anyways for doing that I would recommend you to check out the readme doc that ships
along with the jdbc oracle (classes12.zip etc). I am giving an excerpt over here:
These are a few simple things that you should do in your JDBC program:
1. Import the necessary JDBC classes in your programs that use JDBC.
For example:
import java.sql.*;
import java.math.*;
2. Register the Oracle driver before before calling other JDBC APIs.
(This is not needed if you are using the JDBC Server-side Internal
Driver because registration is done automatically in the server.)
To register the Oracle driver, make sure the following statement
is executed at least once in your Java session:
DriverManager.registerDriver(
new oracle.jdbc.driver.OracleDriver());
3. Open a connection to the database with the getConnection call.
Different connection URLs should be used for different JDBC
drivers. The following examples demonstrate the different URLs.
For the JDBC OCI8 Driver:
Connection conn = DriverManager.getConnection(
"jdbc:oracle:oci8:@<database>",
"scott", "tiger");
where <database> is either an entry in tnsnames.ora or a SQL*net
name-value pair.
For the JDBC Thin Driver, or Server-side Thin Driver:
Connection conn = DriverManager.getConnection(
"jdbc:oracle:thin:@<database>",
"scott", "tiger");
where <database> is either a string of the form
<host>:<port>:<sid> or a SQL*net name-value pair.
For the JDBC Server-side Internal Driver:
Connection conn = DriverManager.getConnection(
"jdbc:oracle:kprb:");
Note that the trailing ':' character is necessary. When you use
the Server-side Internal Driver, you always connect to the
database you are executing in. You can also do this:
Connection conn
= new oracle.jdbc.driver.OracleDriver().defaultConnection();
Hope this helps,
Thanks,
Anupama wrote:
I am using oracle as database and weblogic 4.5. I have copied the classes12.zip file in lib directory of weblogic. I am getting the error that oracle.sql.* and oracle.jdbc.driver.* not found when i am importing these packages in a jsp file. what i need to do to import oracle driver packages?I put it in the classpath also.
Please Advice!
Thanks in advance
AnuPama--
Apurb Kumar -
Insert into oracle lob using php odbc
is there a way to insert a string > 4000 characters into an oracle lob using php without using oci8 extension? If so can somebody post some sample code to do it?
Perhaps you could externally invoke Oracle's SQL Loader utility.
What are you trying to achieve?
-- cj -
Error while accessing excel file using ODBC
Hi
I am getting the below error message while accessing excel sheet using ODBC from Oracle:
ERROR at line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
Unable to retrieve text of NETWORK/NCR message 65535
ORA-02063: preceding 2 lines from EXCL
Can anyone help me on this...
Cheers
Pradeep
Message was edited by:
user634393Hi
Thank you.Is there a way to read a file which is existing in the war file.
Regards
Anand Mohan
"Wenjin Zhang" <[email protected]> wrote:
>
>In Weblogic, if your files are archived in a WAR, you cannot get an entry
>as individual
>file since it is only bytes in a large archive file. So getRealPath will
>give
>you null result. If you only want the path, try to use other getXXXPath,
>getURL,
>or getURI method. If you want to read the content, use getResource.
>
>
>"Anand" <[email protected]> wrote:
>>
>>Hi
>>I am having problem while accessing the file located in the server from
>>a JSP
>>page. I am not getting the RealPath from a JSP page using getRealPath(request.getServletpath()).
>>
>>The same code is working if the jsp placd under defaultwebApp directory
>>and not
>>working if i create a war and deploy the same.
>>
>>I am using weblogic server 7.0 trail version.I am setting the context
>>path also.
>>
>>Can any help me in this regard.
>>
>>Thank And Regards
>>
>>Anand Mohan
>
-
Retrieving data from OBIEE server using ODBC
Hello.
I am having difficulty retrieving data from OBIEE 11g using the ODBC connection. My intention is to read OBIEE Server data via a SQL statement issued from an Oracle database using gateways.
I have read and followed the material here:
http://download.oracle.com/docs/cd/E14571_01/bi.1111/e16364/odbc_data_source.htm#CACBFCJA
I have also tried this from Excel 2007, but have not succeeded:
http://gerardnico.com/wiki/dat/obiee/import_data_from_obiee_to_excel
I have setup a gateway in Oracle and a database link. Iknow it is connecting because when I change the password to something invalid, I get a message about not being able to connect due to username/password.
I have taken a query from Answers (the advanced tab) and tried running it from Sql Developer. The nsqserver.log file ends up with the following Notification:
[nQSError: 13013] Init block, 'DUAL Num (=3)', has more variables than the query select list.
As an experiment, I am using the SampleApp, and have generated the following query in Answers:
SELECT s_0, s_1, s_2, s_3 FROM (
SELECT
0 s_0,
"A - Sample Sales"."Products"."P3 LOB" s_1,
DESCRIPTOR_IDOF("A - Sample Sales"."Products"."P3 LOB") s_2,
"A - Sample Sales"."Base Facts"."1- Revenue" s_3
FROM "A - Sample Sales"
) djm ORDER BY 1, 2 ASC NULLS LAST
Is there a way to issue this query from a database client like SQL Developer? I have setup a database link called obiee via gateways to the ODBC connection, and add @obiee after the table name in the above query, but get the nqs error above.
Thanks for any help. I can provide addl info if such would be useful.
AriThat would explain my difficulty. I went to the link:
http://download.oracle.com/docs/cd/E14571_01/relnotes.1111/e10132/biee.htm#CHDIFHEE
that describes the deprecated client. I am confused by the statement there:
"one of the many widely available third-party ODBC/JDBC tools to satisfy previous NQClient functionality"
My understanding of ODBC is not very strong, so please bear with me. The statement above is talking about a client tool, but there also needs to be an ODBC driver available for BI Server. I may be a bit confused between driver and client, and what piece nq handles. I don't understand the comment about third-party ODBC when it comes to the driver piece, as that must be coded for BI Server. When I go to create a new DSN, the only driver that makes sense for me to select is:
Oracle BI Server 11g_OH<id>
That all works fine to setup a DSN. But I am unable to connect from Excel, etc., using this DSN.
Put more simply, should I be able to connect to BI Server via ODBC - not using the deprecated BI ODBC client, but using other clients? Is there ODBC connectivity at all in OBIEE 11g?
Thanks,
Ari -
What differences where implemented to Oracle 10G Clients ODBC connectivity drivers between 10G Release 1 and Release 2 concerning datatypes?
I have an application that performs a qualified read returning a group of records (this is successful) and then performs a delete on each record read. No errors occur on completion of the application. When using release 1, the records are physically removed. Using release 2 a portion of the same group of records are not removed. The key for the table is a numeric field with six decimal places (not my design). My applications C code defines the field as a DOUBLE.I certainly agree that something changed. The question is whether it was a change in function or not. With a lot of these sorts of errors, tracking down the "source" of the error involves finding a change in a piece of code that allowed what was always possible to actually occur. That is, you may have two pieces of code that are functionally identical but that end up allowing the sorts of "round off" errors that are always possible when using doubles. The driver might, for example, now be going down a code path where it shifts a number to the right or left rather than dividing or multiplying by 2, which may make this sort of thing more likely. Functionally, given that doubles don't guarantee infinite precision, these operations are identical, but one may be significantly more likely to cause problems.
Is your application using the ODBC API directly? Or is it going through a higher-level API? If you are going through ODBC directly, you might look to see whether the data types that are being returned by the driver to your code are the same across driver versions.
Justin -
MS SQL Server/VB6 to Oracle 8i using OBDC
OMW,
I presently connect to MS SQL in Visual Basic 6.0 using ODBC. I
would like to connect to Oracle in the same manner. Does the OMW
do this, and if so are there any things I should know before
attempting to use it in this application? I have purchased and
installed a trial version of Oracle 8i, but I am experiencing
some slight difficulties in the way Oracle handles Resultsets
(RDO Components) compared to MS SQL.
thanks
g
nullGary,
There is some information in the faq (reproduced below), showing
how the application may not need to be changed.
Some of the functionality provided by the intersolve driver is
now available in the oracle 8.1.5.3 odbc driver.
Turloch
Oracle Migration Workbench team
from the faq (shipped with the workbench):
How are result sets/dynasets returned to the calling program?
The Oracle Migration Workbench parser adds an extra argument
of type REF CURSOR for result sets/dynasets. This type is
understood and can be
manipulated by both PL/SQL and Oracle JDBC. Oracle8 release
8.0.5 ODBC drivers support REF CURSORs which means that the
additional argument must
be explicitly handled by the application, and the client
application code must be changed. However, some third-party
vendors such as Intersolv supply ODBC
drivers for Oracle that support REF CURSORs and can, in
addition, implicitly make use of REF CURSORs for using result
sets/dynasets. Therefore, no
change is required in the client application code. This is
illustrated in the following examples of an MS SQL Server stored
procedure and its equivalent Oracle
package and stored procedure as generated by the Oracle
Migration Workbench parser.
MS SQL Server Stored Procedure
CREATE PROCEDURE byroyalty
AS
select au_id from titleauthor
GO
Oracle8i Package and Stored Procedure
PACKAGE BYROYALTYPkg AS
TYPE RT1 IS RECORD (
au_id titleauthor.au_id%TYPE
TYPE RCT1 IS REF CURSOR RETURN RT1;
END;
PROCEDURE byroyalty(
RC1 IN OUT byroyaltyPkg.RCT1)
AS
StoO_selcnt INTEGER;
StoO_error INTEGER;
StoO_rowcnt INTEGER;
StoO_errmsg VARCHAR2(255);
StoO_sqlstatus INTEGER;
BEGIN
OPEN RC1 FOR
SELECT au_id FROM titleauthor;
END byroyalty;
The following example illustrates the typical ODBC code used
by Intersolv to call the above MS SQL Server stored procedure.
This code also works for the
above Oracle8i package and stored procedure. Note that error
handling must be added in a real application:
SQLPrepare(...,'{call byroyalty()}',...)
SQLExecute()
SQLBindCol()
SQLFetch()
Comments:
SQLPrepare(...,'{call byroyalty()}',...) is the ODBC SQL
syntax used to execute stored procedures.
SQLExecute()executes the stored procedure.
SQLBindCol()assigns storage for result column 1 in the
result set (au_id).
SQLFetch() fetches the first record from the result set
generated by the stored procedure.
The following examples illustrate how to call the above MS
SQL Server stored procedure with result sets/dynasets in Visual
Basic using DAO and RDO on
top of ODBC. This code works for Oracle8i packages and
stored procedures if you use an Intersolv ODBC driver to
understand Oracle REF CURSORs.
DAO
Private Sub Command2_Click()
Dim sSql As String
sSql = "{call byroyalty()}"
'In Oracle ODBC driver use refcusor argument to get
result set
Set rCustomers = dbsServer.OpenRecordset(sSql,
dbOpenDynamic)
Text4 = rCustomers.Fields(0)
theend:
End Sub
Please note, this example assumes that a DAO connection has
been set up already.
RDO
Private Sub Command1_Click()
StrSql = "{call byroyalty}"
'in oracle odbc driver uses refcusor argument to get
result set
Set Ps = connx1.CreatePreparedStatement("PsTest",
StrSql)
Set Rs = Ps.OpenResultSet(rdOpenStatic
Text3 = Rs!au_id
Rs.Close
End Sub
Please note, this example assumes that an RDO connection has
been set up already.
Gary (guest) wrote:
: OMW,
: I presently connect to MS SQL in Visual Basic 6.0 using ODBC. I
: would like to connect to Oracle in the same manner. Does the
OMW
: do this, and if so are there any things I should know before
: attempting to use it in this application? I have purchased and
: installed a trial version of Oracle 8i, but I am experiencing
: some slight difficulties in the way Oracle handles Resultsets
: (RDO Components) compared to MS SQL.
: thanks
: g
Oracle Technology Network
http://technet.oracle.com
null -
How to use ODBC SQLDriverConnect() without using tnsnames.ora file
I have an ODBC application that connects to an Oracle 10g database. Currently, my SQLDriverConnect() function call uses the following connection string:
DRIVER={Oracle in OraClient10g_home1}; DBQ=MyDB.world; DBA=W; UID=foo; PWD=bar
This requires an entry in the tnsnames.ora file that looks like this:
MyDB.world =
(DESCRIPTION = (ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)(Host = server1.intel.com)(Port = 1521)
(ADDRESS =
(PROTOCOL = TCP)(Host = server2.intel.com)(Port = 1521)
(ADDRESS =
(PROTOCOL = TCP)(Host = server3.intel.com)(Port = 1521)
(ADDRESS =
(PROTOCOL = TCP)(Host = server4.intel.com)(Port = 1521)
(LOAD_BALANCE = yes)
(CONNECT_DATA = (SERVER = DEDICATED)
(SERVICE_NAME = MY_SRVC))
However, I would really like to be able to connect using ODBC without having to create that entry in the tnsnames.ora file. I have tried to substitute the DBQ=MyDB.world with the entire (DESCRIPTION=..... string from the original tnsnames.ora file, but it returns the error:
ORA-12154: TNS: Could not resolve the connect identifier specified.
I have heard others are able to use sqlplus with no tnsnames.ora file and the do specify the entire (DESCRIPTION=.... string on the sqlplus connection string, but is this possible to do using the ODBC SQLDriverConnect() function? If so, do I need to use a different keyword/value pair other than DBQ=?
Any help on this would be greatly appreciated.
Thank you.How would that work in a load balanced configuration? Take a closer look at the tnsnames.ora example I included in my original post. I have 4 ADDRESS= sections to denote 4 servers that are part of the load balanced environment.
Also, I'm not familiar with that syntax, I need to use the syntax supported by the SQLDriverConnect() API function, which looks like this:
DRIVER={Oracle in OraClient10g_home1}; DBQ=MyDB.world; DBA=W; UID=foo; PWD=bar
I don't know as SQLDriverConnect() would accept an alternative syntax. But the more important issue here is the ability to specify those 4 servers in the load balanced configuration as indicated by that tnsnames.ora entry.
Maybe you are looking for
-
Hello, my old 2x2Ghz PM G5 (late2004) doesn't launch the boot sequence: - when pushing power button, the blue led turn ON as long as I keep it pushed. If not pushed, it light off but yet the fan are running. - no chime - the fans turn on normally and
-
There is no mode switcher on my Audio Console launcher.
I have the Soundblaster X-Fi Extreme card and downloaded some time ago the console launcher. The application on the site says the version currently available dates from 2007. I open up the launcher but do not have the modes tab at all. Why is that? H
-
Frozen blurred screen on Macbook Pro 15"
My daughter has my old Macbook Pro 15" computer. I went to a new unit when it was unable to be updated to a newer version of the OS. If my memory serves correctly it is running Snow Leopard. In any case, her daughter put a DVD in to watch and it st
-
Ever since I upgraded to the most recent version of iTunes, my laptop has gone extremely slow when iTunes is running (i'm now using winamp). The CPU usage spikes from 80% up to 95-100%. My music is stored on an external hard drive, the laptop is an I
-
How can i change the language on an Aplle MacBook Pro?
How can i change the language on an aplle macbook pro?