Sql Plus linux problems

Hi
I just completed installing oracle 10g R2 on
RHEL 3.
When I tryed to login as sydba by
sqlplus " /as sysdba"
I get an invalid option error.
However,
sqlplus /nolog
SQL>connect /as sysdba
worked fine ?

Put a space after the slash
sqlplus "/ as sysdba"

Similar Messages

  • OC4J and SQL Plus: ORACLE_HOME problem

    I installed (unzip) latest version of OC4J standalone. OS is Windows XP professional. After unziping I put enviroment varibles ORACLE_HOME and JAVA_HOME and started ocj4 -start. It works OK. But I cannot run SQL Plus anymore (because it has different ORACLE_HOME) . What should I do to run both: SQL Plus and OC4J (which are installed on the same computer)?
    Message was edited by:
    user529386

    Hi All
    Correct. Oracle application server wants to point ORACLE_HOME variable to its home directory and to smooth functionality of Oracle DB it also need same environment variable (ex sqlplus, sqlldr).
    Try this, this may work.
    1) Do not set ORACLE_HOME environment variable in profiles. (In UNIX systems do not set ORACLE_HOME in .profiles files and windows system does not set it using -> System Properties (Right Click My Computer -> proprieties) -> Advanced -> Environment variables). If it is already set please unset that.
    2) Open cmd and check ORACLE_HOME is set or not (in windows u can use echo %ORACLE_HOME% and Unix/Linux u can use echo $ORACLE_HOME). If it is set please unset ORALCE_HOME environment variable.
    3) To start application server open cmd, follow step 2 and set ORALCE_HOME home to oracle application server home and then u can run the command to start oracle application server. If u want to use script to start app server what u have to do is u can set ORALCE_HOME environment variable inside script and point it to app server home.
    4) If u want to run the Oracle DB utilities please open the another cmd , follow the step 2 and set ORACLE_HOME environment variable to Oracle DB home. And then execute DB utilities commands.
    Note: - What we have to do is simply point to correct oracle home to before execute commands
    Thanks
    Asanka Priyanjith

  • Official link to download sql*plus (linux)  for 10g  database

    Good Morning to all ;
    Can anyone provide official link to download sql*plus for 10g database ?
    I am using Virtual machine version 7. I want to configure SQL*Plus utility in my virtual machine ..
    Please provide any official link or torrent link. It's for our learning purpose.
    Thanks in advance ..
    OS : REDHAT5, OEL 5
    VMWARE : Version 7
    Product : 10g R2

    Hello ;
    I can't be enable SQL* Plus in my VMWARE.
    *$ unzip instantclient-sqlplus-linuxppc32-10.2.0.1-20051121.zip*
    Archive: instantclient-sqlplus-linuxppc32-10.2.0.1-20051121.zip
    inflating: instantclient_10_2/glogin.sql
    inflating: instantclient_10_2/libsqlplus.so
    inflating: instantclient_10_2/libsqlplusic.so
    inflating: instantclient_10_2/sqlplus
    *[oracle@rhel5 SHARE]$ cd instantclient_10_2/*
    [oracle@rhel5 instantclient_10_2]$ ls -l
    total 1135
    -r-xr-xr-x 1 root root 1525 Nov 12 2005 glogin.sql
    -rwxrwxrwx 1 root root 1445591 Nov 12 2005 libsqlplusic.so
    -rwxrwxrwx 1 root root 857299 Nov 12 2005 libsqlplus.so
    -rwxrwxrwx 1 root root 18391 Nov 12 2005 sqlplus
    *./sqlplus*
    bash: ./sqlplus: cannot execute binary file
    Please provide me the steps to continue ..

  • SQL*Plus login problems

    Hi. I am just reading through my PL/SQL 101 book and exam guide for preparation for the 1Z0-007 exam. I have downloaded Oracle 9i and I cannot login to SQL+ at all. I want to use my database as a stand alone system for the time being until I can network my other computer with my new one.
    All I want is to get into SQL+ so that I can practice pl/sql code for the exam.
    Can anyone help me? What steps should I do?
    thank you, comments and solutions are greatly appreciated.
    Karin

    If you are connecting a local default database (which you may be if I make a guess at your configuration), you don't need to enter anything in the host string field. Just enter the username and password.
    If you are connecting to a remote database, or non-default database, you need to enter a connect string in the host strint field. To find your connect string, look in your tnsnames.ora file (in the network/admin directory) and you will see an entry for the default database you created. Use the value set for SERVICE_NAME.
    Alison
    iSQL*Plus Team

  • SQL*Plus Installation Problem (Ora-12705)

    Hi,
    I bought a guide to sql featuring Oracle by phillip J.Pratt published by course Technology include Oracale8i Personal Edition realease 8.1.5 for Microsoft Window 98 and Oracle Developer 6.0. I follow the documentation to install. I think i got right configuration (i have the tnslsnr window display and Oracle8i database started) but when I login (user:system and password:manager)it doen't work and it give me the error Ora-12705: invalid or unknow NLS parameter value specified. What can i do with this? I appreciate for yours help.
    ~linh
    null

    I got this error message too when I install the 9i client in my pc. You can find the NLS_LANG in the registry under \\HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE. If you have multiple oracle home, you might need to check each of the entry.
    I found that the value for NLS_LANG is NA and I changed it to
    9i: AMERICAN_AMERICA.WE8MSWIN1252
    oracle form 6i : AMERICAN_AMERICA.WE8ISO8859P1
    This fixed my sqlplus problem, and I hope it helps.

  • SQL*Plus Install Problem (Ora-12705?- - -)

    Hi,
    I bought a guide to sql featuring Oracle by phillip J.Pratt published by course Technology include Oracale8i Personal Edition realease 8.1.5 for Microsoft Window 98 and Oracle Developer 6.0. I follow the documentation to install. I think i got right configuration (i have the tnslsnr window display and Oracle8i database started) but when I login it doen't work and it give me the error Ora-12705: invalid or unknow NLS parameter value specified. What can i do with this? I appreciate for yours help.
    ~linh
    null

    I got this error message too when I install the 9i client in my pc. You can find the NLS_LANG in the registry under \\HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE. If you have multiple oracle home, you might need to check each of the entry.
    I found that the value for NLS_LANG is NA and I changed it to
    9i: AMERICAN_AMERICA.WE8MSWIN1252
    oracle form 6i : AMERICAN_AMERICA.WE8ISO8859P1
    This fixed my sqlplus problem, and I hope it helps.

  • Maximum length of SQL*Plus Command?

    I'm typing a long query into SQL*Plus (Linux, version 9.2.0.1... yes, I know it's ancient).
    If I run this query, all works fine:
    select 'update myauditing_table set test_details='''||grantee||''' where myaudit_refno=''A.FE'';' from (select case when upper(value) in ('DBO','TRUE')  then (select agg_concat(grantee) from dba_tab_privs where table_name='AUD$')
    else (select 'AUDIT_TRAIL is set to: '||value from dual) end as grantee from v$parameter where upper(name)='AUDIT_TRAIL' order by grantee);
    'UPDATEMYAUDITING_TABLESETTEST_DETAILS='''||GRANTEE||'''WHEREMYAUDIT_REFNO=''A.F
    update myauditing_table set test_details='AUDIT_TRAIL is set to: DB' where myaud
    it_refno='A.FE';(In other words, is SQL that generates other SQL: if AUDIT_TRAIL is set to something interesting, tell me who has access to the AUD$ table. And it's working fine... the agg_concat function mentioned is simply Tom Kyte's stragg function under another name, as lifted word-for-word from http://www.sqlsnippets.com/en/topic-11591.html)
    Now this is what happens if I take out the linebreak after the mention of AUD$, so that the command is submitted as one single line of code:
    SQL> select 'update myauditing_table set test_details='''||grantee||''' where myaudit_refno=''A.FE'';' from (select case when upper(value) in ('DBO','TRUE')  then (select agg_concat(grantee) from dba_tab_privs where table_name='AUD$') else (select 'AUDIT_TRAIL is set to: '||value from dual) end as grantee from v$parameter where upper(name)='AUDIT_TRAIL' order by grantee);
    SP2-0734: unknown command beginning "s set to: ..." - rest of line ignored.The error message indicates that the text has been 'split' at the 'AUDIT_TRAIL is set to...' bit, so that "s set to" is being treated as a new command, which is of course syntactically invalid. There is definitely no other change in text between the two versions, apart from the removal of a carriage return before the "else" statement.
    Possibly a coincidence, but the first "s" in "s set to" appears at position 258 in the entire text... close to a possible 255 or 256 character limit, perhaps?
    The same problem happens whether I run the command as a script (@mysql.sql) or typed in directly into a client SQL*Plus session. Is there some inherent limit to the length of commands that SQL*Plus can process in this version? My code runs fine on 10g and 11g databases/clients, whether it's on one line or two. Anyone know of a bug in 9i regarding this? And if there's a workaround (other than the obvious one of upgrading, of course!)

    As mentioned, it's choking at the 258th character, not the 240th. Also, it's a SELECT statement, not a COPY command (one relates to the database, the other is an internal SQL*Plus feature). And someone else also kindly pointed out that SQL*Plus has a command limit length (i.e., database-related commands) of 2500 characters. So I don't think that's the issue.
    I can be a bit more specific about this one now, though. I've a sequence of Solaris boxes running 9.2.0.1 up, and the results are that 9.2.0.1 is affected; and it's a problem for 9.2.0.7:
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - 64bit Production
    PL/SQL Release 9.2.0.1.0 - Production
    CORE    9.2.0.1.0       Production
    TNS for Solaris: Version 9.2.0.1.0 - Production
    NLSRTL Version 9.2.0.1.0 - Production
    SQL> select 'update myauditing_table set test_details='''||grantee||''' where myaudit_refno=''A.FE'';' from (select case when upper(value) in ('DBO','TRUE')  then (select agg_concat(grantee) from dba_tab_privs where table_name='AUD$') else (select 'AUDIT_TRAIL is set to: '||value from dual) end as grantee from v$parameter where upper(name)='AUDIT_TRAIL' order by grantee);
    SP2-0734: unknown command beginning "s set to: ..." - rest of line ignored.And...
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
    PL/SQL Release 9.2.0.7.0 - Production
    CORE    9.2.0.7.0       Production
    TNS for Solaris: Version 9.2.0.7.0 - Production
    NLSRTL Version 9.2.0.7.0 - Production
    SQL> select 'update myauditing_table set test_details='''||grantee||''' where myaudit_refno=''A.FE'';' from (select case when upper(value) in ('DBO','TRUE')  then (select agg_concat(grantee) from dba_tab_privs where table_name='AUD$') else (select 'AUDIT_TRAIL is set to: '||value from dual) end as grantee from v$parameter where upper(name)='AUDIT_TRAIL' order by grantee);
    SP2-0734: unknown command beginning "s set to: ..." - rest of line ignored.But in 10.2.0.1, the problem disappears.
    I am not sure, but it is perhaps related to metalink note 285913.1, since we did get some ORA-00600: internal error code, arguments: [qernsRowP], [1] errors in the alert log with a slightly different version of the above query. Changing the query obviously alters the test, though, so it may be completely unrelated.
    Either way, I think it's definitely a version-specific SQL*Plus bug (though it would be nice if any other 9i owners out there could try it and report back!)
    Anyway, the workaround is simply to submit the command on two separate lines, wherever possible. And of course... to upgrade.

  • Need SQL*PLUS ON WINDOWS 7 32bit

    PLEASE HELP!!!!!!!
    I HAVE FIRST TRIED ORACLE 9I DATABASE INSTALLATION BUT IT FAILED.....(ERROR OCCURED AND SETUP CLOSED FORCEFULLY)
    [ unable to install more than 28% from 1st disc only]
    THEN I UNINSTALLED IT FULLY.
    NEXT I TRIED ORACLE 11G (R2) [downloaded from oracle site]
    BUT I WAS UNABLE TO OPEN SQL PLUS .
    [  problem was in the username/password part.
    i filled the username/password (or database nname, whatever it is ........ ie. what i filled in the place of the default "orcl" and the password i provided during installation)
    please specify WHICH usename password i have to provide in .....]
    CURRENTLY I HAVE UNINSTALLED 11G(R2) ALSO......

    989115 wrote:
    Heading1:Help Me Connect to Database
    http://docs.oracle.com/cd/B19306_01/server.102/b14357/ape.htm#CHDIEIHJ
    i read this page and created a environment variable sql with variable path to the folder containing extracted files...
    now help me connect to a database.
    i don't want to download more files ( also all the files are so large that the take whole day to download........ oracle 11g was 2GB)You need to understand... The SQL*Plus client is just a tool to allow you to connect to a database, because it is the database that will take your SQL commands and execute them... the client is just the tool for sending the commands to the database.
    So, just downloading and installing the client software itself, is fine... if you've got a database elsewhere (on a server somewhere) to connect to. If, however, you want to practice database programming at home on your own computer, you will have to download and install some version of the database, whether you do that directly as the database software itself (which will install the client software as well as part of it), or as the Virtual Machine version (which is sort of the same thing, but the database comes almost ready for you to use "out of the box").
    I'm afriad you are going to have to download more files.

  • Would like to write SQL code to generate a 'spool' statement in SQL Plus.

    Hi,
    We're using Oracle 11.1.
    I'm spooling data to a file from a SQL Plus shell script .
    The format of the file name they're giving me has the current date on the end, so something like:
    filenameMMDDYYYY.txtWhen I write my spool statement I'd like to do it so that I give it the file name with a formatted sysdate at the end.
    I think I need to generate SQL to do this but I don't have experience in generating SQL.
    How would I do this in a SQL Plus Linux shell script?

    set termout off
    col dt new_value dt
    select to_char(sysdate,'YYYYMMDDHH24MISS') dt from dual;
    set termout on
    spool file_&dt
    Handle:      816567
    Status Level:      Newbie
    Registered:      Nov 29, 2010
    Total Posts:      73
    Total Questions:      30 (20 unresolved)
    so many questions & so few answers.
    Edited by: sb92075 on May 12, 2011 4:27 PM

  • 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/]

  • SQL* Plus not compatible with Suse Linux 10

    hi! i am using suse linux 10 and since i lost my sys/ system password i need to restore it using " / as sysdba " to login, but the problem is when i tried to install the sql* plus it says that "it does not support my platform", is there another way i can reset back my system password with out sql* plus? or can anyone guide me in the installation of sql* plus instant client? thanks a lot! :-)

    i'm sorry for the confusion. i tried to install sql* plus but running the script to install it gave me an error that "it does not support my platform, it only supports red hat, suse 9.... etc." my os is suse linux 10 (oss) and am using oracle xe... so meaning i just wanted to install sql* plus to have a command-line utility to use " / as sysdba " to reset my sys/ system password. because i can't remember my sys/ system password that's why i can't get in to http://localhost:8080/apex site to change my oracle db. thanks for the reply!

  • Sql*plus, instant client problems

    I want to connect a linux machine x86 to a server with oracle 9i. So first I wanted to install instant client and I did as is said in the page for basic, sql*plus and SDK packages, but it doesn't work. When I executed ./sqlplus user/pass@connectionchannel in the linux machine, it crashes, without error message.
    If I install the windows version and try the connection from a windows machine it works, so the oracle server is working, and there is no problem with the firewalls and so.
    I have tried to execute fftrace (to have a kind of log of what programs does)fftrace ./sqlplus user/pass@conn and i saw a lot of lines I paste bellow. I think the last one is read from socket, but I'm not sure and i don't know what to do. I don't know if I can connect without the instant client. I will be very thankfull for any idea you can give me, i don't know what to try.
    write(3, "[13-APR-2007 12:49:34:037] nspre"..., 36) = 36
    write(3, "reading from transport...\n", 26) = 26
    gettimeofday({1176461374, 37784}, NULL) = 0
    llseek(3, 0, [63276], SEEKCUR) = 0
    write(3, "[13-APR-2007 12:49:34:037] nttrd"..., 34) = 34
    write(3, "entry\n", 6) = 6
    read(5,

    I thank you your help, but even with the trc file I don't know what can cause the problem, I don't understand what does it mean. I will thank more help. This is the last lines of the trace file related to my problem:
    [24-APR-2007 09:18:37:759] nspsend: 00 2F 00 00 06 04 00 00 |./......|
    [24-APR-2007 09:18:37:759] nspsend: 00 00 01 06 05 04 03 02 |........|
    [24-APR-2007 09:18:37:759] nspsend: 01 00 4C 69 6E 75 78 69 |..Linuxi|
    [24-APR-2007 09:18:37:759] nspsend: 33 38 36 2F 4C 69 6E 75 |386/Linu|
    [24-APR-2007 09:18:37:759] nspsend: 78 2D 32 2E 30 2E 33 34 |x-2.0.34|
    [24-APR-2007 09:18:37:759] nspsend: 2D 38 2E 31 2E 30 00 |-8.1.0. |
    [24-APR-2007 09:18:37:759] nspsend: 47 bytes to transport
    [24-APR-2007 09:18:37:759] nspsend: normal exit
    [24-APR-2007 09:18:37:759] nsdofls: exit (0)
    [24-APR-2007 09:18:37:759] nsdo: nsctxrnk=0
    [24-APR-2007 09:18:37:759] nsdo: normal exit
    [24-APR-2007 09:18:37:759] nsdo: entry
    [24-APR-2007 09:18:37:759] nsdo: cid=0, opcode=85, bl=0, what=0, uflgs=0x0, cflgs=0x3
    [24-APR-2007 09:18:37:759] nsdo: rank=64, nsctxrnk=0
    [24-APR-2007 09:18:37:759] nsdo: nsctx: state=8, flg=0x100400d, mvd=0
    [24-APR-2007 09:18:37:759] nsdo: gtn=127, gtc=127, ptn=10, ptc=2011
    [24-APR-2007 09:18:37:759] nsdo: switching to application buffer
    [24-APR-2007 09:18:37:759] nsrdr: entry
    [24-APR-2007 09:18:37:759] nsrdr: recving a packet
    [24-APR-2007 09:18:37:760] nsprecv: entry
    [24-APR-2007 09:18:37:760] nsprecv: reading from transport...
    [24-APR-2007 09:18:37:760] nttrd: entry

  • Newer version of SQL*Plus for Linux

    Is there a newer, more featured version of SQL*Plus for Linux than 8.1.6.0.0? Where would I get it?
    Thanks.

    I have problems installing the oracle 8i client.
    i ordered the oracle servers 8i CD kit for linux .am using the standard edition to install the client.
    but am facing problems.
    the net8 configuration fails.
    what can i do?
    which CD should i look at?
    what do i need to install a client.?
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Boris Mironov ([email protected]):
    Hello,
    I had some problem (mixed OS environment). I solved it by ordering Linux version from Oracle. Oracle send me Linux CD Pack (All software for Linux) with free license for SQL-client only. It means that I have no licenses for products (eg. Oracle8i EE, Oracle8i SE, WebDB, ...). Anyway, I have access to my DB-server from my Linux box and I do not need to pay extra money for licensing because we have enough user licenses for our server.
    Good luck,
    Boris<HR></BLOCKQUOTE>
    null

  • Problem running SQL PLUS in Oracle 8i and 9i on Windows XP

    I've tried installing both Oracle 8.17 Personal Edition and also 9i in Windows XP Professional (each on a different occassion). I have run into the same problem each time. The installation itself goes fine in both cases, but when I run SQL PLUS, the Log On screen appears for 1-2 seconds then whole thing just closes automatically, so I can't ever access that application which is the only thing I need to work with. Any ideas on what's going wrong? Thanks.

    Patrick,
    Well a few things. Did you try TNSPING to see if the listener is up? If it's ok, can you connect with FREE toad? Download Oracle OEM and install that (the SQL net and sql plus portions). If you can't get tnsping to work, sqlplus isn't going too either. I don't know why the sqplus is actually shutting down, but I'm guessing the TNS NAMES entry isnt there (in the tnsnames.ora file). If the tnsnames entry is there then tnsping should work. Get tnsping to work first.
    Tyler.

  • Problem in starting SQL*PLUS in oracle database 10g

    Hi
    Well I am facing one problem while starting SQL*PLUS in oracle database 10g
    ERROR - "Procedure entry point longjmp could not be located in dynamic link library orauts.dll"
    This has happened when I installed Oracle Database 11g on same machine and when I deinstalled Oracle 11g then SQL*PLUS is started...no error came
    Can anybody tell me the reason please...

    hi
    pls im having the same problem but in my own case i installed oracle apex using 11g.
    im env variable is:
    C:\Oracle\product\10.1.0\Client_1\bin;C:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin\client;C:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin;C:\app\Xty\product\11.2.0\dbhome_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\
    pls which is my apex_home so i can interchange it?
    i also have oracle 10g client installed

Maybe you are looking for

  • Hard drive failed? Options?

    Out of warranty iBook G4. Lots of problems with this puppy. Latest is failure on startup -- flashing ? folder icon. Appears hard drive is not there. Sounds of sick frog/cricket from drive. Apple Hardware Test says: Mass storage: Error detected ERROR

  • Help: Design Issues in Swing

    Hi Friends I developed an application in swings way back in 2000-01. However then there were serious issues of Memory leakage with Swings. Hence the strategy we adopted was to use a cache of Swing components rather than creating new objects everytime

  • IBook G4 Blue Screen

    Since this problem seems to have happened with most people here, as a result of an Apple software update, Apple should be responsible to help us solve this problem. It is their responsibility. ... They broke it, They bought it. Has anybody gotten thr

  • Flash Player IGNORES Settings?

    I've set the global security settings on the Adobe site (always allow external website links to open). The setting appears to "stick" (i.e., it keeps the Always Allow value), but each time I attempt to open an external link the same error message is

  • Where can I get soap.jar

    I am trying to download soap.jar for testing a SOAP client. However, all references on the web point me to xml.apache.org/soap, where I however, do not find this. Can someone please tell where I can get this? PS: Not sure if this is the right forum f