What  is command used to run the the  database query sripts?

Hi all,
i got some clue from another thread and i observed the command is like
sqlcli -d DBNAME -u SQLUSER,SQLPASS -i filename.sql -c <delimiter> is there,
when i use this the only first query is successfully executing,
this might be problem with delimiter.
can any body help how to use delimiter in the script file with an example.
thanks in advance.
--Hari

Hello Hari,
1. Please let me know the database version & sqlcli tool version, which you are using:
     sdbregview -l
     < review the installed the database software packages >
     xinstinfo <DBNAME>
     < to check the Kernelversion of your database >
     sqlcli -v
     < to check the version of sqlcli >
2. Please update with the options/statements you was running.
   What errors/problems did you get?
3. For example, I run on the local server:
  sqlcli -d NLK -u sapr3,sap
sqlcli NLK=> \i c:\test\run_1.sql
0 rows affected (3 msec)
0 rows affected (2 msec)
sqlcli NLK=> \i c:\test\run_2.sql
1 row affected (3 msec)
1 row affected (2 msec)
sqlcli NLK=> \i c:\test\run_3.sql
0 rows affected (4 msec)
1 row affected (2 msec)
1 row affected (2 msec)
1 row affected (2 msec)
sqlcli NLK=> select * from a3
COL1
COL2
56
49
44
12
48
12
3 rows selected (2 msec)
Run_1:
create table a1 (col1 int NOT NULL default '0', col2 int NOT NULL default '0')
create table a2 (col1 int NOT NULL default '0', col2 int NOT NULL default '0')
Run_2:
INSERT INTO a1 values (56,49)
insert into a2 values (44,12)
Run_3:
create table a3 (col1 int NOT NULL default '0', col2 int NOT NULL default '0')
INSERT INTO a3 values (56,49)
insert into a3 values (44,12)
insert into a3 values (48,12)
4. To use option '-c <separator>' example:
sqlcli -d NLK -u sapr3,sap -c /# -i c:\test\run_4.sql
COL1
COL2
56
49
56
49
44
12
48
12
Run_4::
create table a3 (col1 int NOT NULL default '0', col2 int NOT NULL default '0')
INSERT INTO a3 values (56,49)
insert into a3 values (44,12)
insert into a3 values (48,12)
commit
select * from a3
Thank you and best regards, Natalia Khlopina
Add number 4. example.
Message was edited by:
        Natalia Khlopina

Similar Messages

  • What language  oracle  used to develop it's database

    what language oracle used to develop it's database?
    I think they use java because the database available on many platform!!

    Oracle's internals are written in C, though they started out in Fortran. Tom Kyte talks about this here: http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:5228516811673
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • What command can be run from the cmd to inquire about the language layout that is used right now?

    I have windows 7 32bit platform. Is there any command that can be run from the command line just to inquire about the language bar that is currently in use? Suppose I have English keyboard on my machine but I am switching between 3 languages when I write
    my documents (e.g. English, German, Spanish). I want to know if there is any way to tell what language layout that is in current use as seen in the language bar. This question is not about how to change language layout from the command line -- just to know
    what layout. For example, the command can return some sort of string to indicate which layout is currently in use: "english", "german", "spanish", and so on.
    My ultimate goal from this question is to pass this output into an external editor that will hopefully change font based on the input language? Any help to achieve this goal will be much appreciated.
    Or put differently, what is the best way to tell an external editor like Emacs about the current language layout that is in current use?

    For the current input language you can try using
    reg query "HKCU\Keyboard Layout\Preload" /v 1
    The return value includes an eight digit hex value. The first four digits indicate either default layout for the language (all zeros) or a variation (non-zero). The last four digits are the locale id - see:
    http://msdn.microsoft.com/en-us/goglobal/bb964664.aspx
    From this table, you can see in the example above my input language is English - Australia. 
    For the keyboard layout you could try
    WMIC Path Win32_Keyboard Get Layout
    0409 is an English - US keyboard.
    For a few other ideas/methods try reading
    http://p0w3rsh3ll.wordpress.com/2013/06/07/about-keyboard-layouts/

  • What sytem is used for determining where the mac book or cell phone located?  WEB?  Cellphone towers?

    I am fumbling thru for the first time using this system.  I am interested in determining what system is used to determine the location of the iphone, macbook pro.  Is it based on WEB comnecttivity or Cell phone tower connectivity? 
    I do not believe it is based on satillites.  Is this true?
    Thank you for your time and effort.

    NAF player wrote:
    I am fumbling thru for the first time using this system.  I am interested in determining what system is used to determine the location of the iphone, macbook pro.  Is it based on WEB comnecttivity or Cell phone tower connectivity? 
    I do not believe it is based on satillites.  Is this true?
    I believe that it also uses GPS (if it is a devices with GPS such as an iPhone or iPad with Cellular) which does involve satellites.

  • What charcterset to use for Thai - with 10 database?

    Hi All,
    We have an application with below specification
    Oracle database - 10.2.0
    Forms and reports - 10g
    In the front end application using (forms) we are not able to view Thai charactes. The NLS_LANG for form server is AL32UTF8. With this setting we can see Chinese and Japanese characters properly but not Thai.
    The reports generated using oracle reports show the Thai characters and NLS_LANG for report server is = UTF8. SoI tried changing the form's nls_lang = UTF8 but no improvement after this change.
    Could you please tell me what do I need to change to view Thai characters?
    Thanks in advance
    Priya

    Hi,
    Do I need to post this query in different category?
    Regards,
    Priya

  • What is HttpFox using to display in the Content tab

    I'm working on code using HttpURLConnection to a web server and one web page that logs off from the web server sends a POST to the web server and I get an http 200 back, but the header "Connection" says "close" and the Content-Length has a value .. but I don't get anything from trying to read from the HttpURLConnection.getInputStream() ... and I think thats becuase the connection is closed.
    When I watch this http request/response using HttpFox .. i see all the same values as above, except the Content tab in HttpFox shows basically the html web page I want to display to the end user.
    So I am trying to figure out what I need to access on the HttpURLConnection to get to that data that HtpFox is showing in the Content tab ..

    A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.
    *http://forums.mozillazine.org/viewforum.php?f=25
    The helpers at that forum are more knowledgeable about web development issues.<br>
    You need to register at the MozillaZine forum site in order to post at that forum.

  • What drive is used as superdrive in the new Macbook

    Hello everyone
    For the first time ever, I'm soon the owner of a Mac
    I'm going to by a Macbook with superdrive, but can anyone tell me what model and manufacturer Apple uses for this drive?

    This is the info from the System Profiler:
    MATSHITA DVD-R UJ-857:
    Firmware Revision: HBE4
    Interconnect: ATAPI
    Burn Support: Yes (Apple Shipped/Supported)
    Cache: 2048 KB
    Reads DVD: Yes
    CD-Write: -R, -RW
    DVD-Write: -R, -RW, +R, +RW
    Burn Underrun Protection CD: Yes
    Burn Underrun Protection DVD: Yes
    Write Strategies: CD-TAO, CD-SAO, DVD-DAO
    Media: No

  • Stop or Reload a call to a JSP--what happens to a EJB running in the JSP?

    I am calling repeatedly calling a method of an EJB bean from within a
              while-loop in a JSP. The EJB is handling some database processing.
              Unfortunately, the EJB's processing can take a lot of time within each
              iteration of the while-loop, which prompts some users to hit "Stop" or
              "Reload" from their browser.
              Therefore, the while-loop gets broken.
              My question is: what happens to the thread of execution within the EJB?
              Will an EJB that is called from a JSP continue to completion even if a user
              hits "Stop" or "Reload?"
              Any feedback will be appreciated. It appears to me that the EJB does not
              continue to completion.
              Dave Bine
              Software Engineer
              Flutter.com
              

    What do you mean that the while loop gets broken? Stop just closes the
              socket from the client end, it does not affect threads that are processing
              on the server unless they explicitly check the state of the socket.
              Similarly, the EJB would not stop processing.
              Cameron Purdy
              "dbine" <[email protected]> wrote in message
              news:3978c327$[email protected]..
              > I am calling repeatedly calling a method of an EJB bean from within a
              > while-loop in a JSP. The EJB is handling some database processing.
              >
              > Unfortunately, the EJB's processing can take a lot of time within each
              > iteration of the while-loop, which prompts some users to hit "Stop" or
              > "Reload" from their browser.
              >
              > Therefore, the while-loop gets broken.
              >
              > My question is: what happens to the thread of execution within the EJB?
              > Will an EJB that is called from a JSP continue to completion even if a
              user
              > hits "Stop" or "Reload?"
              >
              > Any feedback will be appreciated. It appears to me that the EJB does not
              > continue to completion.
              >
              > Dave Bine
              > Software Engineer
              > Flutter.com
              >
              >
              

  • HT204053 How can I find out what devices are using my AppleID and the history of purchased items with my AppleID?

    I have used my appeID to load some games to my son's friends iPod's and have found that the iTunes gift cards that were loaded under my ID have been used very quickly ($100 in 2 months) when I have not been downloading things.  I have been told that the friend has been downloading games/music after I had put in my password to load something else.

    We are fellow users on here and not Apple employees so have no account access.
    You can see iTunes and app store purchases by going to the store for each and clicking Purchases on the right side.
    You might want to consider contacting the store support staff at http://www.apple.com/emea/support/itunes/contact.html and request your account be locked for a period of time.  You need to stop allowing uncontrolled access and that may be he bet way.

  • What is flash using up nearly all the computers resources?

    after half a day I come home and system idle process is nearly 0 %   PATHETIC !!!

    Windows XP 64 SP2
    Firefox 35.0.1
    Adobe Flash 16,0,0,305
    Adobe Flash / plugin-container.exe is suckin up all of the systems resources jackin up the computer.
    removing the resource hog plugin-container.exe from the processes list will give me a message in the video window from a page such as break.com stating that the player has crashed.

  • My computer just started asking what program to use to run firefox. what happened and how do I fix? Thanks

    I just installed Firefox a few days ago and has been really good. Today my computer will not open Firefox, it keeps wanting to know what program to open in.
    what do I do to fix this?
    Thanks

    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br /><br />
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    *http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • In Oracle Forms, to run all the When-Validate-Item of all the items at once

    In Oracle Forms, is there any built-in / procedure / function which is used to run all the When-Validate-Item triggers of all the Items at once ?
    I will put it in detail :
    When a form is run and while entering the data..
    when we enter some data and try to move out of that item then the When-Validate-Item trigger of that item is fired and the code in that trigger is executed..
    Similarly there may be many items and many When-Validate-Item triggers correspondigly in a form..
    My requirement is to run all the When-Validate-Item triggers of a form at once when we click a button which is created for that purpose only..
    So is there any built-in / procedure / function (to run all the When-Validate-Item triggers of all the items), which can be called in the When-Button-Pressed trigger of that particular button..
    If any one having any solution/suggestion, please let me know..
    Thanks..
    Edited by: user2938447 on Nov 8, 2010 9:03 PM
    Edited by: user2938447 on Nov 8, 2010 9:12 PM
    Edited by: user2938447 on Nov 8, 2010 10:19 PM

    Hi Sandy,
    Thanks for your suggestion..
    The validations should be done at Item level (When-Validate-Item as usually) and seperately again when a button is pressed.
    So to put all the code in another block-level When-Validate-Item trigger or in any When-Button-Pressed trigger will be duplication of the code.
    Actually I have around 30 Fmbs to be modified and each Fmb is having around 20 Items and almost all Items are having When-Validate-Item trigger.
    So,I wanted to know whether there is any Built-in / Procedure in Oracle Forms which runs all the When-Validate-Item triggers once it is called.
    Thanks..

  • Internet Sites running on the WAS?

    Hi all,
    We're investigating using WebDynpro running on the WAS to replace our ITS platform.  We are curious to if there are any internet sites that anyone knows of that we could visit to get a feel of the performance and just to fit our comfort that there are external sites using Web Dynpro on the WAS.  Any help would be appreciated.
    Thanks, Greg

    Hi Greg,
             Visit this link
    https://www.sdn.sap.com/sdn/developerareas/netweaver.sdn?page=cccp_series.htm
    You will find some demo movies of real time scenarios made out of webdynpro with voice also.
    You have have a look and feel of webdynpro also.
    Regards,
    Guru

  • External hard drive, what FS to use...

    External hard drive of 2TB, what filesystem to use and to protect the disk?
    The main concern is portability, I might need to use the disk in other OS or distro.
    The second concern is safety, if I lose the disk I would have important data lost with it.
    So, I was thinking to use udf as filesystem as it seems well supported everywhere nowadays:
    mkudffs --blocksize=512 --media-type=hd --utf8 --lvid="soandso" --vid="soandso" --fsid="soandso" /dev/sdZ
    And keep a directory inside protected via veracrypt since it also seems to support Linux, OSX, and Windows.
    What do you think? Any flaw in this plan? What do you suggest?
    Last edited by ezzetabi (2014-12-04 13:10:14)

    Interesting... I was in a similar situation recently. I've never heard of UDF before. In my situation I went with FAT32 for ease of use and compatability.
    Does UDF support journaling? If not, what would make UDF a better choice over FAT32?
    I found a few websites that discussed using UDF on an external drive. It seems possible but a little weird or tricky to setup properly.

  • What is Vistex used for

    Hi Experts, What is Vistex used for?

    Hello,
    The SAP Incentive Administration application by Vistex supports a variety of incentive agreements and programs u2013 from simplest to most complex.
    SAP Incentive Administration integrates seamlessly with your SAP software to provide robust administration, analysis, and reporting capabilities. This powerful application enables you to efficiently manage commissions and other incentive programs.
    You can set targets and quotas u2013 and monitor actual results against your budget.
    You may visit these links for further details.
    http://www.vistex.com/home.html
    http://www.sap.com/solutions/solutionextensions/incentives/index.epx
    Prase

Maybe you are looking for

  • Issue regarding consecutive run for an Interface

    hi all, i have an issue regarding an interface if this Interface is a initial run for the file, you have to populate all the data of the people. That is , unlike other interfaces where we send only the latest record, in this interface we need to send

  • How to unsync my iPod from my iPhone??

    I synced my iphone to my ipod so i would have the same songs on my iphone however now every time i download a new app on my iphone it automatically downloads on my ipod and vice versa.... how do i make it only go to the device i want it to go on?

  • Ejb lookup and oc4j container startup

    I have a servlet that is set to auto start on container startup that does a lookup on a ejb in another container. jndi locates the ejbhome but fails to load the class for the ejb home. It knows the name of the class but the classloader cannot find it

  • Photoshop cs 4 unter parallels

    Ich habe photoshop cs4 unter Windows 7 und parallels auf meinem neuen Mac installiert. Die Schriftgröße der Menuefelder ist viel zu klein. Die Symbole ebenfalls. Wie kann ich das Programm ordentlich anpassen ?

  • Oim 11g r2: data access restriction using roles instead of organisations

    can i implement data access restriction using roles instead of organisations in oim 11g r2?