Perl DBI module question

when I use perl DBI module to connect oacle, there is an error of
"DBI->connect failed: ORA-12224: TNS:no listener (DBD ERROR:
OCIServerAttach)", how can I do?
null

Ok - I am getting closer to resolving this issue. I downloaded MySQL server libraries from Apple, file and instructions are here: http://support.apple.com/kb/HT4006
After that, I was able to install Perl DBD::MySQL ver 4.013
Now machine sees it but a different error is thrown:
"install_driver(mysql) failed: DBD::MySQL object version 4.013 does not match bootstrap parameter 4.005 at /System/Library/Perl/5.10.0/darwin-thread-multi-2level/DynaLoader.pm line 230.
Compilation failed in require at (eval 3) line 3."
Now, there is a 4.005 version of DBD::MySQL but it is 3 years old. I am not sure if it is just a coincidence with a "4.005" index being similar to module version number, or this is indeed what system is requiring.
Any suggestions? Thanks in advance

Similar Messages

  • How to install Perl DBI & DBD modules correctly?

    PLEASE HELP!
    I'm running OS X Snow Leopard 10.6.3 on a MacBook Pro.
    Using MacPorts I've installed the following items:
    mysql5 @5.1.45_0 (active)
    mysql5-server @5.1.45_0 (active)
    p5-dbd-mysql @4.013_0+mysql5 (active)
    p5-dbi @1.609_0 (active)
    perl5.10 @5.10.1_1+darwin (active)
    Everything seems to be working, with the exception ofthe Perl DBI module, and the DBD module. Whenever I try to run a Perl program using DBI, I get the following error:
    Sun Apr 18 03:18:42 EDT 2010
    ~/Perl1 ->
    [email protected]<520>$: db.pl
    install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /Library/Perl/Updates/5.10.0 /System/Library/Perl/5.10.0/darwin-thread-multi-2level /System/Library/Perl/5.10.0 /Library/Perl/5.10.0/darwin-thread-multi-2level /Library/Perl/5.10.0 /Network/Library/Perl/5.10.0/darwin-thread-multi-2level /Network/Library/Perl/5.10.0 /Network/Library/Perl /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level /System/Library/Perl/Extras/5.10.0 .) at (eval 3) line 3.
    Perhaps the DBD::mysql perl module hasn't been fully installed,
    or perhaps the capitalisation of 'mysql' isn't right.
    Available drivers: DBM, ExampleP, File, Gofer, Proxy, SQLite, Sponge.
    at /Users/peterv/Perl1/db.pl line 8
    Sun Apr 18 03:18:42 EDT 2010
    If anyone can also explain what @INC is (I'm assuming it's some kind of path), how to display its value, and how to set it correctly, I'd appreciate that too! I've been working on this for days, so I'd really be grateful for some help!
    Thanks,
    Peter V.

    I've found the problem. I didn't realize that OS X Snow Leopard came with 2 versions of Perl installed, so when I wanted to upgrade to 5.10, I installed it using MacPorts. I also hadn't realized that MacPorts paths had /opt/local prepended to them, so I was running the wrong version of Perl with it. Now I don't get the original error message I posted, but I do get these error messages:
    dyld: lazy symbol binding failed: Symbol not found: mysqlinit
    Referenced from: /opt/local/lib/perl5/site_perl/5.10.1/darwin-multi-2level/auto/DBD/mysql/mysql. bundle
    Expected in: dynamic lookup
    dyld: Symbol not found: mysqlinit
    Referenced from: /opt/local/lib/perl5/site_perl/5.10.1/darwin-multi-2level/auto/DBD/mysql/mysql. bundle
    Expected in: dynamic lookup
    Trace/BPT trap
    Can someone help me out with these?
    Thanks in advance!

  • MaxDB perl DBI and sql error -4008

    I'm using PERL DBI module to connect to my liveCache instances, as a read-only user, to obtain status of various things.
    I've installed the latest MaxDB DBI modules and latest MaxDB 7.7 Linux runtimes.
    I can successfully connect to a livecache 7.4 instance, but for some reason when I connect to a 7.6 instance I get a DBI error:
    sql error -4008
    failed: POS(1) Unknown user name/password combination
    My code is:
    $dbMAXDB = DBI->connect("dbi:MaxDB:$o_nodename/$o_SID",$maxdb_usr,$maxdb_pwd, \%dbi_attr) or die;
    The above code works with 7.5 etc, but not for my 1 single 7.6 instance!
    The username/pwd is correct, as using dbmcli with the same username/pwd works.
    Has anyone experienced this, or can someone offer a solution?

    Maybe you use the administrator user instead of the SQL user? MaxDB distinguishes between “Administrators” - as we called them - and “SQL users”. The group of “Administrators” (Database Manager operators, DBM operators) is used for the administration of the database only (start, stop, backup etc.) and cannot be used to open a SQL session. So please make sure that the user is a SQL user.
    Also you might check if you will be able to connect to the database with the command line tool sqlcli using this user.
    Regards,
    Marco

  • Using perl DBI on Solaris 10 gives core dump

    I am using perl 5.8.4 which comes along with Solaris 10.
    I have installed DBI-1.58.
    Even a test command is not working.
    perl -MDBI -e 'print "$DBI::VERSION\n";'
    Bus Error (core dumped)
    truss perl -MDBI -e 'print "$DBI::VERSION\n";'
    shows
    stat("/usr/local/lib/libc.so.1", 0xFFBFE5D0) Err#2 ENOENT
    mprotect(0xFEED0000, 104171, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
    mprotect(0xFEED0000, 104171, PROT_READ|PROT_EXEC) = 0
    munmap(0xFF370000, 8192) = 0
    brk(0x000A2470) = 0
    brk(0x000A4470) = 0
    brk(0x000A4470) = 0
    brk(0x000A6470) = 0
    brk(0x000A6470) = 0
    brk(0x000A8470) = 0
    brk(0x000A8470) = 0
    brk(0x000AA470) = 0
    brk(0x000AA470) = 0
    brk(0x000AC470) = 0
    Incurred fault #5, FLTACCESS %pc = 0xFEED44CC
    siginfo: SIGBUS BUS_ADRALN addr=0x00000001
    Received signal #10, SIGBUS [default]
    siginfo: SIGBUS BUS_ADRALN addr=0x00000001
    $perl -v
    command shows like its compiled with Intsize of 64 is this creating problem?
    Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
    Platform:
    osname=solaris, osvers=2.10, archname=sun4-solaris-64int
    uname='sunos localhost 5.10 sun4u sparc SUNW,Ultra-2'
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
    Compiler:
    cc='cc', ccflags ='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO',
    optimize='-xO3 -xspace -xildoff',
    cppflags=''
    ccversion='Sun WorkShop', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
    Linker and Libraries:
    ld='cc', ldflags =''
    libpth=/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc
    perllibs=-lsocket -lnsl -ldl -lm -lc
    libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version=''
    Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R /usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE'
    cccdlflags='-KPIC', lddlflags='-G'
    Characteristics of this binary (from libperl):
    Compile-time options: USE_64_BIT_INT USE_LARGE_FILES
    Locally applied patches:
    22667 The optree builder was looping when constructing the ops ...
    22715 Upgrade to FileCache 1.04
    22733 Missing copyright in the README.
    22746 fix a coredump caused by rv2gv not fully converting a PV ...
    22755 Fix 29149 - another UTF8 cache bug hit by substr.
    22774 [perl #28938] split could leave an array without ...
    22775 [perl #29127] scalar delete of empty slice returned garbage
    22776 [perl #28986] perl -e "open m" crashes Perl
    22777 add test for change #22776 ("open m" crashes Perl)
    22778 add test for change #22746 ([perl #29102] Crash on assign ...
    22781 [perl #29340] Bizarre copy of ARRAY make sure a pad op's ...
    22796 [perl #29346] Double warning for int(undef) and abs(undef) ...
    22818 BOM-marked and (BOMless) UTF-16 scripts not working
    22823 [perl #29581] glob() misses a lot of matches
    22827 Smoke [5.9.2] 22818 FAIL(F) MSWin32 WinXP/.Net SP1 (x86/1 cpu)
    22830 [perl #29637] Thread creation time is hypersensitive
    22831 improve hashing algorithm for ptr tables in perl_clone: ...
    22839 [perl #29790] Optimization busted: '@a = "b", sort @a' ...
    22850 [PATCH] 'perl -v' fails if local_patches contains code snippets
    22852 TEST needs to ignore SCM files
    22886 Pod::Find should ignore SCM files and dirs
    22888 Remove redundant %SIG assignments from FileCache
    23006 [perl #30509] use encoding and "eq" cause memory leak
    23074 Segfault using HTML::Entities
    23106 Numeric comparison operators mustn't compare addresses of ...
    23320 [perl #30066] Memory leak in nested shared data structures ...
    23321 [perl #31459] Bug in read()
    Built under solaris
    Compiled at Jul 26 2005 05:26:55
    @INC:
    /usr/perl5/5.8.4/lib/sun4-solaris-64int
    /usr/perl5/5.8.4/lib
    /usr/perl5/site_perl/5.8.4/sun4-solaris-64int
    /usr/perl5/site_perl/5.8.4
    /usr/perl5/site_perl
    /usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int
    /usr/perl5/vendor_perl/5.8.4
    /usr/perl5/vendor_perl
    Other details:
    file /usr/bin/perl
    /usr/bin/perl: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, stripped
    I tried installing DBI module using perlgcc also.
    perlgcc Makefile.PL
    make
    make test
    make install.
    $uname -a
    SunOS twirl 5.10 Generic_118822-25 sun4u sparc SUNW,Ultra-80
    Please help me out.

    Try this guy's list, he maintain an archive of Solaris package.
    http://www.ibiblio.org/pub/packages/solaris/sparc/html/creating.solaris.packages.html
    Of course, if you can get directly from Sun will be better.

  • Can't install Perl DBI or DBD::mysql after Mountain Lion upgrade

    I recently upgraded to Mountain Lion and found that my Perl DBI scripts stopped working, with the error message "Can't locate DBD/mysql.pm in @INC".
    The last time this happened, after upgrading to Lion, the solution was to install the new version of Xcode. Then I was able to use the Perl CPAN module to install DBI and DBD::mysql. (MySQL is already installed and running with no problem on the Mountain Lion machine.)
    Now I have installed Xcode 4.5.1, and tried
    mrb% sudo perl -MCPAN -e shell
    [then CPAN configures itself]
    cpan[1]> install DBI
    and it fails with this final message:
    /System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/perl.h:583:11: fatal error:
          'sys/types.h' file not found
    #       include <sys/types.h>
                    ^
    1 error generated.
    make: *** [Perl.o] Error 1
      TIMB/DBI-1.622.tar.gz
      /Developer/usr/bin/make -- NOT OK
    'YAML' not installed, will not store persistent state
    Running make test
      Can't test without successful make
    Running make install
      Make had returned bad status, install seems impossible
    Failed during this command:
    TIMB/DBI-1.622.tar.gz                        : make NO
    Can anybody help?

    Here is a link to a resolution in Lion. It may also solve your Mountain Lion Perl DBD issue as well.
    If you run the command below before executing your Perl script the library is found and all is well!
    export DYLD_LIBRARY_PATH="/usr/local/mysql/lib:$DYLD_LIBRARY_PATH"
    Put this in your .bashrc or .bash_profile.
    On Apple StackExchange, Matthew Weiss had another approach.
    I found on another website the following command
    $ sudo perl -MCPAN -e 'CPAN::Shell->notest(install => CPAN::Shell->r)'
    This updated all my perl modules and all is back to normal. Not sure why or what, but don't care that it is working now.

  • SAMP perl dbi mysql

    I have Solaris 10 0606 running with Apache2 mysql and php - all standard. I can access data on mysql thru a simple php script via Apache2. I would like to run a Perl cgi script to access the mysql database, but am having problems. It appears DBI.pm is not available. Does Solaris 10's 0606 full install support the ability to access mysql data via Perl DBI or other mechanism? If so, does anyone have a simple example of how this was done? If it is not supported, and additional Perl modules or other configurations are needed, does any one have a listing of steps to get this working? Thanks!

    This is a bug report I filed with Blastwave.org after attempt to use their DBI::Mysql package.
    perl: fatal: relocation error
    Description      I cant get Solaris 5.10 0606 packaged version of perl and Mysql to connect using Blastwave added module pm_dbi and pm_dbdmysql. Fails with -- ld.so.1: perl: fatal: relocation error: file /opt/csw/lib/perl/csw/auto/DBI/DBI.so: symbol Perl_Gthr_key_ptr: referenced symbol not found
    Additional Information      SunOS sol10 5.10 Generic_118855-15 i86pc i386 i86pc
    This is perl, v5.8.4 built for i86pc-solaris-64int
    (with 28 registered patches, see perl -V for more detail)
    mysql Ver 12.22 Distrib 4.0.24, for pc-solaris2.10 (i386)
    smupdate 07-25-2006
    $dsn = "DBI:mysql:database=$database;host=$hostname;port=$port";
    Supporting information:
    http://woss.name/2006/05/21/installing-dbimysql-on-solaris-10/
    http://forum.sun.com/jive/thread.jspa?threadID=96067&messageID=331249
    And the bug report response:
    http://www.blastwave.org/mantis/view_bug_page.php?f_id=0001674
    This is not a bug in CSWpmdbi. All blastwave perl modules are built to use CSWperl. CSWpmdbi is also built to work with CSWmysql4.
    I recommend that you use the blastwave packages and not the Sun supplied packages. Many sites use the blastwave packages and they can use any other blastwave package that needs perl and mysql. The same is true for perl and postgresql.
    Or, if you believe that you must use the Sun supplied perl and mysql, you should be able to build and install DBI. You will need to download Studio 11. Studio 11 is available at no cost to you.

  • Oracle 8i equivalent of $sth- {mysql_insertid} w/Perl DBI?

    What is the easiest way to obtain the value of an auto-incrementing column following an insert using Perl DBI with Oracle 8i? I've done it for years under MySQL using my($lastInsertID)=$sth->{mysql_insertid}, but that's obviously MySQL-specific (if only because of the name).

    : 2 - can't use PERL in o/s because O/S is Linux
    and clients cgi's
    : use DBI:DBD:Oracle. There doesn't seem to be a
    DBD for DBI for
    : Oracle 8i for Linux. I have succeeded in
    making our scripts talk
    : to an Oracle 8.0.5 database, but get many
    errors when connecting
    : to 8.1.5 Does anybody out there have DBD for
    DBI for 8.1.5 for
    : linux RH 5.2 ????
    DBD::Oracle should work just fine with 8.1.5.
    What's so special about 8.1 vs 8.0? I beleive
    OCI was not changed. Anyway, it works here. What
    version did you try? Latest is 1.03, AFAIK. If
    you have errors you probably should report them
    back to the author: Tim Bunce
    <[email protected]>
    Cheers,
    Ivan
    null

  • Perl DBI and DBD::Oracle

    Has anyone had any exerience with using Perl, DBI and DBD::Oracle to access Oracle databases on NT? I'll be starting a project that requires this kind of configuration and I was wondering if anyone has pointers.
    TIA!

    try cpan.org

  • Order the FAQ module questions

    I am trying to order the FAQ module questions in Business Catalyst.
    It puts them in alphabetical order by default so I numbered them. But once it gets to 10 it obviously goes out of order.
    And the client does not want to put a letter in front. ie A, B, C
    Any ideas on how to acheive this?
    Thanks in advance.

    Try leaving numerical gaps in your weighting scheme so you have future flexibility.
    For example, I like to use the weightings of 1000, 900, 800, 700 and so on.
    Then I have a LOT of wiggle room to add new information and sort my information the way I like.
    Tricia

  • MySQL Perl DBI

    Dear Wise & Powerful Masters of OS X,
    I had written a large number of perl scripts that passed information back & forth to MySQL. Then my disk drive wore out & broke down`;'^(
    What is the best way to restore the DBI(Data Base Interface)between MySQL & perl? So far I get:
    $perl new.pl
    install_driver(mysql) failed: Can't find 'bootDBD_mysql' symbol in /opt/local/lib/perl5/site_perl/5.8.8/darwin-2level/auto/DBD/mysql/mysql.bundle
    at (eval 4) line 3
    Compilation failed in require at (eval 4) line 3.
    at new.pl line 143
    $
    Thank you for your kind wisdom.
    Your humble unix geek,
    Kurt

    Ok - I am getting closer to resolving this issue. I downloaded MySQL server libraries from Apple, file and instructions are here: http://support.apple.com/kb/HT4006
    After that, I was able to install Perl DBD::MySQL ver 4.013
    Now machine sees it but a different error is thrown:
    "install_driver(mysql) failed: DBD::MySQL object version 4.013 does not match bootstrap parameter 4.005 at /System/Library/Perl/5.10.0/darwin-thread-multi-2level/DynaLoader.pm line 230.
    Compilation failed in require at (eval 3) line 3."
    Now, there is a 4.005 version of DBD::MySQL but it is 3 years old. I am not sure if it is just a coincidence with a "4.005" index being similar to module version number, or this is indeed what system is requiring.
    Any suggestions? Thanks in advance

  • Training and Event module questions.

    Hi .
    I have some questions regarding Training and Event Management module.
    1. IS there a way to configure a custom attendee type for this module ?
    2. If no is there a way to rename a existing attendee type. I have a requirement to create a group of attendees type of External Person. I know i can use Company attendee type for grouping external person. But i need to change this Company to Group for displaying purposes. I know i can change the Company via T7778O table but won't it lead to bad consequences ?
    3. Is there a way to hide tabstrips on PVOO screen ? i have a requirement to keep only Company tabstrip others are not relevant for my scenario.
    That's all for now.
    Thanks in advance.
    Edited by: kernel.panic on Dec 22, 2010 8:47 AM

    Hi,
    thanks this one is ok, the one which I can not find is the info message for when the maximum capacity of the attendee list is reached:
    'Optimum capacity reached, only essential or wait list bookings possible' This one I want to change into a warning message.
    br,
    Ovidiu
    And I have a new question as well
    In the Attendee List layout is it possible to add columns which are not in the column set from customizing e.g. Personnel subarea,
    Employee subgroup, Employee group etc?
    Thanks
    br,
    Ovidiu
    Edited by: Ovidiu Moldovan on Apr 20, 2010 3:51 PM

  • Module Question.

    Hi all,
    My scenario is File->XI->R3
    Can I validate file information in a Sender Adapter Custom Module and if the validation fails then cancel the input so Integration Engine never gets the corresponding message? My question is how to cancel the procesing of the message in the adapter module?
    Thanks in advance,
    Diego.

    Chandu,
    my problem is that I want to validate data of an input file, so if the file doesn't contain certain fields, then it doesn't go to the XI Engine. (It's discarded before that.)
    So i thought to build a module for the sender adapter that do this validation, but I don't know how to discard the message at modules chain.
    I hope you could understand my english.
    Regards,
    Diego.

  • 5B32 module question

    This is more of an equipment question, but I figure that thisis as good a
    place as any to ask.
    I've got about six 5B32 modules, and I need three. The problem is that
    four of the resistors that go with them are bad. I had as bad board,
    which I think might have screwed up the resistors. The resistors that
    Ihave that are good are reading about 20 Ohms of resistance, and the bad
    ones are 6 Ohms, 80 Ohms, 1.5 megaOhms, and 2.2 megaOhms.
    I have tried to buy some resistors from National Instruments and Analog
    Devices, but they don't know what they are (the part number doesn't come
    up at all). I hate to keep buying entire 5B32 modules when I only need
    the resistor. So, can I just go buy a 20 Ohm resistor at Radio Shack, and
    plug it i
    n, or is this thing that comes with it something special?
    Thanks in advance,
    Harry
    "Little Joe for the Big Heisman, '99"

    Absolutely - go down to Radio Shack and purchase some - The max current
    sould be 20 ma (since the 5B32 is a 4 - 20 ma current input module) so P =
    I^2 R , P = (.02)^2 * 20 = .008 Watts therefore a 1/4 or 1/2 watt resistor
    should be more than adequate.
    A 1/2 watt resistor has leads that would probably plug into the 5B01
    backplane nicely.
    Good Luck
    Harry King wrote in message <7q65an$[email protected]>...
    >This is more of an equipment question, but I figure that thisis as good a
    >place as any to ask.
    >
    >I've got about six 5B32 modules, and I need three. The problem is that
    So, can I just go buy a 20 Ohm resistor at Radio Shack, and
    >plug it in, or is this thing that comes with it something special?
    >
    >Thanks in advance,
    >Harry
    >
    >--
    >"Little Joe for the Big Heis
    man, '99"

  • Quick Module Question

    I have a link bar component that is linked to a ViewStack
    component, which has four stacks. I want to use modules in the last
    three stacks and my question is: Will the modules load when the
    user clicks on that particular stack, or will all of them be loaded
    even if the currentView property is set to 0?

    I think that that has to do with the "creation policy" and
    can be set either way.

  • STREAM module question

    Hi all,
    I am newbe in STREAM module development and this question might be a concept error. If so, please could you give me some clues?
    I would like to use the "libc" funcion "getpwuid()" in a kernel STREAM module.
    I have Solaris 7 64-bit kernel.
    �Can I do it? I have read that for 64-bit kernels, only dynamic libraries are available. Therefore in order ot use libc functions I would have to link dynamically the module relocatable object with the libc library in sparcv9. I have tried to link the kernel STREAM module with libc.so.1 (in /usr/lib/sparcv9) with no success so far. Everytime I trie to load the module it complains with the message: unknown symbol "getpwuid".
    If it is not possible, why? . Is it not possible to use libc functions such us: memcpy() etc..from the kernel context?
    Looking forward to hearing from you.
    Best Regards

    You cannot use user space libraries from within a kernel module. What exactly are you trying to
    do? What do you need password information for
    down in the kernel?
    Maybe ddi_get_cred() will help?
    Some functions like memcopy have kernel space equivalents (bcopy)....
    dan

Maybe you are looking for