How to setup shortcut to insert a command in Oracle sql shell?

Hi,
Under sqlplus shell, if i want to frequently insert a long command while
tuning queries, is there any way I can press a couple of keys to insert the
command that is pre-prepared.
For example, I need to frequently insert:
sqlplus> alter session set events '10053 trace name context forever';
anyone knows some tips to avoid typing?
thanks,
Rick

user10217806 wrote:
i mean sqlplus command line input interface under linux.Well, Ivan showed how to just use some sql files to do it .. not exactly pasting your command at the command line, but useful, nevertheless.
As for actually pasting text at the command prompt, as I said, what you are asking has nothing to do with sqlplus itself and everything to do with the environment in which you are running it. For instance, if I use Putty to connect to my *nix boxes, it is a feature of putty to paste whatever is in the clipboard by simply right-clicking the mouse.  I can do the same thing at a Windows command prompt window if I have the properties set for 'quick edit'.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How to Setup an ACL over a Command in solaris 2.6

    Hi all,
    Has anyone have an idea on how to setup an ACL over a command
    in solaris 2.6 . i.e: to force a user (or a group) to enter a
    password to run a command (like mount and others).
    Thanks for your help.
    haed98.
    [email protected]

    Hi head98,
    You can set ACL using setfacl commands. This way you can exclusively assign read/write/execute permissions on command that you wish. But ACL doesn't prompt for passwords or you can set passwords using ACL. One way of doing this will be to create wrapper for commands which will prompt for passwd, compare them with /etc/shadow and then execute the real command.
    Hope this helps, Thanks. SUN/DTS

  • How to setup Multi Reporting Currency by SubLedger in Oracle EBS 12.1.3

    Hi,
    I would like to ask about how to setup (steps) multi reporting currency by Subledger, by Balance in Oracle EBS R12.1.3
    Thanks
    fn

    Hi;
    Please see:
    Reporting Currency Function With Subledger Option In Release 12 [ID 785385.1]
    Hope it helps
    Regard
    Helios

  • How to change the password of a schema using Oracle SQL Developer

    Hi need to change the password of a schema using Oracle SQL Developer how do i do it?

    Hi
    alter user username identified by password

  • How can I change the format of numbers in Oracle SQL Developer 1.0 ?

    The value 1.4345 from a table is represented in Oracle SQL Developer 1.0 like 1.5
    How can I change this to see all the digits ?
    Thanks

    Where did you see that, in the SQL Worksheet or viewing the data Connections ->.. tables ->.. tree?
    What datatype, precision and column name you have?
    I use version 1.0.0.15.57 and seems to be working allright.
    - Babu Rangasamy

  • How to setup and send mails using utl_mail on Oracle E-Biz R12

    Dear All
    There is a new requirement from client to setup and send mails using utl_mail utility on Oracle EBS R12.1.1
    What is utl_mail utility ? what is the difference between Workflow Notification Mailer and this utility/tool?
    What are etiquette's to pursue mail functionality in apps / db?
    - Chetan

    What is utl_mail utility
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_mail.htm
    How to Use the UTL_MAIL Package [ID 269375.1]
    FAQ and Known Issues While Using UTL_SMTP and UTL_MAIL [ID 730746.1]
    Master Note For PL/SQL UTL_SMTP and UTL_MAIL Packages [ID 1137673.1]
    Workflow Notification Mailer:
    you can send email using workflow notification email procedures,These ar built into the system and only need some minor configuration. check Workflow Administrator's Guide, Chapter 2, Section: Setting Up Notification Mailers for more detail.

  • How to use Pivot function for group range in oracle SQL

    Hi,
    Good Morning !!!
    I need to show the data in the below format. There is 2 columns 1 is State and another one is rate.
    State     <100     100-199     200-299     300-399     400-499     500-599     600-699     700-799     800-899     900-999     >=1000     Total
    AK     1     2     0     4     1     4     4     35     35     4     1     25
    AL     0     0     2     27     10     17     35     2     2     35     0     103
    AR     0     0     1     0     0     2     2     13     13     2     0     6
    AZ     0     1     2     14     2     14     13     3     3     13     0     57
    CA     0     0     1     6     2     7     3     4     4     3     0     34
    Developed the below query but unable to use the range on pivot function . Please help on this.
    (select      (SELECT SHORT_DESCRIPTION
         FROM CODE_VALUES
         WHERE CODE_TYPE_CODE = ad.STATE_TYPE_IND_CODE
         AND VALUE = ad.STATE_CODE
         ) STATE,
    nr.rate
         FROM neutrals n,
         contacts c,
         addresses ad,
         xref_contacts_addresses xca,
         neutral_rates nr
                        where n.contact_id=c.contact_id
                        and n.address_id = ad.address_id
                        and xca.address_id=ad.address_id
                        and xca.contact_id=c.contact_id
                        and nr.contact_id = n.contact_id
                        and nr.rate_frequency='HOUR' )

    user8564931 wrote:
    This solutions is useful and Thanks for your reply.
    How can i get the Min value and Max value for each row ?
    State     <100     100-199     200-299     300-399     400-499     500-599     600-699     700-799     800-899     900-999     >=1000     Total     Min     Max
    IL     0     0     1     5     1     5     40     1     1     40     0     53     $10     $2,500
    IN     0     0     0     0     0     0     1     49     49     1     0     3     $70     $1,500This?
    WITH t AS
            (SELECT 'AL' state, 12 VALUE FROM DUAL
             UNION ALL
             SELECT 'AL' state, 67 VALUE FROM DUAL
             UNION ALL
             SELECT 'AL' state, 23 VALUE FROM DUAL
             UNION ALL
             SELECT 'AL' state, 12 VALUE FROM DUAL
             UNION ALL
             SELECT 'AL' state, 12 VALUE FROM DUAL
             UNION ALL
             SELECT 'AL' state, 78 VALUE FROM DUAL
             UNION ALL
             SELECT 'AL' state, 34 VALUE FROM DUAL
             UNION ALL
             SELECT 'AL' state, 4 VALUE FROM DUAL
             UNION ALL
             SELECT 'AL' state, 12 VALUE FROM DUAL
             UNION ALL
             SELECT 'AL' state, 15 VALUE FROM DUAL
             UNION ALL
             SELECT 'AZ' state, 6 VALUE FROM DUAL
             UNION ALL
             SELECT 'AZ' state, 123 VALUE FROM DUAL
             UNION ALL
             SELECT 'AZ' state, 123 VALUE FROM DUAL
             UNION ALL
             SELECT 'MA' state, 23 VALUE FROM DUAL
             UNION ALL
             SELECT 'MA' state, 120 VALUE FROM DUAL
             UNION ALL
             SELECT 'MA' state, 456 VALUE FROM DUAL
             UNION ALL
             SELECT 'MA' state, 11 VALUE FROM DUAL
             UNION ALL
             SELECT 'MA' state, 24 VALUE FROM DUAL
             UNION ALL
             SELECT 'MA' state, 34 VALUE FROM DUAL
             UNION ALL
             SELECT 'MA' state, 87 VALUE FROM DUAL
             UNION ALL
             SELECT 'MA' state, 23 VALUE FROM DUAL
             UNION ALL
             SELECT 'MA' state, 234 VALUE FROM DUAL
             UNION ALL
             SELECT 'MA' state, 789 VALUE FROM DUAL
             UNION ALL
             SELECT 'MH' state, 54321 VALUE FROM DUAL),
         -- End of test data
         t1 AS
            (  SELECT state,
                      NVL (COUNT (DECODE (VALUE, 0, 0)), 0) "<100",
                      NVL (COUNT (DECODE (VALUE, 1, 1)), 0) "100-199",
                      NVL (COUNT (DECODE (VALUE, 2, 2)), 0) "200-299",
                      NVL (COUNT (DECODE (VALUE, 3, 3)), 0) "300-399",
                      NVL (COUNT (DECODE (VALUE, 4, 4)), 0) "400-499",
                      NVL (COUNT (DECODE (VALUE, 5, 5)), 0) "500-599",
                      NVL (COUNT (DECODE (VALUE, 6, 6)), 0) "600-699",
                      NVL (COUNT (DECODE (VALUE, 7, 7)), 0) "700-799",
                      NVL (COUNT (DECODE (VALUE, 8, 8)), 0) "800-899",
                      NVL (COUNT (DECODE (VALUE, 9, 9)), 0) "900-999",
                      NVL (COUNT (DECODE (VALUE, 10, 10)), 0) ">=1000"
                 FROM (SELECT state,
                              CASE
                                 WHEN VALUE < 100 THEN 0
                                 WHEN VALUE BETWEEN 100 AND 199 THEN 1
                                 WHEN VALUE BETWEEN 200 AND 299 THEN 2
                                 WHEN VALUE BETWEEN 300 AND 399 THEN 3
                                 WHEN VALUE BETWEEN 400 AND 499 THEN 4
                                 WHEN VALUE BETWEEN 500 AND 599 THEN 5
                                 WHEN VALUE BETWEEN 600 AND 699 THEN 6
                                 WHEN VALUE BETWEEN 700 AND 799 THEN 7
                                 WHEN VALUE BETWEEN 800 AND 899 THEN 8
                                 WHEN VALUE BETWEEN 900 AND 999 THEN 9
                                 WHEN VALUE >= 1000 THEN 10
                              END
                                 VALUE
                         FROM t)
             GROUP BY state)
    SELECT STATE,
           "<100",
           "100-199",
           "200-299",
           "300-399",
           "400-499",
           "500-599",
           "600-699",
           "700-799",
           "800-899",
           "900-999",
           ">=1000",
             "<100"
           + "100-199"
           + "200-299"
           + "300-399"
           + "400-499"
           + "500-599"
           + "600-699"
           + "700-799"
           + "800-899"
           + "900-999"
           + ">=1000"
              total,
         least("<100",
           "100-199",
           "200-299",
           "300-399",
           "400-499",
           "500-599",
           "600-699",
           "700-799",
           "800-899",
           "900-999",
           ">=1000") min_val,
          greatest("<100",
           "100-199",
           "200-299",
           "300-399",
           "400-499",
           "500-599",
           "600-699",
           "700-799",
           "800-899",
           "900-999",
           ">=1000") max_val
      FROM t1
    /

  • How to implement password policy for a software in oracle (sql) forms & reports 6i ?

    Hi all , I have to implement password policy for an already existing software which was created 2 to 3 years before.
    What exactly i want to do is I must alert the user every month to change his/her password. I have no idea about it.
    Can anyone help me how to start with it? Or can you provide me the links where i can learn & implement in the software?
    Oracle Forms & Reports Builder 6i.
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production.
    Thank You.

    You can try this:
    Establishing Security Policies
    Using database policy, you can force user to change password with Oracle forms 6i.
    Regards

  • How to view execution history for any date in oracle SQL developer tool ?

    hi, i want to view some executed queries(2 months before) in oracle SQL Developer. if i press F8 it shows execution history for only last 30 days. is there any option(query) or something to view execution history for specific date ? i want to see some queries, which is executed before 2 months in my oracle SQL developer tool. Pls help me out.

    sb92075 wrote:
    943838 wrote:
    hi, i want to view some executed queries(2 months before) in oracle SQL Developer. if i press F8 it shows execution history for only last 30 days. is there any option(query) or something to view execution history for specific date ? i want to see some queries, which is executed before 2 months in my oracle SQL developer tool. Pls help me out.it will never occurWhy not? Are you a member of the product team that develops SQL Developer?
    To the OP, there is a forum for SQL Developer
    SQL Developer
    And there's also a sticky on the forum for product enhancement requests
    "Feature Requests, Extensions and General Collateral "
    Cheers,

  • How to write java hello world to run in oracle sql prompt

    Hi,
    I'm newbie of this chapter. I know JDBC. I wanted to introduce the JDBC process & start executing the same in orcle sql prompt.
    Do enlighten with an example.
    Thnx in Advance

    create or replace and compile java source named helloworld as
    public class HELLOWORLD{public static String HELLOWORLD() {return "Hello World";}}
    create or replace function printhelloworld return varchar2 as
    language java name 'HELLOWORLD.HELLOWORLD() return String';
    SQL> select printhelloworld from dual;
    Hello WorldRegards
    Laurent

  • How to setup DRILL/PIVOT in table region :

    plzz tell me how to setup DRILL/PIVOT in table region in Oracle Daily Business Intelligence Dashboard.
    what is the setting? to show drill/pivot option in table region [first column]

    Hi Sai Krishna,
    There is a very small difference between these two when you will create dependent LOV in Table or Advanced table the all the FormValue items to store ids which will be used as crieteria map or return items should be created inside table/Advanced table region.
    Hope this will help.
    Regards,
    Reetesh Sharma

  • How to setup DISK SPACE alert on OEM 10g Grid Control...

    Gurus,
    I am trying to setup DISK SPACE notification / alert thru OEM 10g Grid Control, but so far no luck.
    Can someone help/guide me on how to achieve this?
    Please advice.
    Thanks & Regards,
    Kartik

    Those two links don't say anything about "DISK SPACE ALERT" I already know how to setup notification. I suppose you are talking about Filesystem Space Available (%)
    If you need to setup an alert (Notification) then i suppose you need to setup an notification rule.
    Yes, these notes do not have the key word "DISK SPACE ALERT" you are looking for, but if you go through the first note CLEARLY and COMPLETELY, you should find your answer.
    And he has given an example for Filesystem space available in this note, which is what you are looking for.(I think so)
    Say for Disk Space, you create a notification rule for target hosts and have metric "Filesystem Space Available (%)" defined in that rule.
    If you aren't talking about notifications and just want to setup an filesystem space available metic, then follow this note:
    How To Setup Host Metrics For Filesystem
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=749341.1

  • 1.Assign shortcuts to scripts 2. Actions remember insert menu commands when app is started

    It been ask before... Many times.  There is probably a current request right now.   It will be asked again... And again... And again...  Under keyboard shortcuts, allow scripts to assigned a shortcut.  Also have actions remember insert menu commands when the application is restarted.   Was patiently waiting years ago... Now I am starting to grit my teeth. When my dentist lectures me over grinding my teeth, she will not be as forgiving as I have been over the years.   It is time to set a small portion of available resources to fix and add functionality to this.

    OK, so at least we have one solution "with shortcut for script problem":
    1. Put "script.jsx" into folder  Mac OS X > Applications/Adobe Illustrator {version}/Presets/{Lang}/Scripts
    2. Make Action, "insert menu item" in it -> select "File\Scripts\script.jsx"
    3. Assign shortcut to this action. PROFIT
    But! The problem is: Illustrator "forgets" about menu item in action after restart.
    Therefore you can use script shortcut only one time per "session", and every time starting we need to make "insert menu item".
    Well, this is the second part of topic question, I guess. And I don't have solution. This is what I got:
    0. If you have several scripts with shortcuts, everyday inserting all scripts in actions is boring. Make a folder for this actions. And "Save actions" it to ".aia"
    1. Every time starting Illustrator — Delete folder with your special "scripts-actions" (because it's actions is emptied!)
    2. Then go to "File>Scripts>...". Now just gently stroke your scripts with cursor. Like a kitty. Ahahaha! )) It is not a joke!!! Do not start the scripts, just enter to its' submenu.
    3. Now "Load actions" from your .aia. Have a nice automated session with your magic scripts! This works for me. If you have daily work routine and 5-10 scripts, this is the best solution.
    * If you skip step 2, you will get "Some event has not been registered for actions"! And empty action. If first you will stroke the kitty, you will get your magic shortcuts after "Loading actions"! As I told, this not a joke, but strange Illustrator behavior.
    * If you did not delete previous folder (step 1), you'll get 2 folders with actions, old one — without scripts, new one — without assigned shortcuts. And nothing works. Delete all and reload.
    * One more thing. I have Scriptographer Extension. This extension manages scripts (js) and has "scriptographer palette". In this palette I found shortcuts, to execute selected script and etc. So, in theory it is possible to rebuild this extension with shortcuts for some scripts. Maybe we should dig in that direction? I'm too stupid for this.

  • How to setup a PDF file with photo insertion

    Hi
    I am new to the PDF interactive world.
    I have recieved a document which i need to create field of text and photo insertion.
    I have figured out the text field. But i cannot figure out how to create a photo insertion field.
    I am trying to make a document for a client and the template need a photo field.
    Can someone help please

    This cannot be done with the Acrobat on the Mac. I'd recommend using FileMaker Pro. This program is relatively inexpensive and is a database to boot. If your filing out forms, its always nice to be able to collect, search, and manipulate the data. If the form has to be distributed to different users, then FileMaker Advanced might be the ticket since you can distribute runtime versions of the file.

  • Can you create a keyboard shortcut to insert a css comment (/*  */)in DW?

    hello DW knowers!
    When writing code i like to use shortcuts for inserting commands.
    For instance, to insert a html comment, i created a shortcut in the panel for creating shortcuts (you can do this finding in the shortcuts panel the 'insert' option and then find 'comment').
    however, i did not find a way to create this for a css comment (/*   */) and i find myself forced to use the coding toolbar to insert this.
    I would really like to find a way to avoid this. Ofcoarse i can still type it in manually, or use the css rules panel to temporarely  deactivate a rule, but selecting a piece of code and then typing a shortcut would be much easier.
    Otherwise a great idea for the next upgrade of DW?
    thanks for an answer, if there is a possibility
    jo-ann

    I use a Logitech G19 keyboard, which allows you to create one keypress shortcuts for virtually any keypress sequence. It has ten extra keys on the left side of the keyboard which you can program however you please (a total of 30 shortcuts). This particular keyboard is kind of expensive ($200) but there are other less expensive keyboards that offer similar capabilities. Think how many times a day you type <p> or how about <a href= . With a keyboard like this, you can do it in one keypress.

Maybe you are looking for

  • Address Book Issues

    I just this week finally upgraded from 10.4.11 Tiger to the latest Snow Leopard through the Mac Box Set. I had some minor issues with a few things, but my biggest problems were with my contacts in Address Book. After the installation, I looked at my

  • Compare two text file

    i am comparing two text file by checking occurance of a line in file 1 by comparing it with each line in file 2(not line by line) i have to print in 3rd text file as difference please see my progrm and tell me modification required package comp.vnet.

  • BI Publisher Template problem

    Hi , I have been using Word with BI Publisher Template builder add-on for a while and it used to work fine. Today it suddenly started complaining Compile error in hidden module: Module_editFF Please let me know if you have seen this problem and if yo

  • Create this Slideshow in Adobe Muse

    Hi Everybody. Im new in Adobe Muse and I'm looking and trying all the effect that Muse can make. I have see a slideshow in this webpage http://www.lexusls.asia/ (the slideshow of the year's) and I ask If Muse can handle this effect, I should make it

  • Sun 7420 (Storage Pool creation)

    We have two Sun 7420 Storage controllers managing one disk shelf. We have divided the existing disk shelf into two different pools so that we can use both the controllers in active-active mode. Is there any way we can configure both the controllers i