Midtown Computer Systems Enterprise

Convenient web based access to our favorite computer related Usenet groups.
MCSE.MS is not affiliated with Microsoft corporation, Cisco corporation, Oracle, CompTIA or any other vendor.
Check our Computer Hardware forum | Cell Phones reviews

Go Back  MCSE > Oracle database reviews > Oracle Database


Oracle Database General discussion of Oracle servers.

 
 
Thread Tools Display Modes
  #1  
Old 11-19-06, 08:12 PM
bala
Like Operator with CLOB datatype
Hi Gurus

Scenario
MS Access Frontend Application with Oracle 8i Backend (linked tables)

Have a Select query with the 'Like' operator on a column with CLOB
datatype in the WHERE clause. It raises an error that Datatype is
inconsistent.

It is there any way to make the Like operator work on a column with
CLOD datatype without converting the column to Varchar2 Datatype.

Also is there any other way apart from using dbms_lob.instr? Since
these linked tables Stored Procedures or any backend functions can't be
used.

If using dbms_lob.instr is the only way, can you please give me an
example. There can be upto three to four column of CLOB datatype in the
where clause with LIKE operator with other filter conditions.

Thanx in advance

Regards
Bala

  #2  
Old 11-20-06, 09:12 AM
Steve Howard
Re: Like Operator with CLOB datatype

bala wrote:
> Hi Gurus
>
> Scenario
> MS Access Frontend Application with Oracle 8i Backend (linked tables)
>
> Have a Select query with the 'Like' operator on a column with CLOB
> datatype in the WHERE clause. It raises an error that Datatype is
> inconsistent.
>
> It is there any way to make the Like operator work on a column with
> CLOD datatype without converting the column to Varchar2 Datatype.
>
> Also is there any other way apart from using dbms_lob.instr? Since
> these linked tables Stored Procedures or any backend functions can't be
> used.
>
> If using dbms_lob.instr is the only way, can you please give me an
> example. There can be upto three to four column of CLOB datatype in the
> where clause with LIKE operator with other filter conditions.
>
> Thanx in advance
>
> Regards
> Bala


Hi Bala,

If at all possible, I would use passthrough queries from Access to
Oracle to actually use Oracle as an RDBMS, as linked tables treat it
essentially as a, ISAM database like Access. To confirm this, trace a
session where you pass your query criteria in Access against a linked
Oracle table. In the Oracle trace, you will never see the query
filter, as Access applies it *after* it gets back the entire resultset
(full table scan) from Oracle.

If you *have* to use the linked table approach, you could try creating
a view in Oracle (still ugly, IMHO), like the following:

create or replace view v1120 as select
dbms_lob.substr(c,dbms_lob.getlength(c)) c from t1120

Select against this linked view in Access (not the table), and you
should be able to use your query filter. There may be limitations to
this as well, but it's something to research.

HTH,

Steve

 


Popular forums
A+ (A Plus) Windows 2000 Active directory Exchange 2000 information store
Network+ Windows XP Security Exchange 2000 server administration
MCSE .NET Web services SQL Server
Cisco certification ASP .NET SQL 2000 Programming
Windows 2000 Registry .NET XML Viruses


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting INT datatype to BIGINT datatype PraveenMicrosoft SQL Server 1 12-15-05 06:13 AM
The Active Directory datatype cannot be converted to/from a native DS datatype Colm O'Connor via .NET 247General 0 03-07-05 06:20 PM
Reading CLOB Najm HashmiOracle Database 1 01-31-05 01:12 AM
CLOB Oradba LinuxOracle Database 6 08-05-04 07:07 PM
Clob fields MAXXSQL Server JBDC Driver 1 06-25-04 01:01 PM


All times are GMT -5. The time now is 04:29 AM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright MCSE braindumps 2003-2006