create the connection with the client of sqlplus

Hi@everybody,

I have a little problem with the oracle Instant Client connection I installed on my Windows 7 64 bit. First of all, I have chips files:

instantclient-basic - windows.x 64 - 12.1.0.1.0.zip

instantclient-sqlplus - windows.x 64 - 12.1.0.1.0.zip

and uzipped together in a directory. This directory is in the PATH in Windows 7 environment variable.

Now I want to try to get a connection to my Oracle 11 GR 2 (11.2.0.3) database on CentOS. When I do an EasyConnect connection:

QUICK > sqlplus system / pwdofsystem@hostname_of_db_server:1521 / NOM_SID

There is no problem to get the database.

But when I try along the way:

QUICK > sqlplus "system @(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=hostname_of_db_server) (PORT = 1521)) (CONNECT_DATA = (SID = SIDNAME)))".

First, he asks me the password for the system. I enter the password and then I get an ORA-12560 error.

I already read about that mistake, but I can not understand, why I need an entry in tnsnames.ora file when I gave sqlplus all parameters directly. Or is there another failure?

Thank you and best regards,

David

TAKE OFF THE UNIQUE CITY, 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 spend the whole ting quotes, sqlplus is consider as a single 1 setting and assuming that the whole thing as username.

Tags: Database

Similar Questions

  • New Vsphere servers (2), cannot connect with vsphere client

    It's strange, that it is a new construction on 2 new servers. With ESXi5 it really doesn't matter what config install so there is nothing to screw it up, so I did the installation of STD, then tried to connect to the server with the client and I get 'call 'ServiceInstance.RetrieveContent' to object 'ServiceInstance' on the server '10.70.1.20' failed.

    This happens on both servers.

    Other messages suggest it is because of the attempts to connect using HTTP instead of HTTPS, but I do not use a prefix, just the IP address.

    If I type the IP address of the server in a browser, I get the standard server ESXi web page so IP connectivity is fine.

    The other strange bits is that I have 3 ESXi 5 server to different hardware built using the same media that works well.

    The vi client log shows this:

    < type = "VirtualInfrastructure.Exceptions.ConnectionError error" >
    < message > the customer has not received a full response from the server "10.70.1.20". (The underlying connection was closed: an unexpected error occurred during the reception.) < / message >
    < InnerException type = "System.Net.WebException" >
    < message > the underlying connection was closed: an unexpected error occurred on a receive. < / Message >
    < InnerException type = "System.IO.IOException" >
    < message > received an unexpected EOF or 0 bytes of the transport stream. < / Message >
    < / InnerException >
    < Status > ReceiveFailure < / status >
    (snipped)
    If I enable SSH and SSH on the server, try PuTTY gives me an error 'incoming packet was scrambled on decryption.
    It seems therefore that encryption is screwed somehow, but since I can't connect to the server I'm strugglin for troubleshooting options?
    Any ideas?

    https://www.VMware.com/support/vsphere5/doc/vSphere-ESX-vCenter-Server-50-release-notes.html

    From the release notes:

    Using the env of BE2/BE2 Emulex Group (pilot be2net)
    When using vSphere 5.0 with Emulex BE2/BE3 NIC (pilot be2net) in an environment FlexFabric/Flex-10 HP or IBM Virtual fabric adapter (VFA), connectivity may not work properly on virtual machines Windows or server when them VLAN is configured.

    Workaround: Do not use the driver included with vSphere 5.0. Before the upgrade to vSphere 5.0, you can get an updated of Emulex, HP or IBM driver that should be used on HP FlexFabric/Flex-10 or IBM VFA systems.

  • ESX4 starts - but takes at least 20 minutes before I can connect with vsphere client!

    Currently, three servers of ESX4. Two months ago, a loss of power and of the restart. Server #1 initialization until the connection to the console without problem. Unable to connect to the server using client vshpere immediately. After 20 minutes, the vsphere client connections began to work.

    Although nothing of him until the #3 server went down today and restarting system apparently came to the console ok, but took 40 minutes before I could connect to it with vsphere client!   Y at - it something stupid I'm missing here? I have not tweaked these boxes, plenty of stock and NO settings have changed since its installation. They never used to take this long!

    Any ideas?

    I'm going to this post too, just in case

    http://KB.VMware.com/kb/1012942

  • could not create a connection for PDBORCL client-side

    Hi all

    We use oracle database 12 c company on widows Server 2012 standard edition 64-bit edition.

    We can make a connection from the client to the PDBORCL using the wizard in Configuration Net.

    TNSNAMES. ORA

    # tnsnames.ora Network Configuration File: C:\app\Administrator\product\12.1.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    
    LISTENER_ORCL =
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    
    
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
      (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
      )
      (CONNECT_DATA =
      (SID = CLRExtProc)
      (PRESENTATION = RO)
      )
      )
    
    ORCL =
      (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
      (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orcl.hct.org)
      )
      )
    
    PDBORCL =
      (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = HP426-ORATEST)(PORT = 1521))
      (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = PDBORCL.hct.org)
      )
      )
    
    
    
    
    
    

    LISTNER. ORA

    # listener.ora Network Configuration File: C:\app\Administrator\product\12.1.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    
    SID_LIST_LISTENER =
      (SID_LIST =
      (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = C:\app\Administrator\product\12.1.0\dbhome_1)
      (PROGRAM = extproc)
      (ENVS = "EXTPROC_DLLS=ONLY:C:\app\Administrator\product\12.1.0\dbhome_1\bin\oraclr12.dll")
      )
      )
    
    LISTENER =
      (DESCRIPTION_LIST =
      (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
      )
      )
    
    
    
      
    

    My client side, I open the NET CONFIGURATION Assistant to r,

    Click on CONFIGURATION of the NAME of SERVICE LOCAL NET,

    Select Add, and then click Next

    type the name of the service PDBORCL

    Select TCP, and click Next

    on the host name, put the name of the server that is HP426-ORATEST and click Next

    When I click on RUN TEST YES, it gives the following error

    Connecting...ORA-12170: TNS:Connect timeout occurred
    The test did not succeed.
    
    Some of the information you provided may be incorrect.
    Click Back to review the information provided for net service name, or Change Login to change username. 
    
    

    We could ping the HP426 ORATEST on my client by using cmd.

    kindly guide us.

    Thank you.

    Then, it would seem that maybe a firewall is not blocking the return package, causing a timeout.

    Hemant K Collette

  • By specifying the container to connect with command line utilities (sqlplus/expdp etc.)

    Hello

    To inaugurate this forum I was play multitenant/pluggable has 12 c and I have a general question about connections to the database of the container - it is clear from what I've tried so far (and what I've read) there is no way to connect to a database from the container without using a sqlnet connection. For example:

    Export ORACLE_HOME, ORACLE_SID etc.

    sqlplus username/password - it can only connect to the database of the container? (once you are in you can alter the session to switch to the plugable database but cannot do so directly to the connection)

    to connect to a database that is connected is always through sqlnet

    sqlpus username/password@pluggable

    There is no option to say something like:

    export ORACLE_SID = container

    Export ORACLE_CONTAINER = pluggable

    and then do sqlplus username/password?

    additional command line switch or as

    export ORACLE_SID = container

    sqlplus-container = name of user and password pluggable

    This understanding is correct or have I missed something in the documentation?

    Kind regards

    Harry

    http://dbaharrison.blogspot.com


    Hello Richard,.

    In Oracle Multitenant, the only way to connect to a PDB file is by specifying a service.

    However, there's a shortcut you can use - TWO_TASK, you will find described elsewhere.

    This allows you to specify the default service to serve--think of it as being silently added to your specification by name of user and password. I hope this helps.

    Best regards, Patrick

  • Conceptual issue to create the client component

    Hi all

    I think most of you know how to create a component client, who is to inherit certain standard components for his behavior. But when I do this, for example

    public class ToggleButton extends button

    However, the metadata of the button is not in this new ToggleButton that is reasonable. So I copy all these definition, but the new problem is there is some files included in the metadata of the button that makes the problem more complex.

    Can we have an easier way to do this?

    Thank you

    Oh boy I thought that pending issues have been resolved, but they are not going to this link

    https://na2.ConnectNow.Acrobat.com/mabscorp

    And there you will see the file, once you download it import it in FB

  • Creating a connection with Session variables

    Hey everybody! I've never used session variables so I'm not sure how they work, so I have a simple question for their use with a login form!

    I created a small form of login in the top right of my Web page, and what I want to do is when the user connects, the newspaper in the form of skins and is replaced by 'Welcome (username)' and stays that way while browsing the Web site. I think it's simple to do, ive just never used before

    Here is my login information for the code: (note this div tag is inside a table, do not know if it matters)

    <div id="login">
          <form ACTION="<?php echo $loginFormAction; ?>" id="form1" name="form1" method="POST">
            <label for="U_name"></label>
            Username
            <input name="U_name" type="text" id="U_name"/>
            <label for="U_Pass"></label>
            Password
            <input name="U_Pass" type="password" id="U_Pass"/>
            <input type="submit" name="login" id="login2" value="Login" class="loginb"/>
            <a href="register.php">        Register
            </a>
          </form>
        </div>
    

    Try this-

          if (!isset($_SESSION['MM_Username'])) { ?>

        


         

           
            Username
           
           
            Password
           
           
                    Register
           

         

       

    Welcome

  • Impossible to connect with Orchestrator Client

    Hello world

    I use a vCO implementation version 5.5.2.1 unit build 2179237 in my lab. This unit uses the SSO for authentication. When I try to log in with a user of my Active Directory domain, I get the message that the user name or the password are not valid. At the same time, it is registered by the apparatus of vCO:

    SAML token INFO {} [SamlTokenImpl] SubjectNameId [[email protected], format =http://schemas.xmlsoap.org/claims/UPN] analyzed the item successfully

    SAML token INFO {} [SamlTokenImpl] SubjectNameId [[email protected], format =http://schemas.xmlsoap.org/claims/UPN] analyzed the item successfully

    INFO {} [SecurityTokenServiceImpl] acquired a user token: [email protected]

    INFO {} [SecurityTokenServiceImpl$ RequestResponseProcessor] did not try to retrieve the token: ns0:InvalidRequest: unauthorised access!

    {} [VcoFactoryFacade] unable to connect ERROR (Ex: javax.security.auth.login.LoginException: Server SSO error)

    The user account "[email protected]" is a member of the "Lab-vCO-Admins" group, which is configured as a group admin vCO. When I use the same credentials on the page of Test of Configuration Orchestrator login VMware vCenter, authentication is successful. To complete the question let me say clearly, that everything was working until I update the profile for 5.5.1.0 build 1617225 to 5.5.2.1 build 2179237.The vCenter Server appliance is running version 5.5.0 Update 2.

    Thanks in advance.

    Hello Joerg,

    Thanks for your reply. Unfortunately, it wasn't the solution. I was able to resolve the question of you unregister and re-register the Orchestrator with SSO, followed by a restart of the server configuration vCO and vCO Server service. Don't know why I didn't sooner...

    Thanks for your help!

  • Windows XP SP3 with view Client 5.1: unable to connect: discovers the connection connection to the server has failed

    Hi guys,.

    I need help.  I have a problem with my opinion of Client on a Windows XP SP3 computer.  When I click on connect, I get the following message immediately:

    "Failed to connect to the view connection server. Verify that the server connection mode address and network settings are correct. »

    A few details:

    My client's IP address is on the same subnet as the view connection server

    There is no firewall and DNS solves the login server see very well.  Here is the output of my customer's orders

    C:\ > nslookup X.X.X.172

    < resolves very well >

    C:\ > nslookup dd - view.viewdomain.com

    < resolves very well >

    C:\ > nslookup dd-notice

    < resolves very well >

    C:\ > tracert X.X.X.172

    < works great >

    If I open a browser on the XP workstation which is a failure, I can go to https://dd-view.viewdomain.com.  It displays the page that I need to connect with View Client. What do I think, so this should check the connectivity between the two.

    I've seen customer 5.1.0 build-704644 installed on my Windows XP SP3 client computer

    My connection to the server is running 5.1.1 build-799444 and is configured with a pool of offices 25 clone related with SSL active

    LAST IMPORTANT NOTE: I have the same version of the Client view (5.1.0 build-704644) installed on another Windows 7 workstation on the same subnet and it connects to my view connection server office pool very well.

    I tried to install the three versions of the customer view of this system of XP SP3 including the latest version, when the connection after installation, they all fail the same way. My body needs to function. The client machines can not move to something more recent to Windows XP SP3 because I am not the administrator for them.

    Any ideas?  Is this a bug or is Windows XP SP3 just not supported with view 5.1?

    VR,

    Brian Whyte

    Political of McAffee HBSS blocked 443 attempts out of the customer to view.

    The difference is that the Windows 7 machine that worked was becoming another policy HBSS applied to what was not blocking attempts.

  • invoking the client javascript listener

    Hello

    I use ADF Faces 11g.

    I wonder if it is possible to invoke a javascript method Interface control client listener. For example I have an order in connection with a client listener, defined as follows:

    < af:commandLink id = "cl1" text = "click here" partialSubmit = "true" >
    < af:clientListener method = "onClickLink" type = "action" / >
    < / af:commandLink >


    I find the control in javascript, with this method: AdfPage.PAGE.findComponent ("cl1");

    Now, I want to call the method onClickLink (event). How can I do?

    Thank you.

    Hello

    Take advantage of the event to the queue in JS... This can be done in JAVA too...
    var comp = AdfPage.PAGE.findComponent (btnId);
    AdfActionEvent.queue (comp, comp.getPartialSubmit ())

    Kind regards
    Suganth.G

    Published by: celine October 5, 2010 20:13

  • Is anyone successful connection with Cairo SDK? (2D design)

    Hey, guys!

    I create the plugin SDK and OpenGL, but my tasks is low, with 2D graphics. OpenGL is too huge for that.

    In the case where with OpenGL, I can use this scheme:

    1. create the framebuffer object

    2. create the OGL context

    3. set the context of the OGL in rendering macros

    4 draw with OGL

    5 copy the object data framebuffer in the world (with memcpy)

    6 destroy framebuffer and switch to the context of EI


    But in the case where with Cairo, I can't use similar model. Or do not know how to do it right. Because I don't know method as sizeof (GL_RGBA) to make calculations of buffer with memcpy with Cairo.

    How can I create a connection with the kit SDK Adobe and Cairo (cairographics.org)? Or maybe someone has solved similar tasks with connection another graphical library?


    Thank you!

    Hot,

    Mike.

    to the best of my knowledge, you'll need to shoot a buffer of native Cairo,

    and when you're done, convert it by one pixel in a buffer AE.

  • create the database with Oracle Client link

    Hello together,

    on my machine Windows 7 with Oracle Client installed 12.0.1.0, I'm trying to create a database link to a database server, which runs on Oracle Standard Edition1 11.2.0.2.

    When I connect to sqlplus on the client with "sqlplus/nolog" and type the command:

    SQL > create SID of the database link

    connect to the user identified by passwd

    using "tnsnames.ora connection."

    I have a SP2-0640: not connected. OK, it is clear, because I use sqlplus with option/nolog. But client-side normally I have no database, where I can connect. So I think, there is no user, or?

    The database to which I want to connect is located in tnsnames.ora.

    Generally: Is it possible to use the Oracle Client to create a database link? Maybe there's another way to do this?

    A big thank you and best regards,

    David

    You don't seem to understand the concept of a database link.

    A database link connects two databases. Not a client and a database.

    You need to link up in a data source to a target database.

    The only thing you need is a client of sqlplus in sqlplus client, you need to connect to the source database.

    If you can't connect to the source database, you must present the statement to someone.

    Sybrand Bakker

    Senior Oracle DBA

  • I have created a new domain with win2012r2 and created users. Add after the client in my area so that the newspaper with the user I get error below.

    Hello

    I have created a new domain with win2012r2 and created users. Add after the client in my area so that the newspaper with the user I get error below.

    "You cannot connect because the logon method, you use is not allowed on this computer, please, see your ad min for more information network"

    Please help me with that and I don't want to give permission to admin for all users group...

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • Unable to connect with the listening port of the client

    [oracle@rac31 ~] $ lsnrctl status

    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on March 21, 2014 03:33:30

    Copyright (c) 1991, 2009, Oracle.  All rights reserved.

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = LISTENER)))

    STATUS of the LISTENER

    ------------------------

    Alias LISTENER

    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production

    Start date March 20, 2014 13:33:30

    Uptime 0 days 13 hours 59 minutes 59 seconds

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Parameter Listener of the /u01/app/11.2.0/grid/network/admin/listener.ora file

    The listener log file /U01/app/Oracle/diag/tnslsnr/rac31/listener/alert/log.XML

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = LISTENER)))

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=192.168.1.101) (PORT = 1521)))

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=192.168.1.111) (PORT = 1521)))

    Summary of services...

    Service '+ ASM' a 1 instance (s).

    Instance '+ ASM1' READY State, has 1 operation for this service...

    'Cars' service has 1 instance (s).

    Instance "rac1" READY State, has 1 operation for this service...

    Service 'racXDB' has 1 instance (s).

    Instance "rac1" READY State, has 1 operation for this service...

    The command completed successfully

    In my server in the Oracle_HOME/network/admin

    This is my entry in tnsnames.ora

    RAC =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = rac-scan)(PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = rac)

    )

    )

    I am able to connect with the command

    sqlplus system/password@rac

    However, when I give the same input on the client computer

    It does not work

    I am able to ping the host rac-scan successfully

    C:\Users\rgehi > ping rac-scan

    Ping rac - scan.oracle.com [192.168.1.113] with 32 bytes of data:

    Response from 192.168.1.113: bytes = 32 time < 1 ms TTL = 64

    Response from 192.168.1.113: bytes = 32 time < 1 ms TTL = 64

    Response from 192.168.1.113: bytes = 32 time < 1 ms TTL = 64

    Response from 192.168.1.113: bytes = 32 time < 1 ms TTL = 64

    Ping statistics for 192.168.1.113:

    Packets: Sent = 4, received = 4, lost = 0 (0% loss),

    Time approximate round trip in milli-seconds:

    Minimum = 0ms, Maximum = 0ms, average = 0ms

    C:\Users\rgehi > sqlplus system/password@rac

    SQL * more: Production of the version 12.1.0.1.0 Fri Mar 21 03:40:53 2014

    Copyright (c) 1982, 2013, Oracle.  All rights reserved.

    ERROR:

    ORA-12545: Connect failed because target host or object does not exist

    I installed oracle client on my desktop

    and I made entries in the tnsnames file

    However when I connect to the database to rac with scan it works sometimes...

    not always...

    so I'm in search mode and finally, after many moons a lot and light years away, I found the following

    Here's what I did

    # - scan

    192.168.0.127 rac31 - scan.oracle.com rac31-scan

    192.168.0.128 rac31 - scan.oracle.com rac31-scan

    192.168.0.129 rac31 - scan.oracle.com rac31-scan

    I put three ip addresses in the host with the same name rac31-scan file

    then I put the same ip addresses in my windows hosts file

    Here are the entries

    192.168.0.127 rac31 - scan.oracle.comrac31-scan

    192.168.0.128 rac31 - scan.oracle.com rac31-scan

    192.168.0.129 rac31 - scan.oracle.com rac31-scan

    but in the (windows 7 pc) client tnsnames file has just one entry

    It's here

    RAC1 =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = rac31-scan)(PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = RAC)

    )

    )

    and now when I connect from the client... it connects without any problems.

    I have tried more than 10 attempts without problem

    BINGO!

  • Web Client connection with the "Use Windows logon credentials" error

    Hello

    I tried to configure vCenter Server appliance (suse) 5.5.0b.

    I created a user in the console of bash and permissions added to it with access complete the server vcenter (with multiplication), added to the Group administrators and users etc.

    When I manually enter credentials to connect it let me, but when I check the "Session using Windows credentials" box produces an error message:

    «The authentication server has returned an unexpected error: ns0:RequestFailed: IDM threw an unexpected error during authentication: platform Native Error [code: 1213] [] [ERROR_INVALID_SERVICENAME].» The error can be caused by a source of identity with a malfunction. »

    I have the same credentials on my computer as in vcenter (the two without configured AD) [this works with vcenter on windows 2008 server].

    I heard it could be the problem of the lack of reverse dns lookup, but I works perfectly.

    vCenter server and dns server are on the same subnet.

    I know there is already a discussion on this error, but the solution is not sufficient (I use American English characters and as I already said - it works on different vcenter).

    Can anyone help?

    Thanks in advance!

    Here's what I got from support that clarifies the case:

    "Design when we choose 'References using Session Windows' respective user name and password is sent to vCenter using the Kerberos authentication protocol that only works when the Client and server are joined to a common domain.

    The reason why we are getting the error reported in your environment is that key Kerberos for the host of the server vCenter application are missing from the/etc/krb5.keytab file. So, I confirm that we will not be able to make the "Session using Windows credentials" option to work in Client and server only not part of the domain.

    To learn more on Kerberos authentication, see Microsoft Link below.

    http://TechNet.Microsoft.com/en-us/library/cc780469 (v = ws.10) .aspx

    "

Maybe you are looking for

  • I would like my firefox to its original state, as I can in windows. I use a Mac

    I have a search engine, I can't get rid of that. It is called Trovi and it will not uninstall on my Mac. On my windows laptop, I was able to reinstall my Firefox without any search engines or add ons. How can I do this on a Mac?

  • Impossible to download book

    Strange situation: find a book to buy on the ibook store tap on the price AKS me if I want to buy, I confirm request password or fingerprint, that I offer accepts, goes to download (small circle apperas) After a few second circle dissolves and price

  • Capital/number lock lock on-screen display

    Recently bought a Pavilion H8 - 1380t, with the elite wireless keyboard and mouse.  When I hit the lock key no display no indication if it is on or off.  Can someone help me to market?

  • Can't find pallet support Daq

    Hello world! Cannot find pallet assistant Daq. After installation, it has not been revealed. Eventually, there is an additional module or the Toolbox to work with... Thank you for the answers!

  • Sound system disabled

    Realtek disabled want to return to microsoft sound system do not know how?