SQL command line on windows

Hi
I use SQL comman-Line, and i always connect from one db to another, it gets confusing on which db i am connected (test / production).
i was wondering is there a parameter or an option in which i can see the db i am connected to?
like next to the prompt ?
ie:
scott@db SQL>
or something like that??
Regards
Tony G.

On Metalink you can find some solutions. See, for example, Doc. 456547.996
or Asktom
http://asktom.oracle.com/pls/ask/f?p=4950:8:13194713802943657485::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:446220075876
Higher the DB version, better the solution :-)

Similar Messages

  • SQL Developer BRIDGE command from command line on Windows environment

    Is it possible to call SQL Developer BRIDGE command from command line on Windows environment?

    Hi <please supply your name>,
    SQL Developer Worksheet is not available from the command line.
    The BRIDGE command is only supported in the Worksheet.
    Its an interesting idea though. Are you trying to script data move from a non Oracle database to an Oracle database using the BRIDGE command?
    The BRIDGE command was initially done to allow a simple data move from a non Oracle database to Oracle. We then build the "Copy to Oracle" feature out of it.
    http://dermotoneill.blogspot.com/2010/11/cross-database-bridge-statement.html
    http://dermotoneill.blogspot.com/2010/11/copy-to-oracle.html
    Since the BRIDGE command references connection names, which have to be defined in UI of SQL Developer any solution to run this on the command line would have to work this out.
    There are number of ways you can do this without using the BRIDGE command.
    1) Perform a capture/convert of your non Oracle database and then generate the "offline" data move scripts.
    Theses scripts use SQL*Loader and your non Oracle database tool (Ex: Sybase BCP).
    These are run from the command line and can be modified ....
    2) Use a database link from your Oracle database to your non Oracle database and reference /query the data that way.
    I would interested to hear your thoughts.
    Regards,
    Dermot
    SQL Developer Team.

  • Clear screen in "Run SQL Command Line" causes the utility to dump in Window

    Just for your notice... I have not checked if i can reproduce this on Linux platform or on second node running Windows XP Pro.
    But if I use "Run SQL Command Line" utility and do
    clear screen
    The utility dumps, (not the database though only the utlility)
    Maybe some other people could confirm if this findings is a bug or not and if it is a port specific issue with Windows XP only.
    Kindly Rgds
    /Ulf, Kentor IT Sweden

    Tracking info is in
    Re: SQL*Plus generated Program Error
    -- cj

  • Oracle Express 10g - SQL Command Line - copy and paste?

    Is there a special key to copy and paste SQL statement in the SQL command line?
    I'm doing a spool and this can only be achieved through the SQL command line. Thanks for the help if any.

    It uses the functionality of the shell it is running in.
    If you're using Windows, right-click on the title bar, select Edit then Paste from the menu that pops up.
    If you select Properties from the menu, you can enable Quick Edit mode, which lets you paste using the right mouse button.
    You can use the up arrow key to recall previous commands.
    If you're using Linux, I think you can paste with the right mouse button. (Or is it the middle mouse button?)

  • Oracle Express 10g - a way to terminate in SQL Command Line interface

    I've downloaded Oracle Express 10g and use the SQL Command Line interface to execute SQL*Plus -- a really simple window / interface without hardly any smarts. In other Oracle installations' SQL*Plus, I'm used to be able to do a Ctrl C to terminate the current SQL that's being executed and the session is still active and I can keep using it. But with the Oracle Express 10g SQL Command Line interface, when I do a Ctrl C the currrent SQL is terminated -- but so is the whole dang session and the window goes away too. There must be a way in the Oracle Express 10g SQL Command Line interface to simply terminate th current SQL results without losing the whole dang session!!! This is so incredibly frustrating it's not even funny. HELP!!!!

    I think your answer is in this thread:
    Re: stopping a query
    Regards, Marc

  • SQL COMMAND LINE DISAPPEARD

    I AM ALREADY IN THE CHAP05 OF THE BOOK. I USED THE OBJECT BROUSER TO CREATE SOME TABLES. AFTER THAT I TRIED TO USE THE SQL COMMAND LINE BUT EVERYTIME I HIT "ENTER", THE COMMAND LINE JUST DISAPPEARED ON ME RIGHT AWAY. I CANNOT EVEN GET THE RESULT AFTER I EXECUTED SOME QUERRIES IN THE COMMAND LINE BECAUSE IT WILL JUST DISAPPEAR RIGHT AWAY AFTER I HIT THE "ENTER", IN THE KEY PAD.
    PLEASE HELP ME. I CANNOT GO AHEAD BECAUSE OF THIS PROBLEM. IM REALLY FRUSTRATED FOR 3 NIGHTS IN A ROW ALREADY. ANY HELP IS GREATLY APPRECIATED.
    THANK YOU.

    Seriously, what book? Are you using the browser interface for Oracle 10g Express Edtion (XE)? If so, is there a "Run" button at the top right of the screen? Or are you using the SQL*Plus client application which runs in a Windows command window?
    btw your caps lock key is stuck.

  • Run Sql command line is not openning.

    Hi !
    sql command line is not openning.(windows 2008 enterpise and oracel 11g express)
    please tel me is there any other way to open it, i have tried it from the phyical directory also.
    but oracel is working properlly.
    i wanted it load data from captured data to oracle database. (i was migrating).
    yours sincerely
    Edited by: 944768 on Aug 14, 2012 12:12 AM

    Open a command prompt (cmd), from there run:
    c:\> sqlplus user/passwordHow do you plan to "load data", based on what format? Sqlplus might not be the right tool for the job.
    Sql*loader is one option. Another option to help with migration is Oracle SQL Developer (separate, free tool).

  • Ref : SQL Command Line -

    Hi Experts,
    I've started using SQL Command Line to write queries. But the problem is ,i'm not able to format the o/p properly.
    select * from v$sqlarea;When i executed this query, the output came in very unreadable format and covered the entire Editor window.
    Can anybody please prove me some tips to improve the readability?
    Thanks in Advance,
    Ranit B.

    >
    Thanks... I'll keep these in mind.
    >
    That isn't what you need to do to learn how to get formatted output. You need to actually try things. You learn by doing, not by reading.
    Start simple. Use the query in the doc example. See how messy the output is with no formatting. Then use the formatting in that example. See the difference it makes.
    Then do the same with your query. Just use two or three columns. See how messy the output is when you don't specify formatting. Then try different formats and see what effect it has.
    Once you have done that you will notice that you now get the nice output you want but in order to get it you have to spend time looking up what the column names and datatypes are and hand-coding a bunch of formatting.
    You can make that job easier in a couple of ways. One way is to create a script that contains the formatting and query and then just execute that script when you want to run that query.
    The second way is more complex but more flexible. You can add parameters to your script that control which columns get used, how many rows will get returned and how to sort the output. Then you can either pass the parameters manually every time you run the script, have the script prompt you for the parameters or just create several versions of the script that do things different ways.
    SB's advice may have seemed simplistic but unless you start building your own 'toolkit' you will never advance to the stage where you can do those things easily. There are just too many permutations to try to remember them all when you need to. You need to start creating the building blocks that you can use to build on and create more complex combinations.
    I have one question for you. Will you commit to trying that doc example and then trying similar formatting for your own query?

  • How do I generate PDF and CHM files from the a command line in windows?

    I am trying to set up a PC to build some documents during the night. I was looking for a way to get framemaker to generate PDF and CHM files via a command line in windows? How is this done with FrameMaker 12
    Thanks for the help
    Alex

    Hi,
    The part with generate a PDF via a jsx seems to work OK, except when FrameMaker decides that it will not work anymore. I must say I am not impressed with the stabillity of FrameMaker 12, there is room for a lot of improvement!.
    I have given up on how to figure out how to get FrameMaker 12 to generate chm files via jsx scripts, any pointes are still very welcome.
    The route I have taken is I make a RoboHelp project for each chm files I need to generate. The only thing this RoboHelp project contains is a link to the actual FrameMaker project I want to generate a chm file.
    To make the chm I start RoboHelp with a script that
    1) Opens the desired project
    2) Sets the desired output chm files name
    3) Generates the chm file
    4) And finally quits RoboHelp
    Below is a copy of the jsx in case anyone can reuse anything.  And yes parameters are transfered via enviroments variable. I have later learned there is some way to read the parameters given at a command line but this seems to work so I stick to this for now.
    // Get parameters
    var RhProjName = $.getenv("RH_PROJ_NAME");
    var RhChmName = $.getenv("RH_CHM_NAME");
    var RhLogFileName = $.getenv("RH_LOGFILE_NAME");
    var RhLogFile = new File(RhLogFileName);
    RhLogFile.open("w", "TEXT");
    RhLogFile.writeln("RH_PROJ_NAME : ", RhProjName);
    RhLogFile.writeln("RH_CHM_NAME : ", RhChmName);
    doc = RoboHelp.openProject (RhProjName, 1);
    var sslmngr = RoboHelp.project.SSLManager;
    for(var i = 1; i<=sslmngr.count; i++){
      var ssl = sslmngr.item(i);
      if(ssl.name == 'Microsoft HTML Help') {
        // Set the output location and file name
        ssl.setSpecificProperty("DestinationProjectName", RhChmName);
        if (doc.saveAll(true) ) {
          RhLogFile.writeln("saveAll returned TRUE");
        } else {
          RhLogFile.writeln("saveAll returned FALSE");
        if ( ssl.generate() ) {
          RhLogFile.writeln("ssl.generate returned TRUE");
        } else {
          RhLogFile.writeln("ssl.generate returned FALSE");
      } else {
        // alert ("Found " + ssl.name + " dont do anything");
    doc.saveAll(true);
    RhLogFile.close();
    RoboHelp.closeProject();
    RoboHelp.quit();

  • Running '3D Toolkit' from a Command Line (in Windows)

    I have found the knowledgebase article "Running Acrobat 4.0 or Later from a Command Line in Windows" (http://www.adobe.com/support/techdocs/321090.html). Is there any way to run the '3D Toolkit' from Command Line, too?

    Hmmm... about all you can do is just open the file.
    Cheers,
    Rocky

  • Connection error when logining in from sql command line

    I'm getting the following errors when I attempt to connect using the sql command line. I have installed 10g Express on XP home addition. The errors are as follows:
    ORA-01034 Oracle not available
    ORA-27101 Shared memory realm does not exist.
    Thanks

    I am getting this error in the oradim log file:
    ORA-01078: failure in processing system parameters
    ORA-01565: error in identifying file 'D:\oraclexe\app\oracle\product\10.2.0\server\dbs/spfileXE.ora'
    checked this directory and it is empty
    should I uninstall and reinstall. Can I get this file somewhere?

  • Removing a cs5 extension from the command line on Windows broken ?

    On Windows
    "Adobe Extension Manager CS5.exe" -suppress  -remove product="Dreamweaver CS5" extension="Sample"
    does not work. MacOS similar cmd line works fine. The process always exits with a non-zero status. If I run w/o -suppress the GUI for Extension Mgr
    shows up w/o actually removing the extension on Windows!
    Is this a known bug ? Any workaround to uninstalling an extension from command line on Windows ?

    I just found out how. Thanks!

  • Testing Java Concurrent Program on the command line in Windows

    I'm using the suggestions in:
    http://blogs.oracle.com/xmlpublisher/2007/05/02
    to test my Java concurrent program on the command line. Our production environment is running on Unix. I've been able to test it successfully on the Unix environment from the command line. However, it fails when I try to test it on the Windows command line with the following stack trace:
    Exception in static block of jtf.cache.CacheManager. Stack trace is: oracle.apps
    .jtf.base.resources.FrameworkException: IAS Cache initialization failed
    at oracle.apps.jtf.cache.IASCacheProvider.init(IASCacheProvider.java:225
    at oracle.apps.jtf.cache.CacheManager.activateCache(CacheManager.java:14
    44)
    at oracle.apps.jtf.cache.CacheManager.initCache(CacheManager.java:752)
    at oracle.apps.jtf.cache.CacheManager.<clinit>(CacheManager.java:378)
    at oracle.apps.fnd.cache.Cache.setCacheFullName(Cache.java:228)
    at oracle.apps.fnd.cache.Cache.initCache(Cache.java:114)
    at oracle.apps.fnd.cache.Cache.<init>(Cache.java:89)
    at oracle.apps.fnd.cache.AppsCache.<init>(AppsCache.java:86)
    at oracle.apps.fnd.cache.AolCaches.getCache(AolCaches.java:155)
    at oracle.apps.fnd.profiles.Profiles.<clinit>(Profiles.java:241)
    at oracle.apps.fnd.profiles.ExtendedProfileStore.init(ExtendedProfileSto
    re.java:498)
    at oracle.apps.fnd.profiles.ExtendedProfileStore.<init>(ExtendedProfileS
    tore.java:119)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at oracle.apps.fnd.common.AppsContext.instantiateProfileStore(AppsContex
    t.java:4312)
    at oracle.apps.fnd.common.AppsContext.makeProfileStore(AppsContext.java:
    1171)
    at oracle.apps.fnd.common.Context.setProfileStore(Context.java:970)
    at oracle.apps.fnd.common.Context.setProfileStore(Context.java:952)
    at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java
    :958)
    at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java
    :918)
    at oracle.apps.fnd.common.AppsContext.<init>(AppsContext.java:752)
    at oracle.apps.fnd.cp.request.CpContext.<init>(CpContext.java:141)
    at oracle.apps.fnd.cp.request.CpContext.<init>(CpContext.java:124)
    at oracle.apps.fnd.cp.request.Run.main(Run.java:127)
    Caused by: oracle.apps.jtf.base.resources.FrameworkException: null
    null
    CacheDefaultConfig.properties (The system cannot find the file specified)
    at oracle.apps.jtf.base.resources.FrameworkException.convertException(Fr
    ameworkException.java:607)
    at oracle.apps.jtf.base.resources.FrameworkException.addException(Framew
    orkException.java:585)
    at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkExc
    eption.java:66)
    at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkExc
    eption.java:88)
    at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkExc
    eption.java:202)
    at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkExc
    eption.java:218)
    at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkExc
    eption.java:249)
    ... 26 more
    Exception in thread "main" oracle.adf.mds.exception.MDSRuntimeException: Cache n
    ot initialized
    at oracle.apps.fnd.framework.mds.cache.ATGCacheMgrDelegateImpl.<init>(AT
    GCacheMgrDelegateImpl.java:325)
    at oracle.apps.fnd.framework.mds.cache.ATGCacheFactoryImpl.<init>(ATGCac
    heFactoryImpl.java:44)
    at oracle.apps.fnd.cp.request.CpContext.getMDSContext(CpContext.java:116
    9)
    at oracle.apps.fnd.cp.request.Run.main(Run.java:130)
    I've put the appsborg2.zip file in my classpath. I've also copied the entire (1 GB) worth of Java .class files for Oracle apps onto my computer and placed it on my classpath. Is there something that prevents me from testing out my Java concurrent program on my Windows machine from the command line?

    i think if u run the ap in the command line then it has to stay open, you could try writing a .bat file then when that is executed it will only open the command line for the program execution (i think)

  • Can't change activation only mode to off using the command line in Windows 7 64 bit

    I used the command line to turn activation only mode on and now when I use teh command to turn it off it will not change the iTunes setup. I am on Windows 7 64 bit. I tried uninstalling itunes and reinstalling and it is stillin activation only mode.

    Hi! Thx for your quick reply! I am still unsure what to do tho---see my questions below in bold:
    Windows 7 comes with its own version of the standard PostScript driver. = Where is this driver? I have no idea how to find it, it doesn't show up in my Printer menu in FM?
    Given that PostScript generated by a driver can be highly device-specific, you need to install the driver as modified by the PPD file for the device in question. Most printer manufacturers in fact provide a PostScript driver installer that associates their printer's PPD file with the standard Windows Printer driver and subsequently creates what is called a PostScript printer driver instance for the particular device on the I/O port you designate. = ??? I've only updated a PPD file for watermarks and have no idea what this means...is there a step-by-step instruction for this? I just need to download a PS driver to select that works & doesn't freeze up my FM when creating a .ps file.
    The real question thus is exactly what are you trying to generate PostScript for? = I create a PS, & then use Distiller to create a PDF. This enables me to have a PDF that automatically has Bookmarks, the TOC/LOF/LOT & all corss-refs are hyperlinked, etc.
    If you are trying to create PostScript for distillation into PDF, Acrobat installs a PostScript driver instance of its own, labelled Adobe PDF, that is associated with the Acrobat Distiller PPD. = I have tried the Adobe PDF selection from my Printer menu in FM, but it freezes up FM and I have to close the whole program & no PDF generates.
    BTW, although you may be successful in installing and running FrameMaker 8 on Windows 7, in fact Adobe officially does not support FrameMaker 8 on Windows 7. = I don't know what to say---the upgrade is too expensive for some of us folks out here right now, so we all need to work with what we have for now!
    I appreciate your help, thank you.

  • Compress/zip files from the command line in Windows 7?

    In Windows 7 is there a native way to compress or zip files from the command line?  I'd like to do it without installing any third-party utilities such as 7Zip.

    I fully agree that Compact is not the answer. There are additional concerns with the Compact command. It enables disk compression which is a total no-no. Very bad! It makes your computer very slow and is quite difficult to undo. The only time anyone should
    use this command is when they're removing disk compression because someone turned it on to save space.  Turning this off has to be done by booting into the recovery console, if my memory serves me correctly, and it's a real nuisance.  So
    definitely no to the Compact command.
    If you wanted to compress files before sending them to another drive, or over a network, or by email, then Compact wouldn't actually help at all because the files have to get uncompressed whenever they're accessed, especially before sending them anywhere. 
    When I say accessed, I mean that just looking at a file triggers the OS to decompress it in the background and present you with an uncompressed version of it then letting you change it and recompressing it again for storage every single time you access the
    file, which is why your machine gets slower.  If you have folders or files that have blue text instead of black, then you've probably already made this mistake.
    I would also like to know if there is a built-in command for zipping files/directories, or, if there isn't such a thing built into Windows, then I would like to know if this is feature is accessible through Visual Studio, which would be just as good as having
    a command-line program for those of us that do a bit of programming.
    If anyone knows if MS provides such a feature, either by command-line or through an API, then I'd love to hear about it.  Good luck to those of you that have disk compression turn on.

Maybe you are looking for

  • VCS CLUSTER for 9.2.0.8 patch

    Hi, I have to upgrade from 9.2.0.6 to 9.2.0.8 on VCS 2 Node os cluster. Here I would like to know the steps how the patchset 9.2.0.8 will be installed on both server which is active/passive? One server is ACTIVE and other one is PASSIVE and the OS is

  • Damaged USB Ports - Need solution

    Hello, I am having a problem with my Macbook Pro 13-inches Early 2011           OS X Version 10.7.5           Processor 2.3 CHz Intel Core i5          Memory 4 GB 1333 MHz DDR3          Startup Sisk Macintosh HD Since about a year I noticed that one

  • Nokia C# Problem with MobilePDF

    I  have attempted, unsuccessfully so far, to get MobilePDF to work on my Nokia C3. It downloads easily enough through OVI via cable, however when I attempt to open it I get the following error message: "Application error, "security java/lang/security

  • Xorg 7.0 updated successfully but kde (kdm) won't start

    i updated to xorg 7.0 following the wiki but, having kdm in my modules listed, kdm/kde won't start now...

  • Проблемы энергопотребления во сне Lenovo miix 2 8

    Планшет непригодный к использованию из-за того, что батарея во сне разряжается моментально (около 23%, а то и больше за 8 часов). Вот мой отчет sleepstudy. Не могу понять причину происходящего. Буду рад любым полезным советам.