Sqlnet.ora doesn't seem to be read since oci8 1.3.4

Hello,
I used to use oci8 version 1.2.3 and I wanted to update to last version (1.3.4). Everything works fine except the fact that "sqlnet.ora" does not seems to be read anymore.
I use the following string to describe my database in oci_connect: "MEN1PRD".
In sqlnet.ora there is the parameter NAMES.DEFAULT_DOMAIN which is set to "WORLD".
In the tnsname.ora I have a full definition for "MEN1PRD.WORLD".
With oci8 1.2.3, it worked but since I upgraded to 1.3.4 this is not the case anymore. I have to use the same ID in oci_connect and tnsname.org. The sqlnet.ora NAMES.DEFAULT_DOMAIN does not seem to be used anymore.
The version of php (5.2.3) is still the same, the configure options are the sames, the oracle lib is the same (9.2) and the php.ini parameters are the same too. I just changed the oci8 version.
Has anyone the same problem ? Is this a normal behaviour ? If yes, why
and is there a workaround ?
Thanks for your answers.
++ Jerome
Reproduce code:
Piece of code which used to work (version 1.2.3) and doesn't work
anymore (version 1.3.4):
$conn = oci_connect('EDUCATION', 'manager', 'MEN1PRD');
Piece of code which works (version 1.3.4):
$conn = oci_connect('EDUCATION', 'manager', 'MEN1PRD.WORLD');
Content of sqlnet.ora (which is in the same directory as tnsname.ora):
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
NAMES.DEFAULT_DOMAIN = WORLD
LOG_DIRECTORY_SERVER = /var/tmp
Contenat of tnsname.ora
MEN1PRD_RAC =
( DESCRIPTION =
( ADDRESS = ( PROTOCOL = TCP )( HOST = host1 )( PORT = 1521 ) )
( ADDRESS = ( PROTOCOL = TCP )( HOST = host2 )( PORT = 1521 ) )
( LOAD_BALANCE = yes )
( CONNECT_DATA =
( SERVER = DEDICATED )
( SERVICE_NAME = SN_MEN1PRD )
Init script:
export ORACLE_HOME=/usr/local/oracle/VERSIONS/Linux/CL.9.2.0
PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/network/admin:$ORACLE_HOME/lib:/usr/local/bin
export ORACLE_SID=MEN1PRD
export HOSTNAME=`hostname`
export NLS_LANG=FRENCH_FRANCE.WE8ISO8859P15
export LC_ALL=fr_FR
export LANG=fr_FR
Expected result:
The connexion is made to the database
Actual result:
[Mon Feb 16 18:05:14 2009] [error] [client 127.0.0.1] PHP Warning:
oci_connect() [function.oci-connect]:
ORA-12154: TNS:could not resolve service name in /var/www/docs/test1.php
on line 2

See http://pecl.php.net/bugs/bug.php?id=15988 It's a problem with 9.2 - 10.2.0.3, fixed in 10.2.0.4
Discussions about best solution is ongoing; currently centering around not using session pooling code path in PHP OCI8 when using Oracle prior to 11.

Similar Messages

  • The sound on my Mac Pro doesn't seem to be working since installing OS X Yosemite - help!

    The sound on my Mac Pro doesn't seem to be working since installing OS X Yosemite - help!

    I had a smilier issue... If you're using external speakers (as opposed to the ones on the display), you may need to re-select them in System Preferences. Some preference choices seem to reset with the Yosemite install.

  • Final Cut X doesn't seem to be reading my hard drives....

    I have two drives connected to my macbook pro via firewire 800. I launched final cut today and neither one of my drives appears to be read by final cut. None of my meda or projects are anywhere to be found..its just blank. The computer seems to read the drives just fine and all my media is exactly where I left it on the drives. Whats going on?? How can I fix this??

    In Final Cut Pro X 10.1, it is possible to close libraries that you do not need so they are not taking up memory.
    You can reopen them by using FILE/OPEN LIBRARY.
    You can also reopen them by double clicking on the library in the Finder.

  • Php 5.1.2 doesn't seem to recognize the --with-oci8-instant-client option

    I just tried configuring php 5.1.2 with the --with-oci8-instant-client option and could never get phpinfo() to show the oci8 section...
    Finally went back and tried php 5.1.1 and it worked.
    If anyone else could verify this behavior, maybe the PHP folks should be notified??

    Discovered the issue:
    the configure script changed the format of the config option
    in php 5.1.1:
    --with-oci8[=DIR] Include Oracle (OCI8) support using an ORACLE_HOME
    install. The default DIR is ORACLE_HOME
    --with-oci8-instant-client[=DIR]
    Include Oracle (OCI8) support using
    Oracle Instant Client. DIR is the directory with the
    Instant Client libraries. On Linux it will default to
    /usr/lib/oracle/<most_recent_version>/client/lib
    Other platforms will need to have it explicitly specified
    HOWEVER, in php 5.1.2:
    --with-oci8[=DIR] Include Oracle (OCI8) support.
    The default DIR is ORACLE_HOME.
    Use --with-oci8=instantclient,/path/to/oic/lib
    to use Oracle Instant Client installation
    This explains why the --with-oci8-instant-client option is ignored.  The new format is:
    --with-oci8=instantclient,/path/to/libs                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • What is going on with the scroll function? It doesn't seem to work in any applications, now that I downloaded the new Mountain Lion?

    What is going on with the scroll function. It doesn't seem to work ever since I downloaded Mountain Lion.

    I've noticed this too...when I'm in Safari, scrolling is a bit jerky and sometimes it stops even though I'm still scrolling...my fingers go right off the trackpad.  I just downloaded the new updates onto my brand new macbook air- had to do it manually as "power nap" doesn't work, even after the SMC reset.  Lamesauce.

  • Not able to find sqlnet.ora

    Hello,
    I am unable to find my sqlnet.ora in the network directory. I have to set SQLNET.EXPIRES parameter, but dont have that file in location.
    even i do a echo $TNS_ADMIN i am not getting anything. no path.
    Oracle 10.2.0.3
    Sun Solaris 10.
    Thanks
    aps

    Follow the steps:
    1) cd $ORACLE_HOME/network/admin
    2) do ls to confirm that listener.ora, tnsnames.ora and (maybe) sqlnet.ora exist there
    3) do pwd to ensure that you are in correct place
    4) if sqlnet.ora doesn't exist do vi sqlnet.ora
    5) put there anything you need e.g.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    SQLNET.EXPIRE=10
    Here you have sample configuration files:
    http://www.cs.umbc.edu/help/oracle8/network.815/a67440/appb.htm
    Cheers,
    Jarek

  • After installing reader 9 sucessfully on the imac it won't open and doesn't seem to be there. I do h

    After installing reader 9 sucessfully on the imac it won't open and doesn't seem to be there. I do have 5 installed but it won't work on new files. mac 10.6.8.Help.

    Can you see Reader 9 inside Applications folder? If yes, then launch Reader and then try to open any pdf via File->Open or drag drop on Reader icon in the doc.
    In case you dont find Reader 9 in your Applications folder then you can download and install the latest Reader from the following link: http://get.adobe.com/reader/otherversions/
    thanks,
    hit.anand

  • I bought Photoshop 12/premier package but all I get from premier is the Read Me bit on my computer. The download doesn't seemed to have worked

    I bought PS Elements 12 and Premier as a package but the Premier does not seem to have downloaded...All I have is the "READ ME" pages and no programme

    Noel elliot
    What is your computer operating system, and is it 32 or 64 bit?
    At this time, is Premiere Elements 12 listed in Control Panel/Programs as an installation product?
    Where did you purchase this Photoshop Elements 12/Premiere Elements 12 bundle - from Adobe as an online download or from an authorized reseller offering the box packing with installation discs? From your "The download doesn't seemed to have worked", I am assuming that this was an online download from Adobe.
    On your computer, you should have started with 4 installation files
    Photoshop Elements 12. An .exe file and .7z file specific for Photoshop Elements 12...and file targeted appropriately for 32 or 64 bit computer.
    Premiere Elements 12. An .exe file and .7z file specific for Premiere Elements 12...and file targeted appropriately for 32 or 64 bit computer.
    You double click the .exe first and afterward as indicated .7z.
    Each of these products will have its own serial number.
    Do you now have those components. If not, then you need to start again with the download to get those files on your computer in order to start the product installation.
    Please review and consider. Any questions or need further clarification, please do not hesitate to ask.
    Thank you.
    ATR

  • Macbook Pro doesn't seem to read Dual Layer DVDs

    I was trying to restore my laptop using the original restore/install dvds that came with it. When I slip the installation discs into the optical drive, my Mac doesn't seem to read them; it just ejects them.
    But I tried inserting audio CDs, data DVDs (4GB max in size) and they seem to work and recognized by my mac. My mac doesn't recognize the installation discs only. I have even went the extra mile of purchasing another Snow Leopard installation disc and the disc, which is sealed, new and fresh from the store also got ejected by the machine. I have read somewhere that the installation discs are Dual Layer DVDs. Seems like my optical drive is not reading dual layers discs anymore.
    Any advice how I can mitigate this? Are there any firmware updates that I can upgrade or downgrade to? How will I know which firmware my optical drive is running on?
    Thanks!

    You can reset the SMC and see if that helps. If it's a unibody or Retina, follow the method for "a battery you should not remove yourself."
    http://support.apple.com/kb/ht3964

  • I used to be able to click on a .PDF document and read it directly within Firefox ... since the latest upgrade, that feature doesn't seem to work ... now, I have to download the document and read it locally ... any fixes ???

    Question
    I used to be able to click on a .PDF document and read it directly within Firefox ... since the latest upgrade, that feature doesn't seem to work ... now, I have to download the document and read it locally ... any fixes ???

    Go to Options>Applications>click on, in your case, Adobe Acrobat entries and select "Use Adobe Acrobat(in Firefox)" or as you wish.

  • JDBC, Oracle and sqlnet.ora

    Our DBA's have recently decided to play musical ports with our database servers. They keep changing the ports to our Oracle database servers without telling us first. They're justification in not telling us is that we should be using the name server specified in the sqlnet.ora config.
    Is it possible to use a name server with JDBC to determine the DSN info? I can't seem to find much info on it.

    That is a lousy predicament. I think you may be able
    to work around it if you use the oci8 driver. See for
    details:
    http://download-west.oracle.com/otndoc/oracle9i/901_doc
    java.901/a90211/connpoca.htm#1071294Yep, looks like oracle.jdbc.pool.OracleDataSource has support for it. Here's the OCI driver's javadoc:
    public void setTNSEntryName(java.lang.String dbname)
    Set the TNS entry name. Works only for JDBC OCI driver. Assumed that client side Oracle in installed and TNS_ADMIN env variable is set. If URL is set, this property will be ignored.
    I swore I must have read this javadoc like 10 times before. Maybe I read the thin client one by mistake. shrug

  • Sqlnet.ora query

    I'm currently working with a customer that requires some changes to be made to their sqlnet.ora file. We have both reviewed "When do SQLNET.ORA changes take effect ? (Doc ID 562589.1)" on MOS but are finding the knowledge document a little unclear.
    If I explain the situation we are in first: they have a 3-node RAC environment and recently made changes to their sqlnet.ora file in order to fix some service died error messages, then restarted the listeners for the changes to take effect. However, they were still seeing service died following the restart of the listener in the alert log. They decided to bounce the instance and this cleared the messages. The DB is in dedicated mode.
    Is it the case that until the instance is bounced then the changes will not take place for the currently connected processes? Therefore the error messages will continue. Or should they only need to restart/reload the listener for the changes to take place.
    My interpretation of the MOS note is that because they are in dedicated mode that they should only need to restart the listener.
    Many thanks in advance,
    Kerri

    968642 wrote:
    Thank you for your response.
    Changes were made to the sqlnet.ora file. So does this mean that the instance would need to be bounced in order for all connections to see the new settings?
    They had a situation where they updated the sqlnet.ora file back in July, these changes were not picked up until two weekends ago as they had not bounced the instance or the listeners between now and then. This is contrary to what the document says, hence why I am asking. As if the document was correct, then we would expect from July - October, that the changes would have come into effect.
    The following change was added in July:
    sqlnet.outbound_connect_timeout=1There are two entities that use sqlnet.ora - clients and listeners. Some of the parameters in sqlnet.ora apply only to clients. Some apply only to listeners. Some apply to both.
    Clients read it when they initiate a connection request.
    Listeners read it when they start or reload. If you didn't start or reload your listener then it didn't see the changes. And you indicated that the instances and listeners were not bounced until two weeks ago. The instance really doesn't matter, but the listener certainly does. (Well, the instance may matter, but only from the standpoint that when an instance is using a db_link, it is acting as a client. See above comment on clients)
    Edited by: EdStevens on Oct 31, 2012 7:13 AM

  • Mini dvi to s-video/composite adapter doesn't seem to work?

    basically i'm trying to hook my rather new 2.53 ghz mac mini to my tv, which basically has rca inputs. so, having seen several laptops hooked to this tv as simply as using an s-video to composite adapter, i figured it would be as simple as getting the mini dvi to composite adapter and i'd be good. well, for some reason this doesn't seem to do anything. the other weird thing is that when i hook the cable from the composite adapter to the tv, i get a buzz out of the speakers as the connection is being made. why is a video signal having anything to do with the audio? plugging my playstation 2 into the same input works fine. why the difference?

    Boece wrote:
    !http://images2.monoprice.com/productmediumimages/47241.jpg!
    +
    !http://images2.monoprice.com/productmediumimages/48501.jpg!
    That's the setup I've used. Works great for video and photos, but webpage text can be difficult to read.
    I used the yellow composite input rather than the s-video. My old tv is inside an “entertainment center” type tv stand and is so friggin heavy, it’s a pain in the axx to move, so I just used the composite plug on the front of my tv. Since the Mac mini is sitting in front of the tv it works great:-)
    http://discussions.apple.com/thread.jspa?threadID=2430645&tstart=0
    Message was edited by: James Press1

  • Need lightroom 4.4 asmac is 10.6.8 and not compatible with anything higher. Does this come with the creative cloud? Would really like a disc but that doesn't seem to happen anymore. Currently have cs4 and d7100 hence need 4.4 to open raw Any idea

    need lightroom 4.4 asmac is 10.6.8 and not compatible with anything higher. Does this come with the creative cloud? Would really like a disc but that doesn't seem to happen anymore. Currently have cs4 and d7100 hence need 4.4 to open raw Any ideas? Is this now customer service or does adobe have a customer service team . Site not user friendly. Thanks

    Graham Giles wrote:
    Have you seen this type of problem before? I think it could be a serious issue for anyone in a similar position.
    No; but then, I've not had occasion to use TDM. I've been using firerwire drives for over 10 years, both FW400 and FW800, with no issues except a bit of instability using a B&W G3 machine.
    TDM should be safe. Using cautious, manual copying of files from the Target machine to the Host machine should not result in unexpected loss of files or damage to the Target drive's directories. It should behave exactly the same as if it were an external (to the Host) firewire drive.
    •  I don't suppose there is anything I can do to 'put back' lost items from a separate Time Machine drive which has an up to date backup on it.
    There is probably a way to do that - seems to me that's one of the reasons for a Time Machine volume.
    On the other hand, if the Time Machine volume is rigidly linked to the now-absent OS on the original drive, there may be no way to effectively access the files in the TM archive.
    I know that using a cloned drive would work well in this instance.
    I have no experience with Time Machine, so perhaps someone who has will chime in with suggestions.
    With the machine in TDM with the other machine, have you tried running Disk Utility to see if you can effect repairs to the drive?

  • Wacom Tablet doesn't seem to work all of the time?

    I have a Wacom Intuos 3 tablet, not more than a year old. I recently installed it onto my Macbook Pro and it worked fine, but when I unplugged it and came back to work with it later, it doesn't seem to work. The mouse doesn't respond to where I click on the pad.
    So, I've reinstalled this a couple of times and was able to make it work perfectly, but today when I went back to work in photoshop, it doesn't seem to be responding again.
    Does anyone have any tips? I know that Leopard likes you to eject USB devices instead of just pulling them out of the slot, but I don't see anywhere to eject it.
    Does anyone know what's up?

    Downloaded a driver from website, tablet works now.

Maybe you are looking for

  • How big a internal hard drive can I install in a G5 Powermac

    Model Name:          Power Mac G5   Model Identifier:          PowerMac11,2   Processor Name:          PowerPC G5 (1.0)   Processor Speed:          2 GHz   Number Of CPUs:          2   L2 Cache (per CPU):          1 MB   Memory:          4.5 GB   Bus

  • Dead bettery

    my battery icon has an 'x' in it and appears to have no life. i have the laptop attached to a monitor and an external hard drive. can someone advise me on what to do? thank you jessica

  • How to Add New Object?

    HI, Any body can say how to add new object. For Example: The Document need to link with Invoice Transaction (T.Code: VF01, Table: VBRK/VBRP). Points will be rewarded, if information is useful. Tks Mani.

  • ColdFusion 11 new installation; service won't start on 2008 R2

    I've just installed ColdFusion 11 on a clean Windows Server 2008 R2 machine and the ColdFusion application service looks like it starts, but then a minute later, shows that it is not running (in the services panel). When I try to restart it, it simpl

  • Finding the code for 'Advanced|Print Production|Output Preview'

    This windows exposes the color separation used in the PDF file. I am looking to create a simple application which compares an order color with its PDF's attachment. This is used by a printer to make sure that the PDF color and the order color match.