真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

DGBroker修改數(shù)據(jù)庫屬性(2)-創(chuàng)新互聯(lián)

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

目前成都創(chuàng)新互聯(lián)已為數(shù)千家的企業(yè)提供了網(wǎng)站建設(shè)、域名、網(wǎng)頁空間、網(wǎng)站運營、企業(yè)網(wǎng)站設(shè)計、沂源網(wǎng)站維護等服務(wù),公司將堅持客戶導(dǎo)向、應(yīng)用為本的策略,正道將秉承"和諧、參與、激情"的文化,與客戶和合作伙伴齊心協(xié)力一起成長,共同發(fā)展。

一、修改數(shù)據(jù)庫屬性

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

二、操作步驟

2.1查看DG狀態(tài)

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修改數(shù)據(jù)庫屬性

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數(shù)據(jù)庫重啟

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  --格式發(fā)生變化

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

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機、免備案服務(wù)器”等云主機租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。


本文標(biāo)題:DGBroker修改數(shù)據(jù)庫屬性(2)-創(chuàng)新互聯(lián)
文章分享:http://weahome.cn/article/ddcejd.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部