Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Oracle Server > Oracle external...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 16621 of 17418
Post > Topic >>

Oracle external view schema discrepancy

by strepxe@[EMAIL PROTECTED] May 27, 2008 at 12:38 AM

hi,

one of our customers has created an external view (view on external
base tables in a different schema / database type). we do a DESC on a
table or view to find out what the datatype is for a field using the
oracle account for our application.
- if it is a VARCHAR2 we treat it as a string
- if it is a NUMBER(x) we treat it as an integer
- if it is a NUMBER(x,y) we treat it as a float
we have noticed for external views the DESC can say that the field is
an integer but when we do a SELECT it produces float values for the
field. e.g. DESC on EXT_TBL_1 says FIELD01 is VARCHAR(5) but a SELECT
FIELD01 FROM EXT_TBL_1 gives values of 2,4,3.5,2.1.

my questions are:
- is this a bug or expected behaviour?
- is there anyway to 'force' the view to give a particular DESC for
fields at creation time?

thanks,

g
 




 4 Posts in Topic:
Oracle external view schema discrepancy
strepxe@[EMAIL PROTECTED]  2008-05-27 00:38:07 
Re: Oracle external view schema discrepancy
"fitzjarrell@[EMAIL   2008-05-27 13:23:55 
Re: Oracle external view schema discrepancy
strepxe@[EMAIL PROTECTED]  2008-05-27 21:41:49 
Re: Oracle external view schema discrepancy
strepxe@[EMAIL PROTECTED]  2008-05-28 11:08:43 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 15:37:44 CST 2008.