Executing SQL command in OMB PLUS

How can we execute sqlplus commands in OMB PLus command prompt ?

I don't know if there are any special OMB built in commands, but since it is a superset of TCL, you could use:
exec sqlplus ...

Similar Messages

  • SQL2005 cluster error MDB-05053  Errors when executing sql command: p nr="

    Hi all,
    We are migrating from 32 bit to x64 bit machines. SQL 2005 database on windows 2003.
    I am trying to install E 4.7-200 SR1 on the clustered nodes. The installation manuals for 4.7 are very old and there is nothing for SQL2005 installation.
    Now that some how we were able to have SQL up and running in clustered environment (It only took 10 days), After installing CI, I am not able to deploy the database and database creation phase is failing with the following error:
    MDB-05053  Errors when executing sql command: <p nr="0"/>.
    I am heavily relying on our server managment team on clustering and hoping they have done a good job, However I need some guidelines which can help me in verifying what they have done is correct and meets SAP and SQL requirments and issues we are facing is actually install problems not cluster.
    SAP install manuals are not detailed in this regards. Also manuals are out dataed and they only show the sql 2000 clustering pre-requisit for 4.7 installls.
    Can any one with clustering experience please help.
    Calling out NPC, As his sql installation and upgrade manual has helped me with stand alone installs, Hoping he has some thing for clustering as well.
    Regards,
    KG

    Hi,
    What installation CD/DVD are you using?
    Try look at SAP note [924288|https://service.sap.com/sap/support/notes/924288],
    and note [969699|https://service.sap.com/sap/support/notes/969699],
    and note [967124|https://service.sap.com/sap/support/notes/967124],
    and note [106275|https://service.sap.com/sap/support/notes/106275].
    In special the last note say at the end:
    "3. You must use the 51031444 CD to install Enterprise 4.7 on an x64 platform with SQL Server 2005. This CD installs the central instances and database instances. To convert the A and B nodes in MSCS, use the SAP NetWeaver 04 SR1 installation master CD or DVD."
    Hope this helps
    Regards
    Rolf

  • In batch file i want to execute sql commands

    in x.bat file i write the following
    sqlplus user/pass@host @c:\a.sql
    @c:\b.sql
    when i execute this batch file it is connected to the databse
    and the table of a.sql is created in the database.
    but b.sql is not created.
    it is creating only one table
    i want ot create more no of tables with different .sql files
    like @c:b.sql
    @c:c.sql
    @c:d.sql
    please any body help

    The problem you are running into is that SQL Plus only recognizes the first command you have written in the batch file.
    sqlplus user/pass@host
    SPOOL c:\master.log
    @c:\a.sql
    @c:\b.sql
    SPOOL OFF
    SQLPlus will recognize the spool and first sql command, but the batch file gets command back after the first sql command executes and doesn't recognize @c:\b.sql or know what to do with it. To run multiple SQL commands you have to create an external SQL file with all the sql commands in it with the Spool files you want created, then in the batch file you only call the one SQL script.
    Create a master file like so:
    -- Script Name : AllFiles.sql
    SPOOL c:\master.log
    @c:\a.sql
    @c:\b.sql
    SPOOL OFF
    In x.bat
    CALL SQLPlus user/password@database @AllFiles.sql
    This should get you your required results.

  • Execute process flow with OMB*Plus

    Hello,
    somebody know how to execute a process flow designed with OWB 9.0.4.8.21 within OMB*Plus?
    Thanks,
    Pedro

    Currently it is not possible to execute Process Flows or Mappings from OMB. OMB is to be used mostly as a metadata manipulation and processing platform, not for run-time management.
    What you could do is to put OMB metadata operation commands and runtime execution commands one after the other in a shell script and then run everything from this shell script (if this is what you are trying to do).
    Regards:
    Igor

  • Execute sql commands in browser

    I am using Oracle 10g standard edition in windows platform.
    I am getting SQL prompt , but I want to execute the SQL commands in the browser. But I can't find it.
    plz help me !!!

    You need to start the iSQL*Plus service. Check Starting the iSQL*Plus Application Server.

  • Unix OS /while executing SQL commands needs Error Log

    hai ,
    I am accessing the Development Server. While executing the SQL commands I need to log the errors. (like Spool in Windows )
    Same way , i want to log the error on Unix Environment.
    Thanks In Advance.
    Anzy

    Spool is a SQL*Plus command, just use it and you'll get your log.

  • How to view previously executed sql commands?

    Hi experts,
    I want to view the sql commands executed in Oracle 8i before 3 or 4 hrs.That is i am asking to view the command history.Can any one help me in this weird situation?Anytype of suggestion were welcme..
    Thanx in Advance,
    Senthil

    You can use LOG MINER utility to check the commands that has been executed.
    Use v$log_history view to check the exact log sequence number of the redo log file, and there by you can use that log file with log miner.
    Using this method you can't see the DQL commands that has been executed against the database, apart from this all other commands can be seen..
    cheers
    kumareshan

  • Execute sql command "ALTER SESSION SET..."

    How can i execute command "ALTER SESSION SET NLS_DATE_FORMAT ='MM/DD/YYYY'" with JDBC
    api.
    And by default?
    Bye
    Ste

    I'm not sure that you want to do this in Java. I would imagine that the NLS_DATE_FORMAT would be set by the Oracle DBA, and shouldn't be changed by a Java app via JDBC.
    Besides, when you query the database for a date it's returned as a java.sql.Date, regardless of the settings in the database. Once you have that, you can format it according to your wishes by using java.text.DateFormat and java.text.SimpleDateFormat.
    I thought the point was that the JDBC driver took care of ensuring that you got java.sql.Date objects back from queries, regardless of the NSL_DATE_FORMAT setting in the database.

  • Executing SQL Commands

    Hello all,
    Can any one tell me how to execute Native SQL queries from ABAP.
    Thanks in advance.
    Best Regards,
    Sasidhar Reddy Matli.

    Hi,
    Kindly go through these link below:
    http://help.sap.com/saphelp_nw04/helpdata/EN/fc/eb3b8b358411d1829f0000e829fbfe/content.htm
    Re: Querying using Native SQL
    Hope it helps
    Regrds
    Mansi

  • Executing SQL command in Java on Linux OS

    when i am running a java class file from cmd line,
    in that java file i am using a SQL statement, like
    select * from emp where empname='uday'
    here its not accepting the single quote('), its ignoring single quotes
    can any one help me

    when i am running a java class file from cmd line,
    in that java file i am using a SQL statement, like
    select * from emp where empname='uday'
    here its not accepting the single quote('), its
    ignoring single quotes
    can any one help meIf you were using a prepared statement then this would be irrelevant. I suggest you take a look at one before you have to right some larger queries.
    http://java.sun.com/docs/books/tutorial/jdbc/basics/prepared.html
    http://www.javaworld.com/javaworld/jw-01-2002/jw-0125-overpower.html

  • How to execute Sql command behind the submit button?

    Hello Dear,
    i design a Visual JFS page with 1 text box, 1 dropdown list, 1 date picker and 1 submit button. i have a database connected to my project with hibernate framework. now i want that whatever i change to textbox, dropdown list & date picker, when i press the submit button the information will insert to my database table. could any one help me with sample code or steps or procedure to accumplish my want?
    Regards,
    Taibur Rahman

    Hi,
    1) In baking bean you write one method in that you call Dao method or whatever persistence logic.
    2) In html or xhtml on submit button u add one attribute i.e action=#{BeanName.actionInsert}
    Since you are using visual JSF, simply double click on button, it'll automatically create action method in backing bean and their you write persistence logic.
    Thankyou
    Shivaprakash

  • Running sql commands from a .sql file

    Hello , I have this problem. How do i execute sql commands found in a .sql file with jdbc. My RDBMS is mysql.

    You will have to open and parse the .sql file, connect to the database, and execute the statements. You can't simply tell JDBC to run your .sql file.
    Depending on the complexity of your .sql file this is easy or hard. If its a bunch of e.g. updates or deletes or something you may be able to get away with running it as a block. In Oracle for example, you can put "begin" and "end;" around a bunch of statements and run it all together. In that case your program would open the SQL file, read the text, put it inside a "begin" and "end;", and run it as a single SQL statement.
    If its a bunch of statements that must be run independently then you'll have to programatically split them up to run one at a time. If its a select and you want to e.g. print results to the screen, well, then it gets tougher...
    - Jemiah

  • Fire OMB Plus commands from PL/SQL

    Hi all,
    does anyone know if it is possible to fire OMB Plus commands from PL/SQL procedures?
    I can imagine that there might be a PL/SQL package in the repository owner schema that accepts OMB Plus commands as strings...or something similar...
    Thanks,
    Elio

    Hi Elio
    I don't know about any existing package that could do that.
    What I'd suggest is to build a stored procedure/function/package that could do that. Or even, execute OMB Scripts in the host from a pl/sql program.
    Good luck.
    Regards,
    Marcos

  • OWB PRO out there : is it possible SQL to execute OMB*PLUS from Database ?

    Hi,
    With 11g out : is there any expert who sucessfully integrate pl/sql routine to call OMB. Here's the point : You have an APEX application and you design your stuff and at one point you wish you just have to press a button and generate a first draft of your design in the OWB repository, and then developpers can have a frame to start designing from your perspective.
    Also, imagine you have an APEX form to approve the testing of a design or process flow or both, and when you press the i approve button, you get call an OMB*Plus routine that do all the export->import reconcile and deploy thing!
    I don't think i'm alone to need this kind of stuff. So since OWB is Java, and Oracle database speek Java : is it possible to think of a quick solution ?
    Thank you all.
    Message was edited by:
    bpaquet

    Hi bpaquet,
    As you know OMB+ is TCL extension, and as i know OMB is not integrated into RDBMS.
    I think, there can be several solutions.
    1. Execute shell scripts from db using dbms_pipe package.
    2. Execute shell scripts using some java external procedure.
    3. Create some OS scheduled job (crontab), which will check some values in DB and execute OMB scripts.
    Regards

  • Need to execute SQL PLUS commands from C# code

    Hello all,
    This is my first question here and hopefully I will get my solution :)
    Right now we are doing 3 tasks manually
    1) Clearing everything from a DB.
    We use sql plus and execute this :
    RAMNIVAS_CI/RAMNIVAS_CI@orclwex3
    set pages 0
    set lines 80
    spool c:\delete_objects_CI
    select 'drop '||object_type||' '||object_name||';'
    from user_objects;
    spool off
    start c:\delete_objects_CI.lst
    purge recyclebin;
    set pages 100
    select count(*) from user_objects;
    RAMNIVAS_CI/RAMNIVAS_CI@orclwex3 are the username and pwd which gets input when we paste entire thing in sql plus
    2) Then we restore that DB again using sql plus to do it using the command:
    imp file=CL.DMP log=CL.log buffer=1000000 fromuser=RAMNIVAS_CL touser=RAMNIVAS_CL statistics=none grants=n commit=y
    3)Execute sql scripts on it using sql developer. (This is not hard I guess coz I know we can use oracle client)
    4) Take backup using this command:
    exp RAMNIVAS_CI/RAMNIVAS_CI@ORCLWEX3 file=CI.dmp log=CI.log direct=y compress=y buffer=1000000 grants=n statistics=none
    Is there anything I cna do to execute SQL PLUS commands using c#?

    Hi,
    You can execute OS commands via the SHELL function provided in .NET. See the MSDN for more info.
    Some of the things you can do directly from .NET via ODP and PLSQL, some not.
    1) Dropping the user objects can be done via a plsql procedure where you open a cursor for "select 'drop '||object_type||' '||object_name||';' ..." and then use EXECUTE IMMEDIATE to execute the resulting commands. You can invoke the procedure via ODP.
    2) IMP is an exe, not a sqlplus command, so you're not actually using sqlplus there. You can still use the SHELL command though to invoke that.
    3) Executing SQL Scripts via ODP.NET is not something you can do very easily. If you search the threads here you should be able to find some solutions others have come up with to parse the file and execute the statements one by one, but there's nothing built in to ODP to execute a script file.
    You may want to just shell out to sqlplus user/pwd@db @scriptfile.sql but you may have issues trying to track down errors if any occurred, as I'm not sure where they go in that case.
    4) just as with IMP, EXP is an exe, so you could shell out to that.
    Corrections/comments welcome.
    Greg

Maybe you are looking for

  • Can SSIS be used to pick up files dynamically from an FTP folder?

    I get 4 files dumped into an FTP folder each day.  Each comes in with a date, in this format: '20140320' & the filename, which is always the same convention for these four files.  Can I run SSIS on a daily basis, like at 9AM, to scan through the file

  • How to use the next 'initial' cost center in infotype 0027

    Hello experts! I need some help in posting in infotype 0027 which should be fairly easy to most of you. As you guys know, there are a total of 25 cost centers available (KST01-KST25) for this infotype. What I want to do is check from KST01 if it exis

  • "Message Rejection Handler" for the file/ftp adapter using fault policy

    Hi guys, We are trying to implement "Message Rejection Handler" for the file/ftp adapter using following fault policy configuration. Fault Policy: ````````````` <?xml version='1.0' encoding='UTF-8'?> <faultPolicies xmlns="http://schemas.oracle.com/bp

  • Error when opening Crystal Reports

    Hi I'm getting an error when opening Crysta R. from SAP 2007. Crystal version is 2008 and the error is something like this: The title of the wirndow is: Microsoft .NET Framework. Message: Exception not controlled in application. If you click continue

  • Ipad2 settings problem

    Hello, need an assistance... How can I get into Mail, Contacts and Calendars settings? When I opens it in Settings, iPad goes back to main desktop. Any idea how to fix it? Running iPad2 on iOS 5.01, non JB. Thank you.