How to: |
Reference: |
Configuring the adapter consists of specifying connection and authentication information for each of the connections you want to establish.
or
From the Data Management Console, expand the Adapters folder.
In the DMC, the Adapters folder opens. In the Web Console, the Adapters page opens showing your configured adapters.
The Add Adapter to Configuration pane opens.
The Adapter for MongoDB in under the SQL group folder.
Logical name used to identify this particular set of connection attributes. The default is CON01.
Is the URL to the location of the MongoDB data source.
The following is an example of the URL that is used to connect to your MongoDB server:
jdbc:mongo://server:27017/database?rebuildschema=true
where:
Is the DNS name or IP address of the system where the MongoDB server is running. If it is on the same system, localhost can be used. For sharded servers, the URL should contain the server names (and optional ports) in a comma-separated list.
Is the default port number MongoDB is listening on if not specified when MongoDB is started. This value is optional.
Is the database name to connect to.
Indicates that the metadata store or schema should be rebuilt on every connection to the server. This parameter can be removed when the metadata is static for faster connection to the server.
For more information on debugging and other additional options, see JDBC Driver for MongoDB on the UnityJDBC documentation page. Click the Connector Argument Details link to see the entire list.
Is the name of the JDBC driver, for example, mongodb.jdbc.MongoDriver
Defines the additional Java Class directories or full-path jar names which will be available for Java Services. Value may be set by editing the communications file or in the Web Console. Using the Web Console, you can enter one reference per line in the input field. When the file is saved, the entries are converted to a single string using colon (:) delimiters for all platforms. OpenVMS platforms must use UNIX-style conventions for values (for example, /mydisk/myhome/myclasses.jar, rather than mydisk:[myhome]myclasses.jar) when setting values. When editing the file manually, you must maintain the colon delimiter.
There are two methods by which a user can be authenticated when connecting to a database server:
Primary authorization ID by which you are known to the data source.
Password associated with the primary authorization ID.
Select a profile from the drop-down menu to indicate the level of profile in which to store the CONNECTION_ATTRIBUTES command. The global profile, edasprof.prf, is the default.
If you wish to create a new profile, either a user profile (user.prf) or a group profile if available on your platform (using the appropriate naming convention), choose New Profile from the drop-down menu and enter a name in the Profile Name field (the extension is added automatically).
Store the connection attributes in the server profile (edasprof).
WebFOCUS | |
Feedback |