Want to connect local SQLPlus without passing SID/connecting string.

Hi
On my network there are many databases and many several machine. On some database host machines when I pass user/password they connect locally but other wont unless I provide connecting string i.e. user/password@connection_string.
How can I make my machines to connect locally if I pass just pass user/password as I want to install StatsPack, it change user within installation and log out as it only pass username/password not the connection string.
Wishes
Jawad

try with TWO_TASK
$ export TWO_TASK=lsc62.ex.zkb.ch            
$ sqlplus scott/tiger
SQL> select global_name from global_name;
LSC62.EX.ZKB.CHMessage was edited by:
Laurent Schneider
well, this works only in Unix, so first, upgrade your plateform to Unix before setting this variable

Similar Messages

  • I want activate my CS4 product without an Internet connection - but this is impossible

    I have a product box ( Photoshop CS4 EXTENDED ), my code is on the back of the product box.
    When I want to register the software on https://redeem.licenses.adobe.com/getserial #
    displays the message: That serial number is invalid. Please try again.
    I have a program and I can not register it. What to do?

    Hi,
    Unfortunately, we cannot check your serial number issue. Please contact chat support of Adobe they might be able to help you.
    You can contact them Contact Customer Care.
    Thanks,
    Saurabh Rai

  • HT1918 hee guys how do u delete a creditcard from your apple id? in the summer a friend of mine connected his own creditcard details to my apple id now i want to disconnect that again but i have no idea how? i just want my own apple id without a creditcar

    hee guys how do u delete a creditcard from your apple id? in the summer a friend of mine connected his own creditcard details to my apple id now i want to disconnect that again but i have no idea how? i just want my own apple id without a creditcard connected to it

    I own the movies and I want them to stay in my iTunes library basically forever.
    But in both cases the file name no longer shows in the movie list, so I don't know how to re-download it from the Cloud.
    iTunes prefs > Store > Show iTunes in the Cloud purchases.
    This will show all your iTunes purchases in your library with a cloud icon down arrow. Click the icon to redownload or click on Play to stream without downloading.
    Also see this , -> Download past purchases
    and techncially, you don't "own" the movie, You simply have a license to use it.
    Yet the first thing iTunes does when you hit the delete key is tell you that it will remove the movie forever from all devices and the library.
    Actually, no it does not tell you that.
    FYI: You should keep copies of all yoru iTnue spurahses as the labels/movie studios/copyright owners can pull their product at anytime and it won't be available to redownload.
    Suggestions here -> http://www.apple.com/feedback/

  • Connecting to sqlplus

    Hi there,
    i am just wondering is it possible to connect to sqlplus without setting up a net service name? I have ip address, port number and sid and was just wondering is it possible to connect with these details alone. its possible with jdbc so i thought it would be possible with sqlplus but i have had no joy as of yet. so i am looking for something like sqlplus user/password@dbname:portno:ip so if anyone has any ideas please post here..
    cheers
    paul

    To the best of my knowledge there is no similar feature in Oracle Net anymore. (Oracle Net is the component which handles the connect identifier resolution, and is used by tools including SQL*Plus).
    -- CJ

  • No TNS after Migration. SQLPLUS returns 12545, DAD-Connect shows ora-12505

    Hello World,
    actually we're having some trouble after oracle migration.
    Our HTMLDB HOME is located on Machine one named linux.mydomain.de ip x.x.16.83. ORACLE-VERSION is 9.2.0.7.
    Our STANDALONE OHS-HOME is located on Machine two named linux2.mydomain.de. This one is comletely renewed.
    After system change from Standalone OHS 9.x to 10.2.0.1 on machine two we do not get the connection to the ORACLE_HOME.
    Trying to connect via SQLPLUS returns ORA-12545;
    Connection attempt via DAD returns ora-12505, even the ohs-page is acceptet.
    Before upgrading nearly everything went ok.
    Badly the older version of OHS does not accept the new OS.
    I'm not yet very well trained in 10g-Systems.
    I guess, the main problem is in network area, but im not shure...
    My primary question:
    How can I establish an oracle-connection from machine two towards machine one?
    hoping for some guidance
    regards
    Franz Langner

    Hello,
    thank you for replying me.
    1) Of course I had a close look into the local help before posting this into forum
    - ORA-12505 = NLS_LANG ; settings are identical ;
    but OHS-Standalone OS LANG shows AMERICA_AMERICAN.WEISO8815P15 instead of AMERICA_AMERICAN.WEISO8815P1 which is shown by the ORACLE NLS_PARAM.
    - ORA-12545 = there is a problem with TNS.
    This ones is from the beginning of the new system.
    I copied TNSNAMES.ORA from the backup of the former installation ( Elder OS, elder version)
    2) - hosts are known by each other
    3) Unfortunately OHS Standalone 10.2.0.1 from Companion CD doesnt use tnsping. The tool isn't included neither from Install CD Set nor from the downloaded version.
    So tnsping from OHS-Host to DB-Host does not work.
    I'm not shure that there is tns on the OHS Standalone Host, there is no database instance, $ORACLE_HOME/network doesn't contain necessary files..
    4)Posting tnsnames.ora and sqlnet.ora will do a little efford, caused by intranet location of both Hosts.
    Here we are:
    ENVIRONMENT of the Datatbase Host
    HOSTNAME=linux
    HOSTTYPE=i386
    ORACLE_BASE=/opt/oracle
    ORACLE_HOME=/opt/oracle/product/9ir2
    ORACLE_SID=oemrep
    ORA_NLS33=/opt/oracle/product/9ir2/ocommon/nls/admin/data
    OSTYPE=linux
    PAGER=less
    PATH=/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome2/bin:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/java/jre/bin:/opt/gnome/bin:/opt/oracle/product/9ir2/bin
    TNS_ADMIN=/opt/oracle/product/9ir2/network/admin
    ENVIRONMENT of the OHS Host
    ## AGENT_HOME=/opt/oracle/product/agent
    CLASSPATH=/opt/oracle/oracle/product/10.2.0/db/JRE:/opt/oracle/oracle/product/10.2.0/db/jlib:/opt/oracle/oracle/product/10.2.0/db/rdbms/jlib:/opt/oracle/oracle/product/10.2.0/db/network/jlib
    HOSTNAME=linux2
    HOSTTYPE=i386
    LD_LIBRARY_PATH=/opt/oracle/oracle/product/10.2.0/db/lib:/opt/oracle/oracle/product/10.2.0/dbnetwork/lib
    NLS_LANG=AMERICAN_AMERICA.WEISO8859P15
    ORACLE_BASE=/opt/oracle
    ORACLE_HOME=/opt/oracle/oracle/product/10.2.0/db
    ORACLE_SID=LKADB
    ORA_NLS10=/opt/oracle/oracle/product/10.2.0/db/nls/data
    ORA_NLS_33=/opt/oracle/oracle/product/10.2.0/db/nls/data
    TNS_ADMIN=/opt/oracle/oracle/product/10.2.0/db/network/admin
    /*** TNSNAMES.ORA of the DATABASE HOST
    # TNSNAMES.ORA Network Configuration File: /opt/oracle/product/9ir2/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    LKADB.LINUX.mydomain.DE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = linux.mydomain.de)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = lkadb.lka.polizei.nrw.de)
    # this one is in use for jobs that need exclusive privs
    LKA_DED.LINUX.mydomain.DE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = linux)(PORT = 1521))
    (CONNECT_DATA =
    (SID = lkadb)
    (SERVER = DEDICATED)
    /*** TNSNAMES.ORA of the OHS HOST
    HTMLDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = linux.mydomain.de)(PORT = 1521)
    (CONNECT_DATA =
    (SERVICE_NAME = lkadb)
    /**** SQLNET.ORA of the DATABASE HOST
    # SQLNET.ORA Network Configuration File: /opt/oracle/product/9ir2/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    NAMES.DEFAULT_DOMAIN = linux.duesseldorf-lka.polizei.nrw.de
    NAMES.MESSAGE_POOL_START_SIZE = 15
    NAMES.DIRECTORY_PATH= (ONAMES, TNSNAMES, HOSTNAME)
    NAMES.MAX_OPEN_CONNECTIONS = 5
    /*** SQLNET.ORA of the OHS HOST ( copied from former version )
    # SQLNET.ORA Network Configuration File: /opt/oracle/product/9ir2/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    NAMES.DEFAULT_DOMAIN = lka.polizei.nrw.de
    NAMES.DIRECTORY_PATH= (TNSNAMES, HOSTNAME)
    regards
    Franz Langner
    Message was edited by:
    [email protected]

  • ORA-12546 When connecting without specifying sid in connect string

    I am currently having a difficult time connecting to an Oracle 9.2.0.4 database running on Red Hat Linux.
    I can successfully connect to this database with sqlplus as oracle whether a sid name is included in the connect string or not. I can also successfully connect to the instance through jdbc with jsp pages. However when I try to connect as root without specifying the sid I get an ORA-12546 TNS: Permission denied. I also receive this error when attempting to connect to the instance through php scripts. Note that root can connect through sqlplus with no problem as long as the sid is included in the connect string. Also note that the oracle user can connect either way.
    I turned on tracing and found that this error is occurring before it even gets to the listener as no log or trace entries are generated when the error occurs.
    Does anyone have any ideas?

    did you set the parameter TWO_TASK ?

  • I want to connect my Mac Book Pro to the internet in France without any wifi connection available? Mi Fi? Sim card?

    I want to connect my Mac Book Pro to the internet in France without any wifi connection available? Mi Fi? Sim card? All we have is a phone signal in this rural French location. I want to be able to Skype to states from there. We have a friend with a 3G ipad who uses an Orange sim card to do it. I would rather not have to buy an Ipad.
    thanks

    I found out that the data package for one month useage with MiFi is 1G. How many minutes of online time does that correspond to?

  • Dear Apple!  Sorry for bothering me buy an iphone 5 features of the familiar, I have a pc restore. they forget about icloud account ID and Pass now I want to activate the device without the aid small icloud account and password. lending rules company can

    Dear Apple!
    Sorry for bothering me buy an iphone 5 features of the familiar, I have a pc restore. they forget about icloud account ID and Pass now I want to activate the device without the aid small icloud account and password. lending rules company can help me to activate the serial number and IMEI states do not ask Thank you!

    Apple itself! I'm sorry to bother buying a used iphone 5, I have a pc restore. forget iCloud account ID and now I want to activate the device without iCloud account. Please ask apple can help me to reactivate this device does not need the drill and what? my device is iphone 5 ios 7. If possible please email: [email protected] Thank you very much

  • I created a new itunes, but when i add the music i added it from my external hard drive by accident, so when i disconnect it and wish to play music without having it connected, obviously it asks me to located my songs, i dont want to locate each song help

    i created a new itunes, but when i add the music i added it from my external hard drive by accident, so when i disconnect it and wish to play music without having it connected, obviously it asks me to located my songs, i dont want to locate each song and i dont want to have to add all my music again, is there anyway of changing the location to a new folder all at once? for example, if it is my computer/harddrive/music/.... can i change it to mydocuments/musis/...
    and having the exact same music folder so all the further directions are accurate?
    thanks
    please i need help

    pass the music on your external hard drive to the computer then drag the to Itunes

  • My phone does not want to come on pass the 'connect to itunes' logo.   I have a iphone 3Gs. It happened after I tried to restore it after updating it through itunes on my computer.

    My phone does not want to come on pass the 'connect to itunes' logo on the screen.  This happened after I was updating the phone software through itunes, and itunes said I needed to restore my phone if it is to work with itunes, which I did.  An error (1015) box popped up and... well.... here we are.  I have an iphone 3G.  The support coverage is expired. 
    I just want to return to my phone functioning as before.

    Was this iPhone jailbroken?

  • Can you download movies into iTunes then watch them via airplay without an internet connection?  We want to be able to watch them in our RV that does have an internet connection always.

    Can you download movies into iTunes and watch them via airplay without an internet connection?  We want to be able to watch downloaded movies in our RV.

    If you want to watch on your iPad screen, you don't even need airplay.
    If you want to watch on a television screen, you need an AppleTV.
    In both cases...
    If the movies are purchased, there is no need for an Internet connection to the outside world.  If they're rented, you need an Internet connection for the first minute or so that Apple knows that you're watching the movie.  I do not know if a rented movie can be stopped and restarted without an Internet connection.

  • Create connection with sqlplus client

    Hi@everybody,
    i've a little connection problem with the oracle Instant Client I've installed on my Windows 7 64 bit. First, I've token the files:
    instantclient-basic-windows.x64-12.1.0.1.0.zip
    instantclient-sqlplus-windows.x64-12.1.0.1.0.zip
    and uzipped them together in a directory. That directory is in PATH enviroment variable on Windows 7.
    Now i want to try to get a connection to my Oracle 11gR2 (11.2.0.3) database on CentOS. When i do a EasyConnect:
    PROMPT>sqlplus system/pwdofsystem@hostname_of_db_server:1521/SIDNAME
    there is no problem to get to the database.
    But when i try the long way:
    PROMPT>sqlplus 'system@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname_of_db_server)(PORT=1521))(CONNECT_DATA=(SID=SIDNAME)))'
    first he asks me for the password for system. I enter the password and then I get an ORA-12560 error.
    I allready read about that error but i can't understand, why i need an entry in a tnsnames.ora file when i gave sqlplus all the parameters directly. Or is there another failure?
    Thanks and best regards,
    David

    TAKE OFF THE SINGLE QUOTES, you will be connected
    Run this without single quotes,
    PROMPT>sqlplus system@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname_of_db_server)(PORT=1521))(CONNECT_DATA=(SID=SIDNAME)))
    I guess if you are passing the whole ting in quotes, sqlplus is considering it as a 1 single parameter and assuming the whole thing as USERNAME.

  • Can connect using sqlplus, cannot using SQL Developer

    Hi
    I cannot find out why I cannot connect using SQL developer, while sqlplus works fine with the same login information.
    *1. TNS ping:*
    C:\>TNSPING manila
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 24-GRU-2
    010 13:28:38
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.171)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
    OK (370 msec)
    *2. sqlplus*
    SQL> CONNECT SULU_DEV/<pass>@MANILA
    Connected.
    *3. sqlplus - by IP*
    SQL> CONNECT SULU_DEV/<pass>@10.0.0.171:1521/XE
    Connected.
    *4. SQL Developer*
    Username: SULU_DEV
    Connection type: TNS
    Network alias: MANILA
    Error: I/O Exception: Connection reset
    *5. SQL Developer - by IP*
    Username: SULU_DEV
    Connection type: Basic
    Hostname: 10.0.0.171
    Port: 1521
    SID: xe
    Error: I/O Exception: Connection reset
    *6. SQL Developer - without username*
    Username: <blank>
    Connection type: TNS
    Network alias: MANILA
    Error: ORA-01017: invalid username/password
    It seems that I have connection to the server, but from some reason it is disconnected when I'm using SQL Developer, but works fine with sqlplus.
    Any ideas on what it might be?
    Thank you in advance,
    Regards,
    Marek

    The connection export function it's available in 2.1.1.64, you need to right click on the main Connections node, and it will allow you to export all or part of the current connections, or import from a previously exported file.
    As for the highlight statement feature it's available in SQLDeveloper; actually you do not even have to highlight the required statement, as long as you take the habit of ending every statement with a ";", in this case you only need to place the caret inside the statement and SQLDeveloper will automatically highlight it for you (if you want to manually highlight a statement you can still do so without problems).
    Finally as a last try to solve your connection problem without having to call for network support you could try to check
    Preferences -> Database -> Advanced -> Use OCI/Thick DriverThis will force SQLDeveloper to use your oracle client for connections instead of it's native JDBC based connections (even if you use TNS based connections you will still use JDBC unless you have this checked).
    As for other graphical tools for Oracle there are many both free or for a price.
    1) In the for price world Toad stands out, i heard of a free option too but I'm not sure of the limitations.
    2) For free you can use DBVisualizer which is fairly good (never used it too much thou).
    3) Finally there is SQuirreL which is both free and open source but it has fairly basic functionality compared to the two above.
    Obviously there are many others, but IMHO few will provide you with the same functions of SQLDeveloper or Toad for Oracle databases

  • Connect to sqlplus from sun box

    Can someone please send me a sample script to connect to sqlplus and execute a .sql script.
    Thanks
    Kev

    In this example, the SQL is embedded in the script. If you want to keep it a file, its sqlplus @filename
    The -s switch means silent.
    Also included are some sample Oracle extensions, like set echo off, which are useful when running batch scripts.
    #!/usr/bin/env bash
    ORACLE_HOME=/path/to/oracle
    ORACLE_CREDENTIALS=user/pass@sid
    ORACLE_HOME=$ORACLE_HOME \
    $ORACLE_HOME/bin/sqlplus -s $ORACLE_CREDENTIALS << EOS
    set echo off
    set feedback off
    set heading off
    set linesize 120
    set pagesize 0
    select 'foo' from dual;
    EOS

  • How to work offline without the database connection

    The first thing that make me do not like this tool is it is not possible to work offline or at least that I find out easily.
    Why should I need the database connection to write PL/SQL, SQL or whatever.

    Thanks Duncan,
    I want exactly what I said. To have the ability to modify the PL/SQLor SQL code, of course stored in the local file system or some kind of version control system.
    This happens because I was at home and could not create stupid file to just put main methods and SQL's I want while not having the connection.
    I do not want to use 3 different tools to do simple things. I am expecting from this tool to do all things for me that are meaningful as I am in Oracle more then 10 years and know exactly how robust Oracle tools are usually covering more then simple things.
    Offline work is more then simple requirement.
    Source control is more then simple requirement as sql developer is extracted from JDeveloper.
    It is so obvious that it is not possible to modify PL/SQL code inside the database without having the connection :)
    What are you doing when the database is not available or you need to work from home and no VPN or so, in the plane (never did that but there are people that will do), ...?
    Both TOAD and if you want SQL*Plus can do it without connection of course.
    sqlplus /nolog will do it :)
    Oracle SQL*Developer is the same but you need first to create manually some SQL or other file somewhere and then open it.
    While we are here SQL*Developer is not source control aware and that is not good.

Maybe you are looking for