Copying and pasting sql statement in sql*plus

how do you paste sql statement in sql*plus...I have tried the following options, getting the windows interface for this following the documentation below but that didnt work
http://download.oracle.com/docs/html/A88829_01/ch3.htm
then i tried creating a simple .txt file with my sql statement and tried running it using @name(where name is the name of the file) and it is giving me the following error SP2-0310: unable to open file "firstscriot.sql

Hi,
Using the command-line interface, copying is a pain. Right click on the title bar at the top of the window, then click on "Edit" and "Mark". After you highlight the text you want to copy, you can press the Enter key to copy it.
To paste, simply right-click. It doesn't matter how the copy buffer got filled (the cumbersome process I described above, using Control-C in Notepad, or whatever).

Similar Messages

  • Copy and paste SQL?

    im doing a project for a class, is there anyway i could just copy a bunch of pages of SQL and paste it somewhere in APEX and my tables, views, and functions, etc. will show up? thanks alot

    Go to SQL Workshop and use SQL Commands or SQL Scripts icon.
    SQL Commands allows you to execute one SQL command at a time
    SQL Scripts allows you to write or upload a SQL Script into the database and than run it at any time you want.

  • 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?)

  • Can I cut, copy and paste a block of text in PL/SQL Developer?

    I have been using TextPad to put together SQL statements by using the cut, copy and pasting of BLOCKS of text.
    Example:
    I copy the describe of a table, replace varchar, number, date will 10 spaces and then copy the column names in a block and paste it further down the TextPad.
    Then I join the lines into one string, replace the spaces with commas
    Then I insert in front of the column name the INSERT INTO table_name(
    Then I get the values by copying from somewhere else and paste then in block text where they need to go. ETC, ETC.
    Thank you, Bill

    In 2.0 you should be able to just type
    INSERT INTO emp(
    and do multiple selections from code completion list of suggested emp columns (by holding ctrl or shift key). Same for "select" and "from" clauses (with optional auto aliasing).

  • Copying text in Sql*Plus

    I seem to be unable to copy and paste text using the "highlight text and right-click" procedure in Sql*Plus 8.0.6.0.0. The right-mouse button seems to work in everything else so it doesn't seem to be the mouse that is the problem. Does anybody know if this could be due to the way Sql*Plus is set up or some other Oracle related problem?

    You can either do SET PAGESIZE 0 which turns off all headings.
    Of you can do SET PAGESIZE 50000 which will reprint the headings every 50,000 lines.
    50,000 is the max. I don't know of a way to show the headings once, and only once. (you can turn off headings and fake them one time with a select ... from dual before your main query).

  • Oracle 8i SQL and PL/SQL plus

    hi everybody, i am trying from two weeks to install oracle 8i SQL and PL/SQL plus on my PC on both Windows 2000 & XP and I installed every java runtime environment I found "the old and the new" but the SETUP insists on not working though it worked on the instructor's PC smoothly without problems.

    If you are getting any errors, you should tell us. Also, you should let us know what version you are trying to install.
    A very common problem at the moment is with Pentium 4 processors. If you have a Pentium 4, search the forums to find the answer.
    Alison

  • Re-use SELECT statement in several procedures (other than copy-and-paste)

    Our site uses a procedure of the following procedure construct to generate Excel spreadsheets:
    TYPE retCur is REF CURSOR;
    PROCEDURE get_data_for_excel (
      p_filter1 VARCHAR2
      ,p_filter2 VARCHAR2
      ,c_OutCursor out retCur
    IS
      retCursor retcur
    BEGIN
      BEGIN
      OPEN c_OutCursor FOR
        SELECT XMLELEMENT("TR", XMLFOREST(
           "col1" AS "TD"
           ,"col2" AS "TD"
           ,"col3" AS "TD"
          )).getstringval()DATA FROM (SELECT * FROM
       SELECT col1, col2, col3
       FROM sometable
       WHERE somecolumn = p_filter1
        AND someothercolumn = p_filter2
       ) x);
      END;
    END get_data_for_excel
    My question is, the subselect:
    SELECT col1, col2, col3
    FROM sometable
    is used in another procedure. Is there a way to reuse the select from the other procedure into this procedure so we don't copy-and-paste each time the other procedure is changed?
    Thanks a lot.

    This is a design decision you need to make BEFORE it goes into production.
    Right now you have
    procedure get_data_for_excel (
       p_filter1 VARCHAR2
      ,p_filter2 VARCHAR2
      ,c_OutCursor out retCur );
    What, I think jihuyao is trying to say is:  convert it to a pipelined function.
    I agree with jihuyao as I have ran into to this problem before.
    create type d4e_t as object ( DATA xmltype);
    create type d4e_table is table of d4e_t;
    create or replace function get_data_for_excel (
       p_filter1 VARCHAR2
      ,p_filter2 VARCHAR2 )
      return d4e_table pipelined;
    as
    begin
      for curr in ( --start of SELECT statement
    SELECT XMLELEMENT("TR", XMLFOREST(
           "col1" AS "TD"
           ,"col2" AS "TD"
           ,"col3" AS "TD"
          )).getstringval()DATA FROM (SELECT * FROM
       SELECT col1, col2, col3
       FROM sometable
       WHERE somecolumn = p_filter1
        AND someothercolumn = p_filter2
       ) x) )
    LOOP
      pipe row( d4e_t( curr.data ) );
    end loop;
    return;
    end;
    From there, you use it elsewhere as if it were a table.
    insert into t
    select X.data from table( get_data_for_excel( l_var1, l_var2 ) ) X;
    MK

  • Copy command for SQL*Plus

    Am trying to use the copy command in SQL*Plus to copy a table
    from an Oracle database to a local table on my machine in
    another format. Keep getting errors. It seems to contact the
    remote machine fine, but can't locate my local machine or figure
    out where to put it. Any suggestions on how to set up my
    Windows 95 machine to get the copy command working would be
    greatly appreciated. Thank you.
    null

    Hi,
    Here is an example :
    SQL> copy from scott/tiger@q4_production_server create ord -
    using select * from ord;Array fetch/bind size is 15. (arraysize is 15)
    Will commit when done. (copycommit is 0)
    Maximum long size is 80. (long is 80)
    Table ORD created.
    21 rows selected from scott@q4_production_server.
    21 rows inserted into ORD.
    21 rows committed into ORD at DEFAULT HOST connection.
    Hope this helps,
    Bala
    Laura Michaels (guest) wrote:
    : Am trying to use the copy command in SQL*Plus to copy a table
    : from an Oracle database to a local table on my machine in
    : another format. Keep getting errors. It seems to contact the
    : remote machine fine, but can't locate my local machine or
    figure
    : out where to put it. Any suggestions on how to set up my
    : Windows 95 machine to get the copy command working would be
    : greatly appreciated. Thank you.
    null

  • I cannot copy and paste details from my bank statement into a word document, without the formatting changing.I have a message in my Error console which reads: server does not support RFC 5746, see CVE-2009-3555

    Since transferring data from my desktop to my laptop, i am now having problems copying and pasting details from my bank website in to a word document, the formatting is all over the place. This didnt happen before, when i pasted the details in to the word document the formatting was exactly the same as on the webpage. If I use internet explorer, I dont have this problem, so, I can only assume it has something to do with Firefox. I have checked the "Error console" and I am receiving this message: server does not support RFC 5746, see CVE-2009-3555.

    Maybe:<br />
    Dafizilla Table2Clipboard: https://addons.mozilla.org/firefox/addon/1852

  • Copy and paste cell content of web form of Hyperion Planning

    Our end users encountered performance issues in using the web forms of Hyperion Planning. We have some large web form with 60 columns and 100 rows i.e. around 6000 cells. When end user move around the cell they feel a slow response in the web form especially when copy and paste some cell content from one row to another, or a few cells from one position to other position.
    Anyone got similar experience in using web form? Also we understand that Hyperion design will check the cell content of each cell and generate a SQL query to the backend metadata database. It is quite time consuming and waste CPU resource because most of the time our end user will not keep the text information under each cell. We have consulted Oracle team and understand that we cannot disable the cell content checking via SQL query.
    Any workaround solution exists to reduce or remove the performance issue in cell content copy and paste?
    Thanks!

    Hyperion user wrote:
    Alp Burak wrote:
    Hi,
    We had faced the same issue a few years ago. One of our geeks had done a change in either Enterdata.js or Enterdata.jsp which disabled form cell validation. I don't currently have the code with me but it wasn't a big change really, remarking a function could be doing the trick.
    I don't think this is officially recommended by Oracle though.
    AlpThanks for your advice. We will try to locate the enterdata.jsp and enterdata.js and found out where the SQL being executed.We found out the Enterdata.js under the deployment directory of Weblogic. However it is over 400KB size and many many lines of codes. We think that it is very difficult to locate where should be customized to remove the SQL checking on cell content.
    \\Hqsws04\hyperion\deployments\WebLogic9\servers\HyperionPlanning\webapps\HyperionPlanning

  • Really slow copy and paste function

    I'm having alot of trouble with the copy and paste function in Numbers on my Mac.  I work from home and have to copy and paste alot of spreadsheets and numbers but when I copy a large set of numbers from one spreadsheet to another it takes FOREVER to paste and it constantly freezes my computer.  Does anyone else have this problem and have you found a solution?

    Have you upgraded SQL server from 2000?  You may also check this thread:
    SQL 2005 with database compatibiltiy level set to 80

  • Copy and paste journal remarks

    Hi all
    What is the shortcut to copy and paste a certain word in journal entry remarks to all rows without affecting other words in the same remarks
    like excel Find copy and replace all function?
    Kedalene Chong

    Hi
    you can use the replace function of SQL
    update JDT1 set LineMemo=REPLACE(LineMemo,'From Word','To Word')
    shachar

  • Acrobat XI Windows 7 - unable to (copy and) paste form fields to a different pdf.

    To maintain a consistent appearance and function in the forms I create for various departments, I copy a few form fields  (text, checkboxes) from an unrelated Acrobat PDF. Then I paste those fields into a different PDF document that I am making fillable.
    I do this because Acrobat does not allow setting a default for certain attributes when creating form fields, i.e. an unchecked scroll option, a default font other than Helvetica (in Acrobat 8, 9, and X). Plus it is time-saving to copy and paste fields that are the same in another PDF, like name, address, phone. etc.
    We just updated to Acrobat XI and Windows 7 and now I cannot paste copied fields onto a different PDF.
    Using "replace pages" is not applicable as I am pasting to an entirely different form and copying form fields with the settings I use. 
    Is this a glitch or is something new that was not in Acrobat 8, 9, and X?
    Also, question regarding this forum entry -  http://forums.adobe.com/message/5638333#5638333 - which is somewhat different from my current question.
    The PDF creator could not paste copied fields on other pages of the same PDF. Was this ever resolved so that copy and paste worked as it has for the last 3 versions of Acrobat?
    Thanks!
    Joanie

    Gilad:  You're right: when the fields are different, such as a checkbox and a text field, and you try to title them the same, Acrobat gives you a message. I received no messages, the field names are not the same or I missed one and Acrobat is no longer messaging about it.
    My question is different. Acrobat XI will not let me paste any field copied from a different PDF.  I've been doing that for 5 years in three different versions.  Maybe Acrobat XI has a new process for that, which I could not find in Acrobat help. Maybe it's because all forms now have extended rights automatically in Acrobat XI and there is another method to copy common fields to other PDFs.
    Any thoughts about the new Acrobat XI? It's different in many good ways, but different.
    Thanks for your ideas.

  • CS4 problems copying and pasting masked items

    The problem: Copying and pasting a placed image combined with other Illustrator art with multiple gausian blurs that have been masked/grouped. Placed image type does not matter. PDF, JPG, TIFF, etc placed in Illustrator CS4 (or 3). Some images are complex and others are not.
    What happens: After copying and pasting, the masked (grouped) image breaks apart into separate components that are no longer masked/grouped. Happens with different files with different images on different computers. WIth or without text in document. Sometimes image pastes correctly but most times it does not.
    Hardware/OS: 3 separate iMacs (20" and two 23") all with intel chips but different processing speeds. All running latest and most updated version of Leopard. All with 4 MB Ram and more than a 100 GB of free hard drive space.
    Software: Illustrator CS4 (latest update) and CS3 on one of the 23" iMacs.
    Solutions tried so far: Ran Onyx, repaired permissions, scripts, cleaned caches, zapped PRAM and on one iMac, ran Disk Warrior. Tried in Safe boot mode and tired with a new user account. Created new files with new images and tried old files. Tried opening files from the server and from the desktop. Threw out illustrator prefs and emptied trash.
    Thought it may have to do with font conflicts but some files don't have fonts. Turned off font management programs (Suitcase on one iMac, Font Explorer Pro on others, all updated to latest version) and restarted so only system fonts loaded. No luck. Turned on fonts used in various documents, still no luck.
    Thought it may have to do with memory issues after copying masked items. Sometimes the copied image would paste correctly and then the next time I pasted it, it would not. Before pasting a second time I would copy a small item (to clear the memory) and then paste it and then recopy the masked item and paste that. Still no luck.
    Checked activity monitor but nothing looks to be a memory hog or out of place. Happens on all three iMacs and while the OS and Illustrator are common to all three, Fonts and font management tools are not. No weird plug-ins or third party extensions installed. Plus it happened in safe boot mode so all extraneous fonts and such should have been deactivated.
    Curiously, if I drag copy the masked item using the option key, the masked item copies fine. I know this can be used as a work-around but I would like to resolve this as sometimes the designers need/want to use command-c/command-v.
    Not sure what else to try. Any thoughts would be greatly appreciated. Thanks you.

    This might work, this might not. I have copy paste problems
    on a regular basis and all that works for me is closing Captivate
    down and then re open and continue. At worst, a reboot tends to
    solve this glitch in my experience.
    Good Luck

  • I cannot open a .pdf in an incoming mail (Outlook 2010) with Acrobat Pro XI.  It will only allow "preview".  I have to  copy and paste the .pdf to my desktop and then open it.  What do I do to restore the 2x click in Outlook to open the .pdf?  thank you

    I cannot open a .pdf in an incoming mail (Outlook 2010) with Acrobat Pro XI.  It will only allow "preview".  I have to  copy and paste the .pdf to my desktop and then open it.  What do I do to restore the 2x click in Outlook to open the .pdf?  As of now, I get the following bracket opening on screen when I click on the Acrobat icon for attachment within the email:  Thank you
    Adobe Acrobat has stopped working
    Windows can check online for a solution to the problem.
    -Check online for a solution and close the program
    -Close the program
    Problem signature:
      Problem Event Name:                        APPCRASH
      Application Name:                             Acrobat.exe
      Application Version:                           11.0.7.79
      Application Timestamp:                     536b812b
      Fault Module Name:                          Acrobat.dll
      Fault Module Version:                        11.0.7.79
      Fault Module Timestamp:                  536b80ff
      Exception Code:                                  c0000005
      Exception Offset:                                00cbf281
      OS Version:                                          6.1.7601.2.1.0.256.48
      Locale ID:                                             1033
      Additional Information 1:                  0a9e
      Additional Information 2:                  0a9e372d3b4ad19135b953a78882e789
      Additional Information 3:                  0a9e
      Additional Information 4:                  0a9e372d3b4ad19135b953a78882e789
    Read our privacy statement online:
      http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
    If the online privacy statement is not available, please read our privacy statement offline:
      C:\Windows\system32\en-US\erofflps.txt

    Hi Gary,
    I have seen this issue occur with users who have this registry setting missing or have improper permissions.
    When you double click the attachment to launch the pdf it is saved and opened from the temporary folder unless saved specifically to a location.
    If you dont have the below mentioned registry key or improper permissions then attachments fail to open.
    Please  heck if the following reg key exists:
    HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\Security
    or
    HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\14.0\Outlook\Security
    Value Name: OutlookSecureTempFolder
    If the value exists, and if the value contains a valid path, Outlook 2010 uses that location for its temporary files.
    If the registry value does not exist, or if the value points to an invalid location, Outlook 2010, Outlook 2007, or Outlook 2003 creates a new subdirectory under the Temporary Internet Files directory and then puts the temporary file in the new subdirectory. The name of the new subdirectory is unknown and is randomly generated, depending on your version of Outlook.
    Please check the following key:
    HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\Security
    Note the location for: OutlookSecureTempFolder key
    Check if the same folder exists in the following location and if not create a corresponding folder in the location on C:\Users\<User account name>\Appdata\Local\Software\Microsoft\Windows\......
    Regards,
    Rave

Maybe you are looking for