Deploy Oracle Management Agent failed with error: HTTPS url https://emserverHost:4900/empbs/genwallet is not reachable from the target node
Today I tried to deploy Oracle Management Agent to one target host but always failed with the above error.
So I did below things to narrow down the issue
1. check if any firewall blocks the communication on port 4900
check /etc/sysconfig/iptables with root priviledge.
2. if it's not firewall issue, double check if host is reachable from target server. also double check if it's reachable via ipaddress
telnet host 4900
telnet ip 4900
In my case, telnet ip 4900 works but telnet hostname 4900 failed. so it means something wrong about dns hostname resolving.
It could be fix in dns level or add one more entry to /etc/hosts
Wednesday, February 15, 2012
Changing iptables to enable https on port 4900
I tried to deploy oracle management agent on one ovm, since all oracle vm are using iptables, so i got some error that failed to connect via https on port 4900 during agent push.
Here is what i did to enable https on port in iptables
1. [soa@vRRSOADEV01 agent_inst]$ sudo vi /etc/sysconfig/iptables
2. add one entry:
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 4900 -j ACCEPT
3. Save the changes and restart iptables via
[soa@vRRSOADEV01 agent_inst]$ sudo /sbin/service iptables restart
That's it.
Here is what i did to enable https on port in iptables
1. [soa@vRRSOADEV01 agent_inst]$ sudo vi /etc/sysconfig/iptables
2. add one entry:
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 4900 -j ACCEPT
3. Save the changes and restart iptables via
[soa@vRRSOADEV01 agent_inst]$ sudo /sbin/service iptables restart
That's it.
Tuesday, February 14, 2012
Could not execute auto check for display colors using command /usr/bin/xdpyinfo
When try to install oracle database 11gR2 on RedHat Linux 5.2 (running on Oracle VM) via running runInstaller.sh in ssh
I hit the below error:
Could not execute auto check for display colors using command /usr/bin/xdpyinfo
This is the installation of Linux without installing x11 server.
1. So I run the below command to install x11 server
yum install xorg-x11-server-Xorg xorg-x11-server-common.
2. If you haven't configured yum before, please follow the below document to config yum
http://public-yum.oracle.com/
basiclly, you need to login as root, wget yum repository, enable repository update, then u can use yum install to update your linux env.
3. If it still doesn't work, double check if you use 'su - oracle' because Using 'su - oracle' will break X screen forwarding or proper display when using Oracle runInstaller.
So you need ssh the host with user oracle.
I hit the below error:
Could not execute auto check for display colors using command /usr/bin/xdpyinfo
This is the installation of Linux without installing x11 server.
1. So I run the below command to install x11 server
yum install xorg-x11-server-Xorg xorg-x11-server-common.
2. If you haven't configured yum before, please follow the below document to config yum
http://public-yum.oracle.com/
basiclly, you need to login as root, wget yum repository, enable repository update, then u can use yum install to update your linux env.
3. If it still doesn't work, double check if you use 'su - oracle' because Using 'su - oracle' will break X screen forwarding or proper display when using Oracle runInstaller.
So you need ssh the host with user oracle.
Monday, February 13, 2012
How to switch dhcp to static ip and change hostname on Linux
Change Hostname
1. vi /etc/sysconfig/network
2. change HOSTNAME=xxxxxx
3. save changes
4. restart the xinetd service. (ex: type service xinetd restart
Change DHCP to Static IP
1. vi /etc/sysconfig/network-scripts/ifcfg-eth0
2. do the below changes
from
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:D0:B7:08:09:BB
ONBOOT=yes
To
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
HWADDR=00:16:3E:17:82:7C
IPADDR=192.168.1.146
NETMASK=255.255.255.0
GATEWAY=192.168.1.254
TYPE=Ethernet
1. vi /etc/sysconfig/network
2. change HOSTNAME=xxxxxx
3. save changes
4. restart the xinetd service. (ex: type service xinetd restart
Change DHCP to Static IP
1. vi /etc/sysconfig/network-scripts/ifcfg-eth0
2. do the below changes
from
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:D0:B7:08:09:BB
ONBOOT=yes
To
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
HWADDR=00:16:3E:17:82:7C
IPADDR=192.168.1.146
NETMASK=255.255.255.0
GATEWAY=192.168.1.254
TYPE=Ethernet
Sunday, February 12, 2012
How to install Enterprise Manager Cloud Control 12C in Silent Mode
I plan to install Enterprise Manager Cloud Control 12C to the virtual machine accessed via VPN.
The normal installation procedure with GUI part is very slow via VPN and it's risky whenever VPN connection gets reset, I may lost what I have done or cause some inconsistent status.
So I decide to use silent mode to install Enterprise Manager Cloud Control 12C.
Silent mode has 2 parts: 1. Install software only. 2. Config software.
1. Install software
open and edit the software_only_new.rsp under <InstallationPackage>/response folder
Here is the workable software_only_new.rsp I am using
RESPONSEFILE_VERSION=2.2.1.0.0
UNIX_GROUP_NAME=soa
INVENTORY_LOCATION=/home/soa/oraInventory
[soa@vrremcc12c installer]$ ./runInstaller -silent -responseFile /u01/app/oracle/data/emcc/installer/response /software_only_new.rsp
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 400 MB. Actual 650 MB Passed
Checking swap space: must be greater than 150 MB. Actual 6074 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-02-13_10-54-42PM. Please wait ...[soa @vrremcc12c installer]$
Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/jdk16
Installation in progress
........
Install successful
Linking in progress
Link successful
Setup in progress
Setup successful
Installing Oracle WebLogic Server
The normal installation procedure with GUI part is very slow via VPN and it's risky whenever VPN connection gets reset, I may lost what I have done or cause some inconsistent status.
So I decide to use silent mode to install Enterprise Manager Cloud Control 12C.
Silent mode has 2 parts: 1. Install software only. 2. Config software.
1. Install software
open and edit the software_only_new.rsp under <InstallationPackage>/response folder
Here is the workable software_only_new.rsp I am using
RESPONSEFILE_VERSION=2.2.1.0.0
UNIX_GROUP_NAME=soa
INVENTORY_LOCATION=/home/soa/oraInventory
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
MYORACLESUPPORT_USERNAME=<Value Unspecified>
MYORACLESUPPORT_PASSWORD=<Value Unspecified>
INSTALL_UPDATES_SELECTION="skip"
STAGE_LOCATION=<Value Unspecified>
MYORACLESUPPORT_USERNAME_FOR_SOFTWAREUPDATES=<Value Unspecified>
MYORACLESUPPORT_PASSWORD_FOR_SOFTWAREUPDATES=<Value Unspecified>
ORACLE_MIDDLEWARE_HOME_LOCATION=/u01/app/oracle/product/emcc12c_instance/middleware
PLUGIN_SELECTION={"oracle.em.soee"}
FROM_LOCATION=/u01/app/oracle/data/emcc/installer/oms/Disk1/stage/products.xml
DEINSTALL_LIST={"oracle.sysman.top.oms","12.1.0.1.0"}
REMOVE_HOMES=<Value Unspecified>
b_upgrade=false
EM_INSTALL_TYPE="NOSEED"
CONFIGURATION_TYPE="LATER"
TOPLEVEL_COMPONENT={"oracle.sysman.top.oms","12.1.0.1.0"}
2. Run the below command to install software only
<InstallationPackage>/runInstaller -silent -responseFile <AbosultePath>/software_only_new.rsp
[soa@vrremcc12c installer]$ ./runInstaller -silent -responseFile /u01/app/oracle/data/emcc/installer/response /software_only_new.rsp
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 400 MB. Actual 650 MB Passed
Checking swap space: must be greater than 150 MB. Actual 6074 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-02-13_10-54-42PM. Please wait ...[soa @vrremcc12c installer]$
Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/jdk16
Installation in progress
........
Install successful
Linking in progress
Link successful
Setup in progress
Setup successful
Installing Oracle WebLogic Server
[soa@vrremcc12c installer]$
Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/oms
Installation in progress
.......Installation in progress
..
Install successful
Linking in progress
Link successful
Setup in progress
Setup successful
Unzipping operation is succeed..
the location is : /u01/app/oracle/product/emcc12c_instance/middleware/oms/install/tmp_installer/oracle.sysman.db/12.1.0.1.0
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/install/tmp_installer/oracle.sysman.db/12.1.0.1.0/12.1.0.1.0_OMS_2000_0.zip
You can find the log of this install session at:
/home/soa/oraInventory/logs/cloneActions2012-02-13_11-01-10-PM.log
Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/plugins/oracle.sysman.db.oms.plugin_12.1.0.1.0
Installation in progress
.
Install successful
Linking in progress
Link successful
Setup in progress
Setup successful
Unzipping operation is succeed..
the location is : /u01/app/oracle/product/emcc12c_instance/middleware/oms/install/tmp_installer/oracle.sysman.xa/12.1.0.1.0
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/install/tmp_installer/oracle.sysman.xa/12.1.0.1.0/12.1.0.1.0_OMS_2000_0.zip
You can find the log of this install session at:
/home/soa/oraInventory/logs/cloneActions2012-02-13_11-02-30-PM.log
Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/plugins/oracle.sysman.xa.oms.plugin_12.1.0.1.0
Installation in progress
Install successful
Linking in progress
Link successful
Setup in progress
Setup successful
Unzipping operation is succeed..
the location is : /u01/app/oracle/product/emcc12c_instance/middleware/oms/install/tmp_installer/oracle.sysman.emas/12.1.0.1.0
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/install/tmp_installer/oracle.sysman.emas/12.1.0.1.0/12.1.0.1.0_OMS_2000_0.zip
You can find the log of this install session at:
/home/soa/oraInventory/logs/cloneActions2012-02-13_11-02-53-PM.log
Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/plugins/oracle.sysman.emas.oms.plugin_12.1.0.1.0
Installation in progress
Install successful
Linking in progress
Link successful
Setup in progress
Setup successful
Unzipping operation is succeed..
the location is : /u01/app/oracle/product/emcc12c_instance/middleware/oms/install/tmp_installer/oracle.sysman.mos/12.1.0.1.0
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/install/tmp_installer/oracle.sysman.mos/12.1.0.1.0/12.1.0.1.0_OMS_2000_0.zip
You can find the log of this install session at:
/home/soa/oraInventory/logs/cloneActions2012-02-13_11-04-05-PM.log
Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/plugins/oracle.sysman.mos.oms.plugin_12.1.0.1.0
Installation in progress
Install successful
Linking in progress
Link successful
Setup in progress
Setup successful
[soa@vrremcc12c installer]$ Unzipping operation is succeed..
the location is : /u01/app/oracle/product/emcc12c_instance/middleware/oms/install/tmp_installer/oracle.em.soee/12.1.0.1.0
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/install/tmp_installer/oracle.em.soee/12.1.0.1.0/12.1.0.1.0_OMS_2000_0.zip
You can find the log of this install session at:
/home/soa/oraInventory/logs/cloneActions2012-02-13_11-04-28-PM.log
Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/plugins/oracle.em.soee.oms.plugin_12.1.0.1.0
Installation in progress
Install successful
Linking in progress
Link successful
Setup in progress
Setup successful
Unzipping operation is succeed..
the location is : /u01/app/oracle/product/emcc12c_instance/middleware/oms/sysman/install/plugins/oracle.sysman.beacon/12.1.0.1.0
Unzipping operation is succeed..
the location is : /u01/app/oracle/product/emcc12c_instance/middleware/oms/sysman/install/plugins/oracle.sysman.oh/12.1.0.1.0
Unzipping operation is succeed..
the location is : /u01/app/oracle/product/emcc12c_instance/middleware/oms/sysman/install/plugins/oracle.sysman.csa/12.1.0.1.0
Unzipping operation is succeed..
the location is : /u01/app/oracle/product/emcc12c_instance/middleware/oms/sysman/install/plugins/oracle.sysman.emrep/12.1.0.1.0
You can find the log of this install session at:
/home/soa/oraInventory/logs/cloneActions2012-02-13_11-05-05-PM.log
Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/agent/core/12.1.0.1.0
Installation in progress
......
Install successful
Linking in progress
Link successful
Setup in progress
....
Setup successful
You can find the log of this install session at:
/home/soa/oraInventory/logs/cloneActions2012-02-13_11-06-10-PM.log
Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/agent/sbin
Installation in progress
Install successful
Linking in progress
Link successful
Setup in progress
Setup successful
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/sysman/install/plugins/oracle.sysman.emas/12.1.0.1.0/12.1.0.1.0_Agent_2000_0.zip
You can find the log of this install session at:
/home/soa/oraInventory/logs/cloneActions2012-02-13_11-06-54-PM.log
Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/agent/plugins/oracle.sysman.emas.agent.plugin_12.1.0.1.0
Installation in progress
Install successful
Linking in progress
Link successful
Setup in progress
Setup successful
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/sysman/install/plugins/oracle.sysman.emrep/12.1.0.1.0/12.1.0.1.0_Agent_2000_0.zip
You can find the log of this install session at:
/home/soa/oraInventory/logs/cloneActions2012-02-13_11-07-17-PM.log
Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/agent/plugins/oracle.sysman.emrep.agent.plugin_12.1.0.1.0
Installation in progress
Install successful
Linking in progress
Link successful
Setup in progress
Setup successful
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/sysman/install/plugins/oracle.sysman.beacon/12.1.0.1.0/12.1.0.1.0_Agent_2000_0.zip
You can find the log of this install session at:
/home/soa/oraInventory/logs/cloneActions2012-02-13_11-07-40-PM.log
Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/agent/plugins/oracle.sysman.beacon.agent.plugin_12.1.0.1.0
Installation in progress
Install successful
Linking in progress
Link successful
Setup in progress
Setup successful
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/sysman/install/plugins/oracle.sysman.db/12.1.0.1.0/12.1.0.1.0_Discovery_2000_0.zip
You can find the log of this install session at:
/home/soa/oraInventory/logs/cloneActions2012-02-13_11-08-03-PM.log
Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/agent/plugins/oracle.sysman.db.discovery.plugin_12.1.0.1.0
Installation in progress
.
Install successful
Linking in progress
Link successful
Setup in progress
Setup successful
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/sysman/install/plugins/oracle.sysman.oh/12.1.0.1.0/12.1.0.1.0_Discovery_2000_0.zip
You can find the log of this install session at:
/home/soa/oraInventory/logs/cloneActions2012-02-13_11-08-26-PM.log
Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/agent/plugins/oracle.sysman.oh.discovery.plugin_12.1.0.1.0
Installation in progress
Install successful
Linking in progress
Link successful
Setup in progress
Setup successful
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/sysman/install/plugins/oracle.sysman.xa/12.1.0.1.0/12.1.0.1.0_Discovery_2000_0.zip
You can find the log of this install session at:
/home/soa/oraInventory/logs/cloneActions2012-02-13_11-08-48-PM.log
Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/agent/plugins/oracle.sysman.xa.discovery.plugin_12.1.0.1.0
Installation in progress
Install successful
Linking in progress
Link successful
Setup in progress
Setup successful
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/sysman/install/plugins/oracle.sysman.emas/12.1.0.1.0/12.1.0.1.0_Discovery_2000_0.zip
You can find the log of this install session at:
/home/soa/oraInventory/logs/cloneActions2012-02-13_11-09-11-PM.log
Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/agent/plugins/oracle.sysman.emas.discovery.plugin_12.1.0.1.0
Installation in progress
Install successful
Linking in progress
Link successful
Setup in progress
Setup successful
Installing plugin /u01/app/oracle/product/emcc12c_instance/middleware/oms/sysman/install/plugins/oracle.sysman.csa/12.1.0.1.0/12.1.0.1.0_Discovery_2000_0.zip
You can find the log of this install session at:
/home/soa/oraInventory/logs/cloneActions2012-02-13_11-09-33-PM.log
Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/agent/plugins/oracle.sysman.csa.discovery.plugin_12.1.0.1.0
Installation in progress
Install successful
Linking in progress
Link successful
Setup in progress
Setup successful
You can find the log of this install session at:
/home/soa/oraInventory/logs/cloneActions2012-02-13_11-09-55-PM.log
Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/oracle_common
Installation in progress
........
Install successful
Linking in progress
Link successful
Setup in progress
..
Setup successful
You can find the log of this install session at:
/home/soa/oraInventory/logs/cloneActions2012-02-13_11-13-53-PM.log
Installing ORACLE_HOME /u01/app/oracle/product/emcc12c_instance/middleware/Oracle_WT
Installation in progress
........
Install successful
Linking in progress
Link successful
Setup in progress
.
Setup successful
Running command : /u01/app/oracle/product/emcc12c_instance/middleware/oms/perl/bin/perl /u01/app/oracle/product/emcc12c_instance/middleware/oms/install/oneoffs/apply_NewOneoffs.pl /u01/app/oracle/product/emcc12c_instance/middleware/oms true
Warning: The following configuration scripts need to be executed as the "root" user
/u01/app/oracle/product/emcc12c_instance/middleware/oms/allroot.sh
To execute the configuration scripts:
1. Open a new terminal window
2. Login in as "root"
3. Run the scripts
Enterprise Manager Cloud Control Installation has finished.
3. After finish installation, run $<oms_home>/allroot.sh with root privilege.
Now we have finished software installation part. We need walk through the configuration part to make enterprise manager cloud control 12c run properly. :)
How to Install Oracle Database 11gR2 in Silent Mode
I need install Oracle DB 11gR2 to OVM in remote city via VPN.
The difficulty is via VPN, it's very slow to do normal installation with GUI via ssh.
So I decide to do silent installation without any GUI part involved.
Here is the workable response file sample for installation and configuration of database.
You can use the below command to run the silent mode and after installation finish, run root.sh with root privilege.
./runInstaller -silent -responseFile /u01/app/oracle/data/db/database/db_install_new.rsp
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
oracle.install.option=INSTALL_DB_AND_CONFIG
ORACLE_HOSTNAME=myhost.com.au
UNIX_GROUP_NAME=soa
INVENTORY_LOCATION=/home/soa/oraInventory
The way to create db instance via dbca silently:
<Oracle_Home>/bin/dbca -silent -createDatabase -templateName General_Purpose.dbc -sid emcc12c -gdbName emcc12c -emConfiguration LOCAL -storageType FS -datafileDestination /u01/app/oracle/product/11.2.0/oradata -datafileJarLocation /u01/app/oracle/product/11.2.0/dbhome_1/assistants/dbca/templates -responseFile /u01/app/oracle/data/db/db_install_new.rsp -characterset AL32UTF8 -obfuscatedPasswords false -sampleSchema false -oratabLocation /u01/app/oracle/product/11.2.0/dbhome_1/install/oratab -automaticMemoryManagement true -totalMemory 512 -maskPasswords false -oui_internal
The difficulty is via VPN, it's very slow to do normal installation with GUI via ssh.
So I decide to do silent installation without any GUI part involved.
Here is the workable response file sample for installation and configuration of database.
You can use the below command to run the silent mode and after installation finish, run root.sh with root privilege.
./runInstaller -silent -responseFile /u01/app/oracle/data/db/database/db_install_new.rsp
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
oracle.install.option=INSTALL_DB_AND_CONFIG
ORACLE_HOSTNAME=myhost.com.au
UNIX_GROUP_NAME=soa
INVENTORY_LOCATION=/home/soa/oraInventory
SELECTED_LANGUAGES=en
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.isCustomInstall=false
oracle.install.db.customComponents=oracle.server:11.2.0.1.0,oracle.sysman.ccr:10.2.7.0.0,oracle.xdk:11.2.0.1.0,oracle.rdbms.oci:11.2.0.1.0,oracle.network:11.2.0.1.0,oracle.network.listener:11.2.0.1.0,oracle.rdbms:11.2.0.1.0,oracle.options:11.2.0.1.0,oracle.rdbms.partitioning:11.2.0.1.0,oracle.oraolap:11.2.0.1.0,oracle.rdbms.dm:11.2.0.1.0,oracle.rdbms.dv:11.2.0.1.0,orcle.rdbms.lbac:11.2.0.1.0,oracle.rdbms.rat:11.2.0.1.0
oracle.install.db.DBA_GROUP=soa
oracle.install.db.OPER_GROUP=soa
oracle.install.db.CLUSTER_NODES=
oracle.install.db.config.starterdb.type=GENERAL_PURPOSE/TRANSACTION_PROCESSING
oracle.install.db.config.starterdb.globalDBName=emcc
oracle.install.db.config.starterdb.SID=emcc
oracle.install.db.config.starterdb.characterSet=AL32UTF8
oracle.install.db.config.starterdb.memoryOption=true
oracle.install.db.config.starterdb.memoryLimit=512
oracle.install.db.config.starterdb.installExampleSchemas=false
oracle.install.db.config.starterdb.enableSecuritySettings=true
oracle.install.db.config.starterdb.password.ALL=welcome1
oracle.install.db.config.starterdb.password.SYS=welcome1
oracle.install.db.config.starterdb.password.SYSTEM=welcome1
oracle.install.db.config.starterdb.password.SYSMAN=welcome1
oracle.install.db.config.starterdb.password.DBSNMP=welcome1
oracle.install.db.config.starterdb.control=DB_CONTROL
oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL=
oracle.install.db.config.starterdb.dbcontrol.enableEmailNotification=false
oracle.install.db.config.starterdb.dbcontrol.emailAddress=
oracle.install.db.config.starterdb.dbcontrol.SMTPServer=
oracle.install.db.config.starterdb.automatedBackup.enable=false
oracle.install.db.config.starterdb.automatedBackup.osuid=
oracle.install.db.config.starterdb.automatedBackup.ospwd=
oracle.install.db.config.starterdb.storageType=FILE_SYSTEM_STORAGE
oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=/u01/app/oracle/oradata
oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=
oracle.install.db.config.asm.diskGroup=
oracle.install.db.config.asm.ASMSNMPPassword=
MYORACLESUPPORT_USERNAME=
MYORACLESUPPORT_PASSWORD=
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=false
PROXY_HOST=
PROXY_PORT=
PROXY_USER=
PROXY_PWD=
The way to create db instance via dbca silently:
<Oracle_Home>/bin/dbca -silent -createDatabase -templateName General_Purpose.dbc -sid emcc12c -gdbName emcc12c -emConfiguration LOCAL -storageType FS -datafileDestination /u01/app/oracle/product/11.2.0/oradata -datafileJarLocation /u01/app/oracle/product/11.2.0/dbhome_1/assistants/dbca/templates -responseFile /u01/app/oracle/data/db/db_install_new.rsp -characterset AL32UTF8 -obfuscatedPasswords false -sampleSchema false -oratabLocation /u01/app/oracle/product/11.2.0/dbhome_1/install/oratab -automaticMemoryManagement true -totalMemory 512 -maskPasswords false -oui_internal
Saturday, February 11, 2012
How To Add Swap Partition to Linux in Oracle VM
Hi,
I play with OVM this weekend and when I try to install Oracle database, it complains that I need increase swap space.
There is a 2 way to increase swap: by adding swap file or add a new swap partition.
Since there is not enough disk space for linux virtual disk in this Oracle virtual machine, so I decide to add new virtual disk as new swap partition.
Here is the step by step
1. Login oracle vm server manager console
2. Select virtual machine name and hit Configuration
3. Hit Storage tab
4. Hit Create New Virtual Disk, for example the new virtual disk is /dev/sdd
5. After virtual Disk created properly, login virtual machine
6. use su to change root user
[soa@vrremcc12c ~]$ su
Password:
7. free -k to check how much swap space is currently used
[root@vrremcc12c soa]# free -k
total used free shared buffers cached
Mem: 6117676 192628 5925048 0 9368 56500
-/+ buffers/cache: 126760 5990916
Swap: 1052248 0 1052248
I play with OVM this weekend and when I try to install Oracle database, it complains that I need increase swap space.
There is a 2 way to increase swap: by adding swap file or add a new swap partition.
Since there is not enough disk space for linux virtual disk in this Oracle virtual machine, so I decide to add new virtual disk as new swap partition.
Here is the step by step
1. Login oracle vm server manager console
2. Select virtual machine name and hit Configuration
3. Hit Storage tab
4. Hit Create New Virtual Disk, for example the new virtual disk is /dev/sdd
5. After virtual Disk created properly, login virtual machine
6. use su to change root user
[soa@vrremcc12c ~]$ su
Password:
7. free -k to check how much swap space is currently used
[root@vrremcc12c soa]# free -k
total used free shared buffers cached
Mem: 6117676 192628 5925048 0 9368 56500
-/+ buffers/cache: 126760 5990916
Swap: 1052248 0 1052248
8. user fdisk -l to check the new partition mounted
Disk /dev/sdd: 5368 MB, 5368709120 bytes
166 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 10292 * 512 = 5269504 bytes
Disk /dev/sdd doesn't contain a valid partition table
9 format the new partition by fdisk
[root@vrremcc12c soa]# /sbin/fdisk /dev/sdd
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1018, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1018, default 1018):
Using default value 1018
Command (m for help): p
Disk /dev/sdd: 5368 MB, 5368709120 bytes
166 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 10292 * 512 = 5269504 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 1 1018 5238597 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
10. setup newly created partition by mkswap
[root@vrremcc12c soa]# /sbin/swapon -s
Filename Type Size Used Priority
/dev/hda3 partition 1052248 0 -1
[root@vrremcc12c soa]# /sbin/mkswap /dev/sdd1
Setting up swapspace version 1, size = 5364318 kB
11. enable swap partition
[root@vrremcc12c soa]# /sbin/swapon /dev/sdd1
[root@vrremcc12c soa]# swap/sbin/on -s
Filename Type Size Used Priority
/dev/hda3 partition 1052248 0 -1
/dev/sdd1 partition 5238588 0 -2
[root@vrremcc12c soa]#
12. update /etc/fstab file with new swap area
/dev/sdd1 swap swap defaults 0 0
Tuesday, February 7, 2012
Coherence Issue
These days, cope with coherence issues, will blog it when find the solution or workaround.
Post this blog to remind myself document what I have done for coherence area recently.
Post this blog to remind myself document what I have done for coherence area recently.
Subscribe to:
Posts (Atom)