Dillidba Blogspot Com 2018 10 Step by Step Primary Standby Database HTML PDF
Dillidba Blogspot Com 2018 10 Step by Step Primary Standby Database HTML PDF
Environment:
OS: Red Hat Enterprise Linux Server release 6.10
Oracle: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0
Hostname: primary.localdomain
stdby.localdomain
Oracle binary and Oracle database accdb has been installed on host primary where as we have installed
Oracle binaries only on the standby host stdby. While installing Oracle on standby host we have selected
install so ware only.
Primary
Verify database is on archive log mode or not. Convert primary database to archivelog mode.
SELECT log_mode FROM v$database;
Shutdown immediate
startup mount
alter database archivelog;
alter database open;
Check force logging has been enabled or not. Set database into force logging.
select name, force_logging from v$database;
alter database force logging;
Verify db_name and db_unique_name parameter. Both value should be same for primary
database but they will be different for standby database.
show parameter db_name
show parameter db_unique_name
ACCSTDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = stdby.localdomain)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = accdb)
)
)
Reload listener and check listener status
lsnrctl reload
lsnrctl status
Create pfile to oracle home from current spfile.
Create pfile from spfile;
Now ship recently created pfile and password file from primary to standby server.
cd
scp pfile oracle@stdby:
cd $ORACLE_HOME/dbs
scp orapwaccdb oracle@stdby:
Standby
Open listener.ora file with the text editor and modify the high lighted sections as host and
GLOBAL_DBNAME.
vi listener.ora
Reload listener and check listener status
lsnrctl reload
lsnrctl status
Open pfile with text editor and modify highlighted sections.
cd
vi pfile
Copy Password file.
cp orapwaccdb /u01/app/oracle/product/11.2.0/dbhome_1/dbs/
Login to standby server and create spfile from pfile. Once spfile is created startup database on
nomount mode.
sqlplus / as sysdba
create spfile from pfile='/home/oracle/pfile';
startup nomount
Primary Database
If you are able to connect to the standby server then connect rman target as primary and
auxiliary as standby server. Fix if there is any issue connecting to standy from the primary.
rman target / auxiliary sys@accstdb
Execute duplicate command to create standby database from active database
duplicate target database for standby from active database nofilenamecheck;
Cancel recovery on managed standby and open database on read only mode.
alter database recover managed standby database cancel;
alter database open read only;
0 comments:
Post a Comment
Publish Preview
BLOG ARCHIVE
► 2020 (5)
► 2019 (2)
▼ 2018 (9)
▼ October (3)
► March (1)
► February (4)
► January (1)
► 2017 (18)
► 2016 (37)
► 2015 (33)
► 2014 (4)
POPULAR POSTS
Step by step Oracle Grid Infrastructure 12c Release 2 Installation
Get root shell access using mysql with user defined functions and setuid
How to convert 2k db block size database to 8k block size with least down time
Manually drop and recreate Oracle Enterprise Manager 11g Database Console repos
CERTIFICATIONS
CATEGORIES
Blockchain (1)
docker (2)
Impressive Blog Posts (1)
Linux (29)
MySQL (13)
Network (4)
OCM (1)
Oracle (29)
Oracle 11g Installation (7)
Oracle 12c New Features (4)
Oracle 12c RAC (2)
Oracle 19c (2)
Oracle Backup and Recovery (3)
Oracle Configuration (4)
Oracle Disaster Recovery (3)
Oracle Enterprise Manager (3)
Oracle Installation (14)
Oracle killing session (1)
Oracle RAC (1)
Oracle Resource Manager (1)
Oracle Virtualbox (3)
Security (11)
Shell Script (4)
SQL (1)
VMWARE (1)
Voting Disk (1)
FOLLOW BY EMAIL
ABOUT ME
Powered by Blogger.