Running PL/SQL: CALL the DBMS_DEBUG_JDWP. DISCONNECT()

Is there something wrong with the 3.0.04 Version? I tried to debug a package but I got in the newspaper:
Connecting to the database hr.
Executing PL/SQL: ALTER SESSION SET PLSQL_DEBUG=TRUE
Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP( '192.168.1.15', '49430' )
Debugger accepted connection from database on port 49430.
Executing PL/SQL: CALL DBMS_DEBUG_JDWP.DISCONNECT()
Process exited.
Disconnecting from the database hr.
Debugger disconnected from database.
It throws no error, but it does not debug...
Or have I missed something?
I use:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
PL/SQL Release 11.2.0.2.0 - Production
CORE    11.2.0.2.0      Production
TNS for 32-bit Windows: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
on windows 7

Best regards
Val

Published by: Valerie good-natured December 10, 2011 02:15

Hi Valerie,

Without focus on the specific version of SQL Developer or your type of operating system and version, here are some points to consider:

1 - Compile with debug information:
     Compile with Tools|Preferences|Database|PL/SQL Compiler Optimization level set to 1 or 2, or
     Compile for Debug
2 - Make sure you have set at least one breakpoint and that it is on a executable line of code  

Hope this helps,
Gary
SQL development team

Tags: Database

Similar Questions

  • What do I need to run adsysapp2.sql in the database of R12?

    Hi, experts:


    I'm migrating a 11.2.0.3 R12 database of HP following Linux notes 741818.1. I work on the step 8. Establish the diagram of the SYSTEM. After execution of the

    script ausy1120.sql, I saw that a command in the log file says "You must run adsysapp.sql to create packages of Oracle Applications in the scheme of the SYSTEM.". What do I need to run this? It is not said in the note. At this point I just create a database structure. No given no request.


    Thanks and regards.

    Thank you so much, Hussein.

  • How to determine if external exe is running before you call the "Exec.vi system"



  • Call the PL/SQL shell script

    Hi all

    I've seen several links and options for calling a PL/SQL shell script. I was wondering if there is something like DBMS_SCHEDULER. CREATE_PROGRAM-> executable that calls an external program in 11 GR 2.

    Here's what I have to. I have 11 GR 2 database with Dataguard. I have START triggering who begins a DBMS_SERVICE when the role becomes PRIMARY. In the same instance, I would stop the VIP on the former primary database and start the VIP on the new primary database.

    Thanks for the advice and assistance.

    Jan S.

    The URL below links to ask Tom. Inside, he talks about creating a Java procedure in your database that allows you to execute commands from the host OS (PL/SQL calls the proc of Java that runs the host command). There are several ways to run the OS commands, but this one is very flexible. I needed to use it for a task that I have who didn't fit one of the other methods very well.

    http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:no:P11_QUESTION_ID:3069633370832

  • Information on how to execute SQL on the CUCM himself queries please

    Hello all,.

    I need to run a SQL on the CUCM enumerate all directory numbers, their score and their external mask values.

    I came across this snippet below earlier so I have a bit of an idea of how do but iw would be great to see some other examples of sql queries.

    Any help is most appreciated.

    Also, is there a document somewhere to tell me how to run these queries?

    Thanks in advance

    Concerning

    Amanda

    *******************************************************************************************************************************************************************************

    Helps you try if this the CLI SQL query execution, it must list all DN with CFA allowed the VM or a DN:

    run sql select dnorpattern, cfadestination, cfavoicemailenabled CallForwardDynamic c, numplan n where c.fknumplan = n.pkid and (cfadestination! = "or cfavoicemailenabled 't =')

    Hi Amanda

    Basically, this is standard SQL, so that he would not bad at google 'informix instructions' select and do a bit of reading to get the basics. There are millions of permutations of requests so it comes to understand the syntax and then only by applying to the database in question. The only difference when running the commands in the CLI are:

    -Precede you the standard informix with "execute sql" SQL statement

    -You get no help from CUCM with syntax, so you might be well advised to use something which includes SQL a bit and he colorized you type, and then paste the commands resulting in the CUCM SSH window. I use an editor called JEdit, if you create a text file and save it as a file ending with .sql, it will highlight your syntax.

    -Other programs are available that make reasonable syntactic (EQ SquirrelSQL) that are designed to query the DB directly, but you can't really query directly against the DB for security reasons. You will still need to copy and paste commands.

    Now... to understand the DB you will need a reference describing all the tables, etc.. Here it is:

    http://www.Cisco.com/en/us/products/SW/voicesw/ps556/products_programming_reference_guides_list.html

    Choose your version of CUCM and download the document 'data definition '.

    Some notes on the order:

    run sql: is just the CLI command which tells the shell to perform the following as SQL.

    Select: the SQL command to recover data

    dnorpattern, cfadestination, cfavoicemailenabled: column names to retrieve

    callforwarddynamic c, numplan n: the names of the two tables and abbreviations that you want to refer to them as

    where c.fknumplan = n.pkid: This tells SQL to return values in the two tables where these fields match. In the data definition, you will see notes that c.fknumplan (i.e. the column fknumplan in table callforwarddynamic, as indicated by the prefix c.) refers to the PKID column in the area of the numplan. It is a type of join in the very standard DB CCM.

    and ("cfadestination! =" or cfavoicemailenabled = "t"): another clause, fundamentally in this application that we want to see only the rows where cfadestination is not empty or cfavoicefmailenabled has the value 't' for real).

    Most of the tables are related in two ways in this database:

    -a column "fk" prefix refers to the field of pkid (there is always only one field per table pkid) in the table following the prefix "fk". For example above fknumplan refers to the numplan, pkid field table. fkdevice refers to the machine table, pkid field.

    -a prefiex of 'traditional knowledge' column usually refers to a table enum which is preceded by 'type '. It is a table that maps the numerical value in the field of 'traditional knowledge' into a string. An example would be tkmodel - it is the type of physical phone (e.g. as 7962) and mapped as the column and a table called typemodel model 'enum' in the table.

    Concerning

    Aaron Harrison

    Senior Engineer at Logicalis UK

    Please note the useful messages...

  • call the statement box inside the case statement

    I am writing a program which requires me to run a statement box inside another case statement. Although this sounds like a simple thing, I need to be able to call the case statement using a sequence structure, where s1 sends the true value to the case, s2, a fake. Then I need to record the results of this instruction box in a text file. Attatched is a simplified version of what I'm trying to do. Please note that the way my program runs may not call the case statement without using a sequence structure, two nesting box instructions is not feasible. I hope someone out there can help me because I was stuck trying to find this for awhile.

    Thank you

    LVStudent wrote:

    [...] I can't call the case statement without using a sequence structure

    Yes you can.  You just need to be smart.

    LVStudent wrote:

    I don't think I can use a state machine to fix this.

    I think you probably can.

    With respect to your original post. What are these s1 and s2 are you talking about?  My opinion on the matter, it is that you want to select a case based on the values of several controls Boolean.  If this is correct, I do this:

    Build your Boolean controls in a table, convert the table number and insert it into the structure of your business.  No button pressed = 0, s1 = only 1, s2 = only 2 both = 3.   This works for Boolean values as much as you want and is an easy way to make a decision that depends on many entries.

  • After running sql of the lot, it is disconnected

    Hi all

    I wrote a batch program to run a pl/sql procedure. But after running, it disconnects.

    But I want to continue in the same session

    echo exec tracer.trace_pck.start_('alter session set sql_trace=true') | sqlplus hr/hr
    

    Output:

    Press a key to activate tracing

    SQL * more: Production of liberation 11.2.0.2.0 Thu Oct 10 15:59:56 2013

    Copyright (c) 1982, 2010, Oracle.  All rights reserved.

    Connected to:

    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production

    SQL >

    PL/SQL procedure successfully completed.

    SQL > disconnected from Oracle Database 11 g Express Edition Release 11.2.0.2.0.

    Production

    Trace enabled successfully. Press a key for entry you sql

    If you use a batch file, I assume you are using windows OS.

    Essentially, what you need to do is call a sql file in the batch file and then download the sql file to call all the other files.

    Batchfile test.bat file test.sql sql calls

    sqlplus /password @test.sql

    test. SQL calls test1.sql and test2.sql and stops

    @test1.sql;

    @test2.sql;

    "exit";

    test1. SQL displays the current sid and serial No. FRO our name and our session

    Select 'test1', sid, serial # in session $ v

    where audsid = userenv ('sessionid');

    test2. SQL displays the current sid and serial for our name and our session No.

    Select "test2", sid, serial # in session $ v

    where audsid = userenv ('sessionid');

    When you run this you get t output similar to the following: (your SID and serial will be different)

    ' TEST SID SERIAL #.

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

    771 97 Test1

    ' TEST SID SERIAL #.

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

    771 97 test2

    It shows two separate sql files have been called, but are always in the same session

  • How to get the PL/SQL-call of a running application stack? (11.2.0.3)

    Hello

    I have an app running, but does not end.

    I can see the SQL, but I need to find out what PL/SQL-package the SQL.

    Does anyone have a tip for me where to look?

    There are many examples in order to recover the call in the exception management stack, but none to recover by session_id.

    Thanks in advance,

    Mynz

    Columns in session $ v % plsql_ can help, the query below is about the same.
    https://community.Oracle.com/thread/2232972?TSTART=0

    Alternatively, you can get some respect distinctive within the SQL text and research in dba/all/user_source for him.

  • Call to Web Service of Oracle PL/SQL not to call the Web service in SOA Server

    Hello

    Try to call the Web service to oralce pl/sql function

    created a function

    Unable to invoke the web service from the server of the SOA.

    CREATE or REPLACE FUNCTION HelloWorld_WebServices(S_STRING Varchar2) RETURN VARCHAR2 as

    Server sys.utl_dbws. SERVICE;

    APPEL_ sys.utl_dbws. CALL;

    service_qname sys.utl_dbws. QNAME;

    port_qname sys.utl_dbws. QNAME;

    response sys. XMLTYPE;

    application sys. XMLTYPE;

    BEGIN

    sys.utl_dbws.set_http_proxy ("hostname: Port'");

    service_qname: = sys.utl_dbws.to_qname ("ns1", "process");

    Server: = sys.utl_dbws.create_service (service_qname);

    APPEL_: = sys.utl_dbws.create_call (server);

    sys.utl_dbws.set_target_endpoint_address (APPEL_, ' http:/host name: port/soa-infra/services/OFS/HelloWorld/helloworld_client_ep ');

    sys.utl_dbws.set_property (APPEL_, 'OPERATION_STYLE', 'process');

    asks: = sys. XMLTYPE ("< ns1:process xmlns:ns1 ="http://xmlns.oracle.com/OFSOrderServices/HelloWorld/HelloWorld"> < ns1:input > < / ns1:input > < / ns1:process > '"); 

    answer: = sys.utl_dbws.invoke (APPEL_, request);

    return response.extract('//HelloWorld/child::text() ','http://xmlns.oracle.com/OFSOrderServices/HelloWorld/HelloWorld'). getstringval(); 

    DBMS_OUTPUT. Put_line ("values of the OutputsVariables8");

    -Of return ';

    END;

    Run - the code below:

    Select HelloWorld_WebServices ('Hi') to double;

    Error:

    ORA-29532: Java call terminated by eception Java exception: java.lang.NoClassDefFoundError

    ORA-06512: at "SYS." UTL_DBWS', line 403

    ORA-06512: at "SYS." UTL_DBWS', line 400

    ORA-06512: at the 'APPS '. HELLOWORLD_WEBSERVICES', line 74

    29532 00000 - "Java call terminated by eception Java exception: %s."

    * Cause: A mistake or a Java exception has been reported and could not be

    solved by Java code.

    * Action: Modify Java code, if this behavior is not expected.

    Hello

    Fixed the error

    After loading once again of DBA and network provided access files JAR/JVM firewall

    and the correction on the threshold

    Return response.extract (' / result/child::text () ','xmlns = "http://xmlns.oracle.com/OFSOrderServices/HelloWorld/HelloWorld" '). getstringval();

  • ORA-900 sql not valid reporting error while calling the optimize_index pl/sql procedure


    Hi Experts,

    I'm on Oracle 11.2.0.3 on Linux and I have installed in my database Oracle text. I want to configure annex dbms_job to optimize my oracle text index. So first, I created a pl/sql procedure to optimize indexes. It gives me error ORA-900, but the sql even if I run in sqlplus works very well! Can you please help me the question is to find:

    Here is the procedure:

    (Either incidentally CTXAPP role has been granted in the schema where these Oracle text indexes are created and where the below procedure to optimize the index is running.)

    CREATE OR REPLACE PROCEDURE optimize_ora_txt_indexes_debug
    IS
       CURSOR cur_context_indexes
       IS
            SELECT index_name
              FROM user_indexes
             WHERE index_type = 'DOMAIN'
        AND ROWNUM<2  
        ORDER BY INDEX_NAME;
       v_user         VARCHAR2 (30);
       v_pod          VARCHAR2 (30);
       v_start_time   TIMESTAMP;
       v_end_time     TIMESTAMP;
       v_elapsed      VARCHAR2 (40);
       v_msg   VARCHAR2 (1000);
       v_error_code      NUMBER;
       v_error_msg   VARCHAR2 (1000);
       v_sql VARCHAR2 (1000);
    BEGIN
    
       FOR c IN cur_context_indexes
       LOOP
          BEGIN
            v_sql:= 'ctx_ddl.optimize_index (idx_name =>'||chr(39)|| c.index_name||chr(39)||', optlevel => '||chr(39)||'FULL'||chr(39)||')';
            dbms_output.put_line(v_sql);
            execute immediate v_sql;
          EXCEPTION
             WHEN OTHERS
             THEN
                v_error_code := SQLCODE;
                v_error_msg := SQLERRM;
                v_msg :=
                      'Error while optimizing the index '
                   || c.index_name
                   || ' '
                   || TO_CHAR (v_error_code)
                   || ' '
                   || v_error_msg;
                DBMS_OUTPUT.put_line (v_msg);
    
          END;
       END LOOP;
    
    EXCEPTION
       WHEN OTHERS
       THEN
          v_error_code := SQLCODE;
          v_error_msg := SQLERRM;
          v_msg :=
                'Error while in the optimize index procedure'
             || ' '
             || TO_CHAR (v_error_code)
             || ' '
             || v_error_msg;
          DBMS_OUTPUT.put_line (v_msg);
    
    END optimize_ora_txt_indexes_debug;
    /
    
     --the procedure compiles successfully. 
     Now when I run it , I get the error:
    SQL>exec optimize_ora_txt_indexes_debug;
    ctx_ddl.optimize_index (idx_name =>'ACCESS_CLNT_IDX04', optlevel => 'FULL')
    Error while optimizing the index ACCESS_CLNT_IDX04 -900 ORA-00900: invalid SQL
    statement
    
    
     --When I run the same command from sqlplus as execute statement , it works fine:
    SQL>exec ctx_ddl.optimize_index (idx_name =>'ACCESS_CLNT_IDX04', optlevel => 'FULL');
    PL/SQL procedure successfully completed.
     
     
    
    
    

    If everything runs from sqlplus, but fails in plsql... I'll be very grateful for pointers solve the problem.

    Thanks,

    OrauserN

    Hello

    It is a problem of pl/sql syntax. A call with EXEC is the same using BEGIN... Code of... END of block;

    SO, you need to include a beginning and an end to your call:

     v_sql:= 'BEGIN ctx_ddl.optimize_index (idx_name =>'||chr(39)|| c.index_name||chr(39)||', optlevel => '||chr(39)||'FULL'||chr(39)||'); END;';
    

    That's all.

    Herald tiomela

    http://htendam.WordPress.com

  • call the collection of sql

    Hello guys,.

    I just wonder can I get the SQL collection via PL/SQL. However, I can't call from pure SQL. In other words,.
    create or replace type plch_number is table of number;
    
    create or replace package den 
    is
    
      my_arr plch_number := plch_number();
      procedure doldur(a pls_integer);
      function func2 return plch_number;
    
    end;
    
    create or replace
    package body den 
    is
    
    procedure doldur(a pls_integer)
    is
    begin
      my_arr.extend(a);
      for i in 1..a
      loop
        my_arr(i) := i;
      end loop;
    end;
    
    
    function func2 return plch_number 
    is
    begin
      return my_arr;
    end;
    
    end;
    I can run the following code without any errors.
    set serveroutput on;
    declare
      a integer;
    begin
      den.doldur(10);
      select count(*) into a from table(den.my_arr);
      dbms_output.put_line(a);
    end;
    
    
    ------------------------------------------
    anonymous block completed
    10
    However, when run the code sql. Although it is almost the same code that I have run PL/SQL block, it gives an error, ORA-06553: PLS-221.
    select * from table(den.my_arr);
    ORA-06553: PLS-221
    In addition, I can call the function from the package through SQL without any error. But why I can't invoke collections directly from SQL, why?
    select * from table(den.func2);
    Thank you.

    970992 wrote:
    OK, but I just want to know, why? I mean, is there a technical explanation?

    Unfortunately, in ORACLE SQL & PL/SQL keep two separate motors. All SQL allows you to call is UDF (user-defined functions). You can't call procedures in SQL and you cannot reference package variables. Everything works and even this is not always possible - for example, you cannot call a UDF with OUT or IN OUT. You cannot call function PL/SQL defined parameter and return value types.

    SY.

  • Need to call the Shell script that uses SQL loader in APex4.1 / 11g

    Hello!

    I have a requirement in which I need to call a shell script that connects to an external server, FTP to a file and then use sqlloader to load data into our table. We have now the ftp script that accomplishes this task to another program, but is a scheduled task. I wanted to call the script ftp in the APEX. Any suggestions on how this can be done, what is the logic of PL/SQL can we use? I saw online some people using DBMS Scheduler for this?

    Thank you
    Sun

    Hello

    Create some sh script on your computer host oracle where you can join in the external server and run the process.
    something like:

    run_external_sh.sh

    #!/bin/sh
    ssh ext_user@ext_host ./sqlloader/import/import.sh
    

    Then create an external TASK to call it via ORACLE (PL/SQL)

    -Shell Script call.

    BEGIN
      DBMS_SCHEDULER.create_program (
        program_name        => 'external_call_sh',
        program_type        => 'EXECUTABLE',
        program_action      => '/local_host/call_external/sh/run_external_sh.sh',
        number_of_arguments => 0,
        enabled             => TRUE,
        comments            => 'Call external SH script');
    END;
    /
    

    You can now create a regular / or unplanned WORK
    -Job defined by the calendar and an existing program.

    BEGIN
      DBMS_SCHEDULER.create_job (
        job_name      => 'jb_external_call_sh',
        program_name  => 'external_call_sh',
        schedule_name => 'external_call_scheduler', -- created scheduler
        enabled       => TRUE,
        comments      => 'Job defined by an existing external_call_sh program and schedule.');
    END;
    /
    

    You can now call the WORK in the APEX in the process of PL/SQL.

    BEGIN
      -- Run job synchronously.
      DBMS_SCHEDULER.run_job (job_name            => 'jb_external_call_sh');
    END;
    

    Concerning
    J :D

  • Run PL/SQL procedures at the same time

    11.2.0.3 running x 64 on Windows Server 2003 x 64.

    I have a PL/SQL procedure that calls a lot of other procedures in turn, i.e.
    BEGIN
    
    proc1;
    
    proc2;
    
    proc3;
    
    proc4;
    
    END;/
    With this configuration, proc2 will not start running until the end of proc1, proc 3 won't start until proc2 is finished and so on.

    Is there a way to set up so that when I call the current procedure, he begins each additional procedure at the same time? Thus, proc1, proc2, proc3 and proc 4 all work at the same time?

    Thank you
    Tom

    Run them in batch? Have proc 0 distributes them all for immediate execution with dbms_scheduler.

  • Call the file sql plsql

    Hello
    I'm stuck for several days in this issue. Hope someone help me.

    I'm using Oracle 11.

    I am writing a utility to purge the data from the database based on certain criteria.
    We do not have physical (actual) the partitions present on our system (since we do not use Enterprise edition).
    We have 57 paintings representing 57 partitions. Then, we create a view of all of these 57 tables-

    CREATE or REPLACE VIEW MY_VIEW AS
    Select [column_names] from table1
    UNION ALL
    Select [column_names] in table2
    UNION ALL
    Select [column_names] in table 3
    UNION ALL
    :
    :
    :
    Select [column_names] of table57
    ;

    This superior query is saved in the 'body' of user_views.

    Now when a user wants to delete a partition-
    -I read the body of the request in the .sql file.
    -Edit the .sql file that is, remove the unwanted ' select * from many '
    -Loss of vision.
    -Recreate the view from the edited .sql file.


    The question is in the creation of the view on the fly of the procedure-
    -I'm not EXECUTE IMMEDIATE 'CREATE VIEW... ' and ' DBMS_SQL. PARSE' the request body exceeds 32,767 characters.


    So I chose the option of filing to write. In the file, I write the query VIEW and then I want to create the view from this file.

    Now, I'm not able to call the .sql that contains
    CREATE OR REPLACE VIEW MYVIEW AS
    Select...
    UNION ALL
    Select...
    :
    :
    Select...

    Length of character of this file is about 90000.



    Please guide me in this issue.
    Any new idea to manage very large display in the long term is also welcome...


    Thanks in advance
    Micheline
    ARGE view at run time is also welcome...


    Thanks in advance
    Micheline

    When you use DBMS_SQL, the declaration must not end with a semicolon, or you will get ora - 911.

    ---------
    Sybrand Bakker
    Senior Oracle DBA

  • Call the Javascript htmldb_delete_message PL/SQL procedure

    Hi guys,.

    I am a novice when it comes to JavaScript; I've written a PL/SQL procedure that removes multiple records based on a primary key:

    PROCEDURE clear_alterations (p_eco IN VARCHAR2)
    IS
    BEGIN
    DELETE FROM xxmel_apex_eco_alterations
    WHERE the eco = p_eco;
    END clear_alterations;

    I can run it directly from a normal button, but I want the pop htmldb_delete_message dialog box to confirm whether to delete or not. When the user clicks "OK" I want the file to delete and cancel, do nothing.

    I have managed to get the confirmation box appears, but cannot see how to call the PLSQL based on the OK"" button.

    Any help would be great,
    Thank you
    Chris

    Hello

    Set your target URL button

    javascript:confirmDelete('Delete record?','DELETE_REC');
    

    Then create processes that call your procedure and define the process conditional request DELETE_REC

    Kind regards
    Jari

Maybe you are looking for