DYNAMICRESOLUTION | NODYNAMICRESOLUTION, dynamicresolution
Sometimes it is slow to start the OGG process. It may be because too many tables need to be synchronized. Before enabling the process, OGG creates a record for the table to be synchronized and stores it to the disk, this takes a lot of time. OGG also provides the DYNAMICRESOLUTION | NODYNAMICRESOLUTION parameter to solve this problem. For details, refer to the official descriptions:
DYNAMICRESOLUTION | NODYNAMICRESOLUTIONValid for Extract and ReplicatUse the DYNAMICRESOLUTION and NODYNAMICRESOLUTION parameters to control how tablenames are resolved. use DYNAMICRESOLUTION to make processing start sooner when there is a large number oftables specified in TABLE or MAP statements. by default, whenever a process starts, OracleGoldenGate queries the database for the attributes of the tables and then builds an objectrecord for them. the record is maintained in memory and on disk, and the process ofbuilding it can be time-consuming if the database is large. DYNAMICRESOLUTION causes the object record to be built one table at a time, instead of all atonce. A table's attributes are added to the record the first time its object ID enters thetransaction log, which occurs with the first extracted transaction on that table. recordbuildingfor other tables is deferred until activity occurs. DYNAMICRESOLUTION is the same asWILDCARDRESOLVE DYNAMIC. NODYNAMICRESOLUTION causes the object record to be built at startup. this option is notsupported for Teradata. NODYNAMICRESOLUTION is the same as wildcardresolve immediate. for more information about WILDCARDRESOLVE, see page 389.
How to read system display settings in c ++ builer
You can find ChangeDisplaySettings in cb's online help to find all the attributes.
The following code uses CB to dynamically change the resolution of a display:
Void _ fastcall TForm1: btnGetClick (TObject * Sender)
{<
Void _ fastcall TForm1: btnGetClick (TObject * Sender)
{
Int x, y;
X = GetSystemMetrics (SM_CXSCREEN );
Y = GetSystemMetrics (SM_CYSCREEN );
ShowMessage ("display horizontal resolution:" + AnsiString (x) + "display vertical resolution:" + AnsiString (y ));
}
//---------------------------------------------------------------------------
Void _ fastcall TForm1: DynamicResolution (int x, int y)
{
TDeviceModelpDevMode;
Bool Result;
Result = EnumDisplaySettings (NULL, 0, & lpDevMode );
If (Result)
{
LpDevMode. dmFields = DM_PELSWIDTH | DM_PELSHEIGHT;
LpDevMode. dmPelsWidth = x;
LpDevMode. dmPelsHeight = y;
Result = ChangeDisplaySettings (& lpDevMode, 0 );
// = DISP_CHANGE_SUCCESSFUL;
}
}
Void _ fastcall TForm1: BitBtn1Click (TObject * Sender)
{
DynamicResolution (800,600 );
}
//---------------------------------------------------------------------------
Void _ fastcall TForm1: BitBtn2Click (TObject * Sender)
{
DynamicResolution (1024,768 );
}
Change the screen resolution and switch between the display using deldolphin Programming
The output end of the notebook corresponds to the output signal of the notebook screen. After changing the resolution of the notebook screen, the display resolution of the output end is changed.
Delphi provides functions to dynamically change the screen resolution, including EnumDisplaySettings () and ChangeDisplaySettings (). With them, resolution can be changed at any time during programming to meet requirements. The following CRTReset function can easily implement this function:
Implementation
Function CRTReset (X, Y: Word): Boolean;
Var
LpDevMode: TDeviceMode;
Begin
Result: = EnumDisplaySettings (nil, 0, lpDevMode); // obtain the display mode.
If Result then begin
LpDevMode. dmFields: = DM_PELSWID
TH Or DM_PELSHEIGHT;
LpDevMode. dmPelsWidth: = X;
LpDevMode. dmPelsHeight: = Y; // you can specify the width and height of the screen.
Result: = ChangeDisplaySettings (lpDevMode, 0) = DISP_CHANGE_SUCCESSFUL;
// Change the screen resolution and return success or failure
End;
End;
Procedure TForm1.Button1Click (Sender: TObject );
Begin
If CRTReset (800,600) then ShowMessage ('now is 800*600 '); // call the function and set the resolution to 800*600.
End;
// Set resolution dynamically
Function DynamicResolution (x, y: WORD): Boolean;
Var
LpDevMode: TDeviceMode;
Begin
Result: = EnumDisplaySettings (nil, 0, lpDevMode );
If Result then
Begin
LpDevMode. dmFields: = DM_PELSWIDTH or DM_PELSHEIGHT;
LpDevMode. dmPelsWidth: = x;
LpDevMode. dmPelsHeight: = y;
Result: = Chan... the remaining full text>