Focal Point
Oracle Metadata

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/1381057331/m/8041039872

April 03, 2008, 12:40 PM
SRC
Oracle Metadata
Is there a way to point directly to an Oracle table without having a fully defined MFD. That is, something like the MFD or ACX file getting fieldnames directly from Oracle?


Dev Studio /7.6.11/7.7.02M
MVS/USS
AIX/SOLARIS
Windows WF Client 7.6.8/7.6.11
April 03, 2008, 04:36 PM
DLautzCinci
Instead of using the TABLE facility which uses the MAS/ACX metadata, you can do SQL passthru directly to the Oracle tables. After that, you reference a temporary table called SQLOUT which has metadata automatically generated based on your SQL answer set.

Here is an example of accessing Oracle Portal tables:

ENGINE SQLORA SET DEFAULT_CONNECTION ORATEST
SQL SQLORA PREPARE SQLOUT FOR
SELECT long_to_varchar2('select sql_statement from portal30.wwv_usr_dynamic_lov$ where lov_name = '||''''||LOV_NAME||'''', 4000) SQL_STATEMENT,
LOV_NAME
FROM PORTAL30.WWV_USR_DYNAMIC_LOV$
WHERE LOV_OWNER = 'CUSTOMER_APP'
;
END
TABLE FILE SQLOUT
PRINT SQL_STATEMENT
BY LOV_NAME
END
-RUN

Is this what you are looking for? Let me know if I can be of assistance.

Sincerely,

Doug L.
DLautzenheiser@PartnerPS.com


Personal: Windows 7.7.02
Clients: Variety
April 03, 2008, 10:36 PM
Piipster
You do have an option when generating the synonyms:

Dynamic columns
To specify that the Master File created for the synonym
should not contain column information, select the Dynamic
columns check box.
If this option is selected, column data is retrieved
dynamically from the data source at the time of the request.

I guess the other question is how do you want to make use of this?


ttfn, kp


Access to most releases from R52x, on multiple platforms.
April 04, 2008, 08:51 AM
jgelona
Piipster. That is interesting. I assume if you use Dynamic Columns, then using the GUI is out. Everything must be manually coded, correct?


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
April 07, 2008, 02:58 PM
SRC
I have used SQL passthru and created temp metadata but in this case I think the [NOCOLS] is what I'm lloking for. It does work with the GUI tools but it does not seem to recognize DBA Security rules. Still testing.

Thanks to all who replied.

Steve - UNC Chapel Hill


Dev Studio /7.6.11/7.7.02M
MVS/USS
AIX/SOLARIS
Windows WF Client 7.6.8/7.6.11
April 08, 2008, 12:47 PM
George Brown
quote:
Originally posted by jgelona:
Piipster. That is interesting. I assume if you use Dynamic Columns, then using the GUI is out. Everything must be manually coded, correct?


It depends on what you'd like to do with the gui... if you wanted to simply report off of tables that are defined with dynamic columns there is no issue. The type of things you would not be able to do would be to add a define to the master file since it is pulled dynamically.

You should also be able to do all normal joins and such with dynamic columns.


George D. Brown
Loyola University Chicago
gbrown2@luc.edu