1) The document provides steps to create an Oracle database instance and configure Data Guard protection. It describes using DBCA to create the primary instance, enabling archiving and setting initialization parameters.
2) It then describes configuring the listener and tnsnames files on both the primary and standby servers.
3) Steps are provided to enable archiving on the primary, create a backup, and copy files to the standby to restore the database and register it as a managed recovery standby.
How to create a pluggable database by cloning an existing local pdbMarco Vigelini
How to create a pluggable database by cloning an existing local pdb
http://dbaworkshop.blogspot.com/2013/07/How-to-create-a-pluggable-database-by-cloning-an-existing-local-PDB.html
Finding and fixing bugs is a major chunk of any developers time. This talk describes the basic rules for effective debugging in any language, but shows how the tools available in PHP can be used to find and fix even the most elusive error
This presentation is for those who are familiar with databases and SQL, but want to learn how to move processing from their applications into the database to improve consistency, administration, and performance. Topics covered include advanced SQL features like referential integrity constraints, ANSI joins, views, rules, and triggers. The presentation also explains how to create server-side functions, operators, and custom data types in PostgreSQL.
How to create a pluggable database by cloning an existing local pdbMarco Vigelini
How to create a pluggable database by cloning an existing local pdb
http://dbaworkshop.blogspot.com/2013/07/How-to-create-a-pluggable-database-by-cloning-an-existing-local-PDB.html
Finding and fixing bugs is a major chunk of any developers time. This talk describes the basic rules for effective debugging in any language, but shows how the tools available in PHP can be used to find and fix even the most elusive error
This presentation is for those who are familiar with databases and SQL, but want to learn how to move processing from their applications into the database to improve consistency, administration, and performance. Topics covered include advanced SQL features like referential integrity constraints, ANSI joins, views, rules, and triggers. The presentation also explains how to create server-side functions, operators, and custom data types in PostgreSQL.
Postgresql 12 streaming replication holVijay Kumar N
This is a step by step hands on lab for PostgreSQL 12 , setup of replication, replication slot, failover (promoting) to standby as new master cluster and also covering the scenario where old master has to be reinstated using the utility "pg_rewind"
Test: DML with NOLOGGING
NOLOGGING: Oracle will generate a minimal number of redo log entries in order to protect
the data dictionary, and the operation will probably run faster. Logging can be disabled at
the table level or the tablespace level.
Teaching Your Machine To Find FraudstersIan Barber
The slides from my talk at PHP Tek 11.
When dealing with money online, fraud is an ongoing problem for both
consumers and sellers. Researchers have been developing statistical
and machine learning techniques to detect shady sellers on auction
sites, spot fraudulent payments on e-commerce systems and catch click
fraud on adverts. While there is no silver bullet, you will learn to
flag suspicious activity and help protect your site from scammers
using PHP and a little help from some other technologies.
Presentation that I gave as a guest lecture for a summer intensive development course at nod coworking in Dallas, TX. The presentation targets beginning web developers with little, to no experience in databases, SQL, or PostgreSQL. I cover the creation of a database, creating records, reading/querying records, updating records, destroying records, joining tables, and a brief introduction to transactions.
CakePHP 3 comes with a new ORM. This talk starts with a short history of how this library came to be and then walk through a series of examples from beginner to advanced for using the Querying features of the ORM.
eCommerce Expo 2013 : Behavioural Marketing or How to get your customers to l...John Watton
The world of marketing is now more multi-channel dependent than ever. Find out how to better integrate your email, web, mobile and social media marketing to deliver outstanding ROI. And how a behavioural marketing approach can drive personalised, multi-channel experiences for your customers that ultimately means they'll love you to death.
Design for Motivation - Intrinsic and extrinsic motivation in designThijs de Vries
Deze presentatie heb ik gegeven op 23 mei op de Hogeschool Leeuwarden voor de minor Game Design.
De presentatie gaat in op intrinsieke en extrinsieke motivatie binnen (game) design.
Postgresql 12 streaming replication holVijay Kumar N
This is a step by step hands on lab for PostgreSQL 12 , setup of replication, replication slot, failover (promoting) to standby as new master cluster and also covering the scenario where old master has to be reinstated using the utility "pg_rewind"
Test: DML with NOLOGGING
NOLOGGING: Oracle will generate a minimal number of redo log entries in order to protect
the data dictionary, and the operation will probably run faster. Logging can be disabled at
the table level or the tablespace level.
Teaching Your Machine To Find FraudstersIan Barber
The slides from my talk at PHP Tek 11.
When dealing with money online, fraud is an ongoing problem for both
consumers and sellers. Researchers have been developing statistical
and machine learning techniques to detect shady sellers on auction
sites, spot fraudulent payments on e-commerce systems and catch click
fraud on adverts. While there is no silver bullet, you will learn to
flag suspicious activity and help protect your site from scammers
using PHP and a little help from some other technologies.
Presentation that I gave as a guest lecture for a summer intensive development course at nod coworking in Dallas, TX. The presentation targets beginning web developers with little, to no experience in databases, SQL, or PostgreSQL. I cover the creation of a database, creating records, reading/querying records, updating records, destroying records, joining tables, and a brief introduction to transactions.
CakePHP 3 comes with a new ORM. This talk starts with a short history of how this library came to be and then walk through a series of examples from beginner to advanced for using the Querying features of the ORM.
eCommerce Expo 2013 : Behavioural Marketing or How to get your customers to l...John Watton
The world of marketing is now more multi-channel dependent than ever. Find out how to better integrate your email, web, mobile and social media marketing to deliver outstanding ROI. And how a behavioural marketing approach can drive personalised, multi-channel experiences for your customers that ultimately means they'll love you to death.
Design for Motivation - Intrinsic and extrinsic motivation in designThijs de Vries
Deze presentatie heb ik gegeven op 23 mei op de Hogeschool Leeuwarden voor de minor Game Design.
De presentatie gaat in op intrinsieke en extrinsieke motivatie binnen (game) design.
Here is a colourful show depicting workstyle of an organisation
in comparison to the various birds.
Having come from different backgrounds,
with the differences of opinion,
our work place can still be a lovely place to dwell
with minor understandings and letting away egos aside.
Have a look at it and see if this can improve our lifestyle at work place.
Have a lovely day
Setup oracle golden gate 11g replicationKanwar Batra
How to setup Oracle Goldengate Replication between 11gR2 RAC or Single node instances. For RAC setup the GoldenGate custom cluster service . Not part of this document
3. (SERVICE_NAME = AGORANG)
)
)
LISTENER =
(ADDRESS = (PROTOCOL = TCP)(HOST = g2)(PORT = 1521))
PRIMARY
verificar que BD esta em archive mode
SQL> SELECT log_mode FROM V$DATABASE;
alterar para FORCE LOGGING
SQL> SELECT force_logging FROM V$DATABASE;
SQL> ALTER DATABASE FORCE LOGGING; # para o caso de não estar
alterar REMOTE_LOGIN_PASSWORDFILE para 'EXCLUSIVE'
SQL> SHOW PARAMETER REMOTE_LOGIN_PASSWORDFILE;
SQL> ALTER SYSTEM SET REMOTE_LOGIN_PASSWORDFILE='EXCLUSIVE' SCOPE=BOTH;
criar ficheiro init<SID>.ora da instancia principal
SQL> CREATE PFILE FROM SPFILE;
parar a BD
SQL> SHUTDOWN IMMEDIATE
verificar, alterar ou acrescentar os seguintes parametros no ficheiro
init<SID>.ora [PRIMARY]
*.db_name='AGORANG'
*.db_unique_name='AGORANG1'
*.control_files='/oradata/AGORANG/control01.ctl','/oradata/AGORANG/flash_recover
y/AGORANG/control02.ctl'
*.remote_login_passwordfile='EXCLUSIVE'
*.compatible='11.2.0.0.0
*.log_archive_config='DG_CONFIG=(AGORANG1,AGORANG2)'
*.log_archive_dest_1='LOCATION=/oraarch/AGORANG
VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=AGORANG1'
*.log_archive_dest_2='SERVICE=AGORANG2 VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
REOPEN=300 LGWR ASYNC DB_UNIQUE_NAME=AGORANG2'
*.log_archive_dest_state_1='ENABLE'
*.log_archive_dest_state_2='ENABLE'
*.log_archive_format='%t_%s_%r.arc'
*.log_archive_max_processes=4
*.standby_file_management='AUTO'
*.fal_client='AGORANG1'
*.fal_server='AGORANG2'
*._log_deletion_policy='ALL'
*.recyclebin='OFF'
arrancar BD com ficheiro init<SID>.ora alterado em modo MOUNT [PRIMARY]
SQL> startup pfile=<caminho_ate_ao_ficheiro_init>/init<SID>.ora mount
criar backup da DB [guardar o DBID que aparece quando se inicia o RMAN]
RMAN> BACKUP FORMAT '/oraback/AGORANG/%d_DF_%t_s%s_p%p' DATABASE;
criar controlfile para STANDBY
SQL> ALTER DATABASE CREATE PHYSICAL STANDBY CONTROLFILE AS
'/oraback/AGORANG/std01.ctl';
copiar para a STANDBY o seguinte:
- backup para /oraback/AGORANG
- std01.ctl para /oradata/AGORANG/control01.ctl
std01.ctl para /oradata/AGORANG/flash_recovery/AGORANG/control02.ctl
- orapwAGORANG para /opt/app/oracle/product/11.2.0/dbhome_1/dbs
4. - init<SID>.ora para /opt/app/oracle/product/11.2.0/dbhome_1/dbs
STANDBY
alterar o ficheiro init<SID>.ora
*.db_unique_name='AGORANG2'
*.fal_client='AGORANG2'
*.fal_server='AGORANG1'
*.log_archive_dest_1='LOCATION=/oraarch/AGORANG
VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=AGORANG2'
*.log_archive_dest_2='SERVICE=AGORANG1 VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
REOPEN=300 LGWR ASYNC DB_UNIQUE_NAME=AGORANG1'
criar BD
RMAN> SET DBID <DBID PRIMARY>
RMAN> STARTUP MOUNT
RMAN> RESTORE DATABASE;
parar BD
SQL> SHUTDOWN IMMEDIATE
colocar em modo RECOVER MANAGED STANDBY
SQL> STARTUP MOUNT
SQL> ALTER DATABASE OPEN READ ONLY;
SQL> CREATE SPFILE FROM PFILE;
SQL> SHUTDOWN IMMEDIATE
SQL> STARTUP MOUNT
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
em ambas maquinas PRIMARY e STANDBY
arrancar o listener
$ lsnrctl start
podem verificar o alert log de ambas as maquinas para verem se existe
conectividade.