Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] create oracle table with varchar2

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] create oracle table with varchar2
 Login/Join
 
Member
posted
Hi all

I'm trying to create an oracle table with varchar2 and I can't get it done.

As an example I created a small simiulation with the CAR DB:

 -SET &ECHO				= 'ALL';


-SET &ORACLE_DB			= 'DB01';
-SET &ORACLE_TABLE		= 'CAR05';
-SET &ORACLE_USER		= 'USR01';

ENGINE SQLORA SET DEFAULT_CONNECTION &ORACLE_DB
-*ENGINE SQLORA SET ORACHAR VAR
-RUN

TABLE FILE CAR
PRINT DEALER_COST
BY COUNTRY
ON TABLE HOLD AS &ORACLE_USER.EVAL.&ORACLE_TABLE.EVAL FORMAT SQLORA
ON TABLE SET ASNAMES ON

END
-RUN

 


But the Country still is a field with type CHAR (length 10) and just filling the the rest with spaces.

'JAPAN' is not 5 characters long but 'JAPAN ' 10 characters (because of the 5 spaces at the end).

Many thanks for your help.

WF8.0.0.7 - Oracle 11.2 UTF8

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8.1.0.5 (Server + Client)
Windows 2012 R2
BW, Oracle, Excel, PDF, HTML
 
Posts: 23 | Registered: May 28, 2013Report This Post
Member
posted Hide Post
hmmm, I guess I just forgot to DEFINE it first. will do some test tomorrow and add a comment here


WebFOCUS 8.1.0.5 (Server + Client)
Windows 2012 R2
BW, Oracle, Excel, PDF, HTML
 
Posts: 23 | Registered: May 28, 2013Report This Post
Guru
posted Hide Post
WFtESTER,

I am following up on your question about create oracle table with varchar2

Please review the following and see if it helps.

ORACHAR: Setting needed for other RDBMS

Let us know what your results are from the above and your other testing.

Thank you for participating in the Focal Point Forum.

Kindest regards,
Tamra Colangelo
Focal Point Moderator
Information Builders Inc.


WebFOCUS 8x - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5
 
Posts: 487 | Location: Toronto | Registered: June 23, 2009Report This Post
Member
posted Hide Post
Thank you Tamra for the link. I've found this information already and as you can see I have it in the first post mentioned (uncommented).

Id did different tests but it's always creating "CHAR" Types in the Oracle DB.

As a workaround I crate it with CHAR, change it than in the DB and in the master file to VARCHAR2 (and A*V) but I guess it should be possible without this workaround.

How would the above mentioned example with the CAR DB look like?

Many thanks for your help.

Best regards


WebFOCUS 8.1.0.5 (Server + Client)
Windows 2012 R2
BW, Oracle, Excel, PDF, HTML
 
Posts: 23 | Registered: May 28, 2013Report This Post
Member
posted Hide Post
You can tell the Oracle connector how you want to "map" WebFOCUS formats to the RDBMS formats.

I know you can do it when you create WebFOCUS synonyms from the RDBMS. There is probably a way to do it vice-versa. Try researching that on the oracle connector.

Sharon
 
Posts: 15 | Location: Houston TX | Registered: March 22, 2010Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] create oracle table with varchar2

Copyright © 1996-2020 Information Builders