Other new lines in SQL script file and problem with SQL * more

Hi all


I would like to ask a question on the characters of new line inside files SQL scripts. I have a very long SQL query, stored in a file txt (ANSI encoding). Because query instructions are very long (several table joins and WHERE conditions) tried to separate, WHERE and ORDER BY clauses by inserting several new characters of lines (just hit the entrance) among them in order to improve the clarity of the source code. Now the problem is, whenever these newline characters are inserted in the file, apparently SQL * Plus cannot parse the file properly and gives me the following error message:
SP2-0042: unknown command "FROM" - rest of line ignored.
SP2-0734: unknown command beginning "myenterpri..." - rest of line ignored.
The problem is definitely related to these new line because characters that when I remove them, the scripts runs without any problem. I would appreciate that you could kindly guide me how should I deal with this problem. Is there any SQL * Plus command to run to correctly interpret the new line characters?


Thanks in advance,


Kind regards
Dariyoosh

Hello

In [SQL * Plus 9 | http://download.oracle.com/docs/cd/B10501_01/server.920/a90842/ch13.htm#1013073] (and), you can tell

SET     SQLBLANKLINES   ON

allow to completely empty rows in an SQL statement.

Tags: Database

Similar Questions

  • Hello! The new version of Firefox, I have a problem with the opening of the site VKontakte. The browser displays the following error message: "Firefox has determined that s.

    Hello!
    The new version of Firefox, I have a problem with the opening of the site VKontakte. The browser displays the following error message: "Firefox has determined that the server redirects the request for this address in a way that it will never end." How to solve this problem? Please excuse me for my English.
    Sincerely, Vsevolod.

    This can be caused by corrupted cookies or cookies that are not sent or otherwise blocked.

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".

    See also:

  • ENVY14-2090eo: ENVY14-2090eo and problems with synaptics clickpad


    Hi again,

    Well I can inform you that microsoft did not put any new driver for solve this problem with the more recent driver it is ATM. I checked this version of the model touchpad and it is not supported by windows 10.

    But.

    I found this driver from synaptics Web site. I don't know if it works. But this is the last result I know. You can try and download + install and hope it solves the problem. Because I really hope.

    Link: http://drivers.synaptics.com/Synaptics_v19_0_19_1__C__x86-x64__Win10__Signed__MS_Win10_UXUI_PS2_SMbus.zip

    Thank you.

  • New line number in text file in Notepad open

    Hi all,

    Create a text file using the procedure and moved to the FTP folder. Text file opened through IE its working very well. Copied to the local computer and open in Notepad, its not work i.e., appeared in a continuous line. Return the correct sound also verified text only

    Code:

    Declare

    Begin

    v_File_Name: = utl_file.fopen (Dir_Obj_Name, filename, 'W');

    For Cur In (Select "A" A1, A2 'Two', 'Three' A3 double)

    Union

    Select 'Four', 'Five' A2, A3 A1 "Six" double

    )

    Loop

    v_line_Text: = Cur.A1 | ' ' || Cur.A2 | ' ' || Cur.A3 | ' ' || Chr (13).

    UTL_FILE.put_line (v_File_Name, v_line_Text, True);

    End loop;

    UTL_FILE.fclose (v_File_Name);

    End;

    Ouput except

    One two three

    Four five Six

    BoopathiL wrote:

    Hi all,

    Create a text file using the procedure and moved to the FTP folder. Text file opened through IE its working very well. Copied to the local computer and open in Notepad, its not work i.e., appeared in a continuous line. Return the correct sound also verified text only

    Code:

    Declare

    Begin

    v_File_Name: = utl_file.fopen (Dir_Obj_Name, filename, 'W');

    For Cur In (Select "A" A1, A2 'Two', 'Three' A3 double)

    Union

    Select 'Four', 'Five' A2, A3 A1 "Six" double

    )

    Loop

    v_line_Text: = Cur.A1 | ' ' || Cur.A2 | ' ' || Cur.A3 | ' ' || Tank (13);

    UTL_FILE.put_line (v_File_Name, v_line_Text, True);

    End loop;

    UTL_FILE.fclose (v_File_Name);

    End;

    Ouput except

    One two three

    Four five Six

    Well, your code is not still valid in the first place.

    There is no function called "tank", the real function is "chr".

    The character for a new line character is Chr (10) rather than Chr (13).

    In unix operating systems, the line break is just Chr (10).

    Operating systems windows/dos line break is Chr (13) | Chr (10), although some windows applications such as Word/Wordpad will understand * nix style chr (10) is like the newlines too, however, things like Notepad will not and will eventually display all data on a single line.

    When you transfer a text file of a unix operating system to an operating system of windows that it is usually performed using FTP and you need to make sure you put the software FTP in ASCII mode so that the new line characters get converted correctly...

    FTP > CSA

    200 type set to A.

    (for binary files, you ensure that the FTP is set to binary mode so that no byte in the file is corrupted by such a conversion).

    By transferring your file using FTP ASCII mode, from unix to windows, the characters Chr (10) in the file will be converted to Chr (13) | the pairs of characters Chr (10), then the file will be displayed correctly in Notepad.  If you transfer from windows to unix in ASCII Chr (13) | Chr (10) pairs are converted back to just chr (10) for unix.

    As an alternative, there's also a Unix utility called "unix2dos" which converts a text file from unix style returns to the line of back style line breaks, then you simply transfer the file in binary mode, so no other conversion takes place.

  • New line characters in the file writing

    I use the following function to write text in the file

    public void DebugLog (String strTxt)
    {
    System.Err.println (strTxt);
    System.Err.println("\r\n");
       
    Try
    {
    String iFileName = "file:///SDCard/BlackBerry/pictures/Debug.log";
    FileConnection fileConn = (FileConnection) Connector.open (iFileName, Connector.READ_WRITE);
    If (fileConn! = null)
    {
    If (! fileConn.Exists ())
    fileConn.create ();
                   
    OutputStream os = fileConn.openOutputStream (fileConn.fileSize ());
    DataOutputStream back = new DataOutputStream (os);
    dos.writeChars (strTxt);
    back. Close();
    fileConn.close ();
    }
    }
    catch (Exception ex)
    {
    }
    }

    The function above very well written text to file. But when the txt contains \r\n which is not reflected in the line break in the file. He appears just as \r\n in the file.

    What changes I need to make sure that the line break is refrlected correctly in the file. I need to convert any other sequence of bytes using a Unicode conversion, \r\n

    try to use

    dos.writeUTF

  • Works only in the script file and not in the database

    Hi all:

    I want to know if this is possible.

    In my SQL script file...

    Create a feature once.
    Call or make use of this couple of function or several times.

    All the while NOT create the function in the database.

    In other words, I want this function to be alive only during execution of the script file.

    Thank you

    Well, you can do that if you can somehow manipulate your script so that it includes an anonymous block. Here, you can use a local subprogram that exists in the context of the anonymous block:

    SQL> DECLARE
      2     a1   NUMBER := 10;
      3     a2   NUMBER := 20;
      4     a3   NUMBER := 0;
      5
      6     FUNCTION calu_sum (var_a NUMBER, var_b NUMBER)
      7        RETURN NUMBER
      8     IS
      9     BEGIN
     10        RETURN (var_a + var_b);
     11     END;
     12  BEGIN
     13     a3 := calu_sum (a1, a2);
     14     DBMS_OUTPUT.put_line (a3);
     15  END;
     16  /
    30
    
    PL/SQL procedure successfully completed.
    

    Kind regards
    Frébault

    Published by: Marie Lise Sharma on May 6, 2009 13:58

  • new line in indesign scripting

    Hi all

    How can I set the line spacing?

    now I need to add some lines in textframe, and I use "vbNewLine" for the new line,

    but the spcing between 2 lines too...

    is it possible for me to set the line spacing?

    Thank you

    spacing is controlled - as in the UserInterface - the largest property

    or you can set the properties then SpaceBefore and SpaceAfter to set space before and/or after paragraph

    Robin

    www.adobescripts.co.UK

  • I lost the top bar with my file and edit with cut, copy and paste functionality

    I lost the bar with the following functions: file, edit them with cut, copy and paste

    See-> https://support.mozilla.com/en-US/kb/common-questions-after-upgrading-firefox-36#w_why-are-the-menus-file-edit-view-etc-missing

    Also on the menu of the Firefox button, the Edit option is there. 3 after the word 'Edit' icon will be "not gray" if something is highlighted on the page, or something already exists on the Clipboard. The "arrow" to the right of the Edit will give you the options of text instead of icons.

    Other frequently asked questions after the upgrade: https://support.mozilla.com/en-US/kb/common-questions-after-upgrading-firefox-36

    You must upgrade to a newer version than the Firefox 4 with the included information in your question that you are using.

    Not related to your question, but...

    You may need to update some plug-ins. Check your plug-ins and update if necessary:

  • Files and folders with the same name

    I am trying to unzip some files and folders and it works fine on my computer with Windows XP. However, when you use Windows Vista I can't because there are folders and files with the same name. After an internet search, it seems that the only suggestion is to extract the files in separate folders which then would allow them to keep the same name. The problem is I want what they in the same folder and they need to have the names they have.

    NOTE: I do have two files with the same name in the same folder, I have a folder and a file with the same name. I would have thought that this would be acceptable because they are two things separate, and given that it's great under XP.

    All solutions?

    You are right, if I make a file and a text file with the same name, it works fine. However, when I try to extract the files I need it tells me that there is already a file with the same name as the folder. He goes to tell me to choose a new name but my only options are 'try again', 'jump' or 'Cancel '.

    I think I can understand what the problem is. For some reason when you download the zip file, the computer seems to have added a few files side with any format other than "file." It is those who have the same name as the folders as if they were, and they could not be uncompressed because of this. I have no idea whence they came as they appear from nowhere (compared to my XP). I'm trying now unzip the files separately and exclude the strange s 'file '.

    Thanks for your help though!

  • I and issue with the version of 29.01, seems I have installed two, a Favorites appears, the other not. I can both uninstall and reinstall with bookmark?

    Somehow, it seems that I have two versions of 29.01installed. One is the American version and the other British version. One that has all my favorites and viewable history, but there is no visible address/firefox browser toolbar. The other version has none of the bookmarks, and using the profile search product not available, but this version has no visible address/firefox browser toolbar.
    Can I uninstall both versions and then download and reinstall a new version and at the same time find all my favorites and the browser history?

    Make sure that you do not delete personal data when you uninstall Firefox because that will remove all Firefox profile folders.

    It is possible that your security (firewall, antivirus) software blocks or limit Firefox or the process of plugin-container without you inform, possibly after the detection of changes (update) for the Firefox program.

    Delete all rules for Firefox and the plugin-container in the permissions list in the firewall and leave your firewall again ask permission get full and unrestricted, access to the internet for Firefox and the plugin-container and the update process.

    See:

  • I've just updated my billing information on a new map of credit due to a problem with my old and Adobe immediately charged me for €1

    So after that I had a problem with my credit card and could not be charged, I've just updated my billing on a new credit card information.
    Just as I saved the new billing information, my banking application tells me that I am charged €1 by Adobe.
    Is - to check if the credit card details are valid?

    Because on my overview of the Adobe account, I always get the advice to update my information, also the €10,70 for my photography plan has not been charged.


    Any suggestions?

    I already solved it myself, my banking application displays validation bookings, that of other apps.
    If it's just a validation.

  • Schedule the Winzip files and 'compatibility' with Windows 7 - HELP!

    Hello

    I have recently upgraded to Windows 7 from XP.  I have an online game (war hammer) with some friends and need to download a few files of curse.com to upgrade my interface in this game.  Under XP, things has worked well, but here's my problem with Windows 7.

    Everything by searching my directory of war hammer I found it under Program Files (x 86) vs my normal method on my desk or in the program file.  I keep Electronic Arts Warhammer Online - Age of Reckoning - Interface - Addons.

    From here, I have the head on the Curse.com website and save the files under this folder.  Then, I went to winzip and extract use them all in the game (war hammer).  When I tried to see the files in that folder, I was surprised to see 'nothing' listed!  I called a friend to walk me through the way he his under windows 7 and for some reason any, he has his records and mine are gone.  However, there is a button at the top that says: "compatibility files"?  If I click this button then all of my files show but for some reason any, that they cannot be played in the game to do what I need to do...

    Thoughts?

    Help!

    Hi Zhadum,

    As the game is compatible with Windows 7, it is indicated herethe link of Microsoft Compatibility Center. It should work in normal mode; I suggest you contact the manufacturer of the game, as the issue seems to be with the game from the link below.

    http://www.warhammeronline.com/forums/

    Concerning

    Arona - Microsoft technical support engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • How can I tell my computer to decompress a disc with a zip file and not with IE?

    I have Vista and tried several things without success.

    Hello

    Make a Restore Point to use in case you make a mistake (which is normally not necessary).

    How to create a Vista System Restore Point
    http://www.Vistax64.com/tutorials/76332-system-restore-point-create.html

    If you need later:

    How to make a Vista system restore
    http://www.Vistax64.com/tutorials/76905-System-Restore-how.html

    ----------------------------------------------------------------------------------------

    Follow these steps to restore the native support of Zip:

    • Click on the Start Orb
      Search regedit
    • Click continue on user account control
    • Go to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.zip
    • Click on the drop down arrow to the left of the file .zip
    • Right-click on OpenWithList
    • Click Remove
    • Click Yes
    • Right-click UserChoice
    • Click Remove
    • Click Yes
    • Exit regedit

      Your .zip files should now open with the native compression/decompression system that comes with Windows Vista.

    If necessary, after the above - 1 3 here should fix you up

    How to restore Vista built-in ZIP files Support
    http://www.Vistax64.com/tutorials/65254-zip-file-support-restore.html
    How to enable or disable the files compressed in Vista
    http://www.Vistax64.com/tutorials/93827-zip-file-compressed-folders.html
    Restore the Type Associations by default Vista file extensions
    http://www.Vistax64.com/tutorials/233243-default-file-type-associations-restore.html

    ---------------------------------

    How Unassociate a Type of Extension file in Vista - and a utility to help
    http://www.Vistax64.com/tutorials/91920-unassociate-file-extention-type.html
    Restore and return the file Association in Windows Vista if Original
    http://www.mydigitallife.info/2008/06/22/restore-and-reset-file-association-in-Windows-Vista-back-to-original-default/

    Reset and Fix Broken Windows Vista file Ext and Type Associations (include EXE, COM, SYS, ZIP, LNK,
    Folder, drive)
    http://www.mydigitallife.info/2008/06/22/reset-and-fix-broken-Windows-Vista-file-ext-and-type-associations-include-exe-com-sys-zip-lnk-folder-drive/

    For Windows Vista file association problems
    http://www.Winhelponline.com/articles/105/1/file-association-fixes-for-Windows-Vista.html

    I hope this helps.

  • Files and folders are much more difficult to manage than XP. Why?

    Well, this Windows 7 is a real bastard. All the good things that XP had disappeared and the bad bits left in. Why can I not move the autour files? There is no button move. I can copy the file, but it means that I have to remove it from the current location.

    With XP, I was able to bring the record down to the file and fill it from there. You may arrange the folders and files in any case I liked, not now if. It seems that all of this is intended to the strict alphabetical list only. In any case, I could change it?

    Drag the files into folders is a bit in the dark. Your just about file in a folder and then change page. Oops, wrong file! When I record a file a file scrolling will turbo, Zipper directly past the folder that you want to place the file in. It is difficult to scroll slowly, without the roller past stupid. It does not help with this PC laptop HP Compaq Presario, with its sensitive task of turbo on the touchpad. Very poor design.

    You can ignore the structure of theiir library. Yes!. It just requires time to learn the ways around what they have done. After 6 weeks, I'm there.

    This tip was very helpful because it can give you the equivalent of any shortcut Win + E to any folder on any drive, but.

    http://www.Dummies.com/how-to/content/how-to-create-a-custom-toolbar-on-the-Windows-7-TA.html

    You always have a movement of file command in Windows 7, which is accessible by selecting Edition from the menu bar.

    You can add the move to folder command in the context menu of Windows Explorer.

    http://www.TechRepublic.com/blog/itdojo/video-add-copy-to-and-move-to-commands-to-Explorer-context-menu-in-Windows-7/1838

    Hope this helps, Gerry Cornell

  • Disabled the HTTPS option in Hotmail and problems with the Windows Firewall, Microsoft Security Essentials and Windows updates.

    Original title: Windows Live Hotmail only opens a new window links e-mail composition!

    I recently put my Windows Live Hotmail account to my default e-mail client in Internet Explorer 8 on my Windows XP SP3 System. Unfortunately, whenever I click on a link to e-mail on a Web page to open a new message, Hotmail tells me, "Sorry, there seems to be a problem with Hotmail right now", and a new/compose message window does not open. I disabled the HTTPS option in Hotmail, which fixed the problem. However, when I went to do a manual update of Windows, I am nailed with a Trojan horse! Apparently, the Windows Firewall and Microsoft Security Essentials have been affected by turning off HTTPS in Hotmail! It's 2012, and it's terribly disappointing that Microsoft only has not ironed out all the imperfections in these services now. If anyone can give me a solution (in simple terms), I would appreciate it!

    Thank you

    Ryan

    Hi Ryan,

    1. you receive messages or error codes when you access Windows updates?

    2. what happens exactly with the Windows Firewall and Microsoft Security Essentials?

    About the update of Windows, the Windows Firewall and Microsoft Security Essentials issues, you may try to launch the FixIt and see if it helps:

    Method 1:

    Resolve security issues to protect and secure Windows automatically

    The problem with Microsoft Windows Update is not working

    Method 2:

    You can also refer to article and perform a full scan on your computer by using the Microsoft Safety Scanner.

    Microsoft safety scanner

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    On the Windows Live Hotmail account, you can publish your request in instances of Windows Live to get help:

    http://answers.Microsoft.com/en-us/windowslive

Maybe you are looking for