DBD::Oracle and instant client - can't find tnsnames.ora
Hi all! :-)
Guys, please, help!
My OS: CentOS 6.6, i386
Installed:
Oracle - instantclient12.1 - basic - 12.1.0.2.0 - 1.i386
Oracle - instantclient12.1 - devel - 12.1.0.2.0 - 1.i386
Oracle - instantclient12.1 - sqlplus - 12.1.0.2.0 - 1.i386
Perl-DBI-1, 609 - 4.el6.i686
and last perl-DBD-Oracle-1, 74-CPAN.
Apache 2.2.15, mod_perl 2.0.4
SELinux disabled.
ORACLE_HOME = usr/lib/oracle/12.1/client, LD_LIBRARY_PATH = /usr/lib/oracle/12.1/client/lib
tnsnames.ora exist in /usr/lib/oracle/12.1/client/network/admin
I wrote a simple perl script to test the connection:
use strict; use DBI; my $dbh = DBI ->connect("dbi:Oracle:crm", 'login', 'password',{RaiseError => 1} ); $dbh->disconnect();
When I try to run script command line - everything isn't ok, no errors (Yes, I can run queries, etc... )
But!
With apache, I get an error:
DBI connect('crm','login',...) failed: ORA-12154: TNS: could not resolve the connect identifier specified (DBD ERROR: OCIServerAttach) in /opt/otrs/bin/cgi-bin/oratest.pl on line 9
I am trying to add ORACLE_HOME with PerlSetEnv and script see (I checked through % ENV), but no luck.
Probably easier to use EZconnect instead of tnsnames.ora:
$machine = 'my.oracle.database.com'; $port = 1521; $sid = 'my_sid'; $dbh = DBI->connect("dbi:Oracle://$machine:$port/$sid", $user, $pass) || die "Failed to connect: $DBI::errstr\n";
Tags: Database
Similar Questions
-
I've recently updated to the new ITunes and now I can't find my devices to change the content. What I do have I missed something?
Not clear about your problem...
If you mean that iTunes does not recognize your device, follow these troubleshooting steps:
If iTunes does not recognize your iPhone, iPad or iPod - Apple Support
If you mean that you don't know how to go your peripheral vision, see the screenshot below.
-
I downloaded 'Slims add on Manager' and now I can't find it anywhere.
{Ctrl + Shift + A}
-
I downloaded PC MightyMax and now I can't find Anywere to remove it. What can I do?
I downloaded PC MightyMax and now I can't find Anywere to remove it. What can I do?
HelloPC powerful Max is a fake, a scam to force you to pay for it, while he has no advantage at all.
You can follow the removal Instructions "MANUAL" here, however, DO NOT use their scanners
as those below will complete the task and not cause you trouble.How to remove PC MightyMax 2009 manually
http://www.411-spyware.com/remove-PC-MightyMax-2009How to remove PC MightyMax 2009
http://www.spywarevoid.com/remove-PC-MightyMax-2009-PC-MightyMax-2009-removal-instructions.htmlUse them to complete the cleanup or delete if you do not want to manually.
See if you can access the internet using the safe mode with networking (repeatedly press F8 as you start).
If you are unable to access the internet, then you will need download the programs on another computer
and transfer to it on removable media such as CD, DVD or USB drives.It can be made repeatedly in Mode safe - F8 tap that you start, however, you must also run
the regular windows when you can.TDSSKiller.exe. - Download the desktop - so go ahead and right-click on it - RUN AS ADMIN
It will display all the infections in the report after you run - if it will not run changed the name of
TDSSKiller.exe to tdsskiller.com. If she finds something or not does not mean that you should not
check with the other methods below.
http://support.Kaspersky.com/viruses/solutions?QID=208280684Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone.
(If Rootkits run UnHackMe)Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
Malwarebytes - free
http://www.Malwarebytes.org/products/malwarebytes_freeSuperAntiSpyware Portable Scanner - free
http://www.SUPERAntiSpyware.com/portablescanner.HTML?tag=SAS_HOMEPAGERun the malware removal tool from Microsoft
Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.
You should get this tool and its updates via Windows updates - if necessary, you can
Download it here.Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
(Then run MRT as shown above.)Microsoft Malicious - 32-bit removal tool
http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=enMicrosoft Malicious removal tool - 64 bit
http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=enalso install Prevx to be sure that it is all gone.
Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
Prevx - Home - free - small, fast, exceptional CLOUD protection, working with others
security programs. It is a single scanner, VERY EFFICIENT, if it finds something to come back
here or use Google to see how to remove.
http://www.prevx.com/ <-->-->
http://info.prevx.com/downloadcsi.asp?prevx=Y <-->-->Choice of PCmag editor - Prevx-
http://www.PCMag.com/Article2/0, 2817,2346862,00.aspTry the demo version of Hitman Pro:
Hitman Pro is a second scanner reviews, designed to save your computer from malicious software
(viruses, Trojans, rootkits, etc.). who infected your computer despite safe
what you have done (such as antivirus, firewall, etc.).
http://www.SurfRight.nl/en/hitmanpro--------------------------------------------------------
If necessary here are some free online scanners to help the
http://www.eset.com/onlinescan/
-----------------------------------
Original version is now replaced by the Microsoft Safety Scanner
http://OneCare.live.com/site/en-us/default.htmMicrosoft safety scanner
http://www.Microsoft.com/security/scanner/en-us/default.aspx----------------------------------
http://www.Kaspersky.com/virusscanner
Other tests free online
http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1--------------------------------------------------------
After the removal of malicious programs:
Also follow these steps for the General corruption of cleaning and repair/replace damaged/missing
system files.Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN
Enter this at the command prompt - sfc/scannow
How to fix the system files of Windows 7 with the System File Checker
http://www.SevenForums.com/tutorials/1538-SFC-SCANNOW-Command-System-File-Checker.htmlHow to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
generates in Windows Vista cbs.log
http://support.Microsoft.com/kb/928228Also run CheckDisk, so we cannot exclude as much as possible of the corruption.
How to run check disk in Windows 7
http://www.SevenForums.com/tutorials/433-disk-check.html-----------------------------------------------------------------------
If we find Rootkits use this thread and other suggestions. (Run UnHackMe)
======================================
If necessary AFTER you are sure that the machine is clean of any malware. (DO NOT USE IF)
MALWARE IS STILL PRESENT).How to do a repair installation to repair Windows 7
http://www.SevenForums.com/tutorials/3413-repair-install.htmlI hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="">-><- mark="" twain="" said="" it="">->
-
I added two different playlists music videos of You Tube and now I can't find them
I added two different playlists music videos of You Tube and now I can't find them anywhere. Where are these files? On you tube to bottom videos add a tab saying. When I clicked on this tab, it says Favorites or playlists. This is where I put two different playlists. Can someone help me know where are these playlists. I did the obvious and looked into: eMusic and windows media player.
Hello Mike,.
I would recommend looking at the help page of Youtube for assistance with this issue: -
Wireless connections
I upgraded my dell vostro laptop 1000 Windows xp to vista and now I can not find wifi or when I try to connect to the internet I get an error, "a cable is not plugged into the card network", "connection to the Local network. Everything worked fine until I upgraded. I noticed in my device manager, the driver for the system controller and core network are not installed. Could it be the problem? Is someone can you please help me understand this?
Hello
I noticed that you had created another similar to this question. Have you tried the steps suggested in this post?
You can also try the following methods and check if it helps.
Method 1:
Update a network adapter driver.
Method 2:
Troubleshoot network adapter problems.
http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-network-adapter-problems
-
I recently upgraded from XP to 7 and now I can't find a program such as Word or Excel Microsoft. I might need to go back to the disc image of Windows 7, but I don't know where to find it.
You may not install or use programs in the windows.old folder
MS Office is not provided with any version of win, although the origonal PC manufacturer may have included a trial version.
You must install the origonal program installation media programs and activate with this key programs.
Probably at some stage, you bought a version of MS Office and that is the case you would have the Office key
Navigate the folder windows.old to Programs\MS Office, find winword.exe, and then check the properties/details, what is the product name & Version of the file?
-
I installed a game on the App store and now I can't find how to open it to read.
Original title: App Store
I am new to Windows 8. I installed a game on the App store and now I can't find how to open it to read. Help is appreciated with kindness. Thank you.
Hello
Usually, apps in the Windows store are pinned at the end of the Start Menu.You can search the game:Windows key + Q (This will open the Find tab in the start menu)Type the name of the game in the Search box.Pin it to Start is not to lose in the future. -
I am DollarPhoto Club, I am from Brazil and one I can't find the US $0.99 promotion by imagem. Pls Help?
Hello
Unfortunately we do not currently sell Stock to the Brazil.
Please refer to the FAQ for more information: Dollar Club Photo - photo galleries free high quality royalty and vectors - Club picture Dollar
There is a special offer on Adobe Stock?
Yes, good news! If you are a member, you get an incredible reduction on Adobe Stock *:
- $9.99 per month for 10 images per month for 1 year
- Additional downloads will cost $0.99 during the promotion
In addition, all your unused Dollar Photo Club downloads will be automatically transferred to Adobe Stock.
Please note that unused downloads transferred to Adobe Stock will be valid for 1 year, and only after 1 year unless you cancel, your subscription will be charged at the standard subscription rate.
* Note that Adobe Stock buying is not possible in some countries,. However users in these countries can always transfer their unused Dollar Photo Club downloads and creative resources to license Adobe Stock with these downloads. Note that unused downloads transferred to Adobe Stock will be valid for 1 year.
Sign in to your Club picture Dollar account to discover the conditions.
Thank you
Bev
-
Where the application is stored on mac? I restarted my computer and that you can not find it now
in your applications > adobe subfolders.
-
My Adobe comes automatically updated and now I can't find many documents I had saved on my note 3. What is going on?
Hello
Your local files are not removed by Acrobat DC.
Please take a look at the following document to find the files the on your Android device.
How to open a PDF in Adobe Acrobat DC on Android
Sorry for the inconvenience.
-
My Adobe is automatically updated and now I can't find many documents I had saved on my iPad. What is going on?
Hello
Do you want to take a look at the "Choose a file location" section in the following document?
How to manage files Acrobat DC for iOS
I suspect that you look at the Recent section. Your can switch to the Local (for files & folders stored on your iPad/iPhone) or Cloud of Document (for files & folders stored in the cloud of Document Adobe, formerly Acrobat.com) to find your "lost" files
Please let us know if you have any additional questions. Thank you.
-
I downloaded my PDF file and now I can not find
I downloaded my pdf file and now I can't find it on acrobat.com.
Hello
When you connect to Acrobat.com. go to the section of the file and the files should be there.
And if the files aren't there and then during the time of downloading the connection was intermittent or probably you would have been temporarily logout due to browser problem, what is happening.
Kind regards
Ajlan Huda.
-
I ordered Adobe PhotoShop and downloaded but can't find it on my computer?
Have a Mac Book Pro
Open your cc application and see if it is listed as installed or available for installation.
If none of the two.
1. exit the application (from the taskbar) and then restart. If this does not work:
2 remove the file OPM.db and reconnection in the desktop application of creative cloud using the Adobe ID associated with your subscription.
Mac OS: You can locate the file OPM.db in the \User\
\Library\Application Support\Adobe\OOBE folder. To access the hidden user library folder, see library user access hidden files. Mac OS 10.7 Lion. Windows: You can locate the file OPM.db in the \Users\
\AppData\Local\Adobe\OOBE folder. To show the hidden AppData folder, see view files, folders, file name extensions. Windows XP, Vista, Windows 7. -
Sqlplus not find tnsnames.ora
Hey guys,.
I have a question about oracle client and the tnsnames.ora file. Basically, I have the customer put in place and it seems to work on the use of sqldeveloper such that she can see the tnsnames.ora file in the drop-down list but I don't seem to be able to connect using sql, which makes me think that it cannot find the file ora. I set the env as:
Sql developer seems to work with the tns ok but not sqlplus:DON@donkeyhome:/usr/lib/oracle$ echo $PATH .:/usr/lib/oracle/oracle_client/bin:.:/usr/lib/jvm/jdk/bin:/usr/lib/jvm/jdk/jre/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games DON@donkeyhome:/usr/lib/oracle$ echo $ORACLE_HOME /usr/lib/oracle/oracle_client DON@donkeyhome:/usr/lib/oracle$ echo $TNS_ADMIN /usr/lib/oracle/network/admin DON@donkeyhome:/usr/lib/oracle$
Any help with this would be greatly appreciated that I had this problem and commented on many forums for about 1 month now :(DON@donkeyhome:/usr/lib/oracle$ sqlplus SYSADM@STUDA1 SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jan 6 16:26:50 2009 Copyright (c) 1982, 2005, Oracle. All rights reserved. Enter password: ERROR: ORA-12154: TNS:could not resolve the connect identifier specified
Dave was soon
Published by: wheelie on January 5, 2009 22:28
Published by: wheelie on January 7, 2009 22:32Wheelie,
I understand that you have tried many options to solve and in general, this mistake is easy to correct. Bad especially as a tnsnames.ora entry, you can also try dos2unix tnsnames.ora see if it removes all special characters and it changes size.
Concerns
Maybe you are looking for
-
I have a pregnant House Sonos and iTunes game on my computer, but my husband can't use it unless my device is turned on and the House. If I also get the family plan of Apple's music that will solve the problem? Also it can download new music in its
-
Display in Windows Mail problem
Original title: Outlook.com Title changed to "Display in WLM problem." Although he can be independent, when I logged on this AM, I had IE 9 privacy statement. When I open Windows Mail, lack of it for the first time ever was, on the far left of the sc
-
My recycling bin has disappeared and I can't.
My brother went on my laptop and after that he had finished, he said that it "deleted" my recycling bin. I don't know if this is what happened, but I can't. I have searched for it, and does not appear. Help is greatly appreciated.
-
get the TextInput text inside the different function?
It's all in a single class method 1: var txtInpt:TextInput = new TextInput();txtInpt.width = 250;searchInpt.text = "Text";txtInpt.addEventListener(MouseEvent.CLICK, clearSearch);txtInpt.addEventListener(KeyboardEvent.KEY_DOWN, onKeyBoardEvent);MyCont
-
a necessary component of windows media does not start Please restart windows media
When I try to read 'My Favorites' in Windows Media, I always get the box that says I have not implemented yet and I'd like to, I'm going through so pick up options I want to choose Save then I get the error mssg that says "a necessary component of wi