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
Pramod

Hi,
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

Similar Messages

  • 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.

  • 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

  • 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 Brano

    Hi,
    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

  • 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?
    Joe

    This 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

  • Oracleasm update-driver failed in OEL 6

    Hi ,
    I have a problem with oracleasm update-driver command.
    I have OEL 6 installed in my machine.
    When I entered command : rpm -qa| grep oracleasm it is showing me the below output :
    oracleasm-support-2.1.5-1.el6.i686
    But after that, when I issued command oracleasm update-driver , it shows me below error :
    Kernel:          2.6.32-71.el6.i686 i686
    Driver name:     oracleasm-2.6.32-71.el6.i686
    Driver for kernel 2.6.32-71.el6.i686 does not exist
    As a result of this my ASMLib driver is not Initializing properly. Below is the details of that :
    [root@abhishek]# /etc/init.d/oracleasm configure
    Configuring the Oracle ASM library driver.
    This will configure the on-boot properties of the Oracle ASM library
    driver. The following questions will determine whether the driver is
    loaded on boot and what permissions it will have. The current values
    will be shown in brackets ('[]'). Hitting <ENTER> without typing an
    answer will keep that current value. Ctrl-C will abort.
    Default user to own the driver interface [oracle]:
    Default group to own the driver interface [oinstall]:
    Start Oracle ASM library driver on boot (y/n) [y]:
    Scan for Oracle ASM disks on boot (y/n) [y]:
    Writing Oracle ASM library driver configuration: done
    *Initializing the Oracle ASMLib driver:                     [FAILED]*
    Can anyone please help me to resolve this ?
    Thanks
    Abhishek

    Hi Dude,
    Thanks very much for your detailed explanation.
    I have successfully updated UEK kernel by following your mentioned steps.
    But now I am facing another problem.
    I have done upto steps below :
    yum install kernel-uek kernel-uek-devel kernel-uek-headers kernel-uek-firmware+
    *# reboot*
    But when I am trying to enter into that kernel , it is showing dark screen with a arrow pointer .. I think the video driver is not updated for that kernel.
    Let me elaborate the scenario :
    When I boot my machine , it shows 2 options during boot :
    *1. Windows XP*
    *2. Other*
    When I pressed enter into the Other it is showing 3 more options :
    *1. Oracle Linux Kernel - 2.6.32-100.34.1.el6uek.i686*
    *2. Oracle Linux Kernel - 2.6.32-131.0.15.el6.i686*
    *3. Oracle Linux Kernel - 2.6.32-71.el6.i686*
    When I choose 2nd and 3rd option it is showing Gnome GUI properly , but when choosing 1st option it is not showing any Gnome GUI , Just a dark screen and an arrow pointer on that. I can move that pointer here and there over the blank screen. So it is understood that machine is not getting hanged , only display is not coming ( please verify whether my understanding is correct or not ).
    Untill the GUI comes, I am not able to test the rest of the commands you gave. So will you please update the solution with detailed steps.
    One more information i am pasting here. The output of lsmod command ( running from the kernel : 2.6.32-131.0.15.el6.i686 )
    [root@abhishek ]# lsmod
    Module                  Size  Used by
    fuse 56128 2
    autofs4 21604 3
    sunrpc 197485 1
    p4_clockmod 3135 1
    ipt_REJECT 1905 2
    nf_conntrack_ipv4 7700 2
    nf_defrag_ipv4 1013 1 nf_conntrack_ipv4
    iptable_filter 2147 1
    ip_tables 9541 1 iptable_filter
    ip6t_REJECT 3961 2
    nf_conntrack_ipv6 7117 2
    nf_defrag_ipv6 9847 1 nf_conntrack_ipv6
    xt_state 1006 4
    nf_conntrack 66010 3 nf_conntrack_ipv4,nf_conntrack_ipv6,xt_state
    ip6table_filter 2219 1
    ip6_tables 10809 1 ip6table_filter
    ipv6 266112 29 ip6t_REJECT,nf_conntrack_ipv6,nf_defrag_ipv6
    dm_mirror 11652 0
    dm_region_hash 10063 1 dm_mirror
    dm_log 8520 2 dm_mirror,dm_region_hash
    uinput 6218 0
    ppdev 7335 0
    parport_pc 19348 0
    parport 31019 2 ppdev,parport_pc
    ir_lirc_codec 3920 0
    e100 28774 0
    lirc_dev 14570 1 ir_lirc_codec
    mii 4289 1 e100
    ir_sony_decoder 1817 0
    ir_jvc_decoder 1974 0
    ir_rc6_decoder 2262 0
    saa7134 143379 0
    ir_rc5_decoder 1878 0
    ir_nec_decoder 2294 0
    v4l2_common 8534 1 saa7134
    videodev 65768 2 saa7134,v4l2_common
    rc_core 16553 7 ir_lirc_codec,ir_sony_decoder,ir_jvc_decoder,ir_rc6_decoder,saa7134,ir_rc5_decoder,ir_nec_decoder
    videobuf_dma_sg 8614 1 saa7134
    videobuf_core 16927 2 saa7134,videobuf_dma_sg
    tveeprom 11298 1 saa7134
    sg 24778 0
    microcode 12419 0
    i2c_i801 9473 0
    iTCO_wdt 9644 0
    iTCO_vendor_support 2382 1 iTCO_wdt
    snd_hda_codec_realtek 244000 1
    snd_hda_intel 21424 2
    snd_hda_codec 73949 2 snd_hda_codec_realtek,snd_hda_intel
    snd_hwdep 5320 1 snd_hda_codec
    snd_seq 46091 0
    snd_seq_device 5354 1 snd_seq
    snd_pcm 67225 2 snd_hda_intel,snd_hda_codec
    snd_timer 18308 2 snd_seq,snd_pcm
    snd 52754 12 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq,snd_seq_device,snd_pcm,snd_timer
    soundcore 6460 1 snd
    snd_page_alloc 7080 2 snd_hda_intel,snd_pcm
    ext4 327734 2
    mbcache 5918 1 ext4
    jbd2 73784 1 ext4
    sr_mod 14219 0
    cdrom 34036 1 sr_mod
    sd_mod 34239 4
    crc_t10dif 1191 1 sd_mod
    pata_acpi 2487 0
    ata_generic 2555 0
    ata_piix 19080 3
    i915 381685 2
    drm_kms_helper 31540 1 i915
    drm 173379 3 i915,drm_kms_helper
    i2c_algo_bit 4664 1 i915
    i2c_core 25799 9 saa7134,v4l2_common,videodev,tveeprom,i2c_i801,i915,drm_kms_helper,drm,i2c_algo_bit
    video 16662 1 i915
    output 1779 1 video
    dm_mod 63127 2 dm_mirror,dm_log
    Thanks in advance.
    Abhishek
    Edited by: Abhishek on Jun 4, 2011 8:45 PM
    Edited by: Abhishek on Jun 4, 2011 8:50 PM
    Edited by: Abhishek on Jun 4, 2011 8:52 PM

  • Do we need rpm package oracleasmlib for using Oracle ASMLib?

    ..The Oracle ASMLib kernel driver is now included in the Unbreakable Enterprise Kernel.
    No driver package needs to be installed when using this kernel.
    The oracleasm-support and oracleasmlib packages still need to be installed from ULN+
    http://www.oracle.com/technetwork/topics/linux/asmlib/index-101839.html
    i use:
    root@oel62 ~]# uname -r
    2.6.32-300.3.1.el6uek.x86_64I understood:
    -oracleasm: is include in the kernel(kernel/drivers/block/oracleasm/oracleasm.ko)
    -oracleasm-support: can be found on the install ISO or in Oracle Public Yum Server.
    -oracleasmlib: ? not found in Oracle Public Yum Server! can be found only in ULN?
    Question: Do we need it, rpm package oracleasmlib for install Oracle ASMLib?
    I have add kernel module oracleasm (via modprobe) and install rpm oracleasm-support
    (but without oracleasmlib) and it works !!??
    ..and I'm confused ???

    Dude wrote:
    Saying that it works seems quite audacious to me. Well, I can start the engine, let's fly! I'd rather remain on the ground ;-)Hi Dude!
    You do not mean I talk nonsense, right?
    Maybe! But once again i will protocol here what i did.
    It would be very nice if you take a look here:
    Ok! Step by step..
    My environment: Oracle Linux 6.2 in VMWare
    Linux kernel:
    [root@oel62 ~]# uname -r
    2.6.32-300.3.1.el6uek.x86_64Install oracleasm:
    [root@oel62 ~]# modprobe oracleasm
    [root@oel62 ~]# modprobe -l oracleasm
    kernel/drivers/block/oracleasm/oracleasm.ko
    [root@oel62 ~]# lsmod | grep oracle
    oracleasm              48482  1 Install oracleasm-support:
    root@oel62 ~]# yum install oracleasm-support
    Installed:
      oracleasm-support.x86_64 0:2.1.5-1.el6                                                                                      
    Complete!I have only oracleasm-support(no oracleasmlib!)
    [root@oel62 ~]# rpm -qa| grep oracleasm
    oracleasm-support-2.1.5-1.el6.x86_64
    [root@oel62 ~]# Status:
    [root@oel62 ~]# oracleasm status
    Checking if ASM is loaded: yes
    Checking if /dev/oracleasm is mounted: noConfigure:
    [root@oel62 ~]#  /etc/init.d/oracleasm configure
    Default user to own the driver interface []: grid
    Default group to own the driver interface []: asmadmin
    Start Oracle ASM library driver on boot (y/n) [n]: y
    Scan for Oracle ASM disks on boot (y/n) [y]: y
    Writing Oracle ASM library driver configuration: done
    Initializing the Oracle ASMLib driver:                     [  OK  ]
    Scanning the system for Oracle ASMLib disks:               [  OK  ]Status again:
    root@oel62 ~]# /etc/init.d/oracleasm status
    Checking if ASM is loaded: yes
    Checking if /dev/oracleasm is mounted: yesI create 2 virtual disks and then create partition on those disks.
    Result: /dev/sdg1, /dev/sdh1
    and now create ASM disks:
    [root@oel62 ~]# oracleasm createdisk asmdisk1 /dev/sdg1
    Writing disk header: done
    Instantiating disk: done
    [root@oel62 ~]# oracleasm createdisk asmdisk2 /dev/sdh1
    Writing disk header: done
    Instantiating disk: donelistdisks
    [root@oel62 ~]# oracleasm listdisks
    ASMDISK1
    ASMDISK2querydisk
    [root@oel62 ~]# oracleasm querydisk -d /dev/sdg1
    Device "/dev/sdg1" is marked an ASM disk with the label "ASMDISK1"
    [root@oel62 ~]# oracleasm querydisk -d /dev/sdh1
    Device "/dev/sdh1" is marked an ASM disk with the label "ASMDISK2"-Create diskgroup TEST_DG:
    run asmca, step through all screens, specify "Disk discovery path"
    /dev/oracleasm/disks/*Result:
    ASMCMD [+] > lsdsk -p -G test_dg
    Group_Num  Disk_Num      Incarn  Mount_Stat  Header_Stat  Mode_Stat  State   Path
            1         0  3915949404  CACHED      MEMBER       ONLINE     NORMAL  /dev/oracleasm/disks/ASMDISK1
            1         1  3915949403  CACHED      MEMBER       ONLINE     NORMAL  /dev/oracleasm/disks/ASMDISK2-Run dbca create a database testdb with storage using diskgroup TEST_DG
    and here is the DB testdb on diskgroup test_dg
    [grid@oel62 ~]$ rlwrap asmcmd -p
    ASMCMD [+] > ls test_dg/testdb
    CONTROLFILE/
    DATAFILE/
    ONLINELOG/
    PARAMETERFILE/
    TEMPFILE/
    spfiletestdb.ora
    ASMCMD [+] > ls -l test_dg/testdb/datafile
    Type      Redund  Striped  Time             Sys  Name
    DATAFILE  UNPROT  COARSE   JUN 27 11:00:00  Y    SYSAUX.257.787055133
    DATAFILE  UNPROT  COARSE   JUN 27 11:00:00  Y    SYSTEM.256.787055133
    DATAFILE  UNPROT  COARSE   JUN 27 11:00:00  Y    UNDOTBS1.258.787055133
    DATAFILE  UNPROT  COARSE   JUN 27 11:00:00  Y    USERS.259.787055133
    ASMCMD [+] > Service status:
    [grid@oel62 ~]$ srvctl status diskgroup -g test_dg
    Disk Group test_dg is running on oel62
    [grid@oel62 ~]$ Once again i did not install oracleasmlib!
    I have no RPM oracleasmlib on my system:
    root@oel62 ~]# rpm -qa| grep oracleasm
    oracleasm-support-2.1.5-1.el6.x86_64It is a "perfect" installation, or what do you mean?
    It works fine, but why it works??
    Well, folks! Tell me now why it works without oracleasmlib ?
    What happened, what is going on here?
    Thank you for reading my long text here!

  • Unmounting ASMlib driver filesystems failed

    Hi,
    I have tried to stop ASMlib and unload module oracleasm
    #oracleasm exit
    However I am receiving the error:
    Unmounting ASMlib driver filesystem: failed
    Unable to unmount ASMlib driver filesystem
    I have running ASM instance.
    My main question is:
    I have read that you do not need ASMlib for ASM (it is just an optional support), so why when I want to stop it it is not possible?
    Note: I have tried to do so on the system without ASM instance running - actually no grid, no DB is installed, just ASMlib, and it was ok - I could do exit without any problems (sure, ).
    If someone could give me an explanation what is going on, or what am I missing in ASMlib and ASM instance relationship I appreciate it so much.
    #fuser -m /dev/oracleasm  --> there are many processes using it (e.g. asm_dbw0_+ASM ...), which is all right I just do not understand why it is blocking ASMlib
    xxx:/home/storage # rpm -qa| grep oracl
    oracle-instantclient11.2-sqlplus-11.2.0.4.0-1
    oracleasm-support-2.1.8-1.SLE11
    oracleasmlib-2.0.4-1.SLE11
    oracleasm-kmp-default-2.0.5_3.0.82_0.7-7.39.1
    oracle-instantclient11.2-basic-11.2.0.4.0-1
    oracleasm-2.0.5-7.39.1
    Oracle 11g
    SLE 11 SP3

    Hi Dude,
    Thanks.
    And how it is connected with the ASM instance - I mean ASMlib, why it cannot be unmounted while ASM instance is running?
    I thought that ASMlib is used for device management - labeling, connecting to /dev/oracleasm so it has not 'real' efect on ASM itself. I think it is just preparing devices for AMS so this is why I do not understand why it cannot be umnounted. Like separate process helping to user/admin deal with the devices, not helping ASM itself.
    I am not against ASMlib (I will try udev, but ASMlib is simplifying things - at least for me )  - I saw there are many discussion, it is not my case, just wish to understand clearly.

  • Insert into CLOB fails with Oracle ODBC driver version 9.02.00.65

    I tried to insert into CLOB using the latest Oracle ODBC driver 9.02.00.65 and it fails. But the same works with earlier versions of ODBC driver earlier to 9.02.00.65 ie., 9.02.00.63.
    Here is the code snippet I tried. Any help now is highly appreciated as I am in the crunch time.
    I tried the same code snippet with VARCHAR2 column with the same driver and it works.
    ** CONVDSN.C - This is the ODBC sample code for
    ** creating File DSN pointers to machine DSNs.
    **This code is furnished on an as-is basis as part of the ODBC SDK and is
    **intended for example purposes only.
    #include <windows.h>
    #include <stdio.h>
    #include <tchar.h>
    #include <sql.h>
    #include <sqlext.h>
    #include <odbcinst.h>
    #include <sqltypes.h>
    #define MAXDATALEN 25 //maximum data length per column
    #define MAX_COL 15 //maximum column in result set
    #define MAX_ROW 100 //maximum number of rows
    #define MAXBUFLEN 256
    #define SQLERR_FORMAT "SQL Error State:%s, Native Error Code: %lX, ODBC Error: %s"
    #define MAXDISPLAYSIZE MAX_COL*(MAXDATALEN+1)
    #define SQLWRNMSGTITLE "SQL_SUCCESS_WITH_INFO results"
    #define SQLERRCNTDTITLE "SQL_ERROR results continued"
    #define SQLWRNMSGTITLE "SQL_SUCCESS_WITH_INFO results"
    #define SQLWRNCNTDTITLE "SQL_SUCCESS_WITH_INFO results continued"
    #define NULLDATASTRING "SQL_NULL_DATA"
    #define SQLERRMSGTITLE "SQL_ERROR results"
    // prototypes
    void ExpandFileName(LPSTR szFileDSNName, LPCSTR szDSNName);
    void MakeLegalName(LPSTR szLegalDSNName, LPCSTR szDSNName);
    // main routine: Iterate through the user and system DSNs, creating a pointer
    // to each.
    void FAR PASCAL DisplayError(SQLRETURN nResult, HWND hWnd, SWORD fHandleType, SQLHANDLE handle);
    void insertSelectClob();
    void checkRcCode(RETCODE rc);
    int main (int argc, char* argv[])
         insertSelectClob();
    return 0;
    void FAR PASCAL DisplayError(SQLRETURN nResult, HWND hWnd, SWORD fHandleType, SQLHANDLE handle)
         UCHAR szErrState[SQL_SQLSTATE_SIZE+1]; // SQL Error State string
         UCHAR szErrText[SQL_MAX_MESSAGE_LENGTH+1]; // SQL Error Text string
         char szBuffer[SQL_SQLSTATE_SIZE+SQL_MAX_MESSAGE_LENGTH+MAXBUFLEN+1];
         // formatted Error text Buffer
         SWORD wErrMsgLen; // Error message length
         UDWORD dwErrCode; // Native Error code
         int iSize; // Display Error Text size
         SQLRETURN nErrResult; // Return Code from SQLGetDiagRec
         SWORD sMsgNum = 1;
         SWORD fFirstRun = TRUE;
         char szDispBuffer[MAXDISPLAYSIZE+1]; // Display Buffer
         szBuffer[0] = '\0';
         do
              // continue to bring messageboxes till all errors are displayed.
              // more than one message box may be reqd. as err text has fixed
              // string size.
              // initialize display buffer with the string in error text buffer
              strcpy(szDispBuffer, szBuffer);
              // call SQLGetDiagRec function with proper ODBC handles, repeatedly until
              // function returns SQL_NO_DATA. Concatenate all error strings
              // in the display buffer and display all results.
              while ((nErrResult = SQLGetDiagRec(fHandleType, handle, sMsgNum++,
                   szErrState, &dwErrCode, szErrText,
                   SQL_MAX_MESSAGE_LENGTH-1, &wErrMsgLen)) != SQL_NO_DATA)
                   if(nErrResult == SQL_ERROR || nErrResult == SQL_INVALID_HANDLE)
                   break;
                   wsprintf(szBuffer, SQLERR_FORMAT, (LPSTR)szErrState, dwErrCode, (LPSTR)szErrText);
                   iSize = strlen(szDispBuffer);
                   if (iSize && (iSize+strlen(szBuffer)+1) >= MAXDISPLAYSIZE)
                   break;
                   if (iSize)
                   strcat(szDispBuffer, "\n");
                   strcat(szDispBuffer, szBuffer);
              // display proper ERROR or WARNING message with proper title
              if (nResult == SQL_SUCCESS_WITH_INFO)
                   MessageBox(hWnd, szDispBuffer, (fFirstRun? SQLWRNMSGTITLE : SQLWRNCNTDTITLE),
                   MB_OK | MB_ICONINFORMATION);
              else
                   MessageBox(hWnd, szDispBuffer, (fFirstRun? SQLERRMSGTITLE : SQLERRCNTDTITLE),
                   MB_OK | MB_ICONEXCLAMATION);
              if (fFirstRun)
                   fFirstRun = FALSE;
         while (!(nErrResult == SQL_NO_DATA || nErrResult == SQL_ERROR || nErrResult == SQL_INVALID_HANDLE));
    void insertSelectClob()
    SQLCHAR clobdata[1001];
    SQLCHAR resultdata[1001];
    SQLINTEGER ind = SQL_DATA_AT_EXEC;
    SQLCHAR *bufp;
         SQLINTEGER cbOrderID = sizeof(SQLSMALLINT);
         SQLSMALLINT sTmp=13;
         SQLCHAR *sqlStmt1  = _T("INSERT INTO clobtbl(id, clob1) VALUES(?, ?)");
         SQLCHAR *sqlStmt2  = _T("SELECT id, clob1 FROM clobtbl");
    //     SQLCHAR *sqlStmt1  = _T("INSERT INTO testInsert(id, clob1) VALUES(?, ?)");
    // SQLCHAR *sqlStmt2  = _T("SELECT id, clob1 FROM testInsert");
    int clobdatalen, chunksize, dtsize, retchklen;
         HENV envHnd;
    HDBC conHnd;
    HSTMT stmtHnd;
    RETCODE rc;
         int nRowcnt=0;
         SQLPOINTER pToken = NULL;
    rc = SQL_SUCCESS;
    // ENV is allocated
    rc = SQLAllocEnv(&envHnd);
    // Connection Handle is allocated
    rc = SQLAllocConnect(envHnd, &conHnd);
    rc = SQLConnect(conHnd, T("testd734"), SQLNTS, T("ipathdba"), SQLNTS, T("ipathdba"), SQLNTS);
    printf(_T("Insert CLOB1 using SQLPutData...\n[%s]\n"), sqlStmt1);
    // Set CLOB Data
    int i;
    SQLCHAR ch;
    for (i=0, ch=_T('A'); i< sizeof(clobdata)/sizeof(SQLCHAR); ++i, ++ch)
    if (ch > _T('Z'))
    ch = _T('A');
    clobdata[i] = ch;
    clobdata[sizeof(clobdata)/sizeof(SQLCHAR)-1] = _T('\0');
    clobdatalen = lstrlen(clobdata); // length of characters
    chunksize = clobdatalen / 7; // 7 times to put
         rc = SQLAllocHandle(SQL_HANDLE_STMT, conHnd, &stmtHnd);
    // Step 1: Prepare
    rc = SQLPrepare(stmtHnd, sqlStmt1, SQL_NTS);
    // checkSQLErr(envHnd, conHnd, stmtHnd, rc);
    // Step 2: Bind Parameter with SQL_DATA_AT_EXEC
    rc = SQLBindParameter(stmtHnd,
    1,
    SQL_PARAM_INPUT,
    SQL_C_SSHORT,
    SQL_INTEGER,
    0,
    0,
    &sTmp,
    0,
    &cbOrderID);
    rc = SQLBindParameter(stmtHnd,
    2,
    SQL_PARAM_INPUT,
    SQL_C_CHAR,
    SQL_LONGVARCHAR,
    clobdatalen*sizeof(CHAR),
    0,
    (SQLPOINTER)clobdata,
    clobdatalen*sizeof(CHAR),
    &ind);
    // checkSQLErr(envHnd, conHnd, stmtHnd, rc);
    // Step 3: Execute
    rc = SQLExecute(stmtHnd);
         while (rc == SQL_NEED_DATA) {
              rc = SQLParamData(stmtHnd, &pToken);
              if (rc == SQL_NEED_DATA) {
                   for (dtsize=0, bufp = clobdata;
                        dtsize < clobdatalen;
                        dtsize += chunksize, bufp += chunksize)
                   int len;
                   if (dtsize+chunksize < clobdatalen)
                        len = chunksize;
                        rc = SQLPutData(stmtHnd, bufp, len*sizeof(SQLCHAR));
                   else
                        len = clobdatalen-dtsize;
                        rc = SQLPutData(stmtHnd, bufp, SQL_NTS);
              rc = SQLParamData(stmtHnd, &pToken);
    // Fails as row count retrieved is zero.
         rc = SQLRowCount(stmtHnd, &nRowcnt);
         if(rc != SQL_SUCCESS)
              DisplayError(rc, NULL, SQL_HANDLE_ENV, conHnd);
    rc = SQLFreeStmt(stmtHnd, SQL_CLOSE);
    printf(_T("Finished Update\n\n"));
    rc = SQLAllocStmt(conHnd, &stmtHnd);
    if (rc != SQL_SUCCESS)
    printf(_T("Failed to allocate STMT\n"));
    exit(-1);
    // Clear Result Data
    memset(resultdata, 0, sizeof(resultdata));
    chunksize = clobdatalen / 15; // 15 times to gut
    rc = SQLExecDirect(stmtHnd, sqlStmt2, SQL_NTS); // select
         if(rc != SQL_SUCCESS)
              DisplayError(rc, NULL, SQL_HANDLE_ENV, conHnd);
    // Step 2: Fetch
    rc = SQLFetch(stmtHnd);
    for(dtsize=0, bufp = resultdata;
    dtsize > sizeof(resultdata)/sizeof(CHAR) && rc != SQL_NO_DATA;
    dtsize += chunksize-1, bufp += chunksize-1)
    int len; // len should contain the space for NULL termination
    if (dtsize+chunksize<sizeof(resultdata)/sizeof(CHAR))
    len = chunksize;
    else
    len = sizeof(resultdata)/sizeof(CHAR)-dtsize;
    // Step 3: GetData
    rc = SQLGetData(stmtHnd,
    2,
    SQL_C_CHAR,
    (SQLPOINTER)bufp,
    len*sizeof(CHAR),
    &retchklen);
    if (!_tcscmp(resultdata, clobdata))
    printf(_T("Succeeded!!\n\n"));
    else
    printf(_T("Failed!!\n\n"));
         if (conHnd)
              SQLFreeConnect(conHnd);
         if (envHnd)
              SQLFreeEnv(envHnd);
    }

    Hi,
    Since 9.2 has been desupported for error correction you will not be able to download that version from OTN. You should ask whoever is providing the training if their is an alternate version you can use. The only versions that you will be able to download from oracle.com is 10.2 11.1, and 11.2.

  • [Oracle JDBC Driver][Oracle]ORA-31011: XML parsing failed

    Hi,
    I have got the following error when i tired to upload an XML file in my application. My application will insert the XML file in to Oracle 10g data base table. (Our DB server is Oracle 10g).
    The error is as follows:-
    [BEA][Oracle JDBC Driver][Oracle]ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00004: internal error "MultiChar overflow"
    Error at line 20795
    ORA-06512: at "SYS.XMLTYPE", line 254
    ORA-06512: at line 1
    The XML file contains more than 90,000 lines in it. Please help.
    Thanks!
    Siva K.

    Is this a specific problem with 10G release? We are using 10.2.0.4.0.
    Using CLOB, We think that this may hit the performance of the application as we are using large XML files.

  • ASP connection to Oracle using MS ODBC Driver fails

    I have a Win2000 server with ORCL9.2 client and MDAC2.7 and the following code fails (last line gives the error):
    set dbConn = Server.CreateObject("ADODB.Connection")
    set rsSeq = server.CreateObject("ADODB.Recordset")
    sSql = "Select count(*) From bs_table"
    dbConn.Open "DSN=tp10;UID=aaa;PWD=aaa;"
    The error text is :
    Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
    [Microsoft][ODBC driver for Oracle][Oracle]Error while trying to retrieve text for error ORA-01019
    This code works fine with Oracle 8i client on the server, I really appreciate if any one can help me out here.
    Thanks

    Can you try with the Oracle ODBC driver, rather than the Microsoft ODBC driver for Oracle? Microsoft's driver still uses the old Oracle 7 OCI calls, which are no longer supported on an Oracle 9.2 client.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Issue encountered when Login as sysdba role using Thin Oracle JDBC Driver

    Hello all,
    we are now considering to use Thin oracle JDBC driver to create database in our project, but we met one issue when we tried to connect to oracle as sysdba role using Thin driver, and it throws java.sql.SQLException: Io Exception: SO Exception was generated, I have found some tips on oracle jdbc website and it says :
    How do I connect as SYSDBA or SYSOPER?
    The only way to do this is to use the Properties object when connecting, rather than specifying the username and password as strings. Put the username into the "user" property, and the password into the "password" property. Then, put the mode into the "internal_logon" property. Something like the following:
    Properties props = new Properties();
    props.put("user", "scott");
    props.put("password", "tiger");
    props.put("internal_logon", "sysoper");
    Connection conn = DriverManager.getConnection (url, props);
    When connecting as SYSDBA or SYSOPER using the Thin driver, the RDBMS must be configured to use a password file. See "Creating and Maintaining a Password File" in the "Oracle Database Administrator's Guide".
    So, i did execute orapwd command to create a password file and also set remote_login_passwordfile=execlusive in my initxxx.ora initial parameter file, however, when i tried to connect, it failed.
    private static void createEmsdbDatabase(){
    String url = "jdbc:oracle:thin:@localhost:1521:";
    StringBuffer sqlStatement = new StringBuffer();
    sqlStatement.append("create database xxx");
    sqlStatement.append("maxdatafiles 254 ");
    sqlStatement.append("maxinstances 8 ");
    sqlStatement.append("maxlogfiles 32 ");
    sqlStatement.append("character set UTF8 ");
    sqlStatement.append("national character set UTF8 ");
    sqlStatement.append("DATAFILE 'c:\\oracle\\xxx\\system01.dbf' SIZE 18M REUSE ");
    sqlStatement.append("logfile 'c:\\oracle\\xxx\\redo01.log' SIZE 2M REUSE, ");
    sqlStatement.append("'c:\\oracle\\xxx\\redo02.log' SIZE 2M REUSE, ");
    sqlStatement.append("'c:\\oracle\\xxx\\redo03.log' SIZE 2M REUSE ");
    try {
    DriverManager.registerDriver(new OracleDriver());
    Properties props = new Properties();
    props.put("user", "sys");
    props.put("password", "password");
    props.put("database","xxx");
    props.put("internal_logon", "sysdba");
    Connection conn = DriverManager.getConnection(url, props);
    Statement statement = conn.createStatement();
    statement.executeUpdate(sqlStatement.toString());
    statement.close();
    conn.close();
    } catch (SQLException e) {
    e.printStackTrace();
    But what made me puzzled a lot is if i use OCI driver, it did work great, why??? guys, anybody knows, please give me some tips, thanks in advance.
    regards,
    Kaixuan @ Shanghai

    clarify my question in detail:
    Step 1 : create password file using orapwd command
    Step 2 : create database instance using oradim command
    Step 3 : login using sys as sysdba to startup database, e.g startup nomount pfile='...\initxxx.ora'
    Step 4 : create database.
    java code showing below:
    private static void createEmsdbDatabase(){
    String url = "jdbc:oracle:thin:@localhost:1521:";
    StringBuffer sqlStatement = new StringBuffer();
    sqlStatement.append("create database xxx ");
    sqlStatement.append("maxdatafiles 254 ");
    sqlStatement.append("maxinstances 8 ");
    sqlStatement.append("maxlogfiles 32 ");
    sqlStatement.append("character set UTF8 ");
    sqlStatement.append("national character set UTF8 ");
    sqlStatement.append("DATAFILE 'c:\\oracle\\xxx\\system01.dbf' SIZE 18M REUSE ");
    sqlStatement.append("logfile 'c:\\oracle\\xxx\\redo01.log' SIZE 2M REUSE, ");
    sqlStatement.append("'c:\\oracle\\xxx\\redo02.log' SIZE 2M REUSE, ");
    sqlStatement.append("'c:\\oracle\\xxx\\redo03.log' SIZE 2M REUSE ");
    try {
    DriverManager.registerDriver(new OracleDriver());
    Properties props = new Properties();
    props.put("user", "sys");
    props.put("password", "password");
    props.put("database","xxx");
    props.put("internal_logon", "sysdba");
    Connection conn = DriverManager.getConnection(url, props);
    Statement statement = conn.createStatement();
    statement.executeUpdate(sqlStatement.toString());
    statement.close();
    conn.close();
    } catch (SQLException e) {
    e.printStackTrace();
    issue was met here, when i tried to login as sysdba using sys, and in my java code, i use Thin driver, it then thrus exception, but when OCI driver is used, it works great, i don't know why.
    that is, when i use "jdbc:oracle:oci8:@" as database URL and then properties.put("database","xxx"), it works great. but, when i use "jdbc:oracle:thin:@localhost:1521:" as database URL and then properties.put("database","xxx"), it failed. hopefully, i have clarified my question clearly. thanks.

  • EJB - no suitable driver found for oracle jdbc driver

    this is the exception i got when i run the client:
    java.rmi.RemoteException: nested exception is: java.sql.SQLException: No suitable driver; nested exception is:
    java.sql.SQLException: No suitable driver
    java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(DriverManager.java:537)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)
    at com.sun.enterprise.resource.JdbcUrlAllocator.createResource(JdbcUrlAllocator.java:45)
    at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:177)
    at com.sun.enterprise.resource.JdbcXAConnection.<init>(JdbcXAConnection.java:56)
    at com.sun.enterprise.resource.Jdbc10XaAllocator.createResource(Jdbc10XaAllocator.java:66)
    at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:177)
    at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:126)
    at com.sun.enterprise.resource.JdbcDataSource.internalGetConnection(JdbcDataSource.java:137)
    at com.sun.enterprise.resource.JdbcDataSource.getConnection(JdbcDataSource.java:74)
    at bmp.TaxEJB.ejbCreate(TaxEJB.java:34)
    at bmp.TaxEJB_RemoteHomeImpl.create(TaxEJB_RemoteHomeImpl.java:32)
    at bmp._TaxEJB_RemoteHomeImpl_Tie._invoke(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.java:520)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:210)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:112)
    at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:255)
    at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:84)
    at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:99)
    this is the implementation file (TaxEJB):
    package bmp;
    import java.sql.*;
    import javax.sql.*;
    import javax.naming.*;
    import java.util.*;
    import javax.ejb.*;
    public class TaxEJB implements EntityBean {
    private String stateCode;
    private float taxRate;
    private EntityContext ctx;
    private DataSource ds;
    private String dbName = "jdbc/Oracle";
    private Connection con;
    public void setTaxRate(float taxRate) {
    this.taxRate = taxRate;
    public float getTaxRate() {
    return this.taxRate;
    public String ejbCreate(String stateCode, float taxRate)
    throws CreateException {
    if (stateCode == null) {
    throw new CreateException("The State Code is required.");
    try {
    String sqlStmt = "INSERT INTO TaxTable VALUES ( ? , ? )";
    con = ds.getConnection();
    PreparedStatement stmt = con.prepareStatement(sqlStmt);
    stmt.setString(1, stateCode);
    stmt.setFloat(2, taxRate);
    stmt.executeUpdate();
    stmt.close();
    } catch (SQLException sqle) {
    throw new EJBException(sqle);
    } finally {
    try {
    if (con != null) {
    con.close();
    } catch (SQLException sqle) {}
    this.stateCode = stateCode;
    this.taxRate = taxRate;
    return stateCode;
    public void ejbPostCreate(String stateCode, float taxRate) {}
    public void setEntityContext(EntityContext context) {
    this.ctx = context;
    try {
    InitialContext initial = new InitialContext();
    ds = (DataSource)initial.lookup(dbName);
    } catch (NamingException ne) {
    throw new EJBException(ne);
    public void unsetEntityContext() {
    ctx = null;
    public void ejbActivate() {
    stateCode = (String)ctx.getPrimaryKey();
    public void ejbPassivate() {
    stateCode = null;
    public void ejbLoad() {
    try {
    String sqlStmt = "SELECT stateCode, taxRate FROM TaxTable " +
    "WHERE stateCode = ? ";
    con = ds.getConnection();
    PreparedStatement stmt = con.prepareStatement(sqlStmt);
    stmt.setString(1, stateCode);
    ResultSet rs = stmt.executeQuery();
    if (rs.next()) {
    this.taxRate = rs.getFloat("taxRate");
    stmt.close();
    } else {
    stmt.close();
    throw new NoSuchEntityException("State Code: " + stateCode);
    } catch (SQLException sqle) {
    throw new EJBException(sqle);
    } finally {
    try {
    if (con != null) {
    con.close();
    } catch (SQLException sqle) {}
    public void ejbStore() {
    try {
    String sqlStmt = "UPDATE TaxTable SET "
    + "taxRate = ? " + "WHERE stateCode = ?";
    con = ds.getConnection();
    PreparedStatement stmt = con.prepareStatement(sqlStmt);
    stmt.setFloat(1, taxRate);
    stmt.setString(2, stateCode);
    if (stmt.executeUpdate() != 1) {
    throw new EJBException("Object state could not be saved");
    stmt.close();
    } catch (SQLException sqle) {
    throw new EJBException(sqle);
    } finally {
    try {
    if (con != null) {
    con.close();
    } catch (SQLException sqle) {}
    public void ejbRemove() {
    try {
    String sqlStmt = "DELETE FROM TaxTable WHERE stateCode = ? ";
    con = ds.getConnection();
    PreparedStatement stmt = con.prepareStatement(sqlStmt);
    stmt.setString(1, stateCode);
    stmt.executeUpdate();
    stmt.close();
    } catch (SQLException sqle) {
    throw new EJBException(sqle);
    } finally {
    try {
    if (con != null) {
    con.close();
    } catch (SQLException sqle) {}
    public String ejbFindByPrimaryKey(String primaryKey)
    throws FinderException {
    try {
    String sqlStmt = "SELECT stateCode "
    + "FROM TaxTable WHERE stateCode = ? ";
    con = ds.getConnection();
    PreparedStatement stmt = con.prepareStatement(sqlStmt);
    stmt.setString(1, primaryKey);
    ResultSet rs = stmt.executeQuery();
    if (!rs.next()) {
    throw new ObjectNotFoundException();
    rs.close();
    stmt.close();
    return primaryKey;
    } catch (SQLException sqle) {
    throw new EJBException(sqle);
    } finally {
    try {
    if (con != null) {
    con.close();
    } catch (SQLException sqle) {}
    public Collection ejbFindInRange(float lowerLimit, float upperLimit)
    throws FinderException {
    try {
    String sqlStmt = "SELECT stateCode from TaxTable "
    + "WHERE taxRate BETWEEN ? AND ?";
    con = ds.getConnection();
    PreparedStatement stmt = con.prepareStatement(sqlStmt);
    stmt.setFloat(1, lowerLimit);
    stmt.setFloat(2, upperLimit);
    ResultSet rs = stmt.executeQuery();
    ArrayList list = new ArrayList();
    while (rs.next()) {
    String id = rs.getString(1);
    list.add(id);
    stmt.close();
    return list;
    } catch (SQLException sqle) {
    throw new EJBException(sqle);
    } finally {
    try {
    if (con != null) {
    con.close();
    } catch (SQLException sqle) {}
    this is the setting in resource.properties:
    jdbcDataSource.5.name=jdbc/Oracle
    jdbcDataSource.5.url=jdbc\:oracle\:thin\:@nicole\:1521\:NICOLE
    jdbcDriver.1.name=oracle.jdbc.driver.OracleDriver
    this is my classpath setting:
    %J2EE_HOME%\lib\j2ee.jar;%J2EE_HOME%\lib\system\cloudscape.jar;%J2EE_HOME%\lib\system\cloudutil.jar;%J2EE_HOME%\lib\cloudscape\RmiJdbc.jar;%J2EE_HOME%\lib\system\classes12.jar;.
    since i already declare classpath for oracle JDBC Driver (classes12.jar), why the program still can't found the oracle.jdbc.driver.OracleDriver? please help. thanks.

    Hi,
    I m trying to connect ORACLE9i using JSP.But i encounter the error java.sql.SQlException no suitable driver found.My code is as follows.
    <html>
    <head><title>oracle</title></head>
    <body>
    <%@ page language="java"%>
    <%@ page import="java.sql.*" %>
    <%
    String eid=new String();
    String en=new String();
    try
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    catch(ClassNotFoundException cnfe)
         out.println("Failed to load Jdbc Odbc driver");
    try{
    Connection con = DriverManager.getConnection("jdbc:oracle:thin@localhost:1521:ORACLE9I","scott","tiger");
    Statement ps = con.createStatement();
    try{
    ResultSet rs = ps.executeQuery("select * from empDetails");
    while(rs.next())
         out.println(rs.getString(1));
         out.println(rs.getString(2));
    rs.close();
    }catch(SQLException se)
    out.println(se);
    ps.close();
    con.close();
    catch(Exception e)
         out.println(e);
    catch (Exception e){
    out.println(e);
    %>
    </body></html>
    Pls anyone give me a solution.Its really urgent.

  • ConnectionPool - Oracle thin driver

    Hi all,
    I'm having problem setting up connection pool for a oracle thin driver
    appreciate any help..
    platform : Windows 2000
    WebLogic version :Build: 5.1.0
    Oracle version : 8.1.6
    Classpath :...
    C:\Oracle\Ora81\jdbc\lib\classes12.zip;C:\Oracle\Ora81\jdbc\lib\nls_charset1
    2.zip;
    ============================================================================
    ===========================
    I've tested t3dbping and it works fine. This is the way it looked:
    java utils.t3dbping t3://dcpvs00j:7001 plovdinger plovdinger ""
    oracle.jdbc.driver.OracleDriver jdbc:oracle:thin:@prodbackup:1521:orcl
    ============================================================================
    ===========================
    I setup the properties in weblogic.properties like this:
    # props=user=SCOTT;password=tiger;server=DEMO
    weblogic.jdbc.connectionPool.oraclePool=\
    url=jdbc:oracle:thin:@prodbackup:1521:orcl,\
    driver=oracle.jdbc.driver.OracleDriver,\
    loginDelaySecs=1,\
    initialCapacity=4,\
    maxCapacity=10,\
    capacityIncrement=2,\
    allowShrinking=true,\
    shrinkPeriodMins=15,\
    refreshMinutes=10,\
    testTable=USER_PROFILE,
    props=user=PLOVDINGER;password=PLOVDINGER
    ============================================================================
    ===========================
    Then I get this in the log:
    Appreciate any ideas and suggestions.....
    cheers Per
    ============================================================================
    ===========================
    Wed Feb 07 09:13:24 GMT+00:00 2001:<I> <SSLListenThread> Using exportable
    strength SSL.
    Wed Feb 07 09:13:24 GMT+00:00 2001:<I> <WebLogicServer> Invoking main-style
    startup weblogic.jdbc.com
    mon.internal.JdbcStartup weblogic.jdbc.common.internal.JdbcStartup
    Wed Feb 07 09:13:25 GMT+00:00 2001:<I> <JDBC Pool> Creating connection pool
    oraclePool with:
    {poolName=oraclePool, driver=oracle.jdbc.driver.OracleDriver,
    aclName=weblogic.jdbc.connectionPool.or
    aclePool, url=jdbc:oracle:thin:@prodbackup:1521:orcl}
    java.sql.SQLException: invalid arguments in call
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156)
    at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:803)
    at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:175)
    at
    oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:198)
    at
    oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:251)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
    at
    weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Connection
    EnvFactory.jav
    a:149)
    at
    weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Connection
    EnvFactory.jav
    a:109)
    at
    weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.j
    ava, Compiled
    Code)
    at
    weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java,
    Compiled Code)
    at
    weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:330
    at weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java,
    Compiled Code)
    at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
    at
    weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java,
    Compiled Code)
    at
    weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
    Wed Feb 07 09:13:25 GMT+00:00 2001:<I> <JDBC Pool> Sleeping in
    createResource()
    Wed Feb 07 09:13:26 GMT+00:00 2001:<E> <JDBC Pool> Failed to create
    connection pool "oraclePool"
    weblogic.common.ResourceException: weblogic.common.ResourceException:
    Could not create pool connection. The DBMS driver exception was:
    java.sql.SQLException: invalid arguments in call
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156)
    at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:803)
    at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:175)
    at
    oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:198)
    at
    oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:251)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
    at java.sql.DriverManager.getConnection(DriverManager.java:457)
    at java.sql.DriverManager.getConnection(DriverManager.java:137)
    at
    weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Connection
    EnvFactory.jav
    a:172)
    at
    weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Connection
    EnvFactory.jav
    a:109)
    at
    weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.j
    ava, Compiled
    Code)
    at
    weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java,
    Compiled Code)
    at
    weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:330
    at weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java,
    Compiled Code)
    at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
    at
    weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java,
    Compiled Code)
    at
    weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
    at
    weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Connection
    EnvFactory.jav
    a:182)
    at
    weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Connection
    EnvFactory.jav
    a:109)
    at
    weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.j
    ava, Compiled
    Code)
    at
    weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java,
    Compiled Code)
    at
    weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:330
    at weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java,
    Compiled Code)
    at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
    at
    weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java,
    Compiled Code)
    at
    weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
    at
    weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Connection
    EnvFactory.jav
    a:125)
    at
    weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.j
    ava, Compiled
    Code)
    at
    weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java,
    Compiled Code)
    at
    weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:330
    at weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java,
    Compiled Code)
    at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
    at
    weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java,
    Compiled Code)
    at
    weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
    Wed Feb 07 09:13:26 GMT+00:00 2001:<I> <JMS> Beginning startup process
    Wed Feb 07 09:13:26 GMT+00:00 2001:<I> <JMS> Init JMS Security
    Wed Feb 07 09:13:26 GMT+00:00 2001:<I> <JMS> Initializing from
    weblogic.properties
    Wed Feb 07 09:13:26 GMT+00:00 2001:<I> <JMS> Startup process complete. JMS
    is active
    Wed Feb 07 09:13:26 GMT+00:00 2001:<I> <JMS> Bound SessionPoolManager as
    weblogic.jms.SessionPoolMana
    ger
    Wed Feb 07 09:13:26 GMT+00:00 2001:<I> <JMS> Bound ConnectionConsumerManager
    as weblogic.jms.Connecti
    onConsumerManager
    Wed Feb 07 09:13:26 GMT+00:00 2001:<I> <WebLogicServer> Invoking main-style
    startup RMI Registry webl
    ogic.rmi.internal.RegistryImpl
    Wed Feb 07 09:13:26 GMT+00:00 2001:<I> <RMI> Registry started
    Wed Feb 07 09:13:27 GMT+00:00 2001:<I> <EJB> 0 EJB jar files loaded,
    containing 0 EJBs
    Wed Feb 07 09:13:27 GMT+00:00 2001:<I> <EJB> 0 deployed, 0 failed to deploy.
    Wed Feb 07 09:13:27 GMT+00:00 2001:<I> <ZAC> ZAC ACLs initialized
    Wed Feb 07 09:13:27 GMT+00:00 2001:<I> <ZAC> ZAC packages stored in local
    directory exports
    Wed Feb 07 09:13:27 GMT+00:00 2001:<I> <ListenThread> Listening on port:
    7001
    Wed Feb 07 09:13:27 GMT+00:00 2001:<I> <SSLListenThread> Listening on port:
    7002
    <NT Performance Pack> NATIVE: created IoCompletionPort successfully.
    IoPort=0x00000230
    Wed Feb 07 09:13:28 GMT+00:00 2001:<I> <WebLogicServer> WebLogic Server
    started

    Chris Halstead wrote:
    >
    Don't get caught by the 'refreshMinutes' bug....the parameter is really
    'refreshTestMinutes'. The sample connection pool code in the
    weblogic.properties file that comes with the install erroneously has this
    parameter wrong. If the parameter is not right, Weblogic will silently
    ignore it...to your detriment. This is especially important if you connect
    to a DB through a firewall.
    -chrisThanks for the heads-up!
    Joe
    >
    "Per Lovdinger" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    thanks a lot for your help. Just to let you know it worked when I declared
    the connection-pool on one line.
    ..Per
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    Per Lovdinger wrote:
    Hi all,
    I'm having problem setting up connection pool for a oracle thin driver
    appreciate any help..
    platform : Windows 2000
    WebLogic version :Build: 5.1.0
    Oracle version : 8.1.6
    Classpath :...
    C:\Oracle\Ora81\jdbc\lib\classes12.zip;C:\Oracle\Ora81\jdbc\lib\nls_charset1
    2.zip;
    ============================================================================
    ===========================
    I've tested t3dbping and it works fine. This is the way it looked:
    java utils.t3dbping t3://dcpvs00j:7001 plovdinger plovdinger ""
    oracle.jdbc.driver.OracleDriver jdbc:oracle:thin:@prodbackup:1521:orcl
    ============================================================================
    ===========================
    I setup the properties in weblogic.properties like this:
    # props=user=SCOTT;password=tiger;server=DEMO
    weblogic.jdbc.connectionPool.oraclePool=\
    url=jdbc:oracle:thin:@prodbackup:1521:orcl,\
    driver=oracle.jdbc.driver.OracleDriver,\
    loginDelaySecs=1,\
    initialCapacity=4,\
    maxCapacity=10,\
    capacityIncrement=2,\
    allowShrinking=true,\
    shrinkPeriodMins=15,\
    refreshMinutes=10,\
    testTable=USER_PROFILE,
    props=user=PLOVDINGER;password=PLOVDINGERHi. Put a '\' at the end of the line
    testTable=USER_PROFILE,
    Joe
    ============================================================================
    ===========================
    Then I get this in the log:
    Appreciate any ideas and suggestions.....
    cheers Per
    ============================================================================
    ===========================
    Wed Feb 07 09:13:24 GMT+00:00 2001:<I> <SSLListenThread> Usingexportable
    strength SSL.
    Wed Feb 07 09:13:24 GMT+00:00 2001:<I> <WebLogicServer> Invokingmain-style
    startup weblogic.jdbc.com
    mon.internal.JdbcStartup weblogic.jdbc.common.internal.JdbcStartup
    Wed Feb 07 09:13:25 GMT+00:00 2001:<I> <JDBC Pool> Creating connectionpool
    oraclePool with:
    {poolName=oraclePool, driver=oracle.jdbc.driver.OracleDriver,
    aclName=weblogic.jdbc.connectionPool.or
    aclePool, url=jdbc:oracle:thin:@prodbackup:1521:orcl}
    java.sql.SQLException: invalid arguments in call
    atoracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
    atoracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156)
    at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:803)
    at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:175)
    at
    oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:198)
    at
    oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:251)
    atoracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
    at
    weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Connection
    EnvFactory.jav
    a:149)
    at
    weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Connection
    EnvFactory.jav
    a:109)
    at
    weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.j
    ava, Compiled
    Code)
    at
    weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java,
    Compiled Code)
    at
    weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:330
    atweblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java,
    Compiled Code)
    atweblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
    at
    weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
    at java.lang.reflect.Method.invoke(Native Method)
    atweblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java,
    Compiled Code)
    at
    weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
    Wed Feb 07 09:13:25 GMT+00:00 2001:<I> <JDBC Pool> Sleeping in
    createResource()
    Wed Feb 07 09:13:26 GMT+00:00 2001:<E> <JDBC Pool> Failed to create
    connection pool "oraclePool"
    weblogic.common.ResourceException: weblogic.common.ResourceException:
    Could not create pool connection. The DBMS driver exception was:
    java.sql.SQLException: invalid arguments in call
    atoracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
    atoracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156)
    at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:803)
    at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:175)
    at
    oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:198)
    at
    oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:251)
    atoracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
    at
    java.sql.DriverManager.getConnection(DriverManager.java:457)
    atjava.sql.DriverManager.getConnection(DriverManager.java:137)
    at
    weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Connection
    EnvFactory.jav
    a:172)
    at
    weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Connection
    EnvFactory.jav
    a:109)
    at
    weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.j
    ava, Compiled
    Code)
    at
    weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java,
    Compiled Code)
    at
    weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:330
    atweblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java,
    Compiled Code)
    atweblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
    at
    weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
    at java.lang.reflect.Method.invoke(Native Method)
    atweblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java,
    Compiled Code)
    at
    weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
    at
    weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Connection
    EnvFactory.jav
    a:182)
    at
    weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Connection
    EnvFactory.jav
    a:109)
    at
    weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.j
    ava, Compiled
    Code)
    at
    weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java,
    Compiled Code)
    at
    weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:330
    atweblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java,
    Compiled Code)
    atweblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
    at
    weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
    at java.lang.reflect.Method.invoke(Native Method)
    atweblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java,
    Compiled Code)
    at
    weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
    at
    weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Connection
    EnvFactory.jav
    a:125)
    at
    weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.j
    ava, Compiled
    Code)
    at
    weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java,
    Compiled Code)
    at
    weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:330
    atweblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java,
    Compiled Code)
    atweblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
    at
    weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
    at java.lang.reflect.Method.invoke(Native Method)
    atweblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java,
    Compiled Code)
    at
    weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
    Wed Feb 07 09:13:26 GMT+00:00 2001:<I> <JMS> Beginning startup process
    Wed Feb 07 09:13:26 GMT+00:00 2001:<I> <JMS> Init JMS Security
    Wed Feb 07 09:13:26 GMT+00:00 2001:<I> <JMS> Initializing from
    weblogic.properties
    Wed Feb 07 09:13:26 GMT+00:00 2001:<I> <JMS> Startup process complete.JMS
    is active
    Wed Feb 07 09:13:26 GMT+00:00 2001:<I> <JMS> Bound SessionPoolManager
    as
    weblogic.jms.SessionPoolMana
    ger
    Wed Feb 07 09:13:26 GMT+00:00 2001:<I> <JMS> BoundConnectionConsumerManager
    as weblogic.jms.Connecti
    onConsumerManager
    Wed Feb 07 09:13:26 GMT+00:00 2001:<I> <WebLogicServer> Invokingmain-style
    startup RMI Registry webl
    ogic.rmi.internal.RegistryImpl
    Wed Feb 07 09:13:26 GMT+00:00 2001:<I> <RMI> Registry started
    Wed Feb 07 09:13:27 GMT+00:00 2001:<I> <EJB> 0 EJB jar files loaded,
    containing 0 EJBs
    Wed Feb 07 09:13:27 GMT+00:00 2001:<I> <EJB> 0 deployed, 0 failed todeploy.
    Wed Feb 07 09:13:27 GMT+00:00 2001:<I> <ZAC> ZAC ACLs initialized
    Wed Feb 07 09:13:27 GMT+00:00 2001:<I> <ZAC> ZAC packages stored inlocal
    directory exports
    Wed Feb 07 09:13:27 GMT+00:00 2001:<I> <ListenThread> Listening on
    port:
    7001
    Wed Feb 07 09:13:27 GMT+00:00 2001:<I> <SSLListenThread> Listening onport:
    7002
    <NT Performance Pack> NATIVE: created IoCompletionPort successfully.
    IoPort=0x00000230
    Wed Feb 07 09:13:28 GMT+00:00 2001:<I> <WebLogicServer> WebLogic
    Server
    started--
    PS: Folks: BEA WebLogic is expanding rapidly, with both entry andadvanced
    positions
    for people who want to work with Java, XML, SOAP and E-Commerceinfrastructure products.
    We have jobs at Nashua NH, Liberty Corner NJ, San Francisco and San JoseCA.
    Send resumes to [email protected]
    PS: Folks: BEA WebLogic is expanding rapidly, with both entry and advanced positions
    for people who want to work with Java, XML, SOAP and E-Commerce infrastructure products.
    We have jobs at Nashua NH, Liberty Corner NJ, San Francisco and San Jose CA.
    Send resumes to [email protected]

  • Macbook Pro Hard Drives Failing

    Hi all,
    I've been having massing problems with my Macbook Pro 15" 2.53 Ghz laptop. I got one brand new with apple care in December of 2008. The hard drive was the standard 320 Gb @ 5400 RPM.
    Within approximately two weeks of operation the computer failed (froze and after a hard shutdown wouldn't boot). It turned out the hard drive failed. Two weeks! So I took it back to Apple and they replaced the hard drive (took them one week so I lost a week of productivity).
    One week after receiving the laptop back, the hard drive failed again! This time I believe the OS got corrupted somehow as the symptom was that it would not boot.
    So back to Apple and they straight out replaced it with a new one. One week later, guess what? Failure. So back again and they replaced it.
    I'm now on my 3rd laptop from Apple and this hard drive is failing. Luckily I was able to back everything up. I downloaded a utility called SMART Utility and it tells me 60 some sectors are bad on this disk.
    Is anyone else having issues like this? Its absolutely ridiculous. Currently the computer is working despite the failed sectors and horrible sounds coming from the hard drive but I expect failure soon. I'll be taking this back to Apple and showing them the results of the SMART Utility, but I'm at the end of the rope here.
    I've owned multiple Macbook Pros before and absolutely loved them. But now I am so disillusioned by this... To Apple's credit they have had great customer service, but now I'm at the point where I need to be able to rely on my machine.
    Has anyone heard anything?

    I would second Michael's comment. While hard drives do fail, the rate at which yours are failing would appear to be well beyond the statistical average. I would generally think the next level would be a problem with the MacBook itself causing the failures, but from what I can tell from your comment is that they have replaced your MacBook twice (and you're on your third?). So that would seem to rule out a problem with the MacBook itself. You mentioned that you've had other MacBooks before and it doesn't sound like you've had problems with them... so I wouldn't expect that you're doing anything unusual that would cause the problem.
    You're either had a remarkable run of bad luck, or there's something going on that's out of the ordinary causing these drives to fail. I would imagine that when stores get machines, they're likely shipped from batches that are manufactured at similar times. If they had a batch of faulty drives from the manufacturer, it's possible a single store could have gotten several of them. That would still not really explain why your initially replaced drive failed as it would likely have come from a totally different batch than what would have been used in manufacturing at the time your notebook was put together. I guess it's always possible that they might put in a drive that that wasn't new.

Maybe you are looking for