INS-20802 Oracle Net Configuration Assistant Failed When Install 12c 32bit Oracle Client on Windows Server 2012 R2

INS-20802 error when install 32bit Oracle client on 64bit Windows.

SYMPTOM

When installing Oracle 12.1.0.2 32bit client onto Windows Server 2012R2, the following error occurred.

fail
INS-20802 Oracle Net Configuration Assistant Failed

SOLUTION

1) Click “..\winnt_12102_client32.zip\client32\stage\ext\bin\vcredist_x86.exe” and install “Microsoft Visual C++ 20xx Redistributable Package (x86)”. Then click “Retry again” to complete the installation successfully.

OR

2) Before installation, change “”..\winnt_12102_client32.zip\client32\install\oraparam.ini”. Then start the installation.

From :

MSVCREDIST_LOC=vcredist_x64.exe

TO;

MSVCREDIST_LOC=vcredist_x86.exe

Install 32bit Oracle Client on 64bit Windows

Sometimes 32bit Oracle client software is required for vendor applications.

This is to record the snapshots of installing 12.1.0.2 32bit Oracle client on 64bit Windows.

1) Unzip “winnt_12102_client32.zip” binariy and run ‘setup.exe”.

1

2) Choose “Administrator” installation.

2

3) Leave default ENGLISH language, and click NEXT.

3

4) Choose “Use Windows Built in Account”.

4

5) Supply C:\oracle as Oracle Base, and the client will be installed at “c:\oracle\product\12.1.0\client_1”.

The OraInventory will be at “C:\Program Files (x86)\Oracle\Inventory”

5

6) Prerequisites check.

6

7) Check the Summary. Click “Install”.

7

8) Monitor the progressing.

8

9)Installation is complete.

9

Client Side Load Balancing for Oracle RAC

How to make sure Oracle RAC client side load balancing is critical for Oracle RAC performance.

Client side load balancing balances the connection requests across the RAC instances. Set via LOAD_BALANCE parameter in the the net service name within a TNSNAMES.ORA file, it is just a random selection of the addresses in the address_list section of the net service name.

When clients connect using SCAN, Oracle Net automatically load balances client connection requests across the three IP addresses you defined for the SCAN, unless you are using EZConnect.

The tests are held under the following environment, we use both 11gR2 client and 10gR2 clients for testing the behaviors of client side load balancing by using SCAN and non-SCAN hostname.

                     GI: 12.1.0.2.0
4 nodes RAC:  11.2.0.4
Oracle Client: 11.2.0.4 and 10.2.0.5

This shell script is used to create multiple concurrent sessions to simulate database connections from clients.

$ cat create_multi_sessions.sh
#!/bin/bash
for ((i=1; i <= 40 ; i++))
do
nohup sqlplus -S testuser/password@RACTEST << EOT &
begin
    dbms_lock.sleep(20);
end;
/
EOT
done

The service name is RAC_TEST running on node1 and node4, while available nodes are node2 and node3.

$srvctl status service -s RAC_TEST -d TESTDB
Service RAC_TEST is running on instance(s) TESTDB1,TESTDB4
  • By using VIPs without “LOAD_BALANCE=ON”,  get same results from both 11gR2 and 10gR2 client. All connections go to first node where service RAC_TEST is running on.
 RACTEST_VIP =
 (DESCRIPTION =
 (ADDRESS = (PROTOCOL = TCP)(HOST =node1-vip)(PORT = 1521))
 (ADDRESS = (PROTOCOL = TCP)(HOST =node2-vip)(PORT = 1521))
 (ADDRESS = (PROTOCOL = TCP)(HOST =node3-vip)(PORT = 1521))
 (ADDRESS = (PROTOCOL = TCP)(HOST =node4-vip)(PORT = 1521))
 (CONNECT_DATA =
 (SERVICE_NAME = RAC_TEST)
 )
 )
SQL>select inst_id, username, count(*) 
      from gv$session 
     where username='TESTUSER' 
  group by inst_id, username;

INST_ID  USERNAME  COUNT(*)
-------- --------- --------
1        TESTUSER  40
  • By using VIPs adding “LOAD_BALANCE=ON”,  get same results from both 11gR2 and 10gR2 client. All connections are balanced on two nodes where service RAC_TEST are running on.
 RACTEST_VIP =
 (DESCRIPTION = ( LOAD_BALANE = ON )
 (ADDRESS = (PROTOCOL = TCP)(HOST =node1-vip)(PORT = 1521))
 (ADDRESS = (PROTOCOL = TCP)(HOST =node2-vip)(PORT = 1521))
 (ADDRESS = (PROTOCOL = TCP)(HOST =node3-vip)(PORT = 1521))
 (ADDRESS = (PROTOCOL = TCP)(HOST =node4-vip)(PORT = 1521))
 (CONNECT_DATA =
 (SERVICE_NAME = RAC_TEST)
 )
 )

SQL>select inst_id, username, count(*) 
      from gv$session 
     where username='TESTUSER' 
   group by inst_id, username;

INST_ID    USERNAME    COUNT(*)
---------- ---------- ---------
1           TESTUSER        20
4           TESTUSER        20
  • By using SCAN or SCAN IPs with or without “LOAD_BALANCE=ON”, get same results from both 11gR2 and 10gR2 client. All connections are balanced on two nodes where service RAC_TEST are running on.
RACTEST_SCAN =
 (DESCRIPTION =
 (ADDRESS = (PROTOCOL = TCP)(HOST =clu-scan)(PORT = 1521))
 (CONNECT_DATA =
 (SERVICE_NAME = RAC_TEST)
 )
 )

RACTEST_SCAN_IP =
 (DESCRIPTION =
 (ADDRESS = (PROTOCOL = TCP)(HOST =10.10.10.80)(PORT = 1521))
 (ADDRESS = (PROTOCOL = TCP)(HOST =10.10.10.81)(PORT = 1521))
 (ADDRESS = (PROTOCOL = TCP)(HOST =10.10.10.82)(PORT = 1521))
 (CONNECT_DATA =
 (SERVICE_NAME = RAC_TEST)
 )
 )


 INST_ID    USERNAME   COUNT(*)
 ---------- ---------- ---------
 1          TETSUSER   20
 4          TESTUSER   20

From the test, we can see the connections are always balanced on instances when SCAN or SCAN IPS are used in TNS entries. Below is the explanation from Oracle Doc.

Client Load Balancing using SCAN

When a SCAN Listener receives a connection request, the SCAN Listener will check for the least loaded instance providing the requested service. It will then re-direct the connection request to the  local listener on the node where the least loaded instance is running. Subsequently, the client will be given the address of the local listener. The local listener will finally create the connection to the database instance.

How to Configure 12c Enterprise Manager Database Express

  • Architecture for Oracle Enterprise Manager Database Express:

EM_DB_X

  • Check and configure DISPATCHERS parameter:
SQL> show parameter dispatchers

NAME TYPE VALUE
------------- --------- --------------------------------
dispatchers string (PROTOCOL=TCP) (SERVICE=cdb2XDB)
  • Use DBMS_XDB_CONFIG to set up HTTP or/and HTTPS ports

For HTTPS:

SQL> exec DBMS_XDB_CONFIG.sethttpsport(5500);

or for HTTP:

SQL> exec DBMS_XDB_CONFIG.sethttpport(5501);
  • To check the HTTPs or HTTP ports by:
SQL> select dbms_xdb_config.gethttpsport from dual;

GETHTTPSPORT
------------
5500

SQL>select dbms_xdb_config.gethttpport from dual;

GETHTTPPORT
-----------
5501
  •  Connect to Enterprise Manager Database Express  Console:

https://hostname:5500/em

or

http://hostname:5501/em

OEM Logon