最近Standby壞掉,重新作之後,主庫報如下錯誤PING[ARC0]: Heartbeat failed to connect to standby 'standby'. Error is 16047.在網上找到他人的處理方法,成功解決問題。解決方式如下:ALTER SYSTEM SET log_archive_config='NODG_CONFIG' SCOPE=MEMORY;ALTER SYSTEM SET log_archive_dest_2='service=standby
如何處理HANG住的DB1. 產生 systemstate dump:SQL>sqlplus -prelim / as sysdbaSQL> alter session set max_dump_file_size = unlimited;SQL> alter session set events 'immediate trace name systemstate level 10';Wait for some 30 secondsSQL> alter session
現象描述:登陸Oracle11g提示ERROR:ORA-28002: the password will expirewithin 7 days警示資訊:ERROR: ORA-28002: the password will expire within 7 days原因分析:SELECT * FROM dba_profiles s WHERE s.profile='DEFAULT' ANDresource_name='PASSWORD_LIFE_TIME';oracle11g
Oracle 壞塊處理指令碼Applies to:Oracle Database - Enterprise Edition - Version 8.1.7.0 to 12.1.0.1.0 [Release 8.1.7 to 12.1]Information in this document applies to any platform.GoalThe purpose of this plsql script is to create a new table based on a table
因業務表在資料轉換時,相應的標識符沒有加上,故需多進程對同一張表操作,從而提高更新的效率。1、寫好相應的預存程序:create or replace procedure proc_update_XXX(being_num in integer,end_num in integer) is cursor c_table is select * from( select a.*, row_number() over(order by rowid) rk from
前幾天偶然發現任意OS使用者無需密碼就可以擷取PG資料庫管理員許可權。感覺這個也太BUG了,如果DBA配置不當,豈不是很容易就資料泄露了。通過合理配置pg_hba.conf,pg_ident.conf禁止非資料庫OS使用者登入以trust方式登入,對於某些需要支援本地認證的同學可能有用。前置條件:1.我的PG資料庫是由Linux使用者 ithomer建立的私人資料庫2.資料庫認證方式pg_hba.conf中,本機使用者登入認證方式為trust# TYPE DATABASE