JDBC ok but SQLPLUS does not work
Hi all,
I created a java app that can connected to a Oracle DB with JDBC, however, when I try to get connected to my DB using the SLQPLU I laways get this error:
[oracle@ipsm-sn01 ~]$ sqlplus myuser/mypass@orcl
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
The SID is properly exported:
export ORACLE_SID=orcl
The JDBC url looks like:
jdbc.url=jdbc:oracle:thin:@localhost:1521:orcl
jdbc.username=myuser
jdbc.password=mypass
I have read a lot of entries about a file named TNSNAMES.ORA, I have no such file set; but the java app has been running for months without it, so I think that's not the root cause.
Thanks in advanced.
Edited by: user7761672 on Sep 20, 2010 8:20 AM
user7761672 wrote:
I have read a lot of entries about a file named TNSNAMES.ORA, I have no such file set; but the java app has been running for months without it, so I think that's not the root cause.
Thanks in advanced.If you are to use a SQL*Plus on your desktop, the TNSNAMES.ORA is required. I think the reason why you are not getting any issue at all when you are running it thru java app is because the java app is doing that for you creating an image of TNSNAMES.ORA or the likes of it thru some interfaces to connect to the database. An example of this is our application user. They don't have any TNSNAMES.ORA installed on their PC when they run our inhouse apps connected to the oracle database.
.
Similar Messages
-
I get this error when I go to imovie, I have instalerat on via appstore, but it does not work.
The QuickTime components necessary to view, edit, import and export varioustypes of films are not installed. The components included in the iMovie installer.Reinstalling iMovie.I get this error when I go to imovie, I have instalerat on via appstore, but it does not work.
The QuickTime components necessary to view, edit, import and export varioustypes of films are not installed. The components included in the iMovie installer.Reinstalling iMovie. -
Greetings, I am working in Final Cut Pro 7. In the timeline some clips show as offline. I tried going to sequence and reconnecting to media but it does not work. I can still see the video in the timeline and work with it. It just has the red box. Thanks! Olga
If the clips are not actually missing, you could try to refresh the timeline by using cmd-0 and then going to the timeline options tab. Then select name only where it says "thumbnail display". Press ok to accept the change, then repeat the process to add thumbnails back to your timeline.
-
" help me please" I have Windows 7 32 bit installed on my mac pro and Bought Mini DisplayPort to VGA Adapter to connect to lcd tv But it does not work? why? please help me
I have to boot with a Windows
When I use the Mac operating system not have a problem and DisplayPort to VGA Adapter Working properly
why does not work with windows ?
What should I do؟
I'm grateful to give advice
tanks
[email protected]Someone in another section answered this. Thanks.
-
Hi, I have a MAC (version 10.10.2) and installed Creative Suite one year ago. Now I want to open the Illustrator, but it does not work. It says I should install old Java SE 6-Runtime-Version to open „Adobe Illustrator CS6“. Where can I find it? Thanks for your answer! Jana
Prompted to install Java SE 6 Runtime | Mac OS 10.9
Mylenium -
I am attempting to upload multiple photos on a mac pro from a cd. I have tried holding the "command"button down to select multiple photos but it does not work. Please advise. Thanks,John
why not sort by (name, date, etc) and Click on 1st and Shift-Click on last.
Might work better to copy or import to a project folder.
https://discussions.apple.com/community/ilife/iphoto
http://www.apple.com/support/iphoto -
I have an apple ID which I use to sign into icloud for my iPad and iPhone.But when I use the same ID for setting up iCloud on my Macbook it says INCORRECT ID or password, try again. I tried changing my passwords several times but it does not work for the macbook.
You will have to provide the correct password to delete the existing account, if you have tried but are not getting the password reset email, contact Apple for assistance by going to https://expresslane.apple.com, then click More Products and Services>Apple ID>Other Apple ID Topics>Lost or forgotten Apple ID password.
-
I want to disable or remove Game center from my iphone. It's always pop up during i play hay day game. So i can not solve this problem. Any way i try to log in game center my several Apple id account but it does' not work. I am still stuck in log in page
The Game Center app is pre installed and cannot be removed from the device.
Best thing to do is move it to the last available screen.
Hold down the Game Center app until all the apps jiggle then sliide the Game Center app to the right from one screen to the next. This requires a bit of finesse, but it's doable.
Press the Home button one time to stop the apps from jiggling.
For the Apple ID issue, try resetting.
Tap Settings > General > Reset > Reset All Settings
Then try your Apple ID and password for the Game Center app. -
Is there a way to separate raw files from jpegs that are in one folder after downloading from camera when you shoot both together. I tried arrange or sort by kind but that does not work. It arranges all folders but not the files in the folder., Is there a way to separate raw files from jpegs that are in one folder after downloading from camera when you shoot both together. I tried arrange or sort by kind but that does not work. It arranges all folders but not the files in the folder.
Bridge will do the job. View > Sort > ByType. Then you can choose a group of one type and put the files in a separate folder.
-
I just installed this update and now I cannot access "Mail" at all. I tried reinstalling the program, but that does not work, either. Help!
Paldeng, thanks for the suggestion. I've done all that. I can connect to the server, but apparently they are not recognizing my ID and password. I can use the server program if I don't go through Mail (using the same ID and password). My mother in another state with another provider has had the same email issue, as also my husband on his laptop who uses the same internet connection I do. His worked fine until we had it repaired at the Apple store and all the original programs reloaded (with the required updates, I assume). We can receive email in Mail, we just cannot send.
I contacted my service provider, and we went over my connections. They said it was not their problem and connected me with Apple, resulting in a charge to me because my warranty is long expired. Apple swears it is not their problem, it is the provider, so here I sit. My son was able to fix my Mom's Mail (she's 97) and got my husband's working also, until mine went out, by tweaking connection descriptions and ports remotely. The thing is, we had not messed with any of those settings, so what changed? I just did not want to bother my son again, as he has many other demands on his time.
Since this fiasco with the Mail v4.6 update, I'm wondering if something else was updated that works well with Lion and Mountain Lion, but does not work well with Snow Leopard and Leopard. I think the problem I had with the Mail update was that my Mail program had been renamed to Mail (original), and therefore was not being recognized by the update. Perhaps they had another tweak in there somewhere that is affecting outgoing mail connections? -
I use the Icalendar at home, at work, and on my Iphone. I don't want to have to "sign in" every time I need my calendar. How do I stay signed in? I have checked the "keep signed in" box, but it does not work.
Welcome to the Apple community.
Staying signed in at iCloud.com is not a problem for me. Try resetting your browser or emptying its cache. -
Since updating iPhoto it has ceased to open. I have tried to Hold down the Command and Option keys on the keyboard which is the suggested solution to then open a suggested solution to rebuild the library, but it does not work. iPhoto still does not open. can someone please help?
thank youTry the following:
1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
Home/Library/ Preferences folder.
2 - delete iPhoto's cache folder(s):
Home/Library/Containers/com.apple.iPhoto
and, if there is one, the
Home/Library/Caches/com.apple.iPhoto folder
3 - reboot, launch iPhoto and try again.
NOTE: For Mavericks, 10.9, go to your Home folder and use the View ➙ Show View Options menu to bring the this window:
Happy Holidays -
I have a iPod touch 4th gen. And I cannot get into the Internet I get a message that say cannot connect to server. The other computer and my iPad still work with the Internet . I have reeked to reset it but that does not work. Please help me.
I do not know wat "reeked to reset" means.
Try the following:
- Reset the iPod. Nothing will be lost
Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears
- Power off and then on your router.
- Reset network settings: Settings>General>Reset>Reset Network Settings
- iOS: Troubleshooting Wi-Fi networks and connections -
When the user press the button Calculate Tax and click on Tax details then this should be updated automatically. But it does not work it is empty and the user has to update manually.
All setup looks fine.
Please let me know what can be done on this?
Regards,
PeuHarryAustralia wrote:
I recently updated my ipad wifi only to the new ios 6.1.2 and initially I had the auto cover lock option which can be seen in the Generals tab, but then it stoped working!! Before the update, the auto cover lock worked fine. So after trying all the options, I then did a complete reset on the ipad and now its gone all together from the General tab!! I can no longer see the "auto cover lock" option.
The iPad cover lock is for when you use a cover with magnets in it to lock and unlock the iPad when you close the cover or open it. Try running a refrigerator magnet along the sides of the iPad and see if that trips the iPad Cover Lock back into the settings.
That is not the same thing as the iPad Auto Lock setting which allows you to set an allotted time before the iPad goes to sleep.
You can try resetting all settings to see if the Auto Lock feature retinrs to the iPad.
Settings>General>Reset>Reset All Settings. You will have to enter all of your device settings again.... All of the settings in the settings app will have to be re-entered. This can be a little time consuming re-entering all of the device settings again. -
I purchased Label Printer Pro 7, but it does not work. It crashes. I press print, and the program closes. I press save, and the program closes. I press print and the program closes. I have had an email exchange with Pabel Printer Pro 7, but the best they could offer was to go to Utilities and click on fixed permssions. I have done that several times, and the program still doesn't work.
Can you please recommend an address.shipping label program that works with Avery labels that I can purchase, and that is also simple to use?
Thanks,
PaulaI purchased Label Printer Pro 7, but it does not work. It crashes. I press print, and the program closes. I press save, and the program closes. I press print and the program closes. I have had an email exchange with Pabel Printer Pro 7, but the best they could offer was to go to Utilities and click on fixed permssions. I have done that several times, and the program still doesn't work.
Can you please recommend an address.shipping label program that works with Avery labels that I can purchase, and that is also simple to use?
Thanks,
Paula
Maybe you are looking for
-
Combine two jsp pages into single
hai how to combine two jsp pages in to one import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.strut
-
Automatic delivery date change based on logistics calendar
Dear Experts, I have a certain plant for which i have 5 days working & for the rest i have all days working . My requirement is that the system should find out & change the delivery date in PO automatically , if the delivery date falls on a holiday .
-
Why are files viewed in Bridge a lot brighter than Mac Finder window?
Why do my camera raw files appear a lot brighter when viewed in Adobe Bridge than when viewed in the Mac Finder Window? Like a lot brighter. I'm not really sure which is the 'correct' brightness. Thanks!
-
Where is the command log file? (I think that's what it is called)
Someone recently used my computer and may have used some files or put some things on my computer that I would prefer they had not. Is there a file or system command that I can use to determine what has and has not been done on my computer? Or a file
-
Apple Manufacturer Warranty Cover GPU Failure?
I've bought a macbook pro from a local computer store, it was used. It worked fine for 3 months then one day screen started flickering when i played videos. Now no videos work at all, and only boots in safe. I only use it for Xcode programing so not