Blog Aggregator - Amardeep Sidhu

  • Tags

  • Archives

  • Meta

  •  

    February 2008
    M T W T F S S
    « Jan   Mar »
     123
    45678910
    11121314151617
    18192021222324
    2526272829  

Archive for February 5th, 2008

05 Feb

Local vs. remote connection performance

It has been asked several times in several places; is there a performance difference between running a query locally in a client on the server and running the same query in a remote client? The obvious answer given by the respondents including myself is: “if you do not return thousands of rows through the network, there must not be any difference”. This type of response is opposed to what I

05 Feb

Zizzy: Open Source Log-based Replication for Oracle

If you’ve ever looked into purchasing third-party replication software for Oracle, you’ve likely run across log-based replication products such as Quest Software’s SharePlex or GoldenGate Software’s Transactional Data Management platform. Unlike trigger-based replication systems, log-based replication relies on translating Oracle’s REDO and UNDO data into SQL which can be applied to various target databases […]

05 Feb

Change Data Guard configuration file location “online”

This short post presents how to change online the Data Guard configuration files location (parameters dg_broker_config_fileX) where X is 1 or 2.

 

REM ================================================
REM renaming of the dg_broker_config_file parameters
REM================================================= 

set head off
set feed off
set echo off
set verify off 
set trimspool on 

ACCEPT site_number CHAR PROMPT 'Enter site number <2: ' DEFAULT '2' 

var filename_dg1 varchar2(2000)
var filename_dg2 varchar2(2000) 

spool rename_dg_broker_config_file_do.sql 

select 'alter system set dg_broker_start=false scope=memory'||chr(10)||'/'
from dual
/ 

begin
select '/u00/app/oracle/admin/'||name||'/pfile/dr1_'||name||'_SITE'||&site_number||'.dat' into :filename_dg1
from v$database;
select '/u00/app/oracle/admin/'||name||'/pfile/dr2_'||name||'_SITE'||&site_number||'.dat' into :filename_dg2
from v$database;
end;
/ 

select '!mv '||value||' '||:filename_dg1
from v$parameter
where name = 'dg_broker_config_file1'
/ 

select '!mv '||value||' '||:filename_dg2
from v$parameter
where name = 'dg_broker_config_file2'
/ 

select 'alter system set dg_broker_config_file1=''/u00/app/oracle/admin/'||name||'/pfile/dr1_'||name||'_SITE'||&site_number||
'.dat'''||
chr(10)||'/'
from v$database
/ 

select 'alter system set dg_broker_config_file2=''/u00/app/oracle/admin/'||name||'/pfile/dr2_'||name||'_SITE'||&site_number||
'.dat'''||
chr(10)||'/'
from v$database
/ 

select 'alter system set dg_broker_start=true scope=memory'||chr(10)||'/'
from dual
/ 

select chr(10) from dual; 

spool off 
set echo on
set feed on print :filename_dg1

print :filename_dg2 

spool rename_dg_broker_config_file_do.log 

@@rename_dg_broker_config_file_do.sql 

spool off

 

 

 We could consider that the script is not REALLY online because the Data Guard broker is stopped Wink, but this has no impact on the instance availability.

05 Feb

Steven Feuerstein launches new PL/SQL forum

“Making PL/SQL a better language”. This is Steven Feuerstein’s obsession.
In his courses he always encourages his students to send their comments to Bryn Llewellyn the project manager for PL/SQL at Oracle.
A while ago Steven already has launched a PL/SQL forum in OTN where people can directly ask him questions.
Now Steven has put together a website to […]

© 2008 Blog Aggregator - Amardeep Sidhu | Entries (RSS) and Comments (RSS)

Powered by Wordpress, design by Web4 Sudoku, based on Pinkline by GPS Gazette