中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

DGBroker修改數據庫屬性(2)

發布時間:2020-07-20 13:37:07 來源:網絡 閱讀:462 作者:roidba 欄目:關系型數據庫

A LITTLE EFFORT EVERY DAY.YOU WILL MAKE A BIG DIFFERENCE.


一、修改數據庫屬性


EDIT DATABASE 'South_Sales' SET PROPERTY 'LogArchiveFormat'='log_%t_%s_%r_%d.arc';



二、操作步驟


2.1查看DG狀態

dgmgrl /


DGMGRL> show configuration;


Configuration - dg_config


  Protection Mode: MaxAvailability

  Members:

  orcl   - Primary database

    orcldg - Physical standby database 


Fast-Start Failover: DISABLED


Configuration Status:

SUCCESS   (status updated 55 seconds ago)


2.2查看DG屬性

DGMGRL> show database verbose orcldg;


Database - orcldg


  Role:               PHYSICAL STANDBY

  Intended State:     APPLY-ON

  Transport Lag:      0 seconds (computed 1 second ago)

  Apply Lag:          0 seconds (computed 1 second ago)

  Average Apply Rate: 24.00 KByte/s

  Active Apply Rate:  0 Byte/s

  Maximum Apply Rate: 0 Byte/s

  Real Time Query:    ON

  Instance(s):

    orcldg


  Properties:

    DGConnectIdentifier             = 'orcldg'

    ObserverConnectIdentifier       = ''

    LogXptMode                      = 'sync'

    RedoRoutes                      = ''

    DelayMins                       = '0'

    Binding                         = 'optional'

    MaxFailure                      = '0'

    MaxConnections                  = '1'

    ReopenSecs                      = '300'

    NetTimeout                      = '30'

    RedoCompression                 = 'DISABLE'

    LogShipping                     = 'ON'

    PreferredApplyInstance          = ''

    ApplyInstanceTimeout            = '0'

    ApplyLagThreshold               = '0'

    TransportLagThreshold           = '0'

    TransportDisconnectedThreshold  = '30'

    ApplyParallel                   = 'AUTO'

    StandbyFileManagement           = 'AUTO'

    ArchiveLagTarget                = '0'

    LogArchiveMaxProcesses          = '4'

    LogArchiveMinSucceedDest        = '1'

    DbFileNameConvert               = ''

    LogFileNameConvert              = ''

    FastStartFailoverTarget         = ''

    InconsistentProperties          = '(monitor)'

    InconsistentLogXptProps         = '(monitor)'

    SendQEntries                    = '(monitor)'

    LogXptStatus                    = '(monitor)'

    RecvQEntries                    = '(monitor)'

    StaticConnectIdentifier         = '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=roidb02)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcldg_DGMGRL)(INSTANCE_NAME=orcldg)(SERVER=DEDICATED)))'

    StandbyArchiveLocation          = '+DATADG/arch'

    AlternateLocation               = ''

    LogArchiveTrace                 = '0'

    LogArchiveFormat                = '%t_%s_%r.dbf'

    TopWaitEvents                   = '(monitor)'


Database Status:

SUCCESS


2.3查看歸檔日志格式


SQL> show parameter log_archive_format;


NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

log_archive_format                   string      %t_%s_%r.dbf

SQL> 



2.4使用DGMGRL修改數據庫屬性


DGMGRL> EDIT DATABASE 'orcldg' SET PROPERTY 'LogArchiveFormat'='log_%t_%s_%r_%d.arc';

Warning: ORA-16675: database instance restart required for property value modification to take effect


Property "LogArchiveFormat" updated

DGMGRL> 


DGMGRL> EDIT DATABASE 'orcl' SET PROPERTY 'LogArchiveFormat'='log_%t_%s_%r_%d.arc';

Warning: ORA-16675: database instance restart required for property value modification to take effect


Property "LogArchiveFormat" updated

DGMGRL> 


2.5查看是否生效

SQL> show parameter log_archive_format;


NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

log_archive_format                   string      %t_%s_%r.dbf

SQL> 


2.6數據庫重啟

SQL> shutdown immediate;

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> 

SQL> 

SQL> 

SQL> startup

ORACLE instance started.


Total System Global Area 1241513984 bytes

Fixed Size                  2923872 bytes

Variable Size             452985504 bytes

Database Buffers          771751936 bytes

Redo Buffers               13852672 bytes

Database mounted.

Database opened.

SQL> 



2.7查看是否生效

ASMCMD [+datadg/arch] > ls

1_12_954623021.dbf

....省略.........

1_61_954623021.dbf

log_1_62_954623021_585bafa7.arc   --格式發生變化

log_1_63_954623021_585bafa7.arc

log_1_64_954623021_585bafa7.arc

ASMCMD [+datadg/arch] > 


SQL> show parameter log_archive_format;


NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

log_archive_format                   string      log_%t_%s_%r_%d.arc



向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

海南省| 中西区| 桑植县| 长阳| 普宁市| 漯河市| 饶阳县| 阿克陶县| 夏河县| 漳州市| 镇安县| 辽中县| 涟源市| 错那县| 宜川县| 车险| 启东市| 成武县| 咸宁市| 宣恩县| 内乡县| 集贤县| 绥棱县| 南皮县| 大荔县| 漯河市| 霞浦县| 邮箱| 孝昌县| 宁安市| 永和县| 黑水县| 沈丘县| 板桥市| 遂溪县| 普陀区| 云龙县| 铁力市| 平原县| 沙雅县| 栾城县|