Oracle clusterware server pools
Hello Oracle fans!
These days i've started reading the clusterware doc from here http://docs.oracle.com/cd/E11882_01/rac.112/e16794/toc.htm and since i didn't found to much info/examples of administrating server pools at the chapter II Administering Oracle Clusterware i decided to take a look on other resources like blogs& notes. Here http://www.dbametrix.com/oracle-11g-server-pool.html i found the folowing note:
"New concept was introduced called server pools in Oracle RAC for managing RAC database in Oracle 11g RAC. Before Oracle 11.2 RAC, increasing and removing instances in RAC database is manual process. After introduction of server pool the new concept in Oracle 11g R.2, need to allocate new node in server pool only *because after that all tasks are being performed by server pool automatically*. *We can say that, prior of Oracle 11g R.2 RAC there was Database Administrator based management available because adding node to Clusterware, adding and removing instance from Oracle RAC, creating redo logs, control files, undo tablespace for specific new instance were done by Database Administrator. Nowadays from Oracle 11g R.2 RAC these all tasks are automated using server pool new feature of Oracle 11g RAC."*
Since i dont have resources in my test env. to add a 3rd node for tests and hoping that the note is correct (or my undertstanding is ok), my question is : after configuring a new cluster node, the addition of a RAC instance on this resumes to adding a server in the server pool where the other RAC DB nodes "resides"??
With the resources that i have i tested removing of one node from a 2 nodes RAC and adding it back , but the home files were already installed there !
Thanks !
Hello Oracle fans!
These days i've started reading the clusterware doc from here http://docs.oracle.com/cd/E11882_01/rac.112/e16794/toc.htm and since i didn't found to much info/examples of administrating server pools at the chapter II Administering Oracle Clusterware i decided to take a look on other resources like blogs& notes. Here http://www.dbametrix.com/oracle-11g-server-pool.html i found the folowing note:
"New concept was introduced called server pools in Oracle RAC for managing RAC database in Oracle 11g RAC. Before Oracle 11.2 RAC, increasing and removing instances in RAC database is manual process. After introduction of server pool the new concept in Oracle 11g R.2, need to allocate new node in server pool only *because after that all tasks are being performed by server pool automatically*. *We can say that, prior of Oracle 11g R.2 RAC there was Database Administrator based management available because adding node to Clusterware, adding and removing instance from Oracle RAC, creating redo logs, control files, undo tablespace for specific new instance were done by Database Administrator. Nowadays from Oracle 11g R.2 RAC these all tasks are automated using server pool new feature of Oracle 11g RAC."*
Since i dont have resources in my test env. to add a 3rd node for tests and hoping that the note is correct (or my undertstanding is ok), my question is : after configuring a new cluster node, the addition of a RAC instance on this resumes to adding a server in the server pool where the other RAC DB nodes "resides"??
With the resources that i have i tested removing of one node from a 2 nodes RAC and adding it back , but the home files were already installed there !
Thanks !
Similar Messages
-
Fresh install of Oracle VM Manager Template into Oracle VM Server
Hi,
I am trying to install the Oracle VM Manager template and then
create an Oracle VM Manager client.
I have already done a 'fresh install' of Oracle VM Server.
I do not have another machine available to use to contain the
'Oracle VM Manager', therefore, I am attempting to install the
Oracle VM Manager template directly into an Oracle VM Manager Server and
run the client.
I am following the instructions of the Oracle VM Server Users Guide
in section 4.3.
When I extract the zip file contents into the
/OVS/seed_pool directory, I get the following files.
Deploy_Manager_Template.sh
OVM_EL5U3_X86_OVM_MANAGER_PVM.tgz
So far, so good.
Next, I used 'tar' to help me extract the directories of the .tgz file.
So far, so good.
Next, as instructed, I used 'python' and 'print randomMAC()' to create a new MAC address.
Inside the /OVS/seed_pool/OVM_EL5U3_X86_OVM_MANAGER_PVM/vm.cfg file
I modified the vif MAC address. I replaced the
xx:xx:xx with the 'last three' that were generated by the python randomMAC
function from above.
vif = [ 'mac=00:16:3E:<my generated numbers>', ]
So far, so good?
In the Oracle VM Server Users Guide in section 4.3.,
The next step, expains that I should run
xm create mv.cfg
I did this. When I ran this I received back the error.
Using config file "./vm.cfg"
Error disk is not accessible.
When I peek inside my vm.cfg file.
I see file references starting with the following
file:/OVS/running_pool/ ...
Of, course my running_pool directory is empty.
(Again, this is a fresh install of Oracle VM Server).
My first question is the following.
Sometime in this process was I supposed to run
the the following executable?
./Deploy_Manager_Template.sh
If so, should I have done this early?
Was the modification of the vif (of adding the MAC address
into the vm.cfg file, something I 'should have not done'
or 'something that could be ignored' because the
'./Deploy_Manager_Template.sh' would have done this for me?
My second question is the following.
Would the following process be 'more correct?'
..1 Not modify the vm.cfg' file.
..2 run ./Deploy_Manager_Template.sh.
..3 In the /OVS/running_pool/ directory find my
vm.cfg file of interest, then modify the vif with a new MAC address.
..4 In /OVS/running_pool/Change my current location to my directory of interest
run xm create vm.cfg (to run my Oracle VM Manager)?
Any help or ideas whould be appreciated.
Thank you very much,
AIMHi,
This is the README file for Oracle VM Manager 2.2.0
Readme for Media Pack B57738-01
Print: Access key=P Close: Access key=C
Oracle VM Templates for Oracle VM Manager 2.2.0 Media Pack v1 for x86 (32 bit)
=====================================================================
Template Version 2.3
Oracle VM Manager Version 2.2.0
This document contains:
1. Prerequisites for Oracle VM Manager virtual machine (VM) deployment
2. Oracle VM Manager Template description
3. Creating an Oracle VM Manager Virtual Machine from
Oracle VM Manager Template
4. Deployment Interview
5. Known Issues
For more information on Oracle VM Manager, please refer to
the "Oracle VM Manager Installation Guide" and the "Oracle VM Manager
User's Guide" available at:
http://download.oracle.com/docs/cd/E15458_01/index.htm
1. Prerequisites
================
- A new install of Oracle VM Server 2.2 that has NOT been managed by another
Oracle VM Manager. Manager Template 2.2 is intended to be installed on Oracle
VM 2.2 server. If you have a new Oracle VM 2.1.5 server and want to deploy
Oracle VM Manager template, please use the Oracle VM 2.1.5 Manager template.
Note: root access to the server's dom0 is required.
- It's highly recommended that you upgrade the default agent (ovs-agent-2.3-19)
to ovs-agent-2.3-27 or later. You can get the latest Oracle VM 2.2 packages
from Oracle's Unbreakable Linux Network (http://linux.oracle.com).
Note: Alternate location to get Oracle VM agent 2.3-27 is
http://oss.oracle.com/oraclevm/server/2.2/RPMS/ovs-agent-2.3-27.noarch.rpm
- A working directory of the Oracle VM Server 2.2 has at least 4GB free space
for downloading and installing the template. The working directory can be any
directory on the Oracle VM server except /OVS/running_pool.
Note: The /root partition of the default Oracle VM server install may not have
enough space to temporarily host the template installation. Please use other
directory that has sufficient free space.
- At least 15GB of free space in the cluster root storage repository. For storage
and repository configuration, please refer to Oracle VM 2.2 Server User Guide:
http://download.oracle.com/docs/cd/E15458_01/doc.22/e15444/storage.htm
and
http://download.oracle.com/docs/cd/E15458_01/doc.22/e15444/repository.htm
- At least 2GB of free memory on the Oracle VM Server
- A static IP address for the Oracle VM Manager
- If enabling HA (high availability) for the Oracle VM Manager,
mount a clustered OCFS2 or NFS filesystem on /OVS. If ext3 or a
local OCFS2 filesystem is used, enabling HA will cause the high availability
prerequisite checking to fail. The Oracle VM Manager configuration
process will exit without completing the configuration.
- The Oracle VM Manager will register the first VM that it detects.
To have Oracle VM Manager be the first VM registered,
make sure there are no virtual machine images besides the Oracle VM Manager
virtual machine in the /OVS/running_pool directory on the Oracle VM Server.
- A desktop or other system with a VNC Viewer installed
The steps below assume that the Oracle VM Server used is not currently
or was not previously managed by another Oracle VM Manager. If this is not
the case, the instructions below will ask user clean up Oracle VM Agent DB
before running the Oracle VM Manager.
2. Oracle VM Manager Template Description
=========================================
The Oracle VM Manager Template is distributed as one archive file which
includes:
File Version
OVM_EL5U3_X86_OVM_MANAGER_PVM.tgz 2.3
Deploy_Manager_Template.sh 2.3
The OVM_EL5U3_X86_OVM_MANAGER_PVM.tgz archive contains two disk images,
a VM configuration file and a readme file:
- Oracle Enterprise Linux 5.3 x86 system disk image
- Oracle VM Manager 2.2 disk image
- vm.cfg
- README
The system image is a JeOS (Just enough OS) installation of Oracle
Enterprise Linux 5.3. It is a smaller footprint install that contains
the only packages needed by Oracle VM Manager.
Oracle VM Manager is configured to use Oracle Database 10g
Express Edition (included).
Deploy_Manager_Template.sh is used to check the prerequisite and
create virtual machine.
During the first boot of the Oracle VM Manager virtual machine,
the Oracle VM Manager configuration process will create server pool
and import the Oracle VM Manager virtual machine.
Two OS user accounts are created by default:
user: root password: ovsroot
user: oracle password: oracle
The user 'oracle' belongs to the 'oinstall' and 'dba' groups.
The default vnc console password is 'oracle'
3. Creating the Oracle VM Manager virtual machine
=================================================
1) Download the Oracle VM Manager Template (V19215-01.zip)
from http://edelivery.oracle.com/oraclevm
2) Login to the Oracle VM Server's dom0 as 'root'
Copy V19215-01.zip to your working directory with at least 4GB free space.
You can choose any directory on OVM Server except /OVS/running_pool.
This zip file contains the archive file OVM_EL5U3_X86_OVM_MANAGER_PVM.tgz
and a deploy script Deploy_Manager_Template.sh
3) As root, run
# unzip V19215-01.zip
4) As 'root', run the deployment script:
# chmod 755 Deploy_Manager_Template.sh
# ./Deploy_Manager_Template.sh
The deployment script Deploy_Manager_Template.sh will complete the following
tasks:
a) prerequisite checking
b) uncompress OVM_EL5U3_X86_OVM_MANAGER_PVM.tgz file to directory
/OVS/running_pool. This directory will contain the files following files:
/OVS/running_pool/OVM_EL5U3_X86_OVM_MANAGER_PVM
|- System.img (OS image file)
|- Manager.img (Manager image file)
|- vm.cfg (VM configuration file)
|- README (Readme file)
c) generate and assign new MAC address to the virtual machine
d) interview the user for VM and VM Manager configuration parameters
(next section 'Deployment interview' provides the list of questions)
e) create and boot the virtual machine from the Oracle VM Server
command line
f) display the access information for Oracle VM Manager and Oracle VM
Manager VM
4. Deployment Interview
=======================
The deployment script will prompt a user to enter
a) Agent password
The agent password is required for the prerequisites check.
b) Storage configuration
Storage Source: NFS address, OCFS2 partition path
The script will automatically detect your cluster root storage repository
if you have configured it. Or it prompts users to input their storage source
and the script tries to set it up as cluster root.
NOTE: how to manually create your own storage repository in OracleVM server 2.2.x
1) Register your storage source. Example:
/opt/ovs-agent-2.3/utils/repos.py -n myhost:/mynfslocation
/opt/ovs-agent-2.3/utils/repos.py -n /dev/sdb3
Note that the storage source should have at least 15GB free space.
If the storage source is successfully registered, note down the uuid genereated
by the command above, such as:
51d4c69b-e439-41ac-8b31-3cc485c993b0 => /dev/sdb3
2) Mount your storage repository.
If the agent version is 2.3-27 or higher, execute:
/opt/ovs-agent-2.3/utils/repos.py -i
otherwise, complete the following commands:
[1] mkdir -p /var/ovs/mount/$(echo <uuid> | sed s/-//g | tr '[:lower:]' \
'[:upper:]')"
where '<uuid>' is the uuid noted down in step 2)
[2] mount your storage source to the directory made in step [1].
3) If /OVS exists, delete or move /OVS
mv /OVS "/OVS.$(date '+%Y%m%d-%H%M%S').orig"
create a symbolic link from storage repository to /OVS
ln -nsf /var/ovs/mount/<UUID>/ /OVS
c) Network configuration
Static IP address
Netmask
Default Gateway IP address
DNS Server IP address
Hostname
d) Password for database accounts:
'SYS' and 'SYSTEM' (the same password the same password is used)
'OVS'
'oc4jadmin'
'admin'
e) Web Service configuration (supported in template in version 1.2)
Web Service password (at least 6 characters)
Enable HTTPS or not
f) SMTP server (outgoing mail server SMTP hostname)
E-mail Address for account 'admin'
g) Data for the manager services configuration:
Oracle VM Server Pool Name
Oracle VM Server login user name
Oracle VM Server login password
Note that Oracle VM Manager is critical for managing Oracle VM Server Pools.
Do not pause, suspend or shutdown this virtual machine! Configuring
HA is recommended for this virtual machine so that Oracle VM will
automatically restart the Oracle VM Manager virtual machine if there
is a server crash.
5. Known Issues
===============
1) You may see messages on a virtual machine's console similar to these
when the virtual machine is booting up:
Fatal: No PCI config space access function found
rtc: IRQ 8 is not free.
i8042.c: No controller found.
These messages can be ignored.
2) Mail server check fails.
Bug #7140 in bugzilla.oracle.com
Oracle VM Manager installer only checks the default SMTP port 25 for the
mail server. If the SMTP port is not 25, the check fails, and you will
see the following message:
Mail server '<mail server hostname>' check failed, want to re-enter it(Y|n)?
You can enter 'n' to skip the mail server checking. You will also see the
send mail checking fails with following message:
Failed to send mail to '<Admin e-mail address>'
want to re-enter the e-mail address(Y|n)?
You can enter 'n' to skip the send mail checking.
3) OEL VM console may display error messages similar to those below:
BUG: warning at drivers/xen/fbfront/xenfb.c:143/xenfb_update_screen() (Not
tainted)
Call Trace:
[<ffffffff803aa461>] xenfb_thread+0x135/0x2c5
[<ffffffff8024874b>] try_to_wake_up+0x365/0x376
[<ffffffff8029ba6e>] autoremove_wake_function+0x0/0x2e
[<ffffffff8029b856>] keventd_create_kthread+0x0/0xc4
[<ffffffff803aa32c>] xenfb_thread+0x0/0x2c5
[<ffffffff8029b856>] keventd_create_kthread+0x0/0xc4
[<ffffffff802339c8>] kthread+0xfe/0x132
[<ffffffff80260b24>] child_rip+0xa/0x12
[<ffffffff8029b856>] keventd_create_kthread+0x0/0xc4
[<ffffffff802338ca>] kthread+0x0/0x132
[<ffffffff80260b1a>] child_rip+0x0/0x12
This will not cause any problems.
4) If you accidentally power off Oracle VM Manager virtual machine through
Oracle Manager UI, and restart the virtual machine from OVM server command
line, although Oracle VM Manager virtual machine is running normally,
the virtual machine status in Manager UI will stay in 'Shutting Down'.
This is expected, as the virtual machine status sync will only happen when
the virtual machine status is "Error" or "Powered Off".
To re-sync the virtual machine status, please complete the following steps:
1. Log on the Manager UI;
2. Navigate to the 'Virtual Machines' tab;
3. Select Oracle VM Manager virtual machine, "OVM_EL5U3_X86_OVM_MANAGER_PVM";
4. Choose 'Reset' from 'More Actions' dropdown list;
5. Click 'Go' button, the status will become "Running" after a while.
5) (Bug 9191053) For OVS agent version 2.3-19, the following High
Availability scenario will not work.
"If a Virtual Machine Server fails, all running virtual machines are
restarted automatically on another available Virtual Machine Server."
For OVS agent 2.3-19, Oracle VM Manager virtual machine will not be
automatically restarted on any other available Virtual Machine Server,
but on the original Virtual Machine Server when it becomes available again.
To fix the issue, please upgrade OVS agent to 2.3-27 or the latest version. -
Oracle vm 3.1.1 server pool file system corruption
Hi
I have a small lab environment composed by 2 Oracle VM Servers and SAN access.
This morning somehow the OCFS2 Server Pool File System (the 12GB one) corrupted and the Server Pool seems dead. How can I recover from this error? I looked in the documentation and MOS but found nothing
Thank youI know it would be a lot of work in such a scenerio. I don't know what you're using for storage but you could snapshot or replicate the pool storage to create a backup that can be restored.
I do wish they would let you select more than one VM guest in the VM Manager. Would be really nice to have such. Seems like it would be a rather easy feature to implement. -
Creating a VM using Oracle VM Server from Server Pool
Hi All
How do i create a VM from ISO using server pool (Discover and Register) option :
1. copied the iso file to /OVS/seed_pool
2. selected Server Pool option in VM Manager and Clicked "Next"
3. Import ISO -
i . Server Pool - Comes with no option
ii . ISO Group - Comes with no option
iii . ISO Label - Comes with no option
Also
I have some existing OEL4 and OEL 5 VM created on VMWare and Virtual Box respectively , now I wish to import them to Oracle VM ,how can i do so
Please Help
Thanks
RajHI All
I am getting this error when trying to open the console for the VM
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
load: class VncViewer.class not found.
java.lang.ClassNotFoundException: VncViewer.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:https://192.168.1.73:4443/OVS/faces/app/VncViewer/class.class
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Exception: java.lang.ClassNotFoundException: VncViewer.class -
Oracle VM 3 : Cannot add a VM Server to an existing Server pool
Hi everybody,
I am testing Oracle VM 3
I have successfully installed Oracle VM manager 3.0.3
I have successfully installed two VM Server 3.0.3
I have successfully Create a Server pool with One VM Server attached to a SAN Storage (two Luns ..one for Vm pool and second for VM Repo )
I tried to add the second VM Server to the pool but it fails with the following error
OVMAPI_4010E Attempt to send command: dispatch to server: vm2.****.com failed. OVMAPI_4004E Server Failed Command: dispatch https://?uname?:[email protected]:8899/api/1 configure_server_for_cluster cluster:
name = 5c724f2aad1e9a84
heartbeat_mode = global
node_count = 2
node:
cluster = 5c724f2aad1e9a84
name = vm1.****.com
number = 0
ip_address = 192.168.1.1
ip_port = 7777
node:
cluster = 5c724f2aad1e9a84
name = vm2.****.com
number = 1
ip_address = 192.168.1.2
ip_port = 7777
heartbeat:
cluster = 5c724f2aad1e9a84
region = 0004FB00000500002F0E7ECE81A2A4E7
*lun /dev/mapper/3600a0b80002943ca00000f724f3c875d 0004fb00000500002f0e7ece81a2a4e7 , Status: org.apache.xmlrpc.XmlRpcException: exceptions.OSError:[Errno 2] No such file or directory*
Thu Feb 16 15:34:50 GST 2012
Thu Feb 16 15:34:50 GST 2012
Please help
Thanks
AljaroAljaro wrote:
*lun /dev/mapper/3600a0b80002943ca00000f724f3c875d 0004fb00000500002f0e7ece81a2a4e7 , Status: org.apache.xmlrpc.XmlRpcException: exceptions.OSError:[Errno 2] No such file or directory*The pool filesystem LUN is not visible to the second server, so it is unable to join the pool. You need to make sure that the devices in /dev/mapper are the same on both servers. -
Oracle VM Server unable to communicate with pool master
Hello Forum
I have the following situation and I hope that someone has an idea/solution
Background :
Oracle VM version : 3.1
2 - Server pool
Repository : NFS
Problem :
This is the what I found out so far :
I try to start a guest which is hosted on the same on the same server , which serves as the pool master.
I don't see any progress in the OVM manager, i.e. the guest is in "Starting" status
On the ovs-agent.log file of the OVM server I see the following message keep repeating itself :
"[<Time stamp> 24944] ERROR (notification :64): Unable to send notification(111,'Connection refused')
So far I used one or both of the following work-around:
1.Rediscover the OVM server
2.Restart the ovs agent
Both work-around are feasible and successful, but I'm looking for a permanent solution.
I checked fire-wall on the OVM server and OVM master and they seem to be either down or wide-open
Any other ideas?
Thanks,
Rudi
Edited by: Rudi on Aug 12, 2012 12:14 AMThe error messages and the server staying in starting mode in the manager are both things I've seen when a server got a new UUID.
When the agent starts, the uuid get's determined. It is possible that on-boot and on manual restart the agent gives your server a different uuid.
Try to set the uuid fixed and see if it still occurs.
http://bjornnaessens.wordpress.com/2012/08/10/best-practices-in-ovm-2-fakeuuid-it/ -
Install Oracle Clusterware 10201 in window 2003 server
Good Morning All,
We have a network interface in database server which is used for communication between primary database and standby database (i.e. transfer archive or online log files from primary db to standby db). My question is: when we install Oracle clusterware should I use this NIC as “Private” or “Do not use”?
Thanks a lot in advance and have a nice weekend!!
ShirleyThank you Hans.
In the db server we have 4 NICs. One public and 3 private. We are thinking use 1 public and 2 private for clusterware. And the last private network card is just for communication between primary DB and standby DB. In this case, the best practice should be consider this last card as 'Do not use' rather than 'private', is this correct? -
How to Migrate VM Server pool to Other Oracle VM Manager
Hi,
I want to move oracle server pool from One Oracle VM Manager to other VM manager.
Can any one help me on how to migrate vm server pool to other VM Manager.
Thanks & Regards
YJRHi,
unfortunately I don't know of an easy supported way.
The process itself is pretty similar to migrating serverpools to Enterprise Manager as described in this note:
Migrating from Oracle VM Manager to Enterprise Manager Grid Control (Doc ID 807091.1)
With the exception that you simply register the new pool in a new manager and then have to rediscover all VMs.
So overall it is a simple "delete serverpool" and "create serverpool" with additional import of virtual machines.
If during this steps a problem arise, you still can deconfigure everything and reregister with the new manager (with the help of cleanup.py).
Regards
Sebastian -
Ntp Server for Oracle 11gr2 (oracle clusterware) on HP-UX
we are planning to configure a ntp server on Windows 2003 server for our Oracle 11gr2 RAC (2 nodes) on HP-UX but we have some issues to be clear. Following are the details for our environment.
RAC : Oracle Clusterware (2 nodes)
Database : 11gr2
OS: HP-UX B11
Hardware: HP Intergrity Blade Servers BL860c i2
ntp server : HP Proliant
if our ntp server fails how the both nodes will manage the time?if our ntp server fails how the both nodes will manage the time?Use NTP insure that all cluster nodes must be synchronized to the same time ,in 9i , 10g and 11gR2 Oracle Clusterware includes the Cluster Time Synchronization Service (CTSS) . On startup Clusterware checks for a NTP configuration, if found, CTSS goes into Observer mode. This means it will monitor the clock synchronization and report in the Oracle Clusterware alert log if it finds a problem. If it does not find a NTP configuration, CTSS will be active .
Check
http://docs.oracle.com/cd/E26996_01/E18548/html/manager_ntpconfig.html
http://docs.oracle.com/cd/E23824_01/html/821-1454/time-20.html -
Oracle Application server connection pool and database links
I am using Oracle application server 10g with connection pools, the db used by the application connects to another oracle db using a database link. My question is when the application starts it creates 10 connections, does it also create x amount of database links as well?
Hi,
Is there any way to use the connection pool or Datasource while connecting to database?If I am using a stateless sesssion bean and using a Data Access layer which just creates a database session to write the persistence toplink objects how I can make use of application server connection pool?Hi Vinod,
Yes, TopLink allows you to use the app server's connection pooling and transaction services. Chapter 2 of the Oracle9iAS TopLink Foundation Library Guide provides details as do the TopLink examples. The easiest way to set this up is by using the sessions.xml file. The sample XML below is from the file <toplink903>\examples\ias\examples\ejb\sessionbean\sessions.xml. Here we are adding the datasource defined in OC4J and specifying that we are using the OC4J transaction controller also.
<login>
<user-name>sa</user-name>
<password></password>
<datasource>java:comp/env/jdbc/ejbJTSDataSource</datasource>
<uses-external-transaction-controller>true</uses-external-transaction-controller>
<uses-external-connection-pool>true</uses-external-connection-pool>
</login>
<external-transaction-controller-class>oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController</external-transaction-controller-class>
When using this approach you need to change your TopLink code slightly in the EJB methods:
a. Acquire the ACTIVE unit of work from the server
session (again, see the EmployeeSessionEJB code
example) with something like:
UnitOfWork uow = clientSession.getActiveUnitOfWork();
b. Calls to uow.commit() can be ommitted or commented out
because the EJB will handle this. Note that of course
the methods you create in the EJB that are using this
approach must have TX Required (default).
Hope this helps.
Pete -
Oracle VM sever on the Manager -server pool shows status as unreachable
Hi,
I have 2.2 Oracle vm server which was working fine , has 4 VMN's on it and was registered to the manager 2.2
If I go on serverpool or server tab in the manager - it shows inactive and unreachable,even though the sever actually is alive and VM's are running onit.
Its just the communciation or connection between server and manager is broken somewhere.I really need help
The Disk and memory status became - 'Not Available" on the manager.
This was when i initiated - Create new Virtualk machine.
Usually after next refresh ot comes back ,but in this case - its still on unknown state.
All the vm's though are up and runnning fine - the status on the manager shows as - powered off.
If I try to manually - powere on - I get an error in the manager logs -
Start - /OVS/running_pool/1239_2k8
PowerOn Failed : Result - failed:<OVSException: no server of type 'xen' ready to run the vm.>
StackTrace:
File "/opt/ovs-agent-2.2/OVSSiteVM.py", line 79, in start_vm
raise e
Please help
I have rebooted the server but no luck.
Thanks....
Edited by: khushi on Jun 15, 2010 3:33 PM
Edited by: khushi on Jun 18, 2010 1:42 PMI have experienced the same issue. Here is a way to workaround to solve it:
1. login to OVM manager host as oracle user
2. Set the propler environment to login to the OVM reporistory database. for exampl in Unix/Linux
export ORACLE_HOME='/usr/lib/oracle/xe/app/oracle/product/10.2.0/server'
export PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_SID=XE
3. Login to the repository database as ovs user:
sqlplus ovs/<passsword>
and run the following SQLs:
update ovs_server set status = 'Active' where SERVER_NAME = '<OVS serverhostname.domain.com>';
commitl;
4. Go to OVM manager and cllick the refresh button on the servers page. The status of the OVS server will be changed to 'Active'
and you can power on the VM.
Thanks
Kai Yu -
Issues with Oracle VM Server 3.2.2
We're beginning to use Oracle VM Server 3.2.2 but we're having several different issues. Any help would be appreciated
1) Attempting to start a VM, the VM doesn't always start correctly. Console is giving us the following (when using xm create):
--- 8< cut >8 ---
PCI: Warning: Cannot find a gap in the 32bit address range
PCI: Unassigned devices with 32bit resource registers may break!
i8042: No controller found
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
G
--- 8< cut >8 ---
At this point, the VM hangs and doesn't go any further.
If we use "xl create" we get a different set of messages:
--- 8< cut >8 ---
xc: error: do_evtchn_op: HYPERVISOR_event_channel_op failed: -1: Internal error
xc: error: do_evtchn_op: HYPERVISOR_event_channel_op failed: -1: Internal error
xc: error: panic: xc_dom_boot.c:159: xc_dom_boot_mem_init: can't allocate low memory for domain: Out of memory
libxl: error: libxl_dom.c:207:libxl__build_pv xc_dom_boot_mem_init failed: No such process
cannot (re-)build domain: -3
libxl: error: libxl.c:711:libxl_domain_destroy non-existant domain 94
--- 8< cut >8 ---
It's odd that we're getting Out of memory errors as these systems have 192gb of ram and at the time have 180gb or so free.
total_memory : 196582
free_memory : 185336
2) When the VM does finally start, it's unable to restart gracefully. From /var/log/xen/xend.log we're seeing a message saying the system restarted too fast if we reboot it within a minute:
--- 8< cut >8 ---
[2013-06-03 18:16:23 4471] ERROR (XendDomainInfo:2265) VM XXXXXXXXX restarting too fast (Elapsed time: 41.631991 seconds). Refusing to restart to avoid loops.
--- 8< cut >8 ---
We've never had this before using previous versions of Oracle VM Server, but this was back in Xen 3 days. Is this time a tunable anywhere?
If the system has been up for a bit and we reboot we get this error:
--- 8< cut >8 ---
[2013-06-03 18:52:59 4471] INFO (XendDomainInfo:2148) Domain has shutdown: name=nc1-ma-np-yum id=108 reason=reboot.
[2013-06-03 18:52:59 4471] DEBUG (XendDomainInfo:3145) XendDomainInfo.destroy: domid=108
[2013-06-03 18:52:59 4471] DEBUG (XendDomainInfo:1951) XendDomainInfo.handleShutdownWatch
[2013-06-03 18:53:00 4471] DEBUG (XendDomainInfo:2473) Destroying device model
[2013-06-03 18:53:00 4471] DEBUG (XendDomainInfo:2480) Releasing devices
[2013-06-03 18:53:00 4471] DEBUG (XendDomainInfo:128) XendDomainInfo.create_from_dict({'vcpus_params': {}, 'PV_args': '', 'features': '', 'cpus': [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159]], 'paused': 0, 'domid': 108, 'shutdown': 0, 'superpages': 0, 'VCPUs_live': 1, 'PV_bootloader': '', 'PV_bootloader_args': '', 'actions_after_crash': 'restart', 'vbd_refs': [], 'PV_ramdisk': '', 'memory_dynamic_min': 2147483648L, 'name_label': 'nc1-ma-np-yum', 'VCPUs_at_startup': 1, 'HVM_boot_params': {}, 'platform': {'tsc_mode': 0, 'nomigrate': 0}, 'PV_kernel': '', 'console_refs': ['e77fed2f-3447-b1a3-73a7-d0d69a00f4e9'], 'online_vcpus': 1, 'acpi_s3': 0, 'blocked': 0, 'acpi_s4': 0, 'on_xend_stop': 'ignore', 'pool_name': 'Pool-0', 'memory_static_min': 0, 'HVM_boot_policy': '', 'description': '', 'shutdown_reason': 1, 'VCPUs_max': 2, 'start_time': 1370284783.6600001, 'memory_static_max': 2148532224L, 'expose_host_uuid': 0, 'actions_after_shutdown': 'destroy', 'crashed': 0, 'memory_dynamic_max': 2147483648L, 'actions_after_suspend': '', 'is_a_template': False, 'cpu_time': 9.7732988130000003, 'is_control_domain': False, 'uuid': '92ee0de0-f6fe-49e0-be0c-a18d1a4a233b', 'memory_sharing': 0, 'shadow_memory': 0, 'target': 0, 'vcpu_avail': 3, 'on_xend_start': 'ignore', 'other_config': {}, 'auto_power_on': False, 'running': 0, 'actions_after_reboot': 'restart', 'vif_refs': [], 'vtpm_refs': [], 'devices': {'e77fed2f-3447-b1a3-73a7-d0d69a00f4e9': ('console', {'other_config': {}, 'protocol': 'vt100', 'uuid': 'e77fed2f-3447-b1a3-73a7-d0d69a00f4e9', 'location': '2'})}, 'dying': 0})
[2013-06-03 18:53:00 4471] DEBUG (XendDomainInfo:2570) XendDomainInfo.constructDomain
[2013-06-03 18:53:00 4471] DEBUG (XendDomain:476) Adding Domain: 109
[2013-06-03 18:53:00 4471] DEBUG (XendDomainInfo:2908) XendDomainInfo.initDomain: 109 256
[2013-06-03 18:53:00 4471] ERROR (XendDomainInfo:3318) Had a bootloader specified, but no disks are bootable
[2013-06-03 18:53:00 4471] ERROR (XendDomainInfo:496) VM start failed
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 482, in start
XendTask.log_progress(31, 60, self._initDomain)
File "/usr/lib64/python2.4/site-packages/xen/xend/XendTask.py", line 209, in log_progress
retval = func(*args, **kwds)
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2910, in _initDomain
self._configureBootloader()
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 3319, in _configureBootloader
raise VmError(msg)
VmError: Had a bootloader specified, but no disks are bootable
[2013-06-03 18:53:00 4471] DEBUG (XendDomainInfo:3145) XendDomainInfo.destroy: domid=109
[2013-06-03 18:53:00 4471] DEBUG (XendDomainInfo:2478) No device model
[2013-06-03 18:53:00 4471] DEBUG (XendDomainInfo:2480) Releasing devices
[2013-06-03 18:53:00 4471] ERROR (XendDomainInfo:133) Domain construction failed
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 131, in create_from_dict
vm.start()
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 482, in start
XendTask.log_progress(31, 60, self._initDomain)
File "/usr/lib64/python2.4/site-packages/xen/xend/XendTask.py", line 209, in log_progress
retval = func(*args, **kwds)
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2910, in _initDomain
self._configureBootloader()
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 3319, in _configureBootloader
raise VmError(msg)
VmError: Had a bootloader specified, but no disks are bootable
[2013-06-03 18:53:00 4471] ERROR (XendDomainInfo:2304) Failed to restart domain 108.
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2286, in _restart
new_dom = XendDomain.instance().domain_create_from_dict(
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomain.py", line 1017, in domain_create_from_dict
dominfo = XendDomainInfo.create_from_dict(config_dict)
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 131, in create_from_dict
vm.start()
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 482, in start
XendTask.log_progress(31, 60, self._initDomain)
File "/usr/lib64/python2.4/site-packages/xen/xend/XendTask.py", line 209, in log_progress
retval = func(*args, **kwds)
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2910, in _initDomain
self._configureBootloader()
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 3319, in _configureBootloader
raise VmError(msg)
VmError: Had a bootloader specified, but no disks are bootable
--- 8< cut >8 ---
So definitely, any help would be appreciated.
MelThis issue related to hardware of Oracle VM Servers installed on, please check hardware requirement in OVM 3.2.3 document again.
Best wishes,
Heng
Edited by: Vandy_Kh on Jun 3, 2013 7:46 PM -
How to limit number of jbdc connexion on Oracle application server 10G R3
Hi all ,
i have deployed my application an integrated server on Oracle Application Server R3.
The problem is that i have more than 600 connexion to my Database , an this is too much!!
How can i configure this ???
Please help,
PaulYou can set the maximum number of connections on the connection pool configuration page of your datasource.
As there are some troubles with the data source when your dataabse has been down (connection is not restored), I'd suggest to set the Validate Connections option to "true" -
How to start virtual OVM Manager and restore server pool which hosts it?
It had to happen... the day I migrate our OVM Manager from an ESX host into an Oracle VM, we have a massive NetApp outage, and everything fails to come back. As a result of having lock errors when trying to start any VMs I noted on the forum various solutions and ended up following the steps concerning stopping ovs-agent and removal of /etc/ovs-agent/db/* on all the servers. Next I re-added the repo to all the servers using repos.py, but of course now none of the servers are in a pool so the --list command shows them as [R] rather than [*], and the /OVS directory is not yet mapped. So the next stage, according to the instructions which I am following, describes using the 'Restore' option in the OVM Manager GUI. Given that /OVS is not mounted and all of the servers are now config-less, I can't see how I can start the OVM Manager VM to get to the aforementioned "restore" option...
Thank Jeebus I kept the ESX copy of OVM manager on (but powered down), as I was able to fire it up and do the restore, and now everything is hunky dory. However, this is our Dev platform and I was going to build the Prod platform and deploy OVM Manager straight into the OVM architecture via the template, rather than having it on ESX, but this issue on the Dev install has made me think twice about the mobius nature of managing the VM architecture from within the VM architecture...
I am assuming I am missing some sort of commandline knowledge, so... given:
- empty db directory
- root repos [R] on all servers
- as yet unmapped /OVS
...how to get the server pool up and get something back into /OVS, and then start my OVM Manager VM so I can 'restore'? Is it even possible? because if it isn't, I'll be blowed if the Prod OVM manager is going to get deployed like this...
And no, there's no money in the budget for extra tin just to sit there running the OVM Manager and nothing else.
TIA
Kevuser12474530 wrote:
Still nobody seems to know of how to create a server pool on the CLI (outside of OVM Manager) though...There is no way to create a server pool on the CLI without Oracle VM Manager. You either need to use the Web UI of the Manager, or use the ovmcli command-line tool. Both of those require Oracle VM Manager to be running.
However, once the Pool is created, you do not need the Manager to be running to perform simple tasks like starting/stopping guests. That can be done with the xm command-line tool.
I agree with you about running VM Manager as a guest of the Oracle VM Server: I actually don't recommend this in production, unless you have at least two Server Pools. Then you can have the Manager of Pool A hosted by Pool B and vice-versa. Most often however, I recommend a completely independent Manager machine, either physical or hosted on a separate virtualization stack. -
Hi all,
the company I work for wants to migrate its Oracle Application Server 10.1.3.5 (with JRE 1.6) to WebLogic 12 and we need to guess which kind of remediation could be needed to have all web-apps still working.
The concerned applications are using dated technologies:
direct JDBC connections to db
JPA 1.0
connection pools with Oracle JDBC drivers
some apps are compiled with Java 1.4, some others with Java 1.6
servlet 2.3
JSP 2.0
We do not expect to come accross big issues but I'm not skilled on this kind of matters so I would like to receive seggestions or alerts from experts. Any remark will be appreciated.
Thank you all.
Regards,
LucaHi Luca,
It would be better if you asked this question in the Application Server forum which should be at this URL -
Application Server
and the general forum here -
Oracle Application Server - General
Regards,
Mike
Maybe you are looking for
-
Calculating MAP at a point in time
Hi, I need to find the MAP for a list of materials as of 06-30-2009. Which table do I use? MBEW, MBEWH or both? If I have to use both, please explain SIMPLY and CONCISELY how to do it. Looking at these tables is confusing. It seems that both have
-
I'm investigating partitioning one or more tables in our schema to see if that will speed performance for some of our queries. I'm wondering if the following structure is viable, however. Table structure - this is a snippet of relevant info: CREATE T
-
N Why no scroll bar in column view?
When in column view, the finder window extends past the bottom of my screen, yet there is no scroll bar and I cannot reposition the window so I can see the bottom or even resize it since the bottom of the window is off my screen. If there is a scroll
-
Problem starting SQL Developer
Hi, i have a little bit confusing problem on a Virtual Machine. I have a Windows Server 2003 R2 SP2 (32-bit) as a Virtual Machine. On this machine i have two different versions of the SQL Developer: - SQL Developer 1.0.0.15.57 - SQL Developer 2.1. Wh
-
RFID... SAP
Hi, Can any one briefly explain me what is RFID (Radio Frequency Identification)? What it does? Can I use SAP RFID to Track and Trace the delivery vechile? or By Introducing this RFID, which functionality of SAP can be replaced or enhanced? Laxmanan