SQLPLUS, timestamp as prompt

Is there any way to get the time in sqlprompt without altering nls_date_format.
If I change nls_date_format some queries are failing which use the regular date and time format.
Even any other SQL tool, preferebly console version would also work.

Hi,
Do you mean:
C:\oracle>sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on L° Mar 12 14:28:23 2011
Copyright (c) 1982, 2010, Oracle.  All rights reserved.
SQL> set time on
14:28:28 SQL>
14:28:28 SQL>
14:28:31 SQL>set sqlprompt >
14:28:32 >
14:28:32 >Regards
Peter

Similar Messages

  • Error while Invoking SQLPLUS from Command Prompt

    Hi All,
    I am trying to Connect to Oracle through sqlplus from command prompt of windows and getting this Error:
    C:\Documents and Settings>sqlplus
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Dec 28 10:08:43 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter user-name: scott
    Enter password:
    ERROR:
    ORA-12560: TNS:protocol adapter error
    set ORACLE_SID=database_name was set
    Anyone ever got this error or has any idea could you please help.
    Thanks.

    Try
    set LOCAL=<tns_name>
    Regards
    Kurt

  • Sqlplus don't prompt

    Hi all
    I when I try to start the database using
    sqlplus sys/mypassword as sysdba
    I got the errors :
    SP2-1503: Impossible d'initialiser Oracle Call Interface
    SP2-0152: ORACLE ne peut fonctionner correctement
    I always having these errors but after a time i try again and the sqlplus prompt, this morning it just persist
    how can i fix this?
    thanks in advance

    rachid wrote:
    I have checked everything but the problem persist,
    for the environment variable
    path: C:\Program Files\Common Files\Microsoft Shared\Windows Live;*d:\oracle\product\10.2.0\db_1\bin*;%systemroot%\system32;%systemroot%;%systemroot%\system32\wbem;%systemroot%\system32\windowspowershell\v1.0\;c:\program files\java\jdk1.6.0_26\bin;C:\msys\1.0\bin;C:\Program Files\Windows Live\Shared
    for ORACLE_HOME: D:\oracle\product\10.2.0\db_1
    but I didn't check for the ORACLE_SID
    how can i do that??
    thanks for help
    Edited by: rachid on Dec 24, 2011 8:02 PMvalues can be stored in Windows Registry.
    Do you know what Registry is?
    open Command Window
    echo %ORACLE_HOME%
    echo %ORACLE_SID%
    COPY commands & results from above then PASTE all back here

  • Sqlplus.exe is not a valid win32 application error

    Hi All,
    I have installed oracle 10gr2 on windows xp.
    if i type sqlplus in command prompt i get this error
    "C:\oracle\product\10.2.0\db_1\BIN\sqlplus.exe is not a valid win32 application".
    i went to the path where sqlplus is present i observed that sqlplus.exe file was 0KB.
    how can i resolve this problem. i want to upgrade oracle 9i to 10g so i need sqlplus of 10g to work properly.
    please anyone help me out to solve this problem.
    Regards,
    Veeresh S

    You'd have to find out how and why that file became 0KB in size.
    If one file is 0KB in size, what assurance do you have that other files aren't
    also corrupted ?
    It could have been a virus-scanner wrongly attempting to quarantine the file,
    it could have been a backup-restore session that copied the file back as 0KB,
    it could have been some command that you executed in attempting the upgrade.

  • Where to find SQLPLus ?

    Hi,
    I just downloaded oracle 10g standard edition and installed it. I can't find SQL*Plus on my installation. I could find iSQLPlus but not just SQL*Plus. Where can I find it? Do I need to download developer suite to get SQL PLus? Please advise me.
    [email protected]

    open up a command prompt and type: sqlplus
    it should prompt you for your credentials.
    You can also access from your start menu items under Oracle and Applications

  • Do we have   'sqlplus' for windows for  win64_11gR1 database  ?

    Hi
    I have installed win64_11gR1_database_1013, in my desktop.
    Here I don't find 'sqlplus' for windows. Of-course I am able to run sqlplus in command prompt.
    Here is my questions.
    Do we have 'sqlplus' for windows for win64_11gR1 database ? If yes, could you please let me know the download URL ?
    thanks
    Siva

    Siva,
    You said
    Of-course I am able to run sqlplus in command prompt.Meaning you have sqlplus on your system, please post output from following command
    C:> sqlplus And you can find sqlplus executable under %ORACLE_HOME/bin
    Regards
    OrionNet

  • Only 'oracle' account can connect via sqlplus

    Currently, only the linux oracle account can connect to the
    server via sqlplus. A have put an exact copy of oracle's
    .profile script into other accounts home directories, and those
    accounts belong to the linux dba group. When another account
    starts sqlplus, they are prompted with login and password, and
    the the following error occurs:
    ORA-01034 ORACLE NOT AVAILABLE
    But if I login as 'oracle', i can connect no problem. I always
    start the server under the oracle account with the dbstart
    script.
    I am probably overlooking something stupid, any ideas?
    Please email me directly in addition to the post.
    Thanks,
    Randon Ethan Loeb
    [email protected]
    null

    There is nothing to do with your .profile, default password, etc.
    After Oracle installation via the installer (orainst), have you
    run root.sh? Root.sh will set the setuid/setgid bit on for the
    file $ORACLE_HOME/bin/oracle. If it is not set, only the owner
    (i.e. oracle/dba) can connect.
    Fix the problem by rerun root.sh. If it doesn't help, simply run
    the commands:
    $ chown oracle:dba $ORACLE_HOME/bin/oracle
    $ chmod ug+s $ORACLE_HOME/bin/oracle
    Kevin (guest) wrote:
    : Not sure if this makes a difference, but I use bash (many
    : distributions default shell, especially redhat) and I believe
    the
    : user's profile for that shell is .bash_profile. Also, try sys
    as
    : your default password for the production release, for some
    : strange reason, that's what my default password was.
    : Kevin
    : Ronald Jeninga (guest) wrote:
    : : Hi,
    : : did you verify the success of the dbstart-script? i.e. are
    all
    : : ORACLE processes running?
    : : % ps ax | grep oracle
    : : ... some output ...
    : : What happens if you start ORACLE manually?
    : : % svrmgrl
    : : > connect internal
    : : > startup
    : : ... some output ...
    : : > quit
    : : do you provide the correct user/password combination?
    : : % sqlplus scott/tiger # might be different on your system
    : : # if you instaled the db together with
    : : # the rest, scott/tiger probably
    exists
    : : if you connect as ORACLE, can you use your DB?
    : : % svrmgrl
    : : > connect internal
    : : > select * from dual;
    : : ... some output ...
    : : these are my first thoughts, might be valuable might be not.
    : : Ronald
    : : Randon Ethan Loeb (guest) wrote:
    : : : Currently, only the linux oracle account can connect to the
    : : : server via sqlplus. A have put an exact copy of oracle's
    : : : .profile script into other accounts home directories, and
    : those
    : : : accounts belong to the linux dba group. When another
    account
    : : : starts sqlplus, they are prompted with login and password,
    : and
    : : : the the following error occurs:
    : : : ORA-01034 ORACLE NOT AVAILABLE
    : : : But if I login as 'oracle', i can connect no problem. I
    : always
    : : : start the server under the oracle account with the dbstart
    : : : script.
    : : : I am probably overlooking something stupid, any ideas?
    : : : Please email me directly in addition to the post.
    : : : Thanks,
    : : : Randon Ethan Loeb
    : : : [email protected]
    null

  • Tools 8.50 on Debian / Ubuntu

    Hi,
    Has anyone tried installing tools 8.50 on a debian / ubuntu system?
      ( yes, I know this is not supported )
      ( yes, I know I could use Oracle Enterprise Linux )
    Oracle, WebLogic and Tuxedo all seem to run ok, so if I can get the database loaded it should all be good, yes? But I'm having problems with the installer, and it looks a bit like some kind of shell issues.
    First attempt:
      $ . psconfig.sh
      $ chmod +x setup/PsMpDbInstall/InstData/setup.linux
      $ setup/PsMpDbInstall/setup.sh
    This runs through the first few sql scripts (very quickly) as far as connect.sql, but then falls over with a "File not found: .../scripts/hr91dmoora.dms" script (HR91DMO is the SID/database). However, looking at the log files, none of the sql scripts actually ran. They all fell over with "sqlplus: command not found", despite entering the correct path for the sqlplus binary when prompted.
    Second attempt:
      $ export ORACLE_HOME=/opt/oracle/dbhome1
      $ export ORACLE_SID=HR91DMO
      $ PATH=$PATH:$ORACLE_HOME/bin
      $ . psconfig.sh
      $ chmod +x setup/PsMpDbInstall/InstData/setup.linux
      $ setup/PsMpDbInstall/setup.sh
    This time the runCreatedb10.sh script runs for a while, but the installer gives "Error while creating database", and stops. Checking the log file shows no errors:
      Database created.
      SQL> spool off
      SQL> exit
      Disconnected from Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    So it looks like there are some kind of shell problems: variables not being set / passed to other scripts; exit codes being incorrectly interpreted.
      $ /bin/sh --version
      GNU bash, version 3.2.48(1)-release (x86_64-pc-linux-gnu)
      Copyright (C) 2007 Free Software Foundation, Inc.
    If anyone has any thoughts on this, I'd love to hear them. Otherwise, it looks like the manual, run-them-all-by-hand approach!
    Cheers,
    Barney

    Ok, so there were a couple of problems:
    1. I had some old deprecated commands in my init.ora file. These caused Oracle warnings in the create script, which Oracle ignored and happily created the database, but the PeopleSoft installation script barfed on. Was nothing to do with shell processing at all. Cleaning these up sorted that out.
    2. Then needed to set a couple of Tuxedo environment settings for Data Mover to run. Should have guessed this from "Data Mover on the UNIX platform has a dependency on the Oracle Tuxedo software." Unfortunately, these aren't really documented until chapter 8 of the installation guide, whereas I was still on chapter 7B. What - you want me to read all 700+ pages before starting... ;-)
    So looking good now. Installing the HRMS data (is it HRMS or HRCS???), then just a couple more steps to go. Only 14822 records remaining...
    [Nicholas]
    Since you're on a non-supported OS, it would be better to follow the manual database creation steps.Yep - I did start to go down that route, but then I was writing my own script to automate things to make it repeatable, and it all just seemed better to try and get the delivered ones to work. Also, unless I'm missing something here, steps in an appendix entitled "Creating a Database Manually on UNIX" which refer to " Setting NLS_LANG in the Windows Registry" just confuse me!
    [Jim]
    can you put up a wiki describing the stepsSure. Never actually added anything to a wiki before, but sure I can get something up there. Will post back here when something's there.
    Cheers,

  • Post installation issues in Oracle 11g

    Hi,
    i have installed oracle 11g on my windows vista- ultimate OS. installation was successful without any error, but after the completion of installation i found that sqlplus.exe file's icon was not proper. it is like a default .exe icon of vista. moreover this, when i executed it, i am getting a command prompt window instead of regular SQL window that we get in any previous versions of oracle. Though everything is working fine.
    So, could anyone please tell me what's wrong? Why i am getting such an interface?

    With 11g, the SLQPlusW is no longer available. SQLPlus in command prompt is what we have left. However you now have SQLDeveloper automatically included.

  • Installation of oracle 10gR2 on Windows Vista Home Premium 64 bit OS

    can we install oracle 10gR2 on Windows Vista Home Premium 64 bit OS ???
    While doing sqlplus from command prompt,
    it's giving error like
    'SP2-1503 Unable to initialise Oracle Call interface'
    'SP2-0152 Oracle may not be functioning Properly'
    How to troubleshoot the above errors,
    Has anybody tried it ???
    Plz assist.

    No Oracle product is certified against any Windows Home OS.
    As Vista was released after Oracle 10gR2, 10gR2 is not certified against any edition of Vista.
    You need to downgrade to XP, or install Linux.
    Sybrand Bakker
    Senior Oracle DBA

  • WINDOWS TERMINAL SERVICES AND ORACLE CLIENT 9,10.1,10.2 BUG

    PROBLEM:NON-ADMINISTRATOR USER UNABLE TO USE CLIENT SQLPLUS INSTALL
    FIX: NONE... REFER TO Bug No.     4684738     
    Filed     18-OCT-2005     Updated     06-DEC-2005     
    Product     SQL*Plus     Product Version      10.2.0.1     
    Platform     Microsoft Windows Server 2003     Platform Version
    HOW I FIXED:
    copied instant client basic, instant SqlPlus, instant ODBC (i need ODBC connection)
    step1:
    login to terminal server as administrator, unzip basic, SqlPlus, ODBC into a new directory on the server, make sure users have basic file rights read,view to new directory.
    step2:
    copy a working copy of tnsnames.ora (the databases you want to connect to) into the directory where all your instant client files are.
    step3:
    create SYSTEM ENVIRONMENT variables > click my computer, properties,advanced. create variable SQLPATH set value to path of your instant clent files. create variable TNS_ADMIN set value to path of your instant client files.
    step4:
    edit the PATH statement listed in SYSTEM ENVIRONMENT variables and add the path to your instant client files at the beginning of the PATH statement.
    step5:
    logout, login as administrator test instant sqlplus open command prompt enter > sqlplus username?/password?@mydatabase
    you should get connected to your database. Repeat step5 only login as a normal user. the normal user should be able to connect to the database.
    Issue: it appears instant ODBC not ready for prime time I get error 126, reading forums it appears there are files missing from the install package. The Microsoft ODBC connector for Oracle does work with my MSACCESS applications that connect to Oracle 10G using the afore mentioned process. I will continue to troubleshoot instant ODBC issue and post findings. Oracle has already wasted 12 hours of my time trying to get their junky software working might as well waste another day before throwing in the towel.

    You can download the latest JDBC drivers from http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
    You just need to place the jar somewhere and add the location to your classpath.
    Kuassi

  • Problem using & inside string in a query

    hi all, i have a problem with one of my query.
    i try using an & inside a string in a query and sqlplus and toad prompt me to enter a value. it is reconizing it as input. this is my query
    select department_name from dept where dept_name = 'S&R';
    how can write this query without sqlplus/toad asking me to enter a value for :R
    i tried to escape & by using 'S\&R' but nothing happen.

    In SQL*Plus you SET DEFINE OFF like this:
    SQL> set define off
    SQL> select 'S&R' from dual;
    'S&
    S&R(can't help you with Toad)

  • Not able to connect with Oracle server through VBScript without DSN

    Hi
    I have both Oracle9i and Oracle10g clients installed with local system.
    I am able to connect to Oracle Database 11g Enterprise edition server though sqlplus through command prompt and also through AQT without any error.
    As the server has lots of database ,whenever I connect to a particular database through sqlplus from command prompt,I connect as below
    C:>sqlplus username/password@service_name
    and it gets connected without any error.
    When I am trying to connect the same database through VB Script,I am getting ORA-12560 TNS:Protocol Adaptor Error.
    Below is the connection string I am using:
    Database_String = "SERVER=xxxx.vvvn.Com;Driver={Oracle in OraHome92};DATABASE=service_name;user id=userid; password=passowrd"
    I have installed a Oracle10g server in my local system and tried to connect the same way and I was successfully ,but its not working when the server is running remotely.
    Does it make any difference with the version of driver being used ?Should I need to modify my connection string anyway.
    Please help me as to identify the issue.Thank you very much in advance.
    Regards
    Sahina

    check the listener status in server end,
    lsnrctl status
    lsnrctl servicesif not start
    lsnrctl startThanks

  • Chinese Characters in SQL Plus

    Hi, I wonder how do I input the chinese characters in SQL plus? I have set the NLS_LANG value to chinese characterset in the REGEDIT but it doesn't display the chinese characters. Is there any chinese version on Oracle JDeveloper Suite?
    Cheers

    i have installed sqlplus and oracle db in the same PC under chinese win xp.
    i found that if you spool the output to a text file, and type in dos-prompt, it still cannot display the chinese character properly. but if you open the text file by notepad, bingo, you can the chinese character.
    i think that it is because dos-prompt application is non-unicode application. so it could not display unicode character properly.
    as a result, if you want to display unicode character in non-unicode application (run sqlplus under dos-prompt), you have to set the NLS_LANG environment variable which match the character set of non-unicode application which your operating system assigned. in my case, it should be Big5. then oracle would do the conversion for you automatically, i.e. from unicode in DB to Big5 in client.
    I either set the NLS_LANG environment variable in one of the 2 ways:
    NLS_LANG=american_america.zht16big5 or
    NLS_LANG=american_america.zht16hkscs
    Regards,
    KH

  • Chinese Characters in Discoverer Plus

    Hi,
    I am having the problem of outputting chinese characters in Discoverer Plus on the client browser. The chinese characters are represented by "box" when they are outputted to Discoverer plus. The chinese characters can be shown with the Report Builder. My database is running on UTF8 characterset.
    I have done some configurations to output the chinese characters to the Report Builder. Besides, the chinese characters can be shown in the PDF reports generated from the Report Server. The configurations that I have done is to modify some of the files in ORACLE_HOME/bin/ and ORACLE_HOME/guicommon9/tk90/admin/.
    How do I ouput the chinese characters in Discoverer Plus?
    Thank you.
    Cheers,
    Joey

    i have installed sqlplus and oracle db in the same PC under chinese win xp.
    i found that if you spool the output to a text file, and type in dos-prompt, it still cannot display the chinese character properly. but if you open the text file by notepad, bingo, you can the chinese character.
    i think that it is because dos-prompt application is non-unicode application. so it could not display unicode character properly.
    as a result, if you want to display unicode character in non-unicode application (run sqlplus under dos-prompt), you have to set the NLS_LANG environment variable which match the character set of non-unicode application which your operating system assigned. in my case, it should be Big5. then oracle would do the conversion for you automatically, i.e. from unicode in DB to Big5 in client.
    I either set the NLS_LANG environment variable in one of the 2 ways:
    NLS_LANG=american_america.zht16big5 or
    NLS_LANG=american_america.zht16hkscs
    Regards,
    KH

Maybe you are looking for

  • C drive full - want to move itunes to D drive

    Hi, my daughters C drive on her laptop is nearly full (only 5gb free). She would like to move her itunes library to the D drive, which is still practically empty. Can anyone please advise how to go about moving her itunes from C to D drive, as seamle

  • MIGO PROBLEM in the Good Receipt  with reference to purchase order

    Hello Everybody. i m getting one problem with reference to MIGO tcode. Might be anyone notice or not but i want to share with you. in MIGO selected goods receipt then beside it ask for the different actions. I use the purchase order no. suppose i giv

  • How to assign output type and trigger printing in ABAP

    hi all, i have create invoice by using BAPI_BILLINGDOC_CREATEMULTIPLE and create header/item text with CREATE_TEXT. please advise how to assign the output type and trigger immediate printing after this. thanks.

  • How to block ads in Mail?

    Hi guys, I seldom use Mail, but every once in a a while, it can come in handy when Thunderbird, my default client, refuses to work properly. I always create the same accounts in both apps, but there's one thing (among others) that Thunderbird has, an

  • I have a docment that is in que and can't delete it. How do I delete it?

    I have an HP Deskjet D1660 and I have a document in que that I can't seem to delete. What can I do to get rid of it so I can try to reprint it? This question was solved. View Solution.