Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Create the directory structure to keep alert log file and trace files
1
DB EXPERTS 9866465379
*.job_queue_processes=10
*.open_cursors=300
*.pga_aggregate_target=200278016
*.processes=150
*.remote_login_passwordfile='exclusive'
*.sga_target=600834048
*.undo_management='AUTO'
undo_tablespace='UNDOTBS1'
*.user_dump_dest='/orasoft/test/udump'
[oracle@node1 ~]$
Database created.
2
DB EXPERTS 9866465379
SQL> @/orasoft/10g/rdbms/admin/catalog.sql;
SQL> @/orasoft/10g/rdbms/admin/catproc.sql;
SQL> @/orasoft/10g/rdbms/admin/catclust.sql;
SQL> conn system/manager
Connected.
SQL> @/orasoft/10g/sqlplus/admin/pupbld.sql;
NAME
--------------------------------------------------------------------------------
+DG1/test/controlfile/current.323.748956375
Open the pfile and modify control_files parameter with above controlfile
Value
Open tnsnames.ora file and add the following alias for remote_listener
Parameter
3
DB EXPERTS 9866465379
LISTENERS_TEST =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = node1-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = node2-vip)(PORT = 1521))
)
4
DB EXPERTS 9866465379
test1.thread = 1
test2.thread = 2
remote_listener = 'LISTENERS_TEST'
[oracle@node1 dbs]$
Startup the database and create second undo tablespace , thread 2 for
Instance 2
SQL> startup;
ORACLE instance started.
Tablespace created.
Database altered.
Database altered.
5
DB EXPERTS 9866465379
SQL>
Database altered.
SQL>
6
DB EXPERTS 9866465379
Login into second node as oracle user and create the directory structure
For alert log and trace files. Edit tnsnames.ora file and keep the alias for
Remote_listener parameter.
7
DB EXPERTS 9866465379
8
DB EXPERTS 9866465379
We can configure archive log from any one node. Let us say we are at first
node
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
9
DB EXPERTS 9866465379
With the Partitioning, Real Application Clusters, OLAP and Data Mining
options
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining
options
System altered.
10
DB EXPERTS 9866465379
3 scope=spfile;
System altered.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release
10.2.0.1.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining
options
Start any one instance as follows and change the archive log
[oracle@srv1 ~]$ sqlplus / as sysdba
Database altered.
Database altered.
11
DB EXPERTS 9866465379
System altered.
12
DB EXPERTS 9866465379
13
DB EXPERTS 9866465379
14
DB EXPERTS 9866465379
RMAN> exit
15
DB EXPERTS 9866465379
Create a pfile and transfer pfile also from node1 to single instance machine.
16
DB EXPERTS 9866465379
Now open tnsnames.ora file and add an alias to connect to rac database
instance 1
[oracle@srv5 rclone]$ vi /orasoft/10g/network/admin/tnsnames.ora
[oracle@srv5 rclone]$ cat /orasoft/10g/network/admin/tnsnames.ora
PROD1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = srv1-vip)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = prod)
(INSTANCE_NAME = prod1)
)
)
17
DB EXPERTS 9866465379
Open pfile and make changes as per the requirement, then copy the pfile to
default location and rename it.
Now connect to rman as follows and clone the database using duplicate
command
18
DB EXPERTS 9866465379
19
DB EXPERTS 9866465379
20
DB EXPERTS 9866465379
21
DB EXPERTS 9866465379
22
DB EXPERTS 9866465379
23
DB EXPERTS 9866465379
24
DB EXPERTS 9866465379
database opened
Finished Duplicate Db at 13-MAY-11
RMAN> exit
NAME OPEN_MODE
--------- ----------
RCLONE READ WRITE
SQL>
25