Domino 9 und frühere Versionen > ND7: Entwicklung

Alle DBs mit OpenWithFailover öffnen?!?

(1/2) > >>

CLP-Alex:
Guten Morgen zusammen,

ich hab ein kleines Verständnisproblem. Ich öffne aus einer DB periodisch als auch manuell  div. Mailfiles mit hinterlegtem Servername + DBFilepath.

Nun will ich die DB sowohl Clusterfähig als auch nicht Clusterfähig entwickeln.

Kann ein Problem auftreten wenn ich immer alle LotusScript DBOpen Aufrufe mit db.OpenWithFailover programmiere?

Danke fürs mitüberlegen!

Gruß Alex

edit: Bin nicht sicher obs ein Admin oder Entwicklerproblem ist

MartinG:
Die Frage wäre im Entwicklerforum besser aufgehoben...

CLP-Alex:
Habs bemerkt, kanns bitte jemand verschieben?

m3:
Ja, sogar mehrere:


--- Zitat ---notesDatabase.OpenWithFailover( server$, dbfile$ )
Return value
True indicates that the database exists and was opened.
False indicates that there is no database with this name in the cluster.
...
A script needs at least Reader access to a database in order to call Open. An error is returned if the script does not have access.
If the database can't be opened on the specific server but the server belongs to a cluster, OpenWithFailover automatically looks for a replica of the specified server on the same cluster. If the method finds a replica, that database is opened instead, and the server property adjusts accordingly.
--- Ende Zitat ---

CLP-Alex:
@m3 die Berechtigungen sind mir klar, aber zum meinem Verständnis
a. wenn der MailServer kein Clustermember ist und läuft wird die DB einfach gefunden/geöffnet, True
b. wenn der MailServer kein Clustermember ist und nicht läuft wird die DB einfach nicht gefunden/geöffnet, False
c. wenn der MailServer Clustermember ist und nicht läuft wird autmatisch der nächste Server durchsucht und die MailDB geöffnet, True
d. wenn der MailServer Clustermember ist und kein Clustermember läuft wird die DB einfach nicht gefunden/geöffnet, False

Gruß Alex

Navigation

[0] Themen-Index

[#] Nächste Seite

Zur normalen Ansicht wechseln