Behavior of sqlplus comments

The following insert statement does not work when run assqlplus <connect> @file

INSERT INTO abc ( a

                 ,b

                 ,c)

        VALUES ( '1' --a

                ,'2' --b

                ,'3'); --c

but it works without comments i.e.

INSERT INTO abc ( a

                 ,b

                 ,c)

        VALUES ( '1'

                ,'2'

                ,'3');

Fact sqlplus flatten the file IE run all on a single line? could result in the rest of the line as a comment?

Random_net wrote:

The following insert statement does not work when run assqlplus @file

INSERT INTO abc ( a 
                 ,b
                 ,c) 
        VALUES ( '1' --a 
                ,'2' --b 
                ,'3'); --c

but it works without comments i.e.

INSERT INTO abc ( a 
                 ,b
                 ,c) 
        VALUES ( '1' 
                ,'2' 
                ,'3'); 

Fact sqlplus flatten the file IE run all on a single line? could result in the rest of the line as a comment?

When all else fails, read the Fine

Scripts SQL help * more

You cannot embed a comment within statement; at the end of a statement

Tags: Database

Similar Questions

  • navigation keys strange behavior under sqlplus

    In sqlplus when I click on the navigation keys in order to get (up, down) historical data or move in the current channel (left, right),
    I get strange character combinations instead.

    Example:
    pressing < upward > key will display: ^ [[has
    pressing <>key will display: ^ [[B
    pressing < right > key will display: ^ [[C
    < left > pressing the key will display: ^ [[D

    This behavior does not occur when you press these keys in the Linux prompt system $.
    Here, I get the statements very well history buffer and go left and right well.

    I use Oracle Linux 5.7 with Oracle Database 11 g 2.

    Hello

    Search the package rlwrap and then use rlwrap sqlplus imstead of sqlplus.

    Best regards
    Thomas

  • Connecting to an oracle SQLPlus database

    I am trying to connect from a Server CentOS with SQLPlus installed on another server with Oracle installed CentOS.

    I installed
    Oracle-instantclient-basic - 11.1.0.1 - 1.i386.rpm
    and
    Oracle-instantclient-sqlplus - 11.1.0.1 - 1.i386.rpm
    on the first server.

    I am able to connect to the server via SQL Developer oracle without difficulties.

    When I try to connect to it via the command line with SQLPlus, I execute the following:

    sqlplus savantdb@//192.168.100.37:1521/orcl

    But all I get in return is something that reads like the help documentation.

    I exported the LD_LIBRARY_PATH to point to /usr/lib/oracle/11.1.0.1/client/lib/:/lib
    I created a file tnsnames.ora in my home directory that contains the following:

    ORCL =
    (DESCRIPTION =
    (ADDRESS =
    (PROTOCOL = tcp)
    (HOST = drax)
    (PORT = 1521)
    )
    (CONNECT_DATA =
    (SERVICE_NAME = orcl)
    )
    )

    Then I tried moving my home directory and operating

    sqlplus savantdb@orcl

    It asks for a password, and then throws the following error:
    ERROR:
    ORA-12154: TNS: could not resolve the connect identifier specified

    Then request a username/password name, after which it throws the following error:
    ERROR:
    ORA-12162: TNS service name: net is incorrectly specified

    I want to do is allow my writings in PHPUnit and selenium to make calls shell_exec to execute sql files to recreate the database from scratch before the application to the test of unit tests. So I need to make it completely non-interactive.

    Can someone give me an idea where I'm wrong here?

    You mix different naming methods. Try to stick to one!

    Your first attempt sqlplus savantdb@//192.168.100.37:1521/orcl uses the method known as "easy connect".
    It's actually not a bad idea, because it is rather short and does not require a "tnsnames.ora" file, which is a pain in the somewhere or other.

    sqlplus has a parsing problem if you define the part of the string in double quotes. You can't find in the documentation, but in Metalink Note 274757.1.
    The syntax is like this:

    sqlplus savantdb@\"//192.168.100.37:1521/orcl\.

    Your second attempt trying to use the TNS (local) method of naming, but for that you must have an environment variable pointing to the directory containing «tnsnames.ora» TNS_ADMIN It doesn't matter if this directory is the current directory or not. You don't need that if you use the method described above.

    The last error message is because of the annoying behavior of sqlplus username and password (for a local connection!) ask once again if the first attempt failed.
    You can avoid that by giving the flag - L sqlplus.

    Yours,
    Laurenz Albe

    PS: If you want "to completely non-interactive" you must add a password, as
    sqlplus savantdb/password@//192.168.100.37:1521/orcl
    "In this case, you don't need to add the------."

  • How to remove the disc VM (using partitions)

    Hi all

    Workstation 11 Pro, Windows 7/10 guest (same behavior), Windows 7 comments.

    Guest has a configured and more data main OS drive disc. This drive is not using a file, rather than using physical access to a partition not used.

    Comments also instant (if that makes a difference)

    Windows 7 host was the original host where the machine has been created

    Windows 10 host is a new facility after upgrade (even machine so that can access all disks)

    I try to remove this data from the virtual machine disk, but will have questions:

    1 VM settings-> delete disk.     Initialize the Workstation States "of sufficient permissions to access the file.

    2. tried in offline mode of the disc in the comments before removing, same result

    3 attempted to create a complete clone of the machine without the disc - same mistake

    4 tried to create a complete clone of the machine with the floppy - cannot be duplicated the machine with physical disks

    5. When you try to start the machine on Windows 10 (new installation), I get a message indicating
    the partition table has changed and I need to remove and add the disk:

    tried to remove and don't add, some of

    b tried just remove, same error as in 1, 2 above

    Note There are no log files entries generated during the boot, so I can't include these here...

    How can I remove this reference on the disc so that I can:

    1. access from two hosts of windows 7 or 10?

    2 clone this machine without the physical disc

    See you soon,.

    Bonny

    You must delete all the snapshots or the clichés associated with this disc to be able to remove the disc hisself. Example, even if you do not, if the drive was there when you did a snapshot, the associated disk cannot be deleted.

  • Selection of clip using not together audio and video, unrelated acts

    Something happened with my editor settings and I can't know what I did or how to fix it.

    using first Pro CC 2014.0.1.

    Whatever the project, when I select a clip in the timeline and try to move it, it only moves the audio or video (if I clicked it) (if that's what I clicked on) and abandon the linked audio file corresponding (or video). Almost as if you would normally select a clip to isolate the video audio using the Alt/Option (Mac) key. The audio and the video ARE LINKED and thus show in a pop-up, this isn't that video and audio are somehow regarded as irreversible first. It is just this way when I select an item.

    I must have changed something because he has never done this before and just started doing it. Must have hit a key combination to turn on or off certain settings, but I can't. I need to go back and select at the same time.

    Any suggestions? Thank you.

    This button-

    Causing the behavior that you comment on.  It is a toggle that allows to move a part of a related assets without moving the rest.

  • Text &amp; quot; 40 &amp; quot; Appears in Internet Explorer

    I'm having a problem with my page that occurs in Internet Explorer but not in Firefox. "40" appears at the bottom left of my page. It is not in the code; It is take the text of the substantive address and put randomly in the lower left corner. What is going on?

    It may not appear all aligned because I did not put graphics or anything else on the web yet, but the layout is not my problem at the moment.

    Here is a link to the page I describe: http://lumajo.com/images/

    Thank you very much for the help.

    The OP must clear the float. It has a div with class = low who has float: left
    Since it has not erased the float that repeats the 40 from the zip code. If someone can say why this happens, I'm all ears.

    the9Ulaire

    In your code if you add
    the problem should be solved. The code would look something like this


    3071 US 52 W
    New Palestine, Indiana 46140


    Murray
    I thought that divs in table cells was not valid or lead to unexpected behavior. Any comment on this, please.

  • Need comments to Sqlplus as a notification sound or other means at the end of the script

    Hi gurus,

    The requirement may be impossible/difficult, sorry if I take the time and space, I just want to understand if there is in any case my requirement works. We have the short period of time (Ex: 2 hours) and we must run in parallel in different environments many scripts and take care of the other associated DB tasks aswell. For this reason, we have to look at the window of sqlplus always/often. It will be great if we can get an alert beep or flashing window once the completed script in Sqlplus so that we can stop to visit the window frequently and focus on other areas.

    Line down in the idea, it is that we get an alert somehow the script is complete, so that we will not run out of SLA and focus in the other tasks as well.

    PS: Im a beginner with desire to make things better, different and effective

    SQL * more knows nothing about windows, speakers, sound cards, etc. - so no, not really.

    Edit: OK, assuming that any terminal that you are using includes the ASCII BEL character, you can do this:

    Select "(appuyez sur CTRL-G ici) ' double;"

    at the end of your script and a bell sounds.

    Of course, when I typed (press CTRL-G here), press CTRL-G on your keyboard.

  • /@%DBNAME%-comment logon Oracle SQLPLUS?

    Which credentials (username and password) oracle takes to connect to the DB?
    Can someone enumerate all possible cases?

    Why do you ask a question RTFineM? If you actually read the docs, you may discover all uses... OR http://www.lmgtfy.com/?q=oracle+logon+sqlplus

  • Has anyone seen this behavior from the trim of your comments?

    pic 2.pngpic 1.png

    Any time that do a delete operation, in this case a slip edit, I get these feedback cropped trim panels.  It makes their use for feedback almost impossible.

    I tried the resizing windows, turning from the control screen.  Not sure what is the cause.

    According to your description here, it seems that it is a known problem. The main reason that you experience this issue, it's that you have climbed the material of your sequence. As you note, when using clips of 1920 x 1080 in a sequence the same dimension, the bug does not occur.

    I'll add a note to the known, problem report to reflect your supplementary report.

    -Andy T.

    -First Pro Team

  • Sierra: Changed the behavior of file Finder selection

    After upgrading to Sierra I can't select files in the Finder using the keyboard as before. When you try to select multiple files using SHIFT and arrow keys, it simply does not work properly (if you've experienced, you know what I mean).

    I already tried to remove the com.apple.finder.plist file in my Library/Preferences folder and reboot, nothing helps.

    (An example of the problem is on this post to Reddit: https://www.reddit.com/r/mac/comments/54caqk/sierra_changed_finder_file_selectio n_behavior_me / )

    Post edited by: DiGrifter

    Yes same behavior here with Sierra.

    Best thing to do send your feedback via http://www.apple.com/feedback/macosx.html apparently if 100 users report the same problem, it will attract attention. Yes, 1 down, 99 to go

  • Remove the change in behavior from iPhoto

    In iPhoto, pressing the DELETE key on picture deleted the photo from the album. In the Photos app, it deletes the actual photo. I'm not sure that understand the advantage of this change in behavior. Makes it much more difficult to make a choice of photos by albums. Comments submitted. This must change, back in my opinion, unless someone can explain to me the advantage of this new behavior.

    NO.

    choosing a photo in an album delete and pressing user removes only the photo album of the user (in some of the supplies system smart albums it's different since you cannot delete a photos in a smart album in Photos or iPhoto except by changing the criteria for the smart album that is not possible for the system smart albums)-command remove it will remove photos in the recently deleted album

    Don't forget you have system smart albums user albums (as the last import, all photos, videos, etc.) and the smart albums of the user - each works differently

    You can also right click on photo and select Delete album

    LN

  • When reading newspapers on the Web sites, under the section comments, nothing appears. Why the comments do not appear on Firefox, appear on that?

    When I click on the link view comments on newspaper articles and online e, nothing is displayed. When I use Firefox at work or that you use Internet Explorer, comments are displayed under article.

    Hello mhburton313, you can try to reproduce this behavior when you start firefox in safe mode, once? If not, perhaps an addon intrudes here...

    Troubleshoot extensions, themes, and issues of hardware acceleration to resolve common problems of Firefox

  • Behavior of MS Word AutoFit

    I am trying to change the behavior of automatic adjustment of a MS Word 2003 report generated by the report generation tool, but I am having trouble with ActiveX. I've referenced a thread earlier I found via searching here, but it is from 2006, so I don't know if it's still applicable, or if I'm doing it wrong.

    I have attached my VI with a comment where I get an error message. I think it has to do with referring to the index, but as far as I know, '1' refers to the current table/chart... If someone could point me in the right direction or help me with the solution, I would be very happy.

    ChaoyD wrote:

    Had to make a zip file due a Subvi I used, but here's the LV2009 of it.

    Hmmm... the Subvi sounds familiar!

    Try this (I have not tried in your vi but I know that it works as a standalone).

    Ben64

  • Network WRT1900AC comments is seen, connectable, but no password invite or internet access

    I have WRT1900AC firmware version 1.1.8.164461. The wireless channel interference is not a problem.

    Under access as a guest, I can see allow guest access turned on, I have a SSID of 2.4 Ghz and a password for the guest network. Using my 2.4 Ghz devices, I can see the SSID I just referred to. My devices can connect to it.

    But, once connected, I never receive a prompt for the password and I have no internet access. The screen Smart Wi - Fi are always "0 clients" are currently connected, regardless of the number of devices made the level of SSID link.

    I installed the router months ago, but did not know that access as a guest did not work because it always seemed well on the router and I didn't have a camera to test with. But I just discovered that many guests were upset that they can't connect with the password that I gave them. I am very disappointed by the Linksys support answer to my question.

    For now, I am getting the correct behavior after a reset of the WRT1900AC plant. The guest network is now a password in a browser for the two test devices. My comments network IP addresses have the prefix 192.168.3.x and I can't find an address 192.168.2.x on my network.

  • questions of behavior to listener/notification

    I have a few questions about the behavior of listeners/notifications that I was hoping that someone had the answer to.  The end result is I'm trying to configure the system so that every day the guests I coded (global contextual modal form) don't stack up if the unit has been turned off or ignored for a series of days.  I would like a single guest waiting for the user, wherever they move to research.

    I went with the model by which this application autostart is always running (thanks to peter_strange, your posts on this topic simplified my life) but just in the background at the venue closed.  The listener that interests me is a RealtimeClockListener even though I have a listener to push both running.

    1. I saw it somewhere here that some listeners do not require the application to stay running.  What it means the System instantiates an object of the type registered?  The realtime should the app to continue running? (mine will be so it's more for the love interest)

    2. I guess that if the listener requires the application to always run it reminds the same object that registered it rather than a new instance of the object, so it seems dangerous to use some sort of Member of the Forum to follow if I already have a popup pushed.  Is it a correct assumption?

    3 I saw written somewhere on this forum when a device has a regular power down (as opposed to a battery pull) is actually still on and some processes are still running.  Does anyone know if the listener in real-time is still going and the application is notified and who responded to the questionnaire every minute?

    Thanks for any comments or corrections.

    Tim

    I don't understand what you're saying with regard to the realTimeClockListener interface.

    However I tested it myself.  I started an app with an active CCF, then press the poweroff.  Then when the computer reboots, the listener of the RTC got hit during the next minute.  So basically it hibernates.  It's a relief, I would have had to recode a number of applications...

    You are right, acceptsForeground is called before the activate, so if you want a ribbon icon, it is probably better to put up with the fact that it is visible in the background all the time.

Maybe you are looking for

  • Satellite A300-1EI - how do extended warranty service and the uprising?

    Hello dear members, Recently I bought laptop Satellite A300-1EI of the Kingdom of Saudi Arabia. While I was on the http://eu.computers.toshiba-europe.com site for the check of the Standard warranty, I came across the information that I can point and

  • How can I change my ODD on Satellite L30 PSL30AE

    Hi, I arranged a few pieces of my portable sister dead, and managed to get his memory and dvd recorder...The memory is already installed but I do not know how to disassemble the optical driver in addition to change! I was wondering if someone would h

  • Acer Aspire V Nitro (VN7 - 791-G - 734P) coolboost and anti-dust missing

    Hello. Miss me these features on my laptop. When I open the quick access, I don't have the settings for these two options. How can I get them? I have the logo of the dust on the back of the laptop, so I should have them somehow.

  • file TempRec

    I have same folder and really scares me, but now I know what that thing, because for those friends who say that the folder I have empty, Yes, it seems empty, but it will take place!   This folder if you check his property (by right clicking), you wil

  • Consolidation/merger 4.2 ACS servers

    Hi, we have 2 servers ACS each handling of different sets of hundreds of devices. I need to merge 2 databases (users, groups, and devices) in a third 4.2 ACS server. My thoughts are to make a backup of one and do a restore on the new server. Now, I n