giovedì 31 ottobre 2019

OWB 11.2.0.4 - Configuration Templates, Default Values for Mappings etc

These configuration templates are defined on the global tree, once you create a configuration template it is used in a configuration – then any objects created will inherit these default values. 
This then brings up the editor for the configuration template, the properties are in the tree, and the columns such as EXADATA_TEMPLATE  is where you can change the property value. 
Remember these are defaults so you are not setting specific values on an object – these are the defaults of o overriden value is specified.




The final piece of the jigsaw is to use this configuration template in a configuration – otherwise it will never be used.

  
 

martedì 15 ottobre 2019

OWB 11.2.0.4 - OMBPLUS come estrarre il valore delle DB_LOCATION da un mapping

Sono anni che non programmo in OMBPLUS  e pensavo che orma OWB fosse desupportato, invece gli scheletri ritornano. Come zombi ecco che qualche cliente ancora ha come prodotto OWB, di seguito un semplice script in tcl per estrarre le location delle tabelle presenti in un mapping.

set OMBLOG <path>/tcl/transf_map_Location_BI_STAGE.log
OMBCONNECT <user>/<password>@<host>:<porta>:<SERVICE_NAME>
OMBCC '<folder>'
OMBCONNECT CONTROL_CENTER 
<user>/<password>@<host>:<porta>:<SERVICE_NAME> USE REPOSITORY '<workspace>'
OMBCAC 'control_center_configuration'


set pflist [OMBLIST MAPPINGS]
foreach procname $pflist {
set ptlist [OMBRETRIEVE MAPPING '$procname' GET TABLE OPERATORS]
foreach tabname $ptlist {
OMBRETRIEVE MAPPING '$procname' OPERATOR '$tabname'   GET PROPERTIES (DB_LOCATION)
}
}


Questo occorre salvarlo in un file tcl e poi eseguirlo fornendolo in input ad OMBPLUS.

Il risultato  è un file che contiene al suo interno ogni singola istruzione esplosa del suo output.

Nel caso in cui la LOCATION non è valorizzata troverete questo valore.

  • {Unknown value}