How to execute sqlplus command like 'show parameters '  in SQL Developer?

Hi guys,
here's another problem i just ran into, is it possible to run sqlplus cmd like 'show parameters ' in this tool? anyone can help? thanks in advance.

thanks.
and i just looked into the user guide and found that several sqlplus commands were unsupported in SQL Developer, including 'show '. i don't know why but anyway i get the answer, i can go back to use sqlplus itself.

Similar Messages

  • How to execute a system procedures in Sybase using SQL Developer ?

    Hi everybody,
    I'm using SQL Developer to remote connect to my Sybase Database. But I don't know how to run a system procedures in Sybase on SQL Developer program.
    I I use these command in CLI mode in Solaris server, it's OK. But if I try on my computer, it'll show an error message.
    Input :
    sp_helpdb SecurityDB
    Output :
    Error starting at line 25 in command:
    sp_helpdb SecurityDB
    Error report:
    Unknown Command
    Please help me to do it ?
    Many thanks,

    hello...
    any input will welcomed... Thanks..

  • How to execute sqlplus command in bat file ?

    Hello
    I have a simple script file that looks like this:
    "sqlplus admin/admin as sysdba
    shutdown immediate"
    But.. when i start this file.bat my system logs but do not make any script. Sqlplus just waiting for command, and when i write "exit" i logout from sqlplus, and then system execute next command, that is "shutdown immediate" but beyond sqlplus (so my base is still working). Is it at all possible to log on and execute commands from file.bat or some other way ?
    I'm using oracle 11g, windows 7x64
    Regards and thx for help
    Edited by: 879529 on 2011-11-27 04:52

    969970 wrote:
    Thank you that worked for me.But I fear you don't really understand WHY it worked, and WHY your first attempts did not work.
    So let me explain
    Given this .bat file
    sqlplus / as sysdba
    shutdown immediateWhat happens when you execute the file? The windows command processor reads the file line by line and processes the command on each line. What is the first lilne?
    sqlplus / as sysdbaSo what would you expect to happen when Windows processes that line? Remember, it's exactly as if you had entered that command yourself at the command prompt .... Answer: The OS locates an executable file named 'sqlplus', loads it into memory and passes control to it, along with a pointer to the rest of the command line ('/ as sysdba'). At that point, the executable sqlplus has control and will do whatever it wants with the command line it was passed ('/ as sysdba') and then waits for user input for more commands, including an 'exit' command. Where are those commands going to come from? They are NOT going to come from the next line in the bat file. They can't. The command processor that is running the bat file is still waiting for sqlplus to finish and return control. So you are stuck. The only way out is to break out of sqlplus with a 'ctl-break'. Once that happens, the command processor moves on to the next line in the bat file:
    shutdown immediateSo now the os tries to locate an executable file named 'shutdown' .... you probably don't have an executable by that name (let's hope not!) so you then get an error message from the OS informing you that
    'shutdown' is not recognized as an internal or external command,
    operable program or batch file.Now, if you were using a real OS, you could achieve what you wanted by using input redirection, but unfortunately, Windows just has a toy for a command processor.

  • Executing procedure with IN OUT parameters using SQL developer

    Hi, I'm trying to exceute the below procedure in SQL developer. Here the IN OUT cursor 'journal_cursor' is already defined.
    PROCEDURE LIST_FORPROJECT (
              p_project_sid IN NUMBER,
              p_journal_cursor IN OUT journal_cursor,
         AS
         BEGIN
              OPEN p_journal_cursor FOR
              -- get the journal
                   SELECT j.JOURNAL_KEY AS "Journal_SID",
                             j.JOURNALTEXT AS "Entry",
                             j.CREATEDATE AS "CreateDate",
                             --j.COMMENT_ AS "Comment",
                             j.PROJECTPHASETASK_KEY AS "ProjectPhaseTaskSet_SID",
                             j.person_key AS "Person_SID"
    FROM vdl_JOURNAL j
                   INNER JOIN vdl_PROJECTJOURNAL pj ON pj.JOURNAL_KEY = j.JOURNAL_KEY
                   WHERE pj.PROJECT_KEY = p_project_sid
                   ORDER BY j.CREATEDATE ASC, j.JOURNAL_KEY ASC;
    END LIST_FORPROJECT;
    When trying to run the above procedure through SQL developer, I get the below code generated.
    DECLARE
    P_PROJECT_SID NUMBER;
    P_JOURNAL_CURSOR journal_cursor;
    BEGIN
    P_PROJECT_SID := 5974;
    -- Modify the code to initialize the variable
    -- P_JOURNAL_CURSOR := NULL;
    -- Modify the code to initialize the variable
    LIST_FORPROJECT(
    P_PROJECT_SID => P_PROJECT_SID,
    P_JOURNAL_CURSOR => P_JOURNAL_CURSOR,
    -- Modify the code to output the variable
    DBMS_OUTPUT.PUT_LINE('P_JOURNAL_CURSOR' || P_JOURNAL_CURSOR);
    END;
    But executing the above sql doesn't print the cursor as output but errors out saying 'wrong number or type or arguments in call to ||'. Can somebody please help me in finding a way test and view the results of such a procedure through SQL developer?
    Any help is highly appreciated.
    Regards,
    Ranganath

    Hi,
    I was able to solve the problem.. My cursor was declared like this.
    TYPE journal_def IS RECORD
              journal_sid                    NUMBER(10),
              journaltext                    CLOB,
              createdate                    DATE,
              projectphasetaskset_sid     NUMBER(10),
              person_sid                    NUMBER(10)
    TYPE journal_cursor                    IS REF CURSOR RETURN journal_def;
    I used the journal_def type to fetch the records.
    Here is how my final sql looked like.
    DECLARE
    P_PROJECT_SID NUMBER;
    P_JOURNAL_CURSOR journal_cursor;
    P_J_CURSOR journal_def;
    BEGIN
    P_PROJECT_SID := 11171;
    -- Modify the code to initialize the variable
    -- P_JOURNAL_CURSOR := NULL;
    LIST_FORPROJECT(
    P_PROJECT_SID => P_PROJECT_SID,
    P_JOURNAL_CURSOR => P_JOURNAL_CURSOR,
    -- Modify the code to output the variable
    BEGIN
    --open P_JOURNAL_CURSOR;
    loop
    fetch P_JOURNAL_CURSOR into P_J_CURSOR;
    exit when P_JOURNAL_CURSOR%NOTFOUND;
    DBMS_OUTPUT.put_line(P_J_CURSOR.journal_sid);
    end loop;
    --close P_JOURNAL_CURSOR;
    END;
    END;
    This gave me results. Thanks a ton ALL for your help..... :)..
    Regards,
    Ranganath

  • How to execute sqlplus command in html_db

    The problem for this is caused that we wanna create a Java procedure for host calls on Unix environment, it seems be working on oracle database, and right now we want to use it under html_db, but we can't find any places to be able to execute the following commands "exec rc('/bin/ps -ef');" or "exec :x:= run_cmd('/bin/ps -ef');", html_db engine always complain this is not the invalid sql command when I type it in sql workshop. How can I do it in html_db? Hope any experts help me of it. Thanks already!

    thanks again Fred,
    I tried using both htp.p(run_cmd('/bin/mkdir /tmp/linkin'))
    I did this because if the command was executed then i should be able to see the director being created in the /tmp directory. Its still not the case. But am able to create one from sqlplus :-).
    Still wondering how to solve this. If you have any suggestion of submitting a shell job from within htmldb, please let me know.
    Anand

  • How to run sqlplus commands in php

    Hello,
    I want to start and stop the oracle database from php page but i get the following error:
    ORA-00900: invalid SQL statement in /var/www/shutdown.php on line 13I read somewhere that oci_execute cannot execute sqlplus commands, so my question is if you know some workaround for this issue?
    Also I want to start the database also from a php page but I get the following error:
    ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist Linux Error: 2: No such file or directory Process ID: 0 Session ID: 0 Serial number: 0 So can you help me with some hints ?
    Thank you,
    Danut
    Edited by: user9223471 on Apr 18, 2011 11:37 PM

    PHP OCI8 doesn't implement SQL*Plus client-tool commands like "SET PAGESIZE", "TTITLE" etc. Any statement you do an oci_parse() on is sent to the DB which only understands SQL & PL/SQL (ok, and XQUERY).
    PHP OCI8 can't start or stop the DB directly. It doesn't call the underlying C OCI8 OCIDBStartup() or OCIDBShutdown() functions (these functions are documented in http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10646/oci10new.htm#LNOCI096)
    You could patch PHP OCI8. Or think of an alternative business process / system architecture, such as using Enterprise Manager.

  • How to execute Linux command from Java app.

    Hi all,
    Could anyone show me how to execute Linux command from Java app. For example, I have the need to execute the "ls" command from my Java app (which is running on the Linux machine), how should I write the codes?
    Thanks a lot,

    You can use "built-in" shell commands, you just need to invoke the shell and tell it to run the command. See the -c switch in the man page for your shell. But, "ls" isn't built-in anyays.
    If you use exec, you will want to set the directory with the dir argument to exec, or add it to the command or cmdarray. See the API for the variants of java.lang.Runtime.exec(). (If you're invoking it repeatedly, you can most likely modify a cmdarray more efficiently than having exec() decompose your command).
    You will also definitely want to save the returned Process and read the output from it (possibly stderr too and get an exit status). See API for java.lang.Process. Here's an example
    java.io.BufferedReader br =
    new java.io.BufferedReader(new java.io.InputStreamReader(
    Runtime.getRuntime().exec ("/sbin/ifconfig ppp0").
    getInputStream()));
    while ((s = br.readLine()) != null) {...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Execute SQLPLUS command using JDBC

    Hi,
    I was wondering if its possible to execute sqlplus command (eg set define off, change date format ..etc) using JDBC ?
    Can anyone please post me some sample codes about this ?
    Any help will be appreciated

    Hi,
    But the Runtime.exec() and the JDBC application have
    their own connection to the database, and the sqlplus
    commands that i need to run are session based (only
    valid during the connection). eg set define off
    How do I overcome this ?
    Huh?
    You put anything you want into a input file. You feed the input file to sqlplus. If there are results then you put them into an output file.
    None of that has anything to do with JDBC nor even with java. When you call Runtime.exec() you are running a completely different process. What you do with that process is up to you.

  • How to execute unix command line from cocoa?

    how to execute unix command line from cocoa?
    for example, if I want to call "ping" from cocoa, how should I do it? and how can I obtain the return value?
    thank you.
    Power G5 Quad Mac OS X (10.4.3)

    The following article may also help:
    http://cocoadevcentral.com/articles/000025.php
    Mihalis.
    Dual G5 @ 2GHz   Mac OS X (10.4.6)  

  • How to execute a Command Prompt command from J2SE code executing on Windows

    How to execute a Command Prompt command from J2SE code executing on Windows??
    Please help me

    [http://java.sun.com/docs/books/tutorial/getStarted/]
    ~

  • How to execute  make  Command?

      Run in the terminal inside the  make command,prompt:"-bash:make:command not found"  My system version is Mac OS X 10.7.3 Xcode Version is 4.3.
      How to execute  make  Command?
                                    thanks!!

    I switch to / usr / bin directory also did not find the make  only to find a makeinfo. Google to find relevant information, if installed Xcode will be able to run make, but now does not work.
    But still thank you very

  • How to execute Dos Command 'Pause' from Java ?

    How to execute Dos Command 'Pause' from Java ?
    I have read the article in javaworld for Runtime.exec() anomalies.
    Can someone please give an insight on this?

    Thanks Buddy!
    That was very useful. Even though its a simple
    solution, I never thought about that.Bullshit! Reread reply #7 of http://forum.java.sun.com/thread.jspa?threadID=780193

  • How to execute external command?

    How to execute follow command and get its ouput on linux ?
    $ grep processor /proc/cpuinfo | wc -l

    sabre150 wrote:
    nitelia wrote:
    String[] command = {"sh","-c","grep processor /proc/cpuinfo | wc -l"};
              Process pro = Runtime.getRuntime().exec(command);
              BufferedReader bf = new BufferedReader(new InputStreamReader(pro
                        .getInputStream()));
              String x = null;
              while ((x = bf.readLine()) != null) {
                   System.out.println(x);
         This should workWow! So all one has to do is to use a shell to run the command! Isn't it a pity I did not give this solution in reply #3?You old sabre rattler! ;-)

  • Why has apple restricted adobe flash player?  How can one watch things like shows from CBS without the flash player?

    Wy has apple restricted the use of adobe flash player?  How can one watch things like shows from CBS without the flash player?

    This has been discussed a billion times. Please search before posting.
    Read this: http://www.apple.com/hotnews/thoughts-on-flash/
    CBS has apps for watching its shows. Search the AppStore.

  • How to change NLS parameters in SQL Developer?

    I think that Oracle National Language Support is quite confusing. How can I easily change NLS parameters for SQL Developer (for all connections) to match exactly those that my database is using?

    Hello,
    SELECT 5/8 x FROM dual;F9 -> 0.625
    Change decimal separator in preferences
    F9 -> 0,625
    It is different when I execute a query/script with F5, then I always get 0.625
    SELECT * FROM nls_session_parameters
    WHERE parameter = 'NLS_NUMERIC_CHARACTERS';
    PARAMETER                      VALUE
    NLS_NUMERIC_CHARACTERS         .,
    SELECT 5/8 x FROM dual;
             X
         0.625
    Change settings
    SELECT * FROM nls_session_parameters
    WHERE parameter = 'NLS_NUMERIC_CHARACTERS';
    PARAMETER                      VALUE
    NLS_NUMERIC_CHARACTERS         ,.
    SELECT 5/8 x FROM dual;
             X
         0.625Even changing the settings with ALTER SESSION makes no difference
    ALTER SESSION SET NLS_NUMERIC_CHARACTERS = ',.';
    SELECT * FROM nls_session_parameters
    WHERE parameter = 'NLS_NUMERIC_CHARACTERS';
    PARAMETER                      VALUE
    NLS_NUMERIC_CHARACTERS         ,.
    SELECT 5/8 x FROM dual;
             X
         0.625
    ALTER SESSION SET NLS_NUMERIC_CHARACTERS = '.,';
    SELECT * FROM nls_session_parameters
    WHERE parameter = 'NLS_NUMERIC_CHARACTERS';
    PARAMETER                      VALUE
    NLS_NUMERIC_CHARACTERS         .,
    SELECT 5/8 x FROM dual;
             X
         0.625It seems the script output does not care about my settings :-(
    Regards
    Marcus

Maybe you are looking for

  • Error while creating confirmation for a shopping cart

    Hi, i have created a sample fm and am passing sample values that i got by debugging the standard portal and badi(bbp_doc_change_badi) together, to create a confirmation. I am getting the following error in the process,while debugging, in the lt_messa

  • Images in IE Render over Spry SubMenus

    I've developed a Spry Menu Bar, but in IE when you open the submenu under the 'about us' link - any image thats in the content of the page renders over the submenu. Works fine in firefox though. See www.genicaassist.co.uk for this example. I've searc

  • Ghost Display: 'Generic non-PNP Display'

    Before I start talking about the problem I have Thinkpad T420s 4173-W1J (which has Intel HD + NVS4200) and I have never used it with any external displays prior to this issue: A while ago I noticed a strange problem. If I let the computer enter sleep

  • Wont boot on 10.6.3 disc

    I need to reinstall my OS. I cant boot of the 10.6.3 disc the computer just sits there with a mac symbol and never boots off of the CD.  I tried imaging the disc to a thumb drive but that doesnt work either.  Im baffled. Does anyone know how to fix t

  • HT2284 My Time Capsule just stopped working.

    Thank you in advance for any help. My Time Capsule just stopped working and I do not get the 'Connection Failed' error message as the Time Capsule is not showing up in the finder window. The light continues to flash amber on the Time Capsule. I am us