ASM creation problem Initializing the Oracle ASMLib driver: failed
hi
oel 5.6 64bit
db 11gR2 64bit
[root@rac-1 ASM]# rpm -qa | grep ora
oracleasm-2.6.18-164.el5xen-2.0.5-1.el5
libtheora-1.0alpha7-1
oracleasm-2.6.18-164.el5debug-2.0.5-1.el5
oracleasm-2.6.18-164.el5-2.0.5-1.el5
oracle-logos-4.9.17-10
oracle-validated-1.1.0-7.el5
oraclelinux-release-5-6.0.1
oracleasm-support-2.1.4-1.el5
[root@rac-1 ASM]# rpm -qa | grep asm
nasm-0.98.39-3.2.2
oracleasm-2.6.18-164.el5xen-2.0.5-1.el5
oracleasm-2.6.18-164.el5debug-2.0.5-1.el5
oracleasm-2.6.18-164.el5-2.0.5-1.el5
oracleasm-support-2.1.4-1.el5
[root@rac-1 ASM]#
[root@rac-1 ASM]# oracleasm configure
ORACLEASM_ENABLED=true
ORACLEASM_UID=oracle
ORACLEASM_GID=asmadmin
ORACLEASM_SCANBOOT=true
ORACLEASM_SCANORDER=""
ORACLEASM_SCANEXCLUDE=""
[root@rac-1 ASM]# service oracleasm restart
Dropping Oracle ASMLib disks: [ OK ]
Shutting down the Oracle ASMLib driver: [ OK ]
Initializing the Oracle ASMLib driver: [FAILED]
[root@rac-1 ASM]#can anyone help??
hi
just another confirmation i need :
i have some raw devices using /etc/rawdevices file and losetup to /dev/loop(n); can you say what are the udev rules to set so that all the permission and loop(n) devices come up before ASMLib driver initialization ?? eg.
http://www.idevelopment.info/data/Oracle/DBA_tips/Automatic_Storage_Management/ASM_20.shtml
[root@rac-1 ~]# oracleasm listdisks
VOL1
[root@rac-1 ~]# oracleasm createdisk VOL2 /dev/loop1
Unable to access device "/dev/loop1"
[root@rac-1 ~]# losetup /dev/loop1 /oracle_ASM_SWAP/ASM/ASM_FILE1
[root@rac-1 ~]# oracleasm createdisk VOL2 /dev/loop1
Writing disk header: done
Instantiating disk: done
[root@rac-1 ~]# losetup /dev/loop2 /oracle_ASM_SWAP/ASM/ASM_FILE2
[root@rac-1 ~]# oracleasm createdisk VOL3 /dev/loop3
Unable to access device "/dev/loop3"
[root@rac-1 ~]# oracleasm createdisk VOL3 /dev/loop2
Writing disk header: done
Instantiating disk: done
[root@rac-1 ~]# losetup /dev/loop3 /oracle_ASM_SWAP/ASM/ASM_FILE3
[root@rac-1 ~]# oracleasm createdisk VOL4 /dev/loop3
Writing disk header: done
Instantiating disk: done
[root@rac-1 ~]# losetup /dev/loop4 /oracle_ASM_SWAP/ASM/ASM_FILE4
[root@rac-1 ~]# oracleasm createdisk VOL5 /dev/loop5
Unable to access device "/dev/loop5"
[root@rac-1 ~]# oracleasm createdisk VOL5 /dev/loop4
Writing disk header: done
Instantiating disk: done
[root@rac-1 ~]# losetup /dev/loop5 /oracle_ASM_SWAP/ASM/ASM_FILE5
[root@rac-1 ~]# oracleasm createdisk VOL6 /dev/loop5
Writing disk header: done
Instantiating disk: done
[root@rac-1 ~]# oracleasm listdisks
VOL1
VOL2
VOL3
VOL4
VOL5
VOL6
[root@rac-1 ~]#http://admindba.com/forum.php?gcm=2&grid=115612
assigning to /etc/rc.local making the disk available only VOL1 not others.
can i still use ADVM ??
[oracle@rac-1 dbs]$ . ~/.orcl_ASM.profile
[oracle@rac-1 dbs]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Mon Apr 4 11:34:51 2011
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> !
[oracle@rac-1 dbs]$ ls
hc_orcl.dat init.ora lkORCL spfileorcl.ora
init+ASM.ora initorcl.ora orapworcl
[oracle@rac-1 dbs]$ exit
SQL> startup
ORA-01078: failure in processing system parameters
ORA-29701: unable to connect to Cluster Synchronization Service
SQL> startup pfile='/oracle_db/oracle/product/11.2.0/dbhome_1/dbs/init+ASM.ora';
ORA-29701: unable to connect to Cluster Synchronization Service
ORA-01078: failure in processing system parameters
SQL> Disconnected
[oracle@rac-1 dbs]$ cd /oracle_db/oracle/product/11.2.0/dbhome_1/bin/l
lbuilder ldapcompare ldapsearch loadpsp lxchknlb
lcsscan ldapdelete ldifmigrator loadpspO lxegen
ldapadd ldapmoddn linkshlib lsnodes lxinst
ldapaddmt ldapmodify lmsgen lsnrctl
ldapbind ldapmodifymt loadjava lsnrctl0
[oracle@rac-1 dbs]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Mon Apr 4 11:47:18 2011
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> create spfile from pfile='/oracle_db/oracle/product/11.2.0/dbhome_1/dbs/init+ASM.ora';
File created.
SQL> startup
ORA-29701: unable to connect to Cluster Synchronization Service
SQL> Disconnected
[oracle@rac-1 dbs]$ vi .orcl_ASM.profile
[oracle@rac-1 dbs]$ vi .orcl_ASM.profile
[oracle@rac-1 dbs]$ . .orcl_ASM.profile
[oracle@rac-1 dbs]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Mon Apr 4 11:50:29 2011
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup mount
ORA-29701: unable to connect to Cluster Synchronization Service
SQL> Disconnected
[oracle@rac-1 dbs]$ ls
hc_orcl.dat init.ora lkORCL spfile+ASM.ora
init+ASM.ora initorcl.ora orapworcl spfileorcl.ora
[oracle@rac-1 dbs]$ vi init+ASM.ora
[oracle@rac-1 dbs]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Mon Apr 4 11:51:25 2011
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> create spfile from pfile='/oracle_db/oracle/product/11.2.0/dbhome_1/dbs/init+ASM.ora';
File created.
SQL> startup mount
ORA-29701: unable to connect to Cluster Synchronization Service
SQL>how to get rid of ORA-29071 for this new ASM instance creation??
http://www.oracledba.org/10g/asm/asm_install.html
this is 10g related.
kind regards
Similar Messages
-
Inicialize the Oracle ASMlib driver : [FAILED]
Can You help me , where I do mistage ? ( I red all doc about ASM - may be don't carefully)
I can test a learn more about oracle RAC ( I have two VMWARE masine with rhel4) with Oracle custerware 11.1 and oracle db software 11.1
I can configure ASM with this RAC architecture (usin ASMlib technology) , but during configuration ASMlib i get error :
rhel4 kernel 2.6.26
instaled rpm :
oracleasm-2.6.9-78.0.8.EL-2.0.5-1.el4.i686.rpm
oracleasmlib-2.0.2-1.i386.rpm
oracleasm-support-2.1.1-1.el4.i386.rpm
I did
/etc/init.d/oracleasm configure
.... user to own driver-> oracle
.... group to own driver ->
inicializing the Oracle ASMlib driver : [FAILED]
Can You help me
Thank You BranoHi,
The oracleasm package (2.6.9) does not correspond to the kernel version you're using (2.6.26).
Oracle only supports the 2.6.9 kernel in RHEL 4.x
Kind regards,
Serge -
How to solve the issue "OEL 5.6 boot Oracle ASMLib driver: FAILED" ?
Folks,
Hello. I am installing Oracle 11gR2 RAC using 2 VMs (rac1 and rac2) whose OS are Oracle Linux 5.6 in VMPlayer.
I downloaded Oracle Linux 5.6 Media Pack for x86_64 (file name V24479-01) from https://edelivery.oracle.com/linux.
I have installed OEL 5.6 for VM rac1 and done the follows:
1) install rpm and oracleasm packages for rac1.
2) edit /etc/hosts to set up IP addresses for eth0 and eth1 for rac1 and rac2.
3) edit eth0 and eth1 for rac1 by using command [root@rac1 \]# neat
But when boot the OS, I see "initializing Oracle ASMLib driver: FAILED".
When configure Oracle ASM library driver by running the command:
[root@rac1 /]#/etc/init.d/oracleasm configure -i
Its output "initializing Oracle ASMLib driver: FAILED"
I think the reason is the OS cannot initialize Oracle ASMLib driver. My question is:
Do any folk understand how to solve the issue "OEL 5.6 boot Oracle ASMLib driver: FAILED" ?
Thanks.Folks,
Hello. Thanks a lot for replying. OEL 5.6 comes with 2 kernels: uek and red hat
I have chosen to use red hat kernel for 64-bit. I run the following command:
[root@rac1 /]# uname -rm
Output: 2.6.18-238.el5x86_64
I have downloaded 4 files for this version of kernel from
http://www.oracle.com/technetwork/server-storage/linux/downloads/rhel5-084877.html as below:
oracleasm-2.6.18-238.el5xen-2.0.5-1.el5.x86_64.rpm
oracleasm-2.6.18-238.el5debug-2.0.5-1.el5.x86_64.rpm
oracleasm-2.6.18-238.el5-debuginfo-2.0.5-1.el5.x86_64.rpm
oracleasm-2.6.18-238.el5-2.0.5-1.el5.x86_64.rpm
I have installed the 4 files and got the error messages for the first 2 files as below:
[root@rac1 /]# rpm -ivh /home/oracleasm-2.6.18-238.el5xen-2.0.5-1.el5.x86_64.rpm
Error: Failed dependencies: kernel-xen=2.6.18-238.el5 is needed by oracleasm-2.6.18-238.el5xen-2.0.5-1.el5.x86_64.rpm
[root@rac1 /]# rpm -ivh /home/oracleasm-2.6.18-238.el5debug-2.0.5-1.el5.x86_64.rpm
Error: Failed dependencies: kernel-debug=2.6.18-238.el5 is needed by oracleasm-2.6.18-238.el5debug-2.0.5-1.el5.x86_64.rpm
The last 2 files have been installed successfully. But when reboot Oracle Linux Server-Base 2.6.18-238.el5, I still see :
"Initializing ASMLib driver: FAILED."
[root@rac1 /]#/etc/init.d/oracleasm configure -i
Its output "initializing Oracle ASMLib driver: OK "
My questions are:
Does the issue OS "Initializing Oracle ASMLib driver: FAILED" have effect later ? Do we need to solve it ?
Thanks. -
Initializing oracle asmlib driver failed
Hi
we are in the process of setting up oracleasm driver for linux and we are getting the following error when issuing oracleasm configure command
initializing oracle asmlib driver failed
Following are the packages i have
oracleasm-2.6.9-89.0.0.0.1.EL-2.0.5-1.el4
oracleasmlib-2.0.4-1.el4
oracleasm-support-2.1.3-1.el4
Following is my kernel vesion
uname -ar
Linux 2.6.9-89.0.0.0.1.ELSMP #1 SMP i686 i686 i386 GNU/LINUX
I even tried after disabling SE linux
# /usr/sbin/setenforce 0
/usr/sbin/setenforce : SELinux is disabled
(rebooted as well)
But still i am getting the same error..Is there anyway to fix this ?
Thanks
PramodHi,
you installed the wrong
oracleasm-2.6.9-89.0.0.0.1.EL-2.0.5-1.el4
Your kernel is:
2.6.9-89.0.0.0.1.ELSMP
so you need
oracleasm-2.6.9-89.0.0.0.1.ELSMP-2.0.5-1.el4
You should find that on the CD on ULN or setup your server for public-yum.
http://public-yum.oracle.com
Regards
Sebastian -
How to set the oracle oci8 driver?
hello all:
I've set up the oracle thin driver and it works. but when I change to
oci8.it don't work
below is config and errors:
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
InitialCapacity="5" LoginDelaySeconds="5" MaxCapacity="15"
Name="ocipool"
Properties="user=yanji;password=yanji"
Targets="myserver" URL="jdbc:oracle:oci8:@pg01"/>
Could not load 'oracle.jdbc.driver.OracleDriver
If this is a type-4 JDBC driver, it could occur if the JDBC
driver is not in the system CLASSPATH.
If this is a type-2 JDBC driver, it may also indicate that
the Driver native layers(DBMS client lib or driver DLL)
have not been installed properly on your system
or in your PATH environment variable.
This is most likely caused by one of the following:
1. The native layer SO, SL, or DLL could not be found.
2. The file permissions on the native layer SO, SL, or DLL
have not been set properly.
3. The native layer SO, SL, or DLL exists, but is either
invalid or corrupted.
For more information, read the installation documentation
for your JDBC Driver, available from:
http://e-docs.bea.com
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection
ectionEnvFactory.java:208)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource
ectionEnvFactory.java:131)
at weblogic.common.internal.ResourceAllocator.makeResources(Resource
ator.java:698)
at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocat
va:282)
best regardsHello, Jenny I am glad you found your resolution. I too am having problems isung
the oracle 0CI8 driver. My connection pool is creating fine, but my server is
crashing with JVM errors.
Here are my configurations.
DBase=Oracle 8.1.7,OS=Win2000, running 6.1 with Portal 4.0
pool config =
<JDBCConnectionPool CapacityIncrement="0"
DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="5"
MaxCapacity="5" Name="ccConPool"
Properties="jdbc.url=jdbc:oracle:oci8:@servername:1521:orcl;user=XXXXX;password=XXXXXX;dll=ocijdbc8;server=orcl;protocol=oci8;dll=ocijdbc8;protocol=oci8"
RefreshMinutes="0" Targets="portalServer"
TestTableName="WIP_TABLE" URL="jdbc:oracle:oci8:@servername"/>
My classpath sets my classes12.zip file first. My path sets %WEBLOGIC_HOME%\bin\oci817_8
and %WLCS_ORACLE_HOME%\bin.
Am I setting the right dll and protocol in my .dll? Where can I find documentation
on these properties definitions?
"jenny" <[email protected]> wrote:
hello all:
I've got the answer. those all because weblogic.jar. this jar include
the
class "oracle.jdbc.driver.OracleDriver".
although I put the classes12.zip into the CLASSPATH.but the weblogic.jar
in
front of classes12.zip.so classloader
load the class from weblogic.jar. so I can use thin driver(weblogic
implements this function with class,but not for oci8 )
..this is really a big pitfall !
put the classes12.zip in front of weblogic.jar .all perfect!
"jenny" <[email protected]> wrote in message
news:[email protected]...
hello all:
below is some chapters of my config.xml and startWeblogic.cmd
the oci8 :
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
InitialCapacity="5" LoginDelaySeconds="5" MaxCapacity="15"
Name="ocipool" Password="{3DES}J3XuQd6cvvw="
Properties="user=yanji;password=yanji;dll=ocijdbc8;protocol=oci8"
Targets="myserver" TestTableName="test"
URL="jdbc:oracle:oci8:@pg01"/>
the thin :
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
InitialCapacity="5" LoginDelaySeconds="5" MaxCapacity="15"
Name="citcpool" Password="{3DES}J3XuQd6cvvw="
Properties="user=yanji;password=yanji"
SupportsLocalTransaction="true" Targets="myserver"
URL="jdbc:oracle:thin:@sune250:1521:pg01"/>
:runWebLogic
echo on
set ORACLE_HOME=e:\oracle
set PATH=./bin;%ORACLE_HOME%\bin;%ORACLE_HOME%\lib;%PATH%
set
CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;.\lib\dom.jar;.\lib\xml
4j.jar;.\lib\jecf.jar;%ORACLE_HOME%\jdbc\lib\classes12.zip
echo off
the thin driver is ok,but the oci driver can not work!
if I've set the wrong CLASSPATH or PATH , the thin driver and oci8driver
must have not worked. I confused!
"Sree Bodapati" <[email protected]> wrote in message
news:[email protected]...
"Sree Bodapati" <[email protected]> wrote in message
news:[email protected]...
Its not CLASS_PATH it should be CLASSPATH.
when you say oracle\bin and oracle\lib , on what driver is the oracle
folder?I meant to say 'on what drive' not 'on what driver'
you have to specify the full path.
post your startup script here.
sree
"jenny" <[email protected]> wrote in message
news:[email protected]...
hello all:
I've set the ORACLE_HOME,and CLASS_PATH,but nothing changed. I will
go
to
crazy!!!
when startup the weblogic,I've seen the oracle\bin and oracle\libin th
"path" and classes12.zip in the CLASS_PATH.but the errors stillappears!!
"Sree Bodapati" <[email protected]> wrote in message
news:[email protected]...
1. Dont copy this file oci8jdbc.dll, to bin folder. Make sure
you
place
<oracle_home>\lib in your PATH before starting the server. Make
sure
your
ORACLE_HOME environment varable is set to <oracle_home> folder.
eg. set ORACLE_HOME=c:\ora816 before starting the server.
so you must have done something like
set ORACLE_HOME=c:\ora816
set PATH=%ORACLE_HOME%\bin;%ORACLE_HOME%\lib;%PATH%
2. double check if you set your CLASSPATH something like this,
CLASSPATH=%ORACLE_HOME%\jdbc\lib\classes12.zip;%CLASSPATH%
in the server startup script just before starting the server.
3. start the server the connection pool should work.
hth
sree
"jenny" <[email protected]> wrote in message
news:[email protected]...
hello All:
I've edited the StartWeblogic.cmd, set the classes.zip into CLASSPATH,and
copied the oci8jdbc.dll to the bea\wlserver6.1\bin. errors stillappears!
my weblogic version is 6.1 and oracle is 8.1.6 .
why the thin driver is ok but the oci driver can not work?
I logined in the oracle website and look for the jdbc.but I find
that
jdbc
all provide for jdk1.2 or jdk1.1. because the weblogic6.1 based
jdk1.3.
I
think i can not use those drivers.
I think my oracle driver is ok,because i installed the jboss and
bas4.5
in
my computer. they all can use oci8 driver properly.and they all
based
jdk1.3.
by the way. I 've tryed added the oracle\bin path inStartWeblogic.cmd,
nothing changed !
again below is my config : I want to know whether my config right?
(the property DLL and Protocal auto added by the weblogic)
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
InitialCapacity="5" LoginDelaySeconds="5" MaxCapacity="15"
Name="ocipool"
Properties="user=yanji;password=yanji;dll=ocijdbc8;protocol=oci8"
Targets="myserver" URL="jdbc:oracle:oci8:@pg01"/>
best regards
----- Original Message -----
From: "Mitesh Patel" <[email protected]>
Newsgroups: weblogic.developer.interest.jdbc
Sent: Thursday, December 13, 2001 4:00 AM
Subject: Re: how to set the oracle oci8 driver?
To use oracle oci8 driver:
You should have classes12.zip in weblogic classpath.
You should have ocijdbc8.dll in your weblogic path..
You can download ocijdbc8.dll from oracle website.
Mitesh Patel
jenny wrote:
hello all:
I've set up the oracle thin driver and it works. but when I
change
to
oci8.it don't work
below is config and errors:
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
InitialCapacity="5" LoginDelaySeconds="5" MaxCapacity="15"
Name="ocipool"
Properties="user=yanji;password=yanji"
Targets="myserver" URL="jdbc:oracle:oci8:@pg01"/>
Could not load 'oracle.jdbc.driver.OracleDriver
If this is a type-4 JDBC driver, it could occur if the JDBC
driver is not in the system CLASSPATH.
If this is a type-2 JDBC driver, it may also indicate that
the Driver native layers(DBMS client lib or driver DLL)
have not been installed properly on your system
or in your PATH environment variable.
This is most likely caused by one of the following:
1. The native layer SO, SL, or DLL could not be found.
2. The file permissions on the native layer SO, SL, or DLL
have not been set properly.
3. The native layer SO, SL, or DLL exists, but is either
invalid or corrupted.
For more information, read the installation documentation
for your JDBC Driver, available from:
http://e-docs.bea.com
atweblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection
ectionEnvFactory.java:208)
atweblogic.jdbc.common.internal.ConnectionEnvFactory.createResource
ectionEnvFactory.java:131)
atweblogic.common.internal.ResourceAllocator.makeResources(Resource
ator.java:698)
atweblogic.common.internal.ResourceAllocator.<init>(ResourceAllocat
va:282)
best regards
"jenny" <[email protected]> wrote in message
news:[email protected]...
hello all:
I've set up the oracle thin driver and it works. but when I change
to
oci8.it don't work
below is config and errors:
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
InitialCapacity="5" LoginDelaySeconds="5" MaxCapacity="15"
Name="ocipool"
Properties="user=yanji;password=yanji"
Targets="myserver" URL="jdbc:oracle:oci8:@pg01"/>
Could not load 'oracle.jdbc.driver.OracleDriver
If this is a type-4 JDBC driver, it could occur if the JDBC
driver is not in the system CLASSPATH.
If this is a type-2 JDBC driver, it may also indicate that
the Driver native layers(DBMS client lib or driver DLL)
have not been installed properly on your system
or in your PATH environment variable.
This is most likely caused by one of the following:
1. The native layer SO, SL, or DLL could not be found.
2. The file permissions on the native layer SO, SL, or DLL
have not been set properly.
3. The native layer SO, SL, or DLL exists, but is either
invalid or corrupted.
For more information, read the installation documentation
for your JDBC Driver, available from:
http://e-docs.bea.com
atweblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection
ectionEnvFactory.java:208)
atweblogic.jdbc.common.internal.ConnectionEnvFactory.createResource
ectionEnvFactory.java:131)
atweblogic.common.internal.ResourceAllocator.makeResources(Resource
ator.java:698)
atweblogic.common.internal.ResourceAllocator.<init>(ResourceAllocat
va:282)
best regards -
In Trouble with the Oracle JDBC Driver version - 10.1.0.5.0
Hi !
Without any problems i'm using the Oracle JDBC Driver version - 10.1.0.3.0 to access to the
Oracle database (Oracle Database 10g Release 10.2.0.1.0 - 64bit Production).
But exchanging the JDBC Driver 10.1.0.3.0 to 10.1.0.5.0 brings up the following problem:
the statement
con.prepareStatement(sql, resultSetType, resultSetConcurrency, resultSetHoldability)
(with parameters resultSetType = 1003, resultSetConcurrency = 1007, resultSetHoldability= 1)
returns null !
while using the Oracle JDBC Driver version - 10.1.0.3.0 the statement (with same parameters)
returns a correct PreparedStatement.
Every hint or idea is welcome.
Best regards,
ClausDuplicate post:
In Trouble with the Oracle JDBC Driver version - 10.1.0.5.0
Claus,
Pardon me if I am stating the obvious, but why don't you use the 10.2 JDBC driver with your 10.2 database? The driver is part of the database distribution. Otherwise, you can download the driver from the OTN Web site.
Good Luck,
Avi. -
Error initializing the Oracle JMS Resource provider for Topics
Getting this error when starting OC4J 9.0.3 standlone on Windows2000.
Resource provider config'd as
<resource-provider class="oracle.jms.OjmsContext" name="ojms">
<description> OJMS/AQ </description>
<property name="datasource" value="jdbc/ProlianceDS"></property>
</resource-provider>
Datasource config'd as
<data-source
class="com.evermind.sql.OrionCMTDataSource"
name="ProlianceDS"
location="jdbc/ProlianceDS"
xa-location="jdbc/xa/ProlianceDS"
ejb-location="jdbc/ProlianceDS"
connection-driver="oracle.jdbc.driver.OracleDriver"
username="proliance"
password="******"
url="jdbc:oracle:thin:@aps67.ere.com:1538:ifstst"
inactivity-timeout="30"
/>
ejb-jar config'd as
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<enterprise-beans>
<message-driven>
<description>Proliance Message Driven Bean</description>
<display-name>ProlianceMDB</display-name>
<ejb-name>ProlianceMDB</ejb-name>
<ejb-class>com.lendlease.bll.ProlianceMDB</ejb-class>
<transaction-type>Container</transaction-type>
<message-selector>
<method>
<ejb-name>ProlianceMDB</ejb-name>
<method-name>onMessage</method-name>
</method>
</message-selector>
<message-driven-destination>
<destination-type>javax.jms.Topic</destination-type>
<subscription-durability>Durable</subscription-durability>
</message-driven-destination>
<resource-ref>
<res-ref-name>java:comp/resource/ojms/Topics/PROLIANCE.OUT_AQ</res-ref-name>
<res-type>javax.jms.Topic</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<resource-env-ref>
<resource-env-ref-name>java:comp/resource/ojms/TopicConnectionFactories/aqTcf</resource-env-ref-name>
<resource-env-ref-type>javax.jms.TopicConnectionFactory</resource-env-ref-type>
</resource-env-ref>
</message-driven>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>ProlianceMDB</ejb-name>
<method-name>onMessage</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
orion-ejb-jar config'd as:
<?xml version = '1.0'?>
<!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd">
<orion-ejb-jar deployment-time="e7f1ce76f6" deployment-version="1.0.2.2">
<enterprise-beans>
<message-driven-deployment
name="ProlianceMDB"
connection-factory-location="java:comp/resource/ojms/TopicConnectionFactories/aqTcf"
destination-location="java:comp/resource/ojms/Topics/PROLIANCE.OUT_AQ"
subscription-name="PROLIANCE_SUBSCRIBER">
</message-driven-deployment>
</enterprise-beans>
</orion-ejb-jar>
Full startup trace is:
C:\ora\oc4j_9.0.3\j2ee\home>java -Djdbc.connection.debug=true -jar oc4j.jar
Node started with id=-2143203582
Auto-unpacking C:\ora\oc4j_9.0.3\j2ee\home\applications\ProlianceMDB.ear... done.
Auto-unpacking C:\ora\oc4j_9.0.3\j2ee\home\applications\ProlianceMDB\ProlianceMDB.war... done.
Auto-deploying ProlianceMDB (New server version detected)...
Copying default deployment descriptor from archive at C:\ora\oc4j_9.0.3\j2ee\home\applications\ProlianceMDB/ProlianceMDB
.jar/META-INF/orion-ejb-jar.xml to deployment directory C:\ora\oc4j_9.0.3\j2ee\home\application-deployments\ProlianceMDB
\ProlianceMDB.jar...
Auto-deploying ProlianceMDB.jar (New server version detected)... done.
Error initializing the Oracle JMS Resource provider for Topics: Not an OracleConnection
Error deploying file:/C:/ora/oc4j_9.0.3/j2ee/home/applications/ProlianceMDB/ProlianceMDB.jar homes: No javax.jms.Destina
tion found at the specified destination-location (java:comp/resource/ojms/Topics/PROLIANCE.OUT_AQ) for MessageDrivenBean
ProlianceMDB
OrionCMTConnection not closed, check your code!
Logical connection not closed, check your code!
Created at:
java.lang.Throwable: OrionCMTConnection created
at com.evermind.sql.OrionCMTConnection.<init>(OrionCMTConnection.java:42)
at com.evermind.sql.OrionCMTDataSource.getConnection(OrionCMTDataSource.java:82)
at oracle.jms.AQjmsConnection.newDBConnection(AQjmsConnection.java:1681)
at oracle.jms.AQjmsConnection.<init>(AQjmsConnection.java:537)
at oracle.jms.AQjmsTopicConnectionFactory.createTopicConnection(AQjmsTopicConnectionFactory.java:232)
at oracle.jms.OjmsResource.initT(OjmsResource.java:512)
at oracle.jms.OjmsResource.initAQ(OjmsResource.java:411)
at oracle.jms.OjmsResource.init(OjmsResource.java:214)
at oracle.jms.OjmsContextFactory.getObjectInstance(OjmsContextFactory.java:103)
at oracle.jms.OjmsContext.getResource(OjmsContext.java:328)
at com.evermind.server.Application.lookupResource(Application.java:2548)
at com.evermind.server.Application.lookupResource(Application.java:2563)
at com.evermind.server.ApplicationContext.handleResourceLookup(ApplicationContext.java:639)
at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:162)
at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:66)
at com.evermind.server.ejb.MessageDrivenHome.<init>(MessageDrivenHome.java:236)
at com.evermind.server.ejb.EJBPackageDeployment.bindHomes(EJBPackageDeployment.java:304)
at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.java:595)
at com.evermind.server.Application.postInit(Application.java:431)
at com.evermind.server.Application.setConfig(Application.java:136)
at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1635)
at com.evermind.server.ApplicationServer.initializeApplications(ApplicationServer.java:1585)
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1240)
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:93)
at java.lang.Thread.run(Thread.java:484)
Auto-deploying ProlianceMDB Poster (New server version detected)...
Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
Using native aqapi.jar with OC4J -didn't copy from 9.2.0.2 DB. 9.2.0.2 patchset ran fully, completed fine. What's going wrong?
BrianShouldn't I be getting a com.evermind.sql.OrclCMTConnection created instead of a com.evermind.sql.OrionCMTConnection (per the stack trace)? OJMS is complaining that it doesn't have an OracleCOnnection but how do I tell it to use the "OrclCMTConnection" class instead?
Brian -
Web Logic 6.1 JDBC Pooling with the Oracle Thin Driver
Hi,
We're slowly getting through a WebLogic 4.5.1 to 6.1 conversion for a small application
at my company. Initially, we had trouble getting the Oracle thin driver working.
We've finally cracked this nut. Now we're trying to get pooling working, and
cannot find an example of doing this with the Oracle thin driver.
Would anyone be able to provide:
1. the portion of the config.xml that pertains to building a connection pool using
the Oracle thin driver
2. the two lines of code for loading the driver and getting a connection from
this pool
i.e.
Driver d = (Driver)Class.forName("weblogic.jdbc.pool.Driver").newInstance();
Connection c = d.connect("jdbc:weblogic:pool:myPool", null);
Thanks very much!
Jeff Ryan
The Hartford"Jeff Ryan" <[email protected]> wrote:
>
1. the portion of the config.xml that pertains to building a connection
pool using
the Oracle thin driver
You don't usually edit the config.xml unless it is absolutely necessar. Instead,
you can config the pool in the GUI admin console, quite easily. After you successfully
configed the pool in the console, it is written into the config.xml file for you.
Only thing special when config the pool is the name of the driver and the url.
url: jdbc:oracle:thin@dbhost:dbport:dbinstance
driver: oracle.jdbc.driver.OracleDriver
If you prefer, you can also config the pool from the command line. It is detailed
in the "Weblogic Server Command-line Interface Reference".
2. the two lines of code for loading the driver and getting a connection
from
this pool
i.e.
Driver d = (Driver)Class.forName("weblogic.jdbc.pool.Driver").newInstance();
Connection c = d.connect("jdbc:weblogic:pool:myPool", null);
Again, you don't use the connection directly. Instead, you use "Data Source".
Data source in weblogic is just a connection object factory associated with a
JNDI name. You can therefore lookup the data source with the JNDI name and from
the data source object, you get the connectin object. No need to explicitly load
the driver class.
There are plenty of example codes available in the weblogic examples installed
with 6.1, that uses the data source.
Charles -
I refurbished my macbook air 7 months ago because there was a problem with the steady state drive. Now my battery seems to be dead again. How long does the warranty last? Do I need to pay for a new battery?
As I wrote Apple will diagnose an Apple product even if it is out of warranty for free. That should be your first step to find out if the problem is the battery or something else.
Once you have Apple telling you a 7 month old battery is defective (if that turns out to be the case) then it becomes a game of horse trading. You'll need to speak to the tech and when he tells you there is nothing he can do you will need to speak to the tech manager and when she says most likely there is nothing they can do you go to the store manager, etc. It is unlikely (though possible) that they will give in easily you need to be firm, polite and let on that you're willing to accept a partial reimbursement.
So again the first step is to find out what is wrong.
good luck -
Installing the Oracle ODBC driver
Is there any way to wrap only the oracle odbc driver in an
install program?
we want to avoid having to go through an entire oracle client
install.
Any help would be much apprecitaed.
nullRadha (guest) wrote:
: Is there any way to wrap only the oracle odbc driver in an
: install program?
: we want to avoid having to go through an entire oracle client
: install.
: Any help would be much apprecitaed.
I have the same question. The universal installer is too
complicated for simple client application connectivity
installation.
null -
Sub queries with the Oracle OLEDB driver
We have been testing the Oracle OLEDB driver through VB/ADO on Win2k and have found some VERY disturbing issues. First, some background - version 8.1.7.2, using client side-disconnected recordsets.
A simple query with one or more subqueries is returning no rows when running the same query in SQLPlus returns the desired results. EX: Select a.*, (select Typename from user_types where user_types.type_id =a.type_id) user_type_name from users_group a where user_id = 5
remove the sub-select and the ORACLE OLEDB driver returns a single row. Leave it in and you get recordcount = 0 and rs.eof is true.
Can anyone explain this?
ThanksDuplicate post:
In Trouble with the Oracle JDBC Driver version - 10.1.0.5.0
Claus,
Pardon me if I am stating the obvious, but why don't you use the 10.2 JDBC driver with your 10.2 database? The driver is part of the database distribution. Otherwise, you can download the driver from the OTN Web site.
Good Luck,
Avi. -
How to use the oracle jdbc driver
hi all,
i have use the jdbc driver for oracle before but this time i<m under a hp-ux system and it seems to be different
the dba here said the odbc driver and the jdbc driver where install but i get this error when i compile the code
Class oracle.jdbc.driver.OracleDriver not found in type declration.
if i try to use a odbc driver i can compile(since the classes are in jdk1.3) but i get this error at run time
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java:126)
at TestOracle.<init>(TestOracle.java:33)
at TestOracle.main(TestOracle.java:126)
can someone help me out to better understand what is wrong
it seems the drivers are not install but again the dba assures me they are
import java.sql.*;
import java.io.*;
public class TestOracle {
public TestOracle()
// Load the Oracle JDBC driver
// Connect to the database
// search the dossiers numbers in the right table depending on criteria
// if demands comes from extranet verify to only send back the dossier
// numbers that are linked to the customer
// Load the Oracle JDBC driver
try
//DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
//Class.forName("oracle.djbc.driver.OracleDriver");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
catch( Throwable t ){t.printStackTrace();}
//SQLException,IOException,ClassNotFoundException,
//IllegalAccessException,InstantiationException
try
// Connect to the database
// You can put a database name after the @ sign in the connection URL.
Connection conn =
//DriverManager.getConnection ("jdbc:oracle:oci8:@COLDDEV", "USER", "PPP");
DriverManager.getConnection("jdbc:odbc:COLDDEV","USER", "PPP");
Statement stmt = conn.createStatement ();
ResultSet r = stmt.executeQuery("select * from Dossier");
stmt.close();
System.out.println("trouver:" + r.getString("Dossier_Number"));
catch (SQLException e){e.printStackTrace();}
public static void main(String[] args)
TestOracle testOracle1 = new TestOracle();
here is the code iusehttp://forum.java.sun.com/thread.jsp?forum=48&thread=187964&start=0&range=15#608968
The above link is a comprehensive "How to get set up and on my way" that I made for someone else learning Oracle/jdbc. Kind of a self-help resource page. I would start from the beginning and download the newest drivers, then set up your environment,...etc.
hope this helped,
Jamie -
How to install the Oracle ODBC driver for all NT users
I need to schedule a task on a SQL server running on NT to access an Oracle DB.
I have installed the Oracle ODBC driver on it and it is working well under my NT account.
But the SQL scheduler runs on another NT account and the task failed.
How is it possible to install the Oracle ODBC Driver for all NT users ???
Thanks for your inputs...http://forum.java.sun.com/thread.jsp?forum=48&thread=187964&start=0&range=15#608968
The above link is a comprehensive "How to get set up and on my way" that I made for someone else learning Oracle/jdbc. Kind of a self-help resource page. I would start from the beginning and download the newest drivers, then set up your environment,...etc.
hope this helped,
Jamie -
Are you having problems with the Lacie external drive after upgrading to the new operating system
Are you having problems with the Lacie external drive after upgrading to OS X Mavericks?
See here for everyone discussing the issue you are having:
https://discussions.apple.com/thread/5475136?tstart=0 -
Oracle RDB Driver fails with JDBC/ODBC Bridge
Has anyone experienced problems using the latest Oracle RDB
Driver (3.0.2.0) with the JDBC/ODBC Bridge.
We have been using the Oracle ODBC Driver for RDB (2.10.17)
successfully on NT, but it is not supported on W2K. The new
drivers work fine for Access etc., but fail with the bridge.
Specifically, you can step thru a result set, but getObject()
returns null for all fields.
Any suggestions?
JoeThis forum is for general suggestions and feedback about the OTN
site. For technical question about an Oracle product, you can
select the appropriate discussion forum in our 'Discussions'
section at: http://forums.oracle.com/forums/homepage.jsp
Best regards, OTN Team
Maybe you are looking for
-
How to connect Nokia 6030 to PC inorder to utilize
HI All, Recently i have purchased data cable called CA-45 for nokia 6030.I am able to browse gallery and graphics folder through mobibrowser software,but when i am going to connect to PC through Nokia pc suite latest version(get connected)it didn't d
-
PO Change O/P error- Maintain outgoing EDI-connection data for partner for
Hi Experts , We are connecting our SAP ECC 6 ( Ehp 4) sytem to 3rd party system via SAP PI. We already done all the settings..line Output detemination procedure, Partner Profile ( WE20) , Port creation , Condition Records..etc. We have PO Creation (
-
LF alternatives to Arch for my laptop
Some months ago I've bought a new laptop for college use ( I'm studying computer engineering ). And I've setup, w/o many problems, arch64 + awesomeWM and everything was working properly. Even if I'm not really concerned about battery duration (we've
-
Hi everyone. I've been a loyal BB user since 2008 and I have recently started using a Q10. I have a song that I use as a ringtone, but I want it to be strictly a ringtone and I want to take it out of the music folder and put it in as a ringtone. Is t
-
I've beed asked to run a full export of an Oracle 8i database (running a Windows 2000 server). Is it possible to specify where the dmp file will be created in this version. I know from 10g onwards, I can use the Create or Replace directory expdp_dir