The invention relates to the technical field of electrical
digital data processing, and discloses an
intelligent database operation and maintenance method based on a large
language model, which comprises the following steps: establishing a
reference window buffer
queue and a detection window buffer
queue in a memory, and respectively storing historical and real-
time data to construct steady-state and transient probability distribution; the probability distribution
divergence of the key index between the two windows is calculated, when the
divergence exceeds a threshold value, local subgraph condition independence test is triggered, and the causal topology connection weight is updated; extracting an association index subset based on the updated topology, encoding the association index subset into a structured prompt vector, and inputting the structured prompt vector into a large
language model to generate a candidate instruction; and executing the instruction in the isolation shadow
database based on the snapshot, and generating a formal instruction if the
state vector distance is smaller than a convergence threshold, the causal topology is repaired in real time by detecting data distribution drift, the problem of
inference illusion caused by causal mismatch under the non-stationary load is solved, and the fault attribution accuracy and the
operation safety are improved.