Trying to access 10gr2 database from sqlplus utility but it connects to 11g

Hi All,
I am facing below issue while access 10gr2 database from sqlplus.
I am having two oracle homes on one server one belongs to 11gr2 and another belongs to 10gr2.
I want to access a 10gr2 database through sqlplus utility.but instaed of connecting to 10gr2 it is connecting to 11gr2 after I enter a user name and passowrd.
I have set all the env variables such as oracle_home ,oracle_sid and path with respect to Oracle 10gr2.
Can you please let me kno what I need to do to connect to 10gr2 database and not 11gr2 database through sql plus.
Let me know if I need to give any more details on this.
Best Regards,
Dipti S

Hi Rocky,
I got the resolution.
I made a mistake by creating an oracle instance/service(e.g. fsdmo) when Oracle_home was pointing to 11gR2 Directory.so that service was refering to 11gr2 oracle home.
hence when I was setting oracle_sid(fsdmo) and trying to access database instance from 11g sqlplus utility ,it was directing to 11g and not 10g since oracle service was pointing to 11g.
So now after chnaging the oracle home directory to 11g,I am creating a service and its working fine.
thank you so much for responding.
hope I am clear with my reply.
Best Regards,
Dipti S

Similar Messages

  • Accessing mysql database from oracle using dg4odbc

    I've been trying to create a database link from a MySQL database to Oracle using the Oracle dg4odbc gateway. I downloaded and installed DataDirect's ODBC package which includes mysql ODBC library (ddmysql24.so) and a generic ODBC libary (libodbc.so). After creating the DSN in odbc.ini, I tested it and it can connect to the mysql database. Then I created the init{SID}.ora file in hs/admin directory, added dg4odbc lines in the listener.ora, and added lines in tnsnames.ora. Then I tnspinged the new SID with success. Finally, I created the database link. However, when I tried to access the database link using the commands "select * from mdl_user@moodle;", I got the ORA-28500 error like the following:
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [DataDirect][ODBC 20101 driver][20101]You have an error in your SQL syntax;
    check the manual that corresponds to your MySQL server version for the right
    syntax to use near '"mdl_user"' at line 1
    ORA-02063: preceding 2 lines from MOODLE
    My mysql database is utf8 by default. Do I have to use latin1?
    It seems to me that the dg4odbc translates the sql commands incorrectly (having double quotes around the selected table).
    Any help is greatly appreciated.
    Jeffrey

    The syntax error occures for example when MySQL isn't running in ANSI mode and thus does not allow double quotes around the objects. DG4ODBC 11.1.0.6 by default always adds double quotes to table/column/view names.
    A quick test to check if you hit the double quote issue would be to set the MySQL DB into ANSI mode:
    - Open SQL*Plus
    - execute:
    DECLARE
    ret integer;
    c integer;
    BEGIN
    c := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@moodle;
    DBMS_HS_PASSTHROUGH.PARSE@moodle(c, 'SET SESSION SQL_MODE=''ANSI_QUOTES'';');
    ret := DBMS_HS_PASSTHROUGH.EXECUTE_NON_QUERY@moodle(c);
    dbms_output.put_line(ret ||' passthrough output');
    DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@moodle(c);
    END;
    - Now run your select statement
    => if it now works, you can permanently change the MySQL config to be ANSI compliant or you can apply the 11.1.0.7 patchset to DG4ODBC.

  • STARTUP DATABASE FROM SQLPLUS

    DEAR ALL,
    I've shutdown the database from SQLPLUS.How to startup the database from sql plus.I tried to connect using sys and i recieve Listener doesn't know currently of service....
    Thanks

    I've shutdown the database from SQLPLUS.How to
    startup the database from sql plus.I tried to connect
    using sys and i recieve Listener doesn't know
    currently of service....Your errors seems that you were using sqlplus in client not in server to shudown
    database and try to startup database.
    If so, you need to config your listener.ora with static listener as well as dynamic listener.
    HTH

  • WHY can't I access my database from an applet???????????

    The security code won't let my applet access its own database (from its own server)..
    I'm using getDocumentBase()
    to try and tell it that it is my own damn file..
    I keep getting :
    java.securityAccessControlException: access denied <java.util.PropertyPermission jdbc.drivers write>
    ...etc.
    This applet crap is really starting to piss me off. I can see why they came out with JSP.
    All I need to do is access my database, update it, etc. It kind of defeats the purpose of being able to do jdbc from applets if you can't even access the database on your own damn server.
    If you all don't have a clue, I'm freakin switching to PHP--I'm tired of this crap-I was thinking Java was a damn good language until I hit applets.

    The simple answer to your question is: Because of security concerns.
    The somewhat longer answer is that directly accessing a database from an applet is generally not a good idea. A lot of security-critical code like DB username/password must be hidden in the applet which potentially can be downloaded (and disassembled) by anyone that hits your webpage. Maybe you do an intranet solution with trusted users but that is not what applets were originally designed for.
    The clean way is to make your applet talk to a servlet that talks to your database.
    If that is not the way you want to do it, make sure that all client policy files (yes, on the browser machine) contain the permissions that your applet needs.

  • I have a MacBook purchased in 2009 with Snow Leopard. I tried to access "special characters" from the Finder menu and an intermittent blank pop ups and will not stop. It also happens when I run Word or Pages.

    The blank pop up began as I tried to access "special characters" from the finder menu. I restarted, turned off and restarted and it did not work. It interferes with any application because I cannot work fast. Every new step takes a few seconds longer such as saving, finding text, check spelling and many more. I am desperate to solve this. Thanks in advance for any help given.
    Consuelo Corretjer

    Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
    This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps.

  • I am trying to access tax forms from the IRS.  I download them to my comuter and they read fine (version XI).  However, when iItry to open them on another computer (version 4) they will not open.  Version 4 opens all other documents fine, just no the ones

    I am trying to access tax forms from the IRS.  I download them to my comuter and they read fine (version XI).  However, when iItry to open them on another computer (version 4) they will not open.  Version 4 opens all other pdf documents fine, just not the ones from the IRS.  Any ideas?

    Version 4 is oh so old.
    The IRS and many other providers of forms are using products like LIveCycle which require at least version 7.05.
    Saving, Filling, and Printing PDF Files
    We use Adobe Acrobat PDF files as a means to electronically provide forms & publications. You will need to have the Adobe Reader software installed to access them (available FREE from the Adobe Reader download page on Adobe's Web site). We recommend using the most recent version of Adobe Reader.

  • TS1368 I can't connect to the iTunes store with my Apple TV. I can see what movies are on offer but when trying to access my account i am advised "Can't connect to server" (times out).

    I can't connect to the iTunes store with my Apple TV. I can see what movies are on offer but when trying to access my account i am advised "Can't connect to server" (times out).

    I have the same problem with my 3rd gen Apple TV. I can preview iTunes movies, stream from my Mac, Airplay from my other devices but I cannot rent a movie on iTunes. Every time I try I get "Can't connect to ITunes" and "Unable to sign in". Had technical support review the problem over the phone and they agreed to send me a new one. Same problem. Interestingly enough my 2nd gen Apple TV works just fine.

  • I'm trying to upload my ad from iAd producer but i get an error

    I'm trying to upload my ad from iAd producer but i get that error "This account does not have access to the iAd server." why?
    I also tried to access the website of iAd creative management but when i try to login, the page come back to the login page (so i can't access!)
    Help me please!

    Uploading is available for Advertisers and Agencies with an iAd Account Manager.  If you've got an account manager, they can flip the switch for your Apple ID.
    If you do not have an account manager, select the Contact Us link in the sign-in dialog.
    Cheers,
    -Mark

  • My XP machine is unable to load iTunes 10.5.1. It gets about halfway loaded then says it can't find Bonjour.msi. However, that file is on the computer. I tried loading the Bonjour.msi from another computer but it came up with the same message.

    My XP machine is unable to load iTunes 10.5.1. It gets about halfway loaded then says it can't find Bonjour.msi. However, that file is on the computer. I tried loading the Bonjour.msi from another computer but it came up with the same message. I also tried to remove iTunes from the add/remove sector on Control Panel but it also refused for the same reason. Help, please.

    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable                     
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar
    The missing apps could have been done by setting the Restrictions that can hid those apps. If the backup was made with those retrictions set the the Restrictions are also restored.
    Thus, if you get it to work restore to factory settings/new iPod, not from backup                               
    You can redownload most iTunes purchases by:        
      Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • I am trying to manage my media from the computer but it keeps saying my session has timed out and I've tried it so many times. How can I successfully manage my media?

    I am trying to manage my media from the computer but it keeps saying my session has timed out and I've tried it so many times. How can I successfully manage my media?

        Hi Valeria07,
    We want managing your media to be easy! It saddens me to hear that this is not occuring. Do you receive a specific error message when the browser times out? Have you tried using a different browser?
    Thanks,
    PamelaF_VZW
    Tweet us @vzwsupport

  • Im trying to buy a song from a album but i get error that it is no longer available. The other songs is working and its a new album. I typer in the wrong password on this song. Could that be the issue?

    Im trying to buy a song from a album but i get error that it is no longer available. The other songs is working and its a new album. I typer in the wrong password on this song. Could that be the issue?

    Never rely upon the iTunes Store to always have your purchases.  Always keep a copy of everything safe on a backup drive at home.
    "After you download your purchases, back up your iTunes library. Previous purchases may be unavailable if they've been refunded or aren't on the iTunes Store." - http://support.apple.com/kb/ht2519

  • I have tried to delete a book from my bookshelf but it does not go away

    I have tried to delete a book from my bookshelf but it does not go away.

    Settings-iBooks-show all purchases=off?

  • HT201263 i have tried to restore my iPad from my computer, but it stops ones it gets to the stage where it is updating the firmware. Any suggestion to fix this,?

    i have tried to restore my iPad from my computer, but it stops ones it gets to the stage where it is updating the firmware. It will then display " there was an unknown error.....Any suggestion to fix this,?

    Temporarily disable antivirus and firewall on computer.

  • I tried to transfer my music from my ipod but it said that I had to authorize it, I did then it sais that the computer is authorized but that it was unable to transfer the music.

    I just recently had to restore my computer to factory settings and when I redownloaded iTunes and tried to transfer my music from my ipod but it said that I had to authorize it, I did then it sais that the computer is authorized but that it was unable to transfer the music.  This happens every time except with my ipad where it tells me it can transfer over my apps. What should I do?

    See TS1389 - iTunes repeatedly prompts to authorize computer to play iTunes Store purchases.
    See also Recover your iTunes library from your iPod or iOS device.
    tt2

  • My iPhone apps wouldn't open they just blink for a second and the home screen comes back again...i tried installing a free app from the AppStore but it didn't work and also tried resetting the iPhone but ddnt work as well please help what do i do??

    My iPhone apps wouldn't open they just blink for a second and the home screen comes back again...i tried installing a free app from the AppStore but it didn't work and also tried resetting the iPhone but ddnt work as well please help what do i do??

    Oh my gosh I had the EXACT same problem, and for ages I couldn't figure out how to fix it until today. Here's what I did:
    First I went onto my computer, opened itunes, and un-installed tumblr, vine and kik. These were the apps I was having problems with (it said I had them on my phone but, like you, they didn't show).
    Then I went to the itunes store, searched for each one, and it said I could update them so I did (just FYI: for tumblr a window popped up saying "please click ok to confirm you are 17 years or older", so I did that also)
    When I went back to my phone and tried installing them again (still on my computer), it worked!
    I hope this helps, because it was incredibly frustrating. Good luck!

Maybe you are looking for

  • At new command not working

    Hi all,    I pasted my sample code below. In this i have used "At new event" this command is not working in my code, the values are redundant, How to rectify this problem. Pls help me. Thanks in advance. Tables : RBKP,          RSEG. Data : Begin of

  • Nokia music activation problam slove

    This phone is alredy registered with a nokia music unlimited subscription problem

  • Replacing the "No rows returned" message in Portlets

    Hi all, How to remove (or replace) the default message that comes in each Portlet if the query doesnot return anything ? By default the Portlet shows the message "No rows returned" , how to customize it or remove it. Ayman

  • Sun Cluster 3.3 Mirror 2 SAN storages (storagetek) with SVM

    Hello all, I would like to know if you have any best practice for mirroring two storage systems with svm on sun cluster without corrupting/loosing data from the storages. I currently have enabled the multipath on the fc (stmsboot) after that configur

  • Best option for converting audio to text, Best option for converting audio to text

    Trying to figure out best way to convert audio (mp3 or mp4) files to text.  Right now I'm transcribing by hand interviews but have hundreds of hours and this is getting old I found MacSpeech Scribe.  Is this a good option? How accurate is it?  Is the