about oracle10g rac
Q1. How to configure "listener.ora" and "tnsnames.ora"
A1. Usually, NETCA will launch automatically during the DBCA.
IF you have encountered some errors or want to reconfig
them later, please do the following things:
(1) Launch NETCA ;
(2) Choose the option "Cluster" in the first page;
(3) Choose one type such as "create listener",
"create local net service";
(4) Test the new created listener or local net service until success;
(5) By default, the application "srvctl" can only manage those
listeners with the suffix(host_name),So,please be very carefully
when modifying;
(6) Check and modify the initialization paratemter file if possible;
Steps:
Create a new initialization parameter file 'init.ora' on host (test1),
this file will be shared by each instance.
1. Invoke SQLPLUS, issue the following command:
SQL> create pfile='xxx' from spfile;
2. open "init.ora", add the following lines:
orcl1.local_listener=listener_orcl1
orcl2.local_listener=listener_orcl2
orcl1.remote_listener=listeners_orcl
orcl2.remote_listener=listeners_orcl
remove or comment this line:
*.remote_listener=listeners_orcl
(* represents this parameter will be used by each instance)
save the modification.
3. Invoke SQLPLUS again
SQL> shutdown immediate;
SQL> exit
SQL> startup pfile='xxx'
SQL> create spfile from pfile='xxx'
SQL> shutdown immediate;
SQL> exit
SQL> startup (new spfile will be used this time)
Note:
. If you don't change the listener's default port(1521), It's
unnecessary to add SID's entry in "listener.ora", Oracle
background process PMON will discovery all available
services every 60 seconds.
. If you use listener's default port(1521), It's unnecessary to
config parameter 'instance_name.local_listener=xxx' in
"init.ora" , you also shouldn't add this entry in
"tnsnames.ora" (local_listener_name = ...)
For example, a typical "listener.ora" should be like this:
listener_hostname =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(host=xxx)(port=1521))
(ADDRESS = (PROTOCOL = TCP)(host=your-vip-addr)(port=1521))
)
sid_list_listener_hostname =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = xxx)
(PROGRAM = extproc)
)
(SID_DESC =
(SID_NAME=xxx)
(ORACLE_HOME=xxx)
)
)
For example, a typical "tnsnames.ora" should be like this:
listener_hostname1=(address=(protocol=tcp)(host=test1)(port=1521))
listener_hostname2=(address=(protocol=tcp)(host=test2)(port=1521))
listeners_orcl =
(address_list =
(address=(protocol=tcp)(host=test1-vip)(port=1521))
(address=(protocol=tcp)(host=test2-vip)(port=1521))
)
# database connection: orcl
orcl =
(description =
(load_balance=on)
(address=(protocol=tcp)(host=test1-vip)(port=1521))
(address=(protocol=tcp)(host=test2-vip)(port=1521))
(connect_data =
(service_name=orcl)
)
)
# instance connection: orcl1
orcl1 =
(description =
(address=(protocol=tcp)(host=test1-vip)(port=1521))
(address=(protocol=tcp)(host=test2-vip)(port=1521))
(load_balance = yes)
(connect_data =
(server=dedicated)
(service_name=orcl)
(instance_name=orcl1)
)
)
# instance connection: orcl2
orcl2 =
(description =
(address=(protocol=tcp)(host=test1-vip)(port=1521))
(address=(protocol=tcp)(host=test2-vip)(port=1521))
(load_balance = yes)
(connect_data =
(server=dedicated)
(service_name=orcl2)
(failover_mode =
(type = select)
(method = basic)
(retries=180)
(delay=5)
)
)
)
Q2. How to recofig VIP ?
A2:
(1) delete the database using DBCA;
(2) delete the ASM(if configured) using documented procedure in 10g
Release notes;
(3) delete listeners using NetCA;
(4) delete nodeapps using srvctl as root user for all nodes.
for example:
srvctl stop nodeapps -n
srvctl remove nodeapps -n
Then you rerun vipca to reconfigure the VIPs, run netca to configure
listeners and dbca to create database to arrive at your initial state.
Q3: How to configure EM environment for RAC ?
1. Usually we only need run DBCA again to check the following
things exist:
. Check whether a schema "SYSMAN" has been created
(select username from all_users);
. Check if tablespace "SYSAUX" exists
(select tablespace_name from dba_tablespaces);
. Check if there is a directory has been
created under $ORACLE_HOME;
. Issue these commands to check dbconsole's status:
emctl start(stop/status) dbconsole
2. Trouble Shooting:
Q: Target's information is wrong or lost
A:
. Go to directory: $ORACLE_HOME/hostname_sid/emd,
open "targets.xml" to check if all available targets have
been discovered by EM;
. If the file doesn't include all targets'
information you need, You can try:
emctl stop dbconsole;
remove all files under these directories;
$ORACLE_HOME/hostname_sid/sysman/emd/upload
$ORACLE_HOME/hostname_sid/sysman/emd/state
check file again, make sure that at least
agent and host's info can be found from this file;
emctl start dbconsole; --wait for the new metic data
to be uploaded into the repository
3. If you've modified some settings of EM and the repository
has been created, you can execute "emca -r " to configure
the EM repository again;
4. Launch " port_number/em" on all nodes and
check them. [@more@]
A1. Usually, NETCA will launch automatically during the DBCA.
IF you have encountered some errors or want to reconfig
them later, please do the following things:
(1) Launch NETCA ;
(2) Choose the option "Cluster" in the first page;
(3) Choose one type such as "create listener",
"create local net service";
(4) Test the new created listener or local net service until success;
(5) By default, the application "srvctl" can only manage those
listeners with the suffix(host_name),So,please be very carefully
when modifying;
(6) Check and modify the initialization paratemter file if possible;
Steps:
Create a new initialization parameter file 'init.ora' on host (test1),
this file will be shared by each instance.
1. Invoke SQLPLUS, issue the following command:
SQL> create pfile='xxx' from spfile;
2. open "init.ora", add the following lines:
orcl1.local_listener=listener_orcl1
orcl2.local_listener=listener_orcl2
orcl1.remote_listener=listeners_orcl
orcl2.remote_listener=listeners_orcl
remove or comment this line:
*.remote_listener=listeners_orcl
(* represents this parameter will be used by each instance)
save the modification.
3. Invoke SQLPLUS again
SQL> shutdown immediate;
SQL> exit
SQL> startup pfile='xxx'
SQL> create spfile from pfile='xxx'
SQL> shutdown immediate;
SQL> exit
SQL> startup (new spfile will be used this time)
Note:
. If you don't change the listener's default port(1521), It's
unnecessary to add SID's entry in "listener.ora", Oracle
background process PMON will discovery all available
services every 60 seconds.
. If you use listener's default port(1521), It's unnecessary to
config parameter 'instance_name.local_listener=xxx' in
"init.ora" , you also shouldn't add this entry in
"tnsnames.ora" (local_listener_name = ...)
For example, a typical "listener.ora" should be like this:
listener_hostname =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(host=xxx)(port=1521))
(ADDRESS = (PROTOCOL = TCP)(host=your-vip-addr)(port=1521))
)
sid_list_listener_hostname =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = xxx)
(PROGRAM = extproc)
)
(SID_DESC =
(SID_NAME=xxx)
(ORACLE_HOME=xxx)
)
)
For example, a typical "tnsnames.ora" should be like this:
listener_hostname1=(address=(protocol=tcp)(host=test1)(port=1521))
listener_hostname2=(address=(protocol=tcp)(host=test2)(port=1521))
listeners_orcl =
(address_list =
(address=(protocol=tcp)(host=test1-vip)(port=1521))
(address=(protocol=tcp)(host=test2-vip)(port=1521))
)
# database connection: orcl
orcl =
(description =
(load_balance=on)
(address=(protocol=tcp)(host=test1-vip)(port=1521))
(address=(protocol=tcp)(host=test2-vip)(port=1521))
(connect_data =
(service_name=orcl)
)
)
# instance connection: orcl1
orcl1 =
(description =
(address=(protocol=tcp)(host=test1-vip)(port=1521))
(address=(protocol=tcp)(host=test2-vip)(port=1521))
(load_balance = yes)
(connect_data =
(server=dedicated)
(service_name=orcl)
(instance_name=orcl1)
)
)
# instance connection: orcl2
orcl2 =
(description =
(address=(protocol=tcp)(host=test1-vip)(port=1521))
(address=(protocol=tcp)(host=test2-vip)(port=1521))
(load_balance = yes)
(connect_data =
(server=dedicated)
(service_name=orcl2)
(failover_mode =
(type = select)
(method = basic)
(retries=180)
(delay=5)
)
)
)
Q2. How to recofig VIP ?
A2:
(1) delete the database using DBCA;
(2) delete the ASM(if configured) using documented procedure in 10g
Release notes;
(3) delete listeners using NetCA;
(4) delete nodeapps using srvctl as root user for all nodes.
for example:
srvctl stop nodeapps -n
srvctl remove nodeapps -n
Then you rerun vipca to reconfigure the VIPs, run netca to configure
listeners and dbca to create database to arrive at your initial state.
Q3: How to configure EM environment for RAC ?
1. Usually we only need run DBCA again to check the following
things exist:
. Check whether a schema "SYSMAN" has been created
(select username from all_users);
. Check if tablespace "SYSAUX" exists
(select tablespace_name from dba_tablespaces);
. Check if there is a directory
created under $ORACLE_HOME;
. Issue these commands to check dbconsole's status:
emctl start(stop/status) dbconsole
2. Trouble Shooting:
Q: Target's information is wrong or lost
A:
. Go to directory: $ORACLE_HOME/hostname_sid/emd,
open "targets.xml" to check if all available targets have
been discovered by EM;
. If the file
information you need, You can try:
emctl stop dbconsole;
remove all files under these directories;
$ORACLE_HOME/hostname_sid/sysman/emd/upload
$ORACLE_HOME/hostname_sid/sysman/emd/state
check file
agent and host's info can be found from this file;
emctl start dbconsole; --wait for the new metic data
to be uploaded into the repository
3. If you've modified some settings of EM and the repository
has been created, you can execute "emca -r " to configure
the EM repository again;
4. Launch " port_number/em" on all nodes and
check them.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/18921899/viewspace-1017052/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- about oracle10g rac(轉)Oracle
- Oracle10g RAC管理 - CRSOracle
- ORACLE10g修改RAC VIPOracle
- Oracle10g RAC配置standbyOracle
- 【RAC】Oracle10g RAC 節點重配的方式Oracle
- Oracle10g RAC 加節點Oracle
- WebMethod connect to Oracle10g RACWebOracle
- oracle10g rac for linux as 4.0OracleLinux
- 關於 RAC VIP (Oracle10G RAC) 的探討(zt)Oracle
- oracle10g RAC Default gateway is not defined (host=rac2) (vm)OracleGateway
- oracle10g ASM+RAC安裝OracleASM
- Oracle10g RAC設定記錄Oracle
- VMware 搭建 Oracle10g RAC 筆記Oracle筆記
- Oracle10g VMWare RAC搭建圖解Oracle圖解
- oracle10g rac(rhel)_PROC-22Oracle
- Oracle10g RAC ASM磁碟組[zt]OracleASM
- 【RAC】Oracle10g rac新增刪除節點命令參考Oracle
- 如何查詢Oracle10g RAC CRS版本Oracle
- Oracle10g RAC ASM 環境日常管理OracleASM
- oracle10g rac常用命令整理Oracle
- Oracle10g RAC with ocfs在windows安裝OracleWindows
- windows下oracle10g RAC的安裝WindowsOracle
- Oracle10g RAC安裝手冊 (zt)Oracle
- Oracle10g RAC 關閉及啟動Oracle
- Oracle10g RAC叢集基本命令Oracle
- Oracle10g rac 必須掌握的知識Oracle
- Oracle10g RAC開啟關閉過程Oracle
- Oracle10g RAC叢集基本命令(轉)Oracle
- Oracle10g RAC下啟用歸檔模式Oracle模式
- 在Oracle10g RAC下新增ASM磁碟組OracleASM
- 搭建 VM + RHLE5 + Oracle10g Rac + ASMOracleASM
- 在AIX上安裝配置Oracle10g RACAIOracle
- 在VMware 上安裝配置Oracle10g RACOracle
- Oracle10g RAC 刪除及加入節點Oracle
- oracle 10g rac 單例項恢復至ORACLE10G RAC RMANOracle 10g單例
- About HTMLHTML
- About interviewView
- About Personality