SQL*Plus Release 9.2.0.1 remote connection to 10g EX

Greetings,
I am trying to access my XE database from a linux machine using SQLplus 9.2.0.1. I do the following:
sqlplus /nolog
sql>connect username/[email protected]:XEERROR:
ORA-06401: NETCMN: invalid driver designator
If I leave out the "XE" I get the following error:
sql>connect username/[email protected]:
ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect
descriptor
There seems to be nothing wrong with my database (tnsping works, etc).
One of the enviromental variables in linux is "ORACLE_SID=CLASS1"
I might have a syntax error in the connect function.
Thanks in advance to whoever can help me. I viciously search the forum before posting this and could not get it to work.
Andrey.

Andrey,
Is there a reason why you are using a colon between the <hostname>.<domain> and XE? If you use a period instead of a colon and define the default domain in the sqlnet.ora file as follows:
NAMES.DEFAULT_DOMAIN = <hostname>.<domain>.XE
You should be able to use a similar TNS alias but the colon will trigger an error. If you define your TNS alias as <hostname><domain>:XE and do not define the default domain in the sqlnet.ora file, then you should be able to connect from the command-line but not from within the SQL*Plus environment. For example, using this tnsnames.ora entry:
hostname.domain:XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = hostname.domain)(PORT = 1521))
(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = XE)))
You can connect running this at the command line:
[oracle@s1 admin]$ sqlplus plsql/[email protected]:XE
SQL*Plus: Release 10.1.0.2.0 - Production on Mon Nov 14 18:22:54 2005
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Beta
SQL>
However, you will get the following running:
[oracle@s1 admin]$ sqlplus /nolog
SQL*Plus: Release 10.1.0.2.0 - Production on Mon Nov 14 18:21:42 2005
Copyright (c) 1982, 2004, Oracle. All rights reserved.
SQL> conn plsql/[email protected]:XE
ERROR:
ORA-12545: Connect failed because target host or object does not exist
Since the error will not occur if you define a default domain, it appears that changing the colon to a period may be your best solution.

Similar Messages

  • SQL*Plus: Release 10.1.0.4.0 startup behaviour (glogin and login)

    Hi,
    I'm working in a unix environment where I have a lot of sql scripts to run using different DB users but only one OS user.
    I notice that in this version of SQL*Plus something was change regarding glogin and login scripts: they are executed also after a successful connect. There is no warning in the documentation to NOT use CONNECT in these scripts.
    What happens is recurrent execution of the same login script if there is a CONNECT command in it up to 20 time (the limit of recurrence in SQL*Plus). The only workaround I found is to put SET SQLPLUSCOMPATIBILITY to a prior version in the same login file before the CONNECT command.
    Has anyone a better idea ?
    Thank you.

    There is no warning in the documentation to NOT use CONNECT in these scripts.the change is documented
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12015.htm
    When you run a CONNECT command, the site profile, glogin.sql, and the user profile, login.sql, are executed.
    I understand your problem. The best would be to use a valid login and glogin script. I do not recommend big modification in glogin.
    Some tools, like OEMGC, particulary hates aggressive staff in glogin.sql, for example ALTER SESSION, etc...
    It is not recommended to do a "SET TERMOUT OFF" or a "WHENEVER SQLERROR CONTINUE" or any DML/DDL in your glogin, because it will irreversibily affect some scripts.
    The best I can rate you : remove your fancy staff from glogin.sql. If it is about the sql prompt, use 10g feature, like
    set SQLP _USER@""_CONNECT_IDENTIFIER>much better than selecting from global name!!!
    HTH
    Laurent

  • Can I use SQL *Plus 11.1.0.7.0 to connect Oracle Express 10g

    Hi guys:
    I download "Oracle 11g ODAC *11.1.0.7.20* with Oracle Developer Tools for Visual Studio", trying to use SQL *plus to see if configuration is alright.
    But after entering account/pwd, I got a error:
    ORA-12560: TNS:protocol adapter error
    What is wrong with my environment?
    Thanks,
    Ricky

    user12086319 wrote:
    Hi EdStevens,
    Following the instructions in previous post, I can connect with SQL plus (the database is on the same box* as your sqlplus client); I just enter sqlplus in windows console.
    In addition, i am still curious about how SQL plus connect to a remote* box. Could you shed more light on that?SQLPlus connects to a remote db the same way any other app does. After all, sqlplus is just another client app.
    It's all in the connect string. So say, at a command prompt you enter
    $> sqlplus scott/tiger@mydbso in the above example, 'scott' is the user, 'tiger' is the password, and 'mydb' is the tns service name. Of course, the OS passes all that to sqlplus as a command line parameter. Internally, sqlplus makes a call to the tns layer and passes it the connect information it has. TNS will take a look at the tnsnames.ora file and find an entry for 'mydb', and from there it will get the name or ip address of the host server, a port number, and a service name. That information will be passed on down the network stack for routing. (If a name was provided instead of an ip address, the OS network stack will use whatever means are at its disposal - a hosts file, a dns lookup, or whatever, to get an ip address). The request will arrive at the specified host and placed on the specified port. If everything was configured correctly, there will be an oracle listener process monitoring that port. It will pick up the request and see if it recognizes the service name. If it does, it will spawn a user server process on a different port to complete the connection, then get out of the way and continue listening for more requests.
    This is how it happens most of the time. There are a lot of other variants, but that's the gist of it.
    More information can be found in the fine documentation at tahiti.oracle.com.

  • SQL Server Express 2008 no longer accepting remote connections

    Last night our SQL Server Express 2008 (running on Windows 2003 server) stopped accepting remote connections. 
    1. We restarted the SQL Server -- no resolution.
    2. We rebooted the host Windows 2003 server - no resolution.
    3. telnet localhost 1433: says Could not open connection to the host on port 1433... connection failed.
    4. netstat -an indicates that the server is not listening on port 1433
    5. SQL Server Network Configuration -> Protocols for SQLEXPRESS2008A -> (properties) -> TCP-IP (enabled), Listen All (yes)
    6. SQL Native Client 10.0 Configuration -> Client Protocols -> (properties) TCP-IP (enabled), Default port (1433)
    Fragment from the server error log:
    2014-03-26 08:50:41.09 Server      A self-generated certificate was successfully loaded for encryption.
    2014-03-26 08:50:41.11 Server      Server is listening on [ 'any' <ipv4> 1026].
    2014-03-26 08:50:41.11 Server      Server local connection provider is ready to accept connection on [ \\.\pipe\SQLLocal\SQLEXPRESS2008A ].
    2014-03-26 08:50:41.11 Server      Server named pipe provider is ready to accept connection on [ \\.\pipe\MSSQL$SQLEXPRESS2008A\sql\query ].
    2014-03-26 08:50:41.11 Server      Dedicated administrator connection support was not started because it is disabled on this edition of SQL Server. If you want to use a dedicated administrator connection, restart SQL Server using the
    trace flag 7806. This is an informational message only. No user action is required.
    2014-03-26 08:50:41.11 Server      The SQL Server Network Interface library could not register the Service Principal Name (SPN) for the SQL Server service. Error: 0x54b, state: 3. Failure to register an SPN may cause integrated authentication
    to fall back to NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies.
    2014-03-26 08:50:41.11 Server      SQL Server is now ready for client connections. This is an informational message; no user action is required.
    2014-03-26 08:50:41.29 spid10s     Clearing tempdb database.
    2014-03-26 08:50:41.89 spid10s     Starting up database 'tempdb'.
    2014-03-26 08:50:42.09 spid13s     The Service Broker protocol transport is disabled or not configured.
    2014-03-26 08:50:42.09 spid13s     The Database Mirroring protocol transport is disabled or not configured.
    2014-03-26 08:50:42.14 spid13s     Service Broker manager has started.
    2014-03-26 08:50:42.14 spid7s      Recovery is complete. This is an informational message only. No user action is required.
    2014-03-26 08:50:53.48 spid51      Attempting to load library 'xpstar.dll' into memory. This is an informational message only. No user action is required.
    2014-03-26 08:50:53.48 spid51      Using 'xpstar.dll' version '2007.100.1600' to execute extended stored procedure 'xp_enumerrorlogs'. This is an informational message only; no user action is required.
    2014-03-26 08:51:35.68 spid54      Starting up database 'Web TimeSheet2'.
    2014-03-26 08:51:38.47 spid54      Recovery is writing a checkpoint in database 'Web TimeSheet2' (6). This is an informational message only. No user action is required.
    Note: the lines referring to xpstar.dll is new after this porblem.  Previous logs do not have this,Any help will be appreciated.

    Hi,
    >>Server is listening on [ 'any' <ipv4> 1026].
    Your sql server is not listening on default port 1433 but on 1026.When you connect to instance like hostname\instancename you should specify post no also.
    like hostname\instancename ,1026
    Can you try this.Makes sure TCP/IP and named pipes protocol is enabled
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Remote connect to 10G database

    Dear,
    Hwo can i remote connect 10g database use sqlplus? for example I have a server Ip address is 123.123.0.1 with database name fin. What should i type on host string on remote sqlplus client?
    Rg

    Assuming you're using TCP/IP protocol and your Client is 10g, you could try using easy connect naming method :
    sqlplus <username>/<password>@<host name or IP address>:<port number>/<SID>
    for example
    sqlplus scott/[email protected]:1521/fin
    See http://download-uk.oracle.com/docs/cd/B19306_01/network.102/b14212/naming.htm#ABC524382SRI12

  • SQL*plus not displaying the result of XMLELEMENT

    HI,
    I am using SQL*Plus: Release 10.1.0.4.2
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    When I run the following query in SQL*PLUS, I get nothing displayed. However when I run the same query connecting to the same database using SQL Developer then I get the result
    SQL> select XMLELEMENT("form_id",form_id)
    2 FROM collections;
    XMLELEMENT("FORM_ID",FORM_ID)
    In SQL developer
    <form_id>101</form_id>
    I set long and longchuncksize to 32K , and I change linesize, pages, but nothing helped
    Is there any configuration that I have to do, so that SQL*plus display the result of “ select XMLELEMENT("form_id",form_id) query.
    Appreciate you help, thanks

    From a fresh start ;) :
    SQL*Plus: Release 10.1.0.4.2 - Production on Fri Feb 26 15:29:04 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select xmlelement("value", a.object_name )
      2  from   all_objects a
      3  where  rownum <= 5;
    XMLELEMENT("VALUE",A.OBJECT_NAME)
    SQL> select xmlelement("value", (select b.object_name
      2                              from   all_objects b
      3                              where b.object_name = a.object_name
      4                              )
      5                   )
      6  from   all_objects a
      7  where  rownum <= 5;
    XMLELEMENT("VALUE",(SELECTB.OBJECT_NAMEFROMALL_OBJECTSBWHEREB.OBJECT_NAME=A.OBJE
    <value>ICOL$</value>
    <value>I_USER1</value>
    <value>CON$</value>
    <value>UNDO$</value>
    <value>C_COBJ#</value>
    SQL> show all
    appinfo is OFF and set to "SQL*Plus"
    arraysize 15
    autocommit OFF
    autoprint OFF
    autorecovery OFF
    autotrace OFF
    blockterminator "." (hex 2e)
    btitle OFF and is the first few characters of the next SELECT statement
    cmdsep OFF
    colsep " "
    compatibility version NATIVE
    concat "." (hex 2e)
    copycommit 0
    COPYTYPECHECK is ON
    define "&" (hex 26)
    describe DEPTH 1 LINENUM OFF INDENT ON
    echo OFF
    editfile "afiedt.buf"
    embedded OFF
    escape OFF
    FEEDBACK ON for 6 or more rows
    flagger OFF
    flush ON
    heading ON
    headsep "|" (hex 7c)
    instance "local"
    linesize 80
    lno 9
    loboffset 1
    logsource ""
    long 80
    longchunksize 80
    markup HTML OFF HEAD "<style type='text/css'> body {font:10pt Arial,Helvetica,sans-serif; color:blac
    newpage 1
    null ""
    numformat ""
    numwidth 10
    pagesize 14
    PAUSE is OFF
    pno 1
    recsep WRAP
    recsepchar " " (hex 20)
    release 1002000300
    repfooter OFF and is NULL
    repheader OFF and is NULL
    serveroutput OFF
    shiftinout INVISIBLE
    showmode OFF
    spool OFF
    sqlblanklines OFF
    sqlcase MIXED
    sqlcode 0
    sqlcontinue "> "
    sqlnumber ON
    sqlpluscompatibility 10.1.0
    sqlprefix "#" (hex 23)
    sqlprompt "SQL> "
    sqlterminator ";" (hex 3b)
    suffix "sql"
    tab ON
    termout ON
    timing OFF
    trimout ON
    trimspool OFF
    ttitle OFF and is the first few characters of the next SELECT statement
    underline "-" (hex 2d)
    USER is "HR"
    verify ON
    wrap : lines will be wrapped
    SQL>
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • SQL*Plus sysdba remote connection

    Hello all,
    I'm attempting to connect to a remote database via splplus as the sys as sysdba user and am unable to do so. However, I am able to connect as a non-sysdba user. When I attempt to connect as sysdba, I receive no error but only the sqlplus Usage message. Here is some initial information:
    Client
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    U:\>sqlplus regular_user/password@mySID
    SQL*Plus: Release 9.2.0.1.0 - Production on Thu Jul 2 10:05:29 2009
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    U:\>sqlplus sys/password@mySID as sysdba
    Usage: SQLPLUS [ [<option>] [<logon>] [<start>] ]
    where <option> ::= -H | -V | [ [-L] [-M <o>] [-R <n>] [-S] ]
          <logon>  ::= <username>[/<password>][@<connect_string>] | / | /NOLOG
          <start>  ::= @<URI>|<filename>[.<ext>] [<parameter> ...]
            "-H" displays the SQL*Plus version banner and usage syntax
            "-V" displays the SQL*Plus version banner
            "-L" attempts log on just once
            "-M <o>" uses HTML markup options <o>
            "-R <n>" uses restricted mode <n>
            "-S" uses silent modeServer
    Microsoft Windows [Version 5.2.3790]
    (C) Copyright 1985-2003 Microsoft Corp.
    U:\>sqlplus sys/password@mySID as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jul 2 10:21:01 2009
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL>Based upon what I read here: I've found that the server has a PWDmySID.ora file in %ORACLE_HOME%\database. I've updated the %ORACLE_HOME%\database\initmySID.ora file to include the REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE line and have restarted the database.
    Any thoughts? Apparently I'm making some sort of syntax error logging in but I don't know what it is? :) Thanks.
    Edited by: nmd on Jul 2, 2009 9:43 AM

    HI,
    can you please try it like first entrying into the sqlplus and then enter the username and password..
    Also it should be sqlplus "sys/password as sysdba"
    Regards

  • Making connection to Oracle 9i via SQL Plus - Mark

    Hi,
    I am unable to connect to oracle 9i via dos prompt or SQL Plus.
    I installed the satabase on windows.
    The SID is obiwan. Please help, already browsed similar topics and its not happening.
    Thanks in advance.

    The Listener is the process that is listening for incoming remote connections to the DB(s).
    Database and Listener have Windows services, and services have to be started. Also, from DOS prompt you can do :
    C:\> lsnrctl stat
    to see if the Listener is active : the result should be the list of active DB(s).
    To connect locally to the DB do the following :
    C:\> set ORACLE_SID=obiwan
    C:\> sqlplus "/ as sysdba"
    The result should be something like SQL*Plus: Release 9.2.0.4.0 - Production on Dom Apr 10 16:58:32 2005
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.4.0 - Production
    SQL>If the result is something like : SQL*Plus: Release 9.2.0.4.0 - Production on Dom Apr 10 17:01:29 2005
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to an idle instance.
    SQL>                                                                          then it means that the DB is not up. In this case try :
    SQL> startup
    That way you are connected as sysdba, you can startup and shutdown the DB, create users, and so on. Do not use this connection to create objects (tables, indexes and so on) :
    create an user, using the command "create user" (See [url http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/toc.htm]Sql documentation), and connect as that user, for example
    SQL> conn scott/tiger
    or, at DOS prompt
    C:\> sqlplus scott/tiger
    If you create a TNS alias, as I said before, you can use that as connection string from DOS prompt
    C:\> sqlplus scott/tiger@<TNS alias>
    or using SqlPlus in the Oracle menu.

  • Checking Module to Prevent SQL Plus usage on Database

    I have a question regarding logon triggers checking against SYS_CONTEXT('USERENV', 'MODULE'). I created a logon trigger that looks for SYS_CONTEXT('USERENV', 'MODULE') = 'SQLPLUS.EXE'
    and if it matches then it only allows specified users to log in to the database. This code works but I am confused as to why when I check SYS_CONTEXT('USERENV', 'MODULE') after I login in
    shows SQL*Plus which clearly does not match my IF statement in my logon trigger.
    Second issue. If I rename sqlplus.exe to jeff.exe and run it I am abled to log in to the database as a non DBA user. But the module still shows as SQL*Plus. Why is this?
    Database Version: 11.2.0.2 64bit
    OS: Windows Server 2003 R2
    Client: 11.2.0.1
    /*********************Create Trigger******************************/
    CREATE OR REPLACE TRIGGER application_check_al
      after logon ON database 
    DECLARE
      l_username VARCHAR2(20);
      l_module   VARCHAR2(20);
    BEGIN
      l_username := SYS_CONTEXT('USERENV', 'SESSION_USER');
      l_module   := UPPER(SYS_CONTEXT('USERENV', 'MODULE'));
      IF l_module LIKE 'SQLPLUS.EXE' AND
         l_username NOT IN ('SYS', 'SYSTEM', 'DVOWNER', 'DVMGR') THEN
        raise_application_error(-20001, 'SQLPLUS ACCESS RESTRICTED FOR NON DBA USERS');
      END IF;
    END application_check_al;
    /*********************Run SQLPLUS******************************/
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Mar 7 12:22:23 2012
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Enter user-name: jeffc@dev
    Enter password:
    ERROR:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-20001: SQLPLUS ACCESS RESTRICTED FOR NON DBA USERS
    ORA-06512: at line 10
    Enter user-name: system@dev
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining, Oracle Database Vault
    and Real Application Testing options
    system@dev> select sys_context('USERENV','MODULE') from dual;
    SYS_CONTEXT('USERENV','MODULE')
    SQL*Plus
    SQL>

    jeff81 wrote:
    That doesn't make sense. Why am I able to log in when I renamed the exe? And why does the module still show as SQL*Plus?You are right - it does not make sense. The idea that Oracle might perhaps set module to SQLPLUS.EXE on executable start, and then re set from SQLPLUS.EXE to SQL*Plus after connect, or in glogin.sql, to ensure it is consistent across all operating system never crossed my mind.
    You might want to refer to Support Note "SQL*Plus Session/Module is Not Showing in V$SESSION" [ID 1312340.1] to see whether anything in there helps. I'm pretty sure http://docs.oracle.com/cd/E11882_01/server.112/e16604/ch_twelve040.htm#i2698573 doesn't help much, though.
    I'd certainly be raising it with Support as a potential security challenge, to get that potential hole closed.
    Edited by: Hans Forbrich on Mar 7, 2012 2:23 PM
    I wonder whether Oracle put that capability in there - if an untained SQLPLUS.EXE, it tells you that it is SQLPLUS.EXE, but if renamed it tells you 'SQL*Plus'? Specuklation, but it is one thing I might do to subtly raise the flag. Best bet - ask Support.
    Edited by: Hans Forbrich on Mar 7, 2012 2:29 PM

  • Oracle10g Developer Suite - Application Development - SQL Plus Login Info

    I have installed Oracle10g Developer Suite and when I am trying to login into the sql*plus environment the username scott with the passcode tiger is not working. I have Oracle9i Enterprise Edition Release 9.2.0.1.0 as the database.
    Can anyone help me in setting up the username and password to login into Sql*plus Release 10.1.0.4.2

    It sounds like you may be new to Oracle and its products. I would recommend doing some reading.
    Oracle 9.2 Net Services Admin Guide
    http://download-west.oracle.com/docs/cd/B10501_01/network.920/a96580/toc.htm
    Oracle Developer Suite Installation Guide
    http://download-west.oracle.com/docs/cd/B25016_06/doc/dl/core/B16012_03/toc.htm
    You create the "login" information when you install the database. If you are not the person who performed the installation, you will need to contact them or install it again. Also, be aware that the SCOTT schema is disabled by default in newer database versions for security reasons.
    The tnsnames.ora and sqlnet.ora files can be found in the ORACLE_HOME\network\admin directory. This is the same for all Oracle products that use Sql-Net for database connections. You can also use the TNS_ADMIN environment variable to point to a pre-existing tnsnames.ora file (see previously mentioned documents).
    The tnsnames.ora entry will be unique to your database and its listener however here is an example:
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = someServer.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = orcl)
    )

  • SQL*PLUS 32 Bit Client needed for Windows 64 Bit

    Hi,
    I have got a 64 Bit Windows OS and an Oracle 11.
    With 32 Bit Applications ( Crystal Reports) I can not run SQL NET Thick, SQL NET Thin and JDBC.
    Oracle 32 Bit Installation is Missing.
    Oracles "Instant Client Downloads for Microsoft Windows (32-bit)" will not do it.
    http://www.oracle.com/technetwork/topics/winsoft-085727.html
    What else to use ?
    Thank You
    Martin Sautter

    Martin.Sautter wrote:
    Hi,
    i used:
    instantclient-basic-nt-11.2.0.2.0.zip (32BitClient)
    instantclient-sqlplus-nt-11.2.0.2.0.zip.
    I did not find an "old", "classic" SQL*PLUs client.What does that mean exactly, classic client?
    Did you unzip the ic sqlplus .zip (the one listed) in the same dir as ic basic?
    After dezipping waht than ?
    No installer, nothing ...That's the beauty of Instant Client, just unzip or move a few files, set PATH if needed, and you have client libraries all "installed" and ready.
    >
    You can give advice ?Generally, required lib files are (n Windows) oci.dll, oraociicusN.dll or oraocieiN.dll (N= e.g. 11). Then for Sql*plus add orasqlplusicN.dll and the .exe from ic-sqlplus package.
    C:\Users\Test\Ora-IClite>dir
    Volume in drive C is OS
    Volume Serial Number is 6E8F-186A
    Directory of C:\Users\Test\Ora-IClite
    2011-12-16  09:30    <DIR>          .
    2011-12-16  09:30    <DIR>          ..
    2011-08-31  11:39                38 ldap.ora
    2011-07-30  12:21           683 008 oci.dll
    2011-07-30  12:21        44 153 856 oraociicus11.dll
    2011-07-30  12:21         1 501 696 Orasqlplusic11.dll
    2011-07-30  12:21           869 376 sqlplus.exe
    C:\Users\Test\Ora-IClite>.\sqlplus user@'localhost/xe'
    SQL*Plus: Release 11.2.0.2.0 Production on Fri Dec 16 09:34:13 2011
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Enter password:Edited by: orafad on Dec 16, 2011 9:35 AM

  • How to get the SQL file name in SQL*plus

    hi all,
         I have created two sql file at C drive as "c:\Createtable.sql" and "c:\Deletetable.sql"
    afterwards i open
    C:\>sqlplus
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jan 30 11:37:10 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Enter user-name: scott/tiger
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> @C:\Createtable.sql'
    Table created.
    SQL> @'C:\Deletetable.sql'
    Table dropped.
    SQL>My problem is to get the name of the file as "c:\createtable.sql" and "C:\Deletetable.sql" in sql*plus enviornment.
    Thanks & Regards
    Singh

    Dear Damorgan,
         >>your version number to three decimal places
         My Oracle DB Version i have already stated in my previous post is 10.2.0.1.0
    Actually my problem is to get the sql files name we run in sqlplus enviornment with @ symbol. like
    i have created one sql file in c drive as
    "C:\Createtable.sql"
    afterwords i have connected to sqlplus as
    sql> conn scott/tiger
    sql>@c:\createtable.sql
    Now i want some query to get the name of the file which is run.
    In actual my problem is as
    i have suppose 10 or more SQL files in some folder ( sql1.sql, sql2.sql, sql3.sql ....).
    i created one file to call all the 10 sql files (main.sql)
    i have also one track_table which will keep track that which sql file is runned.
    I want some automated script which will insert the record in that track_table....... for that i need the name of sql file which is runned.
    Hope this will help you.
    Thanks & Regards
    Singh

  • SQL PLUS acitvity in process flow

    I looked at other threads and did exactly the same but I am getting a error. Any ideas.
    I created a variable as counter.
    In sqlplus activity Paramter List I did not do anything. for result code I did the binding as counter which is my variable.In script I put in the below code.
    VARIABLE COUNTER_PPAL NUMBER;
    DECLARE
    BEGIN
    SELECT COUNT(*) INTO :COUNTER_PPAL FROM TEMP_TABLE
    END;
    EXIT :COUNTER_PPAL
    The error I am getting is
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Jan 25 08:30:15 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    Session altered.
    END;
    ERROR at line 4:
    ORA-06550: line 4, column 4:
    PLS-00103: Encountered the symbol "end-of-file" when expecting one of the
    following:
    begin case declare end exception exit for goto if loop mod
    null pragma raise return select update while with
    <an identifier> <a double-quoted delimited-identifier>
    <a bind variable> << close current delete fetch lock insert
    open rollback savepoint set sql execute commit forall merge
    pipe
    SP2-0670: Internal number conversion failed
    Usage: { EXIT | QUIT }     [ SUCCESS | FAILURE | WARNING | n |
    <variable> | :<bindvariable> ] [ COMMIT | ROLLBACK ]
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options

    I was missign a semi colon after my select statement.

  • Error when connecting to SQL*PLUS via ODBC to Excel

    OS: Windows 2000 Professional
    Oracle DB: 9i release 2
    SQL*Plus: Release 9.2.0.1.0
    MS Excel: 2000
    ===================
    When I try to connect to SQL*PLUS via ODBC to Excel with "connect scott/tiger@odbc:libro" I get the following error:
    ORA-03121: no interface driver connected - function not performed

    SQL Server objects are commonly case sensitive, so please surround the column and table names by double quotes:
    SELECT "Type_PK_ID" FROM "dbo"."boundaries"@sqlserver
    SIDE NOTE: Oracle is by default not case sensitive and all object names are stored in upper case. To get case sensitive objects they need to be surrounded by double quotes. In HSODBC case sensitive table names were commonly found even when not surrounded by double quotes as the gateway used internal SQL Server methods to find the correct table nameing - this method does not work for column names. So to be able to query a case sensitive column it needs to be surrounded by double quotes and the table name must be written as stored in the source database.

  • Oracle SQL*PLUS has encountered a problem and needs to close

    When I have done like below,
    C:\Documents and Settings\himanshu.chaudhari>sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jul 14 07:38:22 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> conn sys@dev as sysdba
    Enter password:
    Connected.
    SQL> spool e:/spool/test.log
    SQL> @e:/spool/ms_script.sql
    Got error like ,
    Oracle SQL*PLUS has encountered a problem and needs to close. We are sorry for the inconvenience.
    AppName: sqlplus.exe     AppVer: 0.0.0.0     ModName: oranls10.dll
    ModVer: 10.2.0.1     Offset: 0005d6ff
    I am using,
    Operating System: Microsoft Windows XP Professional Version 2002 Service Pack 3,
    Have two different oracle client on same drive
    1) 10.2.0.1.0
    2) 8.1.7.4.0
    I have tried,
    Run selecthome.bat from BIN but got same error,
    Run sqlpus.exe from particular home then also got same error..
    So , Please anyone can have some idea regarding the same ?

    Is there any other error in error.log file?
    What do you run in that (ms_script) script?
    Have you used both sqlplus?
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

Maybe you are looking for

  • Help with labsheet

    hello everyone, i am a java student and got stuck on a question. can someone help me UNDERSTANDING and SOLVING the question. your help will be greatly appreciated. NO STUPID ANWSWER please Question 1 Applying the object-oriented concepts of encapsula

  • Problems working with files on Win2k SP4 server

    I installed 10.5 to test it before rolling it out to our designers. As part of my normal routine, I organized DVD sized folders of job files to copy from the server and burn of to disc for archiving. I am connected to the server via SMB. In this proc

  • Can't Sync the ai & id workspace in between 2 Macs

    Hi, As the subject, I had tried to follow adobe website to clear all the application setting in my account and sync again in my office. Unfortunately it still doesn't work to share the workspace out of office. Thanks, TMW117

  • How do I restore previous version?

    I have, unfortunately, uograded to the latest version. I should have learnt from before that you give no indication as to what plug-ins no longer work until it is too late. I MUST go back to last working version that supports Roboform. Please tell me

  • K7N2G driver installation issue

    I just bought a K7N2G, and fitted an Athlon XP2000. Everything works fine until I try to install the drivers, at which point the whole system hangs with a black screen. After trying each driver component individually, everything installs except the v