Automatic start of sql*plus

Hi,
whenever i click the icon sql*plus i get a screnn saying "username", "password", "hoststring".
I heard that, just by clicking the icon the command screen opens asking for just the password.
how do i do it that way ???
cheers,
AJ

Hi AJ,
One way to do that is to create a shortcut for sqlplus.exe and edit the target.
Let's say target is now
C:\oracle\product\10.2.0\client_1\BIN.sqlplus.exe
Then change to it to
C:\oracle\product\10.2.0\client_1\BIN.sqlplus.exe < username>[<password>][@<connect_identifier>]
Where you put in your own values for username connect_identifier (and maybe password)
Regards
Peter

Similar Messages

  • ASM Auto Start vs SQL*Plus Contention Issue

    We are trying to install the single server instance of ASM with the Grid Infrastructure and DB 11gR2. We have specified auto start on the oracleasm configuration.
    OS = Linux 5.
    After a reboot. the ASM processes show up when I run "ps -ef|grep asm". When I log into SQL*Plus it says it's connected to an idle instance. However, when I issue the startup command it responds with "ORA-15149: another ASM instance found running on the host".
    My ORACLE_SID = +ASM and my ORACLE_HOME is set to the directory where grid is installed. These are the values that I specified during the Universal Installer session.
    Can someone help me make sense of this?
    Thanks,
    Gregory

    Thanks for your replies.
    It turns out that the problem had to do with how I specified the grid ORACLE_HOME. I still don't understand why it should make a difference, but...
    I am in the habit of typing a few characters of a directory or file name and hitting tab to have the system fill in the rest of the name. As the system finishes a name it appends a slash. So, I would end up with something like
    export ORACLE_HOME=/LIB_ORACLE/11.2.0/grid/That trailing slash was screwing things up. If I entered all of that without the trailing slash, my sqlplus connected just fine.
    Thanks again,
    Gregory

  • Sql*plus configuration

    Hai,
    I want to change the default settings in glogin.sql, how to do.
    For example,
    I want to set linesize 120 and pagesize 90 as default when i started the sql*plus environment.
    Thanks,
    Venu Gopal Chaparala

    Dear Schneider,
    Thanx for ur help. I am pasting the glogin file here. plz check and tell the necessary modifications.
    -- Copyright (c) Oracle Corporation 1988, 2000. All Rights Reserved.
    -- NAME
    -- glogin.sql
    -- DESCRIPTION
    -- SQL*Plus global login startup file.
    -- Add any sqlplus commands here that are to be executed when a user
    -- starts SQL*Plus on your system
    -- USAGE
    -- This script is automatically run when SQL*Plus starts
    -- For backward compatibility
    SET PAGESIZE 120
    SET SQLPLUSCOMPATIBILITY 8.1.7
    -- Used by Trusted Oracle
    COLUMN ROWLABEL FORMAT A15
    -- Used for the SHOW ERRORS command
    COLUMN LINE/COL FORMAT A8
    COLUMN ERROR FORMAT A65 WORD_WRAPPED
    -- Used for the SHOW SGA command
    COLUMN name_col_plus_show_sga FORMAT a24
    -- Defaults for SHOW PARAMETERS
    COLUMN name_col_plus_show_param FORMAT a36 HEADING NAME
    COLUMN value_col_plus_show_param FORMAT a30 HEADING VALUE
    -- Defaults for SET AUTOTRACE EXPLAIN report
    COLUMN id_plus_exp FORMAT 990 HEADING i
    COLUMN parent_id_plus_exp FORMAT 990 HEADING p
    COLUMN plan_plus_exp FORMAT a60
    COLUMN object_node_plus_exp FORMAT a8
    COLUMN other_tag_plus_exp FORMAT a29
    COLUMN other_plus_exp FORMAT a44
    These r the additional ones i wrote and getting the error of SP2-0158: unknown COLUMN option "set"
    set linesize 120 set pagesize 90
    Thanx
    Chaparala

  • Locked out of SQL*PLUS!! HELP!

    i have just started using sql*plus to access my 10g database as it was all installed on my computer by someone else for me.... and the helpfully didnt tell me the user name and password they had used
    so when i got my laptop back and discovered that i couldnt log in as scott/tiger or anything else... started messing around and managed to get a dialoge box asking me to enter a password for SYSMAN so i did so and everything was fine,,,,,
    Until i restarted my computer now it says that SYSMAN is locked just like it says for all the other standard logins!! now ive had a read around and people keep saying just grant the privelages to the scott/tiger account..... how can i do that if i cant log in as anything???
    please help oh super smart guru peoples :)
    thanks in advance
    RMMO (PL/SQL / SQL*PLUS NOOBMASTER!)

    thanks for that... sadly it didnt work... the database is local to my laptop.... but when i entered that command into cmd... another command prompt opens up for a split second then closes back down... there isnt enough time to see anything displayed in it... but i assume that it tells me that either the account is locked like all the other accounts or it says that its not a valid username/password... or somthing to that effect....
    again thankyou for the time you put into helping.... and sadly again any other ideas or possible solutions would be GREATLY appreciated!
    RMMO
    (undercover noob)

  • Trace in SQL plus

    I tried to use SQL plus to trace what happens in the database (what queries are executed and such) when a certain function is performed in our information system...
    But i cant get it working...
    I cant seem to log in using our sysdba account...
    probably im doing something wrong...
    When i start the SQL plus
    I login using a password (not the SYSDBA password)
    I use the following syntax
    Username: username@database
    So for example for our test database
    i use test@database
    then the password...
    And i get connected
    But then when i try to find out the specific id for a specific user online at the moment i get errors (sorry for the bad explanation)...
    Is there any way to monitor ALL what happens in the database?
    for a period of time...
    (since i am the only one online at the test database, then i wont have to filter anyhing...
    any help is appreciated:)
    /Niklas

    948113 wrote:
    I tried to use SQL plus to trace what happens in the database (what queries are executed and such) when a certain function is performed in our information system...
    But i cant get it working...
    I cant seem to log in using our sysdba account...
    probably im doing something wrong...
    When i start the SQL plus
    I login using a password (not the SYSDBA password)
    I use the following syntax
    Username: username@database
    So for example for our test database
    i use test@database
    then the password...
    And i get connected
    But then when i try to find out the specific id for a specific user online at the moment i get errors (sorry for the bad explanation)...
    Is there any way to monitor ALL what happens in the database?
    for a period of time...
    (since i am the only one online at the test database, then i wont have to filter anyhing...
    any help is appreciated:)
    /NiklasPost the command you are executing, the error you are getting, and the version of Oracle you are using

  • SQL Plus Log On

    Hi ,
    I have an oracle instance on my laptop . now i log into my laptop as administrator on the laptop's domian . when i log on like this i am able to log into SQL*Plus . but when i log into my laptop on my companies domain and try to start up SQL*PLUS i am unable to do so it says end of file communiction even though the ORacle Server Instance up( i am looking at the instance in the NT Services )
    IS there a settings which has to be set so that i can log on to SQL*Plus when logging to my laptop on my company domian
    Thanks
    Ravinder

    You may want to check to see if the LISTENER is running. Often the administrator of a box can login without the listener running, but anyone else cannot.

  • XMLType and SQL*Plus 9.0

    XMLType is automatically formatted in SQL*Plus 9.2. But, how can I format it on SQL*Plus 9.0.1? Now I only obtain tuples like XMLTYPE().

    Oracle DS is not the proper software for this purpose, take Oracle 9i client CD instead.

  • 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

  • How to start/stop process flow from sql*plus?

    Hi,
    i know how to start a process flow via sqlplus_exec_template.sql, but i cannot find any information on how to stop (and rollback) a working flow from sql*plus. Any help would be appreciated.
    Greetings
    Christoph
    Message was edited by:
    ctrierweiler

    Hi,
    I've had a go.
    How should I interpret the results of list_requests:
    owner_owr@ORKDEV01> @list_requests
    ====================
    DEPLOYMENTS
    ====================
    Audit ID Status Name Date Owner
    2706 READY Deployment Fri Nov 11-NOV-05 10:49:59 OWNER_OWR
    11 10:46:37 CET 2
    005
    ====================
    DEPLOYMENT UNITS
    ====================
    Audit ID Status Name Date Owner
    2707 READY Unit0 11-NOV-05 10:49:59 OWNER_OWR
    ====================
    EXECUTIONS
    ====================
    Er zijn geen rijen geselecteerd.
    owner_owr@ORKDEV01>
    Whilst a process flow is executing the last query will list executions, all of which have status BUSY:
    owner_owr@ORKDEV01> @list_requests
    ====================
    DEPLOYMENTS
    ====================
    Audit ID Status Name Date Owner
    2706 READY Deployment Fri Nov 11-NOV-05 10:49:59 OWNER_OWR
    11 10:46:37 CET 2
    005
    ====================
    DEPLOYMENT UNITS
    ====================
    Audit ID Status Name Date Owner
    2707 READY Unit0 11-NOV-05 10:49:59 OWNER_OWR
    ====================
    EXECUTIONS
    ====================
    Audit ID Status Name Date Owner
    394512 BUSY PF_ONB01 04-MEI-06 09:11:12 OWNER_OWX
    395328 BUSY ONB:FULL_PREPARE 04-MEI-06 09:11:55 OWNER_OWR
    395324 BUSY PF_ONB01:ONB 04-MEI-06 09:11:55 OWNER_OWR
    owner_owr@ORKDEV01>
    As an aside, I will attempt to get rid of the READY deployment and deployment unit using deactive_deployment.sql
    Now, if I attempt to use deactivate_execution.sql on any of the executions with status BUSY I get:
    owner_owr@ORKDEV01> @deactivate_execution
    Voer waarde voor 1 in: 396136
    declare
    FOUT in regel 1:
    .ORA-20003: The object is not in a valid state for the requested operation
    ORA-06512: at "OWNER_OWR.WB_RTI_EXCEPTIONS", line 94
    ORA-06512: at "OWNER_OWR.WB_RTI_EXECUTION", line 774
    ORA-06512: at "OWNER_OWR.WB_RT_EXECUTION", line 90
    ORA-06512: at line 4
    owner_owr@ORKDEV01>
    So all the seems to remain is to use abort_exec_request.sql
    This does the job, but the script itself hangs.
    I think it has to do with the l_stream_id not being checked again after the initial IF. I think it should probably be part of the loop condition as it is again reset in the do_acks inside the loop.
    Cheers & thanks,
    Colin

  • Automatically start SQL Agent service after SQL Server service fails and starts.

    Hi! 
    I have SQL Server 2008 R2 with two main services - SQL Server and SQL Agent.
    I'll try to describe my situation. It happens very occasionally, but sometimes SQL Server service terminates unexpectedly. It's my log:
    09/13/2013 10:46:21,Service Control Manager,Error,The SQL Server (MSSQLSERVER) service terminated unexpectedly.  It has done this 1 time(s).  The following corrective action will be taken in 120000 milliseconds: Restart the service.
    09/13/2013 10:46:21,,Error,[359] The local host server is not running,,,,
    09/13/2013 10:46:22,MSSQLSERVER,Error,The MSSQLSERVER service terminated unexpectedly.,Server,1073760843,,
    09/13/2013 10:46:22,,Warning,[139] AutoRestart: Attempting to restart the MSSQLSERVER service (attempt #1)...,,,,
    09/13/2013 10:46:27,,Warning,[139] AutoRestart: Attempting to restart the MSSQLSERVER service (attempt #2)...,,,,
    09/13/2013 10:46:32,,Warning,[139] AutoRestart: Attempting to restart the MSSQLSERVER service (attempt #3)...,,,,
    09/13/2013 10:46:32,,Error,[140] AutoRestart: The MSSQLSERVER service could not be restarted after 3 attempts,,,,
    09/13/2013 10:46:32,,Warning,[360] SQLServerAgent initiating shutdown following MSSQLSERVER shutdown,,,,
    As you can see, SQL Server service  terminates unexpectedly. Then SQL Agent service tries to start SQL Server service. After unsuccessfully attempts to start SQL Server service, SQL Agent service stops itself. I have the option setting in SQL Server
    service to start itself after unexpectedly stop within 2 minutes and it is works well. But I have to start my SQL Agent service after this manually. Unfortunately, I can't investigate the reason of my SQL Server stops unexpectedly and in this case I just want
    to make the settings to start both of my services SQL Server and SQL Agent automatically after this.  How can I set up this? How can I make my SQL Agent service starts after SQL Server service?

    Hello,
    SQL server agent service depends on SQL server service so unless SQL server service comes online agent will not come online so agent is depended on SQL server not the other wise.
    Now is your server 2008 R2 patched to latest service pack (SP2).If not please upgrade it to latest SP.Some fixes are there in Sp which will subside this issue.Can you paste output of
    select @@version
    >>Then SQL Agent service tries to start SQL Server service.No this is not the case
    >>Unfortunately, I can't investigate the reason of my SQL Server stops unexpectedly
    Did you checked sql server errorlog and windows event log completely.Please do so and paste if you find some more info
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • HOW TO START MAKING DATABASE USING ORACLE SQL PLUS in 10g?

    how will i create database using sql plus?
    does the code of sql applicable to it..?
    do i have to use the "create db <database name>", use and " create table also,.."
    pls help me..
    thanks

    At dos prompt :
    C:\>set ORACLE_SID=<your SID>
    C:\>sqlplus / as sysdba
    you get connected as sys user. Don't use this connection to create your own objects, create users instead.... but it would be useful to read some documentation, for example Starting SQL*Plus and manuals mentioned there.

  • Why Start SQL*Plus with /nolog

    What is the difference between starting SQL*Plus as in
    sqlplus sys as sysdba
    versus
    sqlplus /nolog
    connect sys as sysdba
    I can imagine that the second method prevents some log file from being written but sometimes logs are useful. Is there more to it than that?
    Thanks,
    Gregory

    It's really interesting to see how a question like this gets answered. Some of what you've been told is true, some not, and most of it is a red herring...
    First, using /nolog (as has been correctly stated) has nothing to do with logging. It means "start sqlplus but don't log on to any database just yet"
    Second, its user or lack of has nothing to do with connecting as sys, as sysdba, or any other special connection. It means, simply and only, "start sqlplus but don't log on to any database just yet"
    It has nothing to do with the ability to run a sql script.
    It has nothing to do with your ability to supply a password.
    One reason to use it in a *nix environment is to be able to hide the userid and/or password from someone querying processes.  As was hinted at, if someone performs a 'ps -ef', they will see the full command line that started the processes.  So, if you start with
    $>sqlplus system/manager
    a ps -f will show the username and password.
    If you start with
    $>sqlplus system
    you will be prompted for password and ps -ef will show the username, because it was on the command line
    If you start with
    $>sqlplus /nolog
    Then supply the username and pswd manually (or in a script), then ps -ef will only show that sqlplus is running, but will not reveal anything about the credentials used.

  • SQL*PLUS using START command - please help me to understand

    Hello dear friends,
    I met one issue that i can't understand. Could you please explain me what is wrong in my logic.
    I have created sql file called DUMMY.sql
    the file context is:
    SELECT dummy
    FROM dummy_tbl
    WHERE dummy_col=&dummy_var;
    I go to SQL*Plus DB version (10.2.0.4.0).
    I promt command: START DUMMY 1
    and expecting *&dummy_var* to be replaced with *1* and query be executed as it is described in Oracle SQL*PLUS reference ([http://download-west.oracle.com/docs/cd/B12037_01/server.101/b12170/ch6.htm#sthref1058|http://download-west.oracle.com/docs/cd/B12037_01/server.101/b12170/ch6.htm#sthref1058] ).
    But instead i'm getting Enter value for dummy_var:
    please help me to understand
    thanks in advance.

    You need to use &1 instead of &dummy_var.
    The number references the position of the parameter to use;&1 is the first parameter, &2 would be a second parameter and so on.
    SELECT dummy
    FROM dummy_tbl
    WHERE dummy_col=&1;

  • Can not start SQL Plus

    Hi friends
    I have installed oracle 9i on windows XP successfully.
    I can't start SQL plus, i am typing scott as username and tiger as password then it gives me TNS protocol error.
    Please help me, how shall I fix this problem.
    Thanks
    Harish

    the service might not exist yet in the services panel. you'll have to execute the following command from the server where Oracle is installed:
    c:\> lsnrctl start
    You should receive a series of messages about the listener starting. Then re-check the services as described above and you should see it there.

  • How do i get sql plus to start in something other than command prompt?

    I have just installed oracle 11g enterprise addition. I am use to a different type of editor for the sql plus, the one I am use to comes up in a white area and has drop downs for file, tools, spool, help and so on. You can also open notepad with a shortcut. I like this better than command prompt how do i get this?

    I think you mean sqlplusw.exe which is a Windows executable delivered until Oracle 10.2 but no more delivered with Oracle 11g.
    Mayb you can have a look to SQL Developer http://www.oracle.com/technology/software/products/sql/index.html

Maybe you are looking for

  • Class casting, creating an image and decompiling...

    Hi, I've got a couple of questions: 1) How can I fully decompile classes, so with the implementation of the methods? Is it always possible to fully decompile a class file? When is it and when not? 2) I aks this questions before, but I still haven't g

  • Communication between a driver and application.

    Communication between a driver and application. I am writing a driver for a PCI card. I have found very good examples of how the driver should be build. Where do I find the information about how the user mode application should be talking the driver.

  • Installing oracle management agent 12.1.0.2.0 in silent mode.

    version: 12.1.0.2.0 platform: IBM Aix power systems 64bit I installed the oracle management service along with the oracle management agent that comes along with the the first installation. I deinstalled the first installed OMA and tried to install it

  • How to copy backup of iTunes library onto another computer?

    My primary laptop with my music library just crashed. I have a older laptop that I plan to use while I get the other repaired. I have a complete backup of my music library on external drive. After installing iTunes on the spare laptop I copied the ba

  • Acrobat PDFMaker serverが

    win XP Acrobat 7.0.9.Office word 2003を使用しています. Word文書をPDF化しようとして.Adobe PDFの変換から作成を選んだところ.ある日突然に「Acrobat PDFMaker serverが読み込めませんでした.インストーラーを修復モードで実行しますか?」と出てくるようになりました.指示どうりに進めても何も変化がありません. ご存知の方.よろしくお願いいたします.