Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Different default 8i/9i column lengths when selecting pseudo columns...

RE: Different default 8i/9i column lengths when selecting pseudo columns...

From: Marquez, Chris <CMarquez_at_aarp.org>
Date: Wed, 2 Feb 2005 10:36:20 -0500
Message-ID: <7E412C164E6ECB468834A39F31E6E0D406689035@mbs06dc.na.aarp.int>

Lex

>>not relying on...version-specific tool behavior=20
>>explicitly telling the tool how you want to see your results?

I would agree 100%, but the script owner asked me "look into" the Oracle difference.
So let just stop this logical thought right there. :O|

>>- Change CURSOR_SHARING to EXACT.

Yup...had this issue with another database...but not the issue this time.

Tom

>>I just tried this in my 817 and 9203=20
>>queries return a row like your 817 example - that is 5 chars in
length.
>>Maybe you have a glogin.sql script...

The glogin.sql was the first place I looked...using the default 9i glogin.sql script?
AND I competed the difference between my 8i and 9i glogin.sql scripts only 4 diff's and I set or tried setting the equal...no help!?

Thanks for the test...I'm going to test on a different set of servers?

Chris Marquez
Oracle DBA
HEYMONitor(tm) - heymonitor.com
"Oracle Monitoring & Alerting Solution"

-----Original Message-----
From: Lex de Haan [mailto:lex.de.haan_at_naturaljoin.nl]=20 Sent: Wednesday, February 02, 2005 8:56 AM To: thomas.mercadante_at_labor.state.ny.us; Marquez, Chris; oracle-l_at_freelists.org
Subject: RE: Different default 8i/9i column lengths when selecting pseudo columns...

one more idea comes to mind: are you using cursor sharing, by any chance? see Metalink, bug 2092801, for an issue that might hit you ...

the workarounds listed in that bug are:

- Use the FORMAT command to set explicit column widths.
- Change CURSOR_SHARING to EXACT.
- Flush the shared pool.

cheers,
=20
Lex.
=20



Tom Kyte Seminar: http://www.naturaljoin.nl/events/seminars.html

=20

-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org]
On Behalf Of Mercadante, Thomas F
Sent: Wednesday, February 02, 2005 14:40 To: 'CMarquez_at_aarp.org'; oracle-l_at_freelists.org Subject: RE: Different default 8i/9i column lengths when selecting pseudo columns...

Chris,

I just tried this in my 817 and 9203 databases and get different results than you. Both my queries return a row like your 817 example - that is 5 chars in length.

Maybe you have a glogin.sql script that is setting a column length for you in 92 but not in 817?

Tom

-----Original Message-----
From: Marquez, Chris [mailto:CMarquez_at_aarp.org] Sent: Tuesday, February 01, 2005 5:19 PM To: oracle-l_at_freelists.org
Subject: Different default 8i/9i column lengths when selecting pseudo columns...

Different default 8i/9i column lengths when selecting pseudo columns...

This is the issue...
=3D20
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D= 3D=3D3D=3D3D=3D20
8.1.7 SQL*Plus=3D20 =
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D= 3D=3D3D=3D3D
SQL> select 'xxxxx' from dual;
'XXXX



xxxxx

=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D= 3D=3D3D=3D3D=3D20
9.2.0 SQL*Plus=3D20 =
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D= 3D=3D3D=3D3D=3D20
SQL> select 'xxxxx' from dual;

'XXXXX'



xxxxx

How do I change the default behavior in 9i to "stop" the column at the end of the last character of the pseudo columns (like 8i default)?

Thanks

Chris Marquez
Oracle DBA
HEYMONitor(tm) - heymonitor.com
"Oracle Monitoring & Alerting Solution"

--
http://www.freelists.org/webpage/oracle-l
--
http://www.freelists.org/webpage/oracle-l
--
http://www.freelists.org/webpage/oracle-l
Received on Wed Feb 02 2005 - 10:40:03 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US