Data Replication 2
Results 1 to 1 of 1

Thread: How to Specify TempFeatures on the AIS Connect String

  1. #1
    Join Date
    Sep 2006
    Rep Power

    How to Specify TempFeatures on the AIS Connect String

    AIS supports a special configuration option that allows for setting rarely used features of the product which are not present in the product configuration schema.

    This configuration option is called "Temp Feature". A temp feature is typically set as part of the product binding environment definition like the following example:

    PHP Code:
    <?xml version='1.0' encoding='windows-1252'?>
    <navobj version=''>
        <environment name='NAV'>
            <misc exposeXmlField='true' language='eng'/>
                <tempFeature id='usingAccess2000' value='true'/>
                <tempFeature id='somethingElse' value='789'/>
    In some cases, one may want to define temp features dynamically without using an environment definition. One such example may be the case of the Attunity thin ODBC client which does not use any local environment definition.

    For such cases, the ODBC (and OLEDB) connection string may contain the temp feature definition in the form:

    PHP Code:
    The XML example above can be written in the connection string with:

    PHP Code:
    Note that the tempFeature items are numbered so that there would not be multiple connection string items with the same name.

    One important thing to remember when using the tempFeatures mechanism is that the feature names are entirely dynamic so if you specify a temp feature and misspell the name, no error will be given to tell you about this error. In order to tell whether a temp feature got used, one must check the server log file and look for a line of the following form:

    Info: Temporary feature 'zeroBasedDateAsEmptyString' is enabled with a value of 'false'
    If there is no such line with the temporary feature defined then that temp feature either was not use (the line appears on first actual use), its name did not match or the temp feature is not available in the specific version of AIS currently running.

    B]Entering Temp Features via Command Line[/B]
    TempFeatures can also be specified via the command line when running NAV_UTIL and even via an environment variable setting. WHen runing NAV_UTIL, tempFeature can be provided using the -debug option as in:

    PHP Code:
    nav_utli -debug /tempFeatures/tempFeature=name/val,/tempFeatures/tempFeature=name/value execute mydb 
    Note that in the command line, one should not use the tempFeatureXxx numbering - it is always /tempFeatures/tempFeature

    Similarly, using an environment variable can be done with:

    PHP Code:
    set NV_DEBUG=/tempFeatures/tempFeature=name/val,/tempFeatures/tempFeature=name/value execute mydb 
    PHP Code:
    export NV_DEBUG=/tempFeatures/tempFeature=name/val,/tempFeatures/tempFeature=name/value execute mydb 
    Last edited by DrorHarari; 06-16-2016 at 03:16 AM. Reason: Added troubleshooting information
    By Dror Harari

    To Find Out more About Attunity Technology:
    Contact Us

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts