Monday, August 22, 2016

How to Delete Network Interface using command line.

Using below steps you can remove unwanted network interfaces

1. Running the ifconfig command without any arguments, it will display information about all network interfaces currently in operation.
  ifconfig  
 br-3b6bfc3c75d3 Link encap:Ethernet HWaddr 02:42:c2:fd:af:40   
      inet addr:172.18.0.1 Bcast:0.0.0.0 Mask:255.255.0.0  
      UP BROADCAST MULTICAST MTU:1500 Metric:1  
      RX packets:0 errors:0 dropped:0 overruns:0 frame:0  
      TX packets:0 errors:0 dropped:0 overruns:0 carrier:0  
      collisions:0 txqueuelen:0   
      RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)  
 docker0  Link encap:Ethernet HWaddr 02:42:20:1a:2f:00   
      inet addr:172.17.0.1 Bcast:0.0.0.0 Mask:255.255.0.0  
      UP BROADCAST MULTICAST MTU:1500 Metric:1  
      RX packets:0 errors:0 dropped:0 overruns:0 frame:0  
      TX packets:0 errors:0 dropped:0 overruns:0 carrier:0  
      collisions:0 txqueuelen:0   
      RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)   
 wlan0   Link encap:Ethernet HWaddr 08:d4:0c:24:66:b1   
      inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0  
      inet6 addr: fe80::ad4:cff:fe24:66b1/64 Scope:Link  
      UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1  
      RX packets:84889 errors:0 dropped:0 overruns:0 frame:0  
      TX packets:65370 errors:0 dropped:0 overruns:0 carrier:0  
      collisions:0 txqueuelen:1000   
      RX bytes:87479367 (87.4 MB) TX bytes:9885932 (9.8 MB)  

2. Select the network interface you need to remove.
For eg :
 docker0   

3 Disable the network interface. Using the “down” flag with interface name.
 sudo ip link set docker0 down  

4. Remove the network bridge name.
 sudo brctl delbr docker0  

Pls note that this is a temporary solution . If you restart  the machine, you have to redo above steps.



 

Friday, August 19, 2016

Increasing the number of process and sessions in Oracle 12C.

This post explains how to increase the number of process and sessions in Oracle 12C.
1. Log in to the database as system administrator
 sqlplus / as sysdba  
2. Check existing values for sessions and processes.
 show parameter sessions;   
 show parameter processes;  
3. Set the number of processes to you need to increase
 alter system set processes=<no_processes> scope=spfile;  
4. Remove the default session limit
 alter system reset sessions scope=spfile sid='*' ;  
5. Shutdown the database
 shutdown immediate;  
6. Restart listener.
 lsnrctl stop;   
 lsnrctl start;  
7. Startup database
 sqlplus / as sysdba  
 startup  
8. Check whether the changed values are set.
 show parameter sessions;  
 show parameter processes;   

Please note that when we increase the number for process, its  automatically increase value of  transactions .