Problems in SQL dev with a procedure.

Hey guys, having trouble with the.following procedure Pl SQL. Is this code wrong?

create table zed (z varchar2 (30);)

declare

procedure thisway1 (p_data in varchar2)

is

Start

immediate execution

"insert into zed (z) values(:z) '.

using p_data;

end thisway1;

OK, ive tried over and over again, which is absent from this code?

The sound of a book, for its supposed to work...

Okay, I just have not found the right place to ask.

Tags: Database

Similar Questions

  • problem installing SQL server with windows vista

    SQL server system configuration checker cannot be executed due to wmi configuration error:2147749907(0x80041013)

    I get this error when trying to install sql express 2005 on windows vista home and professional. Please let me know what is the cause of this error and the solution.very urgent please. Thanks in advance

    Hello Sisi reddi, welcome.

    You can try a solution that worked before on S2k3.  Try this on affected systems:

    1. click on START
    2 type "notepad" (without the quotes) and press enter
    3 copy and paste the following text in Notepad:

    LETTER
    CD %windir%\system32\wbem
    Mofcomp.exe cimwin32.mof
    Regsvr32 /s wbemupgd.dll
    Regsvr32 /s wbemsvc.dll
    Wmiprvse/regserver

    4. click on file > save as
    5. change the drop-down list (file type) to "all files".
    6. name the file sqlfix.bat, and then save it to your desktop
    7. from there, right-click on the file and choose "Run as Administrator". If it works that way, you can also open it WITHOUT choosing run as administrator and see what happens.

    8. now try to install SQL 2 k 5

    Let us know,

    Thank you!

  • Migration of SQL Dev problem

    I'm Migrating sql server 2008 database oracle 11 g, Using sql developer 3
    Select to connect to the Sql Server database > right click > migrate to Oracle...
    . . . .
    . . . . Online
    . . .

    successful migration

    I can see all the objects in the Projects of Migration
    but when I try to find objects in the schema of migration, I've not found anything

    I HAV all the required permissions the user granted access

    What is the problem here?


    Thank you

    Hi Rajneesh,

    Sorry for the late reply.

    I'm so clear.
    You have migrated your database on Oracle 11 g and everything seemed OK.
    Then, you tried to copy the database to Oracle 10 g with the Assistant export to SQL developers.
    Your main problem is
    Error (48,13): PLS-00905: object DBO_PMS_DB. SQLSERVER_UTILITIES is not valid

    The SQLSERVER_UTILITIES package can be referenced a lot, so an invalid SQLSERVER_UTILITIES can cause a lot of dependency problems.
    I don't know why he could not compile, but you can identify and fix the problem using SQL Dev to access a SQLSERVER_UTILITIES Oracle 10 g package and recompiling / addressing aspects.

    Hope this helps
    Dermot.

  • How to perform procedures with REF CURSOR & PLSQL settings table in SQL Dev?

    I have 3 SQL Developer. I create a procedure with a set of tables/PL/SQL as an input parameter and a SYS_REFCURSOR as output parameter.

    When I press the green arrow (Run button) block the dialog box run PL/SQL PL/SQL has no place at the PL/SQL table with records of entry and also to see the output of the SYS_REFCURSOR.

    I get the error ORA-06550 and many other errors when I run the present.

    How to do this please?

    In the debug code, lose the ABS. Prefix the SYS_REFCURSOR QC_SQL_DEVELOPER_TEST.
    Also, do not use same name of your settings on your bind variable (so e.g.: OUT_REF_CURSOR).
    REF CURSOR is supported output types, so you will get the output of their share in the output tab.
    However the output system does not recognize your own types as your PL/SQL table. You need to write an exit procedure yourself, indexing correctly, using the DBMS_OUTPUT.

    Have fun
    K.

  • execution of stored procedure in sql developer/sql more with a table setting?

    Hello

    I create a package with a procedure which has a cursor ref as output and a type as an input parameter.  Here is my definition of the package

    PACKAGE 
    -------
    CREATE OR REPLACE PACKAGE TEST
    As
      TYPE RefCursorType IS REF CURSOR;
      type intTableType is table of varchar2(50) index by binary_integer;
      
      PROCEDURE GETDATA (
              P_RECORDS OUT RefCursorType,           
               YEAR_LIST IN intTableType
      );  
    END;
    
    
    PACKAGE BODY
    -----------------------
    
    SET DEFINE OFF
    CREATE OR REPLACE PACKAGE BODY TEST
    AS 
    PROCEDURE GETDATA
    (
      P_RECORDS OUT RefCursorType,  
      YEAR_LIST IN intTableType  
    )
    AS 
    iYearList  IDTableType;
    BEGIN 
      --GET ARRAY COUNT
      IYEARLIST := IDTABLETYPE();
      IYEARLIST.EXTEND(YEAR_LIST.COUNT);
      
      --LOOP THROUGH LISTS AND POPULATE ARRAY
      FOR I IN YEAR_LIST.FIRST .. YEAR_LIST.LAST
      LOOP
      IYEARLIST(I) := IDTYPE(TO_CHAR(YEAR_LIST(I)));
      END LOOP;
      
       OPEN P_RECORDS FOR 
       SELECT CITHTML AS FORMATTED
        FROM dbTest.FORMATTED_HTML
      WHERE YEAR IN (SELECT * FROM TABLE(IYEARLIST))
      ;
      END GETDATA ;
    END TEST ;
    /
    
    

    I want to perform this procedure from the sql or sql developer more to see if it works properly.   The year field dbTest.FORMATTED_HTML is defined as varchar2 (20 bytes).  He has many years as well as text.

    I've used this in the past with simple stored procedures, but not those with a table setting

    var r refcursor;

    exec GETOLDDATA(:r,40);

    print r;

    How can I modify this to allow him to run my stored procedure?

    Thank you

    Just declare SQL, not type of PL/SQL:

    CREATE OR REPLACE

    TYPE Str50TblType

    AS THE TABLE OF THE VARCHAR2 (50)

    /

    CREATE OR REPLACE

    THE TEST PACKAGE

    IS

    GETDATA PROCEDURE)

    P_RECORDS ON SYS_REFCURSOR,

    YEAR_LIST IN Str50TblType

    );

    END;

    /

    CREATE OR REPLACE

    TEST OF PACKAGE BODY

    IS

    GETDATA PROCEDURE)

    P_RECORDS ON SYS_REFCURSOR,

    YEAR_LIST IN Str50TblType

    )

    IS

    BEGIN

    OPEN P_RECORDS

    FOR

    SELECT CITHTML AS FORMATTED

    OF dbTest.FORMATTED_HTML

    WHERE YEAR IN)

    SELECT *.

    TABLE (YEAR_LIST)

    );

    GETDATA END;

    END TEST;

    /

    SY.

  • Problems with the procedure at the level of the stcok update

    Hi, I am new to Oracle and I have problems with this procedure.
    I had two tables, orders and inventories, and I want to update inventory quantities, when I received the order. For some reason, NULL keeps popping out. Someone help me pls with this!
    The tables are

    create table orders
    (order_no number (4) orders_nn_11 the NOT NULL constraint,)
    item_no number 4 orders_nn_3 of the NOT NULL constraint,
    order_qta number constraint orders_nn_4 NOT NULL,
    ORDER_DATE date NOT NULL constraint orders_nn_2,
    (date of receipt);
    and
    create the table stock
    item_no (4).
    Number of CQI,
    constraint stock_pk foreign key (item_no) references products (item_no);

    the procedure is here, but as I said I am new to this, so I really don't know.


    create or replace
    procedure recues1 (aorder_no in number, aitem_no in numbers, date received)
    is
    quantity number;
    number of quantity2;
    cursor a1 is select qta in stock where item_no = aitem_no;
    cursor a2 is order_qta selection of orders where order_no = aorder_no and item_no = aitem_no;
    Start
    Open a1;
    extract the a1 in quantity2;
    Open a2;
    Fetch a2 in quantity;
    stock update
    Define qta = quantity2 + quantity
    where item_no = aitem_no;
    Update orders
    received game = sysdate
    where order_no = aorder_no;
    near a1;
    Close a2;
    end;
    /

    Thanks in advance

    Hello
    Perhaps because ther eis no COMMIT.
    Or have I missed?

    Something like that

    .....
    
    close a1;
    close a2;
    commit;
    end;
    /
    

    Kind regards
    Bobin

  • Problem with stored procedure

    I use 10g, I have a 'PACK_SP' package with stored procedures, one of them is the following:
    PROCEDURE USP_ROWLARGESIZE(tablename VARCHAR2, cur_Types OUT CLOB,  v_namePrimaryKey OUT CLOB, cur_Result OUT CLOB) IS
    v_sql_str VARCHAR2(1000);
    v_ctx VARCHAR2(100);
    v_rowlength pls_integer;
    qryCtx DBMS_XMLGEN.ctxHandle;
    BEGIN
    
    -- Begin error stmt
    
    SELECT SYS.COL$.NAME INTO v_namePrimaryKey 
    FROM SYS.COL$ INNER JOIN SYS.OBJ$ ON SYS.COL$.OBJ# = SYS.OBJ$.OBJ# 
                  INNER JOIN SYS.CCOL$ ON SYS.COL$.OBJ# = SYS.CCOL$.OBJ# 
                  INNER JOIN SYS.CDEF$ ON SYS.CCOL$.CON# = SYS.CDEF$.CON# 
    WHERE SYS.OBJ$.NAME = tablename AND SYS.CDEF$.TYPE# = 2 AND SYS.COL$.COL# = SYS.CCOL$.COL#;
    
    -- End error stmt 
    
    (...)
    
    END USP_ROWLARGESIZE;
    As you can see, I have marked the statement with the error according to the OEM error message. The error text is: "Error Text = PL/SQL: ORA-00942: table or view does not exist. My goal is to store in the output parameter 'v_namePrimaryKey' the primary key column of a tablename. This query only works in more SQL query editor. Could someone help me?

    Thank you very much in advance!

    Published by: user9112176 on February 10, 2010 18:30

    Published by: user9112176 on February 10, 2010 18:31

    Published by: user9112176 on February 10, 2010 18:32

    Published by: user9112176 on February 10, 2010 18:33

    Published by: user9112176 on February 10, 2010 19:22

    System objects are accessible in SQL because they are visible through roles (DBA or SELECT_CATALOG_ROLE for example).

    However, the roles are disabled in PLSQL. You must have explicit privileges.
    That said, I would strongly advice you against writing code that references the SYS objects directly. You should use the USER_ or ALL_ % (or, if you really really must) the DBA_ % views.

    Hemant K Collette
    http://hemantoracledba.blogspot.com

  • How to pick up the edits made by someone else using Subversion with SQL dev

    Hi, I have just installed SQL Developer 1.5.1 version and connected to an existing subversion repository. Successfully, I checked a .sql file and made a few changes and check back. My problem is picking up changes made by others. When someone else adds and commits a new file I can see it in the browser of version management, but I have not found how can I update my working space with it. The update option in the versioning menu is grayed out unless I have a file is opened and then it applies to a single file. I tried opeing the file I wanted to from the browser versioning, but update is always grayed out.

    I could check the folder again and I got the news, but this did not seem like the best way to do it. Also, I have not found a way to disconnect a storage folder once it has been verified, so I have two copies.

    Thanks for your help...

    Hi, again, I did some research and wanted to update this post. First of all, after reading the info on what the integration of subverion with SQL developer is supposed to do, I have concluded it does exactly what it says it isn't, but not what I expected based on my use of the subclipse for eclipse plugin. With subclipse, there is a synchronization option that you can do at the folder level and see all the files that need to be updated or committed. In SQL developer, it appears that the validation and update are available at the file level and so if something is not in the folder (added by another user or deleted), the validation and the update are not options. Also, you can only view folders, not files. I think this implementation leaves much to be desired but, for me, maybe better than nothing.

    In my research I found a post for a different problem, but I decided to try this anyway: problem connecting SQL Developer 1.5.1 with Subversion 1.5 (win XP)
    Posted the: August 7, 2008 05:29

    user594768 wrote:
    The problem is with svnkit. Until now sqldeveloper use version 1.1.6.
    You can remedy with svnkit 1.2. You must download it from http://www.svnkit.com/org.tmatesoft.svn_1.2.0.standalone.zip and put some files in the directory of extension sqldeveloper.

    copy
    -jna.jar
    -svnkit - javahl.jar (rename it to svnjavahl.jar)
    -svnkit.jar
    -svnkitsrc.zip
    -trilead.jar

    of svnkit 1.2 to

    % sqldeveloper%\jdev\extensions\oracle. JDeveloper.subversion

    OK, I tried this on a single machine, and it does not seem to do something but did not cause a problem either. But then, I decided to experiment and updated my system with TortoiseSVN 1.5. My idea was that if I could use tortoise to do updates that I couldn't not do in SQL developer, if the SQL Developer acknowledged that the case fell within subversion. I checked the files I wanted out of the repository using the turtle, then Developer SQL that acknowledges that it has been verified and SQLdev has been able to make changes and commit the change. Everything was going as he worked.

    I went to my other machine which had not been updated as described above and installed the turtle and went through the same steps to check the files I wanted. Developer SQL has not recognized that they were versioned. I've updated as described above, so now the SQL Developer knows he is transferred and I can commit the changes to come.

    Don't know why it works, and it is a funky workaround, maybe someone else has a better solution.

  • SQL Developer, can execute procedures? -(

    Hello
    Anybdoy can help me!
    I can't just run all the procedures. Their sytnacsys is OK. I checked also other users after granting rights can run my procs, and I see the results after their race.
    But when I'm not RUNNING nothing happens, no dialogue window pops up to paremeters, not all messages and no results.

    Would this be something with my 2.1.0.63 intallation?
    Also what is the significance of these brands 'green' on the icons of procedures, when I compiled first time icon get this green mark, after I recompile it happened? could not find anywhere in SQL Dev help.
    This means that it is already running, we'll just simply wihtout reflections. or?



    Thank you all
    T

    Although it Unix, you only change 'user' (your) record - there will be no problem. In any case, I did in Linux as in Windows, no problem. As I said, just rename the folder, do not delete. Once you have everything for you, you can come back later and remove it.
    If it's windows you are having problems with, then go to c:\users\ Directory. You will see a directory ".sqldeveloper". Rename it simply, .org_sqldeveloper.
    If it's Unix, you would find '.sqldeveloper' in / Home /. type mv .sqldeveloper .org_sqldeveloper
    When I "renamed" in Unix to. "" org_sqldeveloper "and moved back to".sqldeveloper"for some reason, he wouldn't copy the connections.xml. Since I still had a copy of the connections.xml and original .sqldeveloper directory, I copied the connections.xml in the relevant directory, he was back to normal.
    Please take backup before making any changes.

  • SQL Dev 4 EA3 - new SQL worksheet window opens docked on the far right of the window

    Hello

    While doing tests on the new EA of SQLDev version I found a weird behavior in the homepage of logic.

    Normally, when I click on a new database connection in the Connections window, a new window of worksheet is open in the center pane (the one with the Start Page) and it's as expected. Usually, I change the default configuration of work to get the best from my wide screen, docking station (and making visible permanently) the window "Find database objects" in a narrow pane to the right of the main pane. This Setup program creates all the problems in version 3 of SQL Dev and it worked well always.

    In version 4 of the SQL Developer instead, there are problems with the above configuration. In fact when I want to look at an object in another database instance (by choosing a new connection of database in the "Search database objects" window), or when I just open a new database connection in the Connections pane, a new spreadsheet for the connection will not open in the center pane (as in SQL Dev 3) , but in the right of the workspace, docked pane right next to the window "find database objects. The net result is that I have to withdraw each time the new worksheet window and dock it manually to the center pane in the workspace.

    I think that it is quite confusing because users expect the new worksheet window to open right were they do normally, which is in the center pane. The new worksheet is not quite visible, like the "Search database objects" window is narrower than the center pane and use the user must manually drag and drop it onto the center pane each time in order to work with it.

    Hope it can be fixed before GA

    Thank you

    Paolo Marzucco

    You're not home right, you create a new document tab group. When the search results come back, it goes to this group of tabs. Tell me open, Panel code fragments, which is anchored on the right. Go find a DB object this Panel, then do your research - you will see the results in the main document tab group.

  • How to convert MS SQL Server 2008 Stored Procedures of Oracle 11 g SPs?

    We have an application from MS SQL Server 2008. We want to migrate to Oracle 11 g.

    What is the recommended Oracle method for
    (1) migration of data (Tables, triggers, sequences, views etc..)
    (2) the stored Procedure migration.

    What is the recommended tool or method pls?

    We have 100s of MS Sql Server stored procedures. Then, needing a tool or method. We can rewrite all of them from scratch.

    Hello

    Let me clarify some of the issues that you mention. But I advise you to get some professional help with migration because:

    1. you must understand the architectural differences between SQL Server and Oracle. They are of different databases.
    2. understand data type mappings.
    3. understand the complete migration process. Just using the OTN article as a migration guide won't help because it just shows how use SQL Developer to this task.
    4. understand that 100% of successful Oracle conversion is not possible with all the tools. There will always be gaps, gaps in functionality, bugs etc. So there will be some amount of manual work involved.
    5. There are many other tasks involved in the migration that cannot be accomplished with SQL Developer.

    Get now your questions:

    1. in 3.1, there is migration option for the "capture of database in offline mode". It is under the Tools option. So in 3.1 we do not have a separate tab, called "Migration."
    2. use 3.1 because it is much better than 2.1 in terms of capabilities.
    3 migration Wizard is the easiest way to migrate. Where are you getting confused?
    4 "column data" seems to be a stored procedure in SQL Server. If it is not there in the underlying table, why he uses in the SQL statement in the procedure then? I think that we have a problem of "reserved word" with the name of column "Data". Will have to check that.
    5 VARCHAR (@max) must be mapped to VARCHAR2 (4000) in Oracle. It may be a bug in SQL Developer. So during the mapping of data type in the migration wizard, you can change the default mappings.

    Concerning

    Prakash

  • BlackBerry Smartphones WARNING: Do not wipe your Alpha Dev with early release BB10

    Just a quick warning,

    I had to spend BBID on my Dev Alpha running the latest alpha BB10.  The instructions inside BB10 advise you to do a security wipe.  DO NOT do this.

    Life Dev Alpha at the beginning, you can enter a problem when you have a secure erase.  This has caused your device is unusable, and you had to install drivers and force a debrick manually.  This trick WILL NOT work on the alpha version of BB10.

    With the Alpha BB10, make a secure erase deletes all your applications and access to these applications.  It also removes the options and settings screens.  It removes access to everything other than the browser.  Try to start the option screens in any method of causes a failure like the application options can not be found.  It stops also send USB signals, which means that the Device Manager / application loader can not detect a USB device at all.

    The application loader custom RIM will reject any connection USB with an unrecognizable PIN (your PIN is not passed when it is blocked like that).  This prevents the it to your Alpha Dev rewipe.  In addition, Blackberry Desktop Manager (who will recognize as a dead BB device) will attempt to reinstall the OS so that your Dev Alpha turns off.  However, as we know, the BDM cannot actually move to the BONE.  Which means that it will not work.

    I haven't checked with Dingle Bay to see if I can manually get the OS to an earlier version, but this is probably the only way to save your Alpha Dev with BB10 and a secure erase Insider.  Will post here updates as needed.  I have just this Chuck in a box and ignore it, but my 64 GB PB also died this week (out of battery power). I don't want to send "RIM" for repair, because they will out simply swap with a new stock, and I want to keep the data on the hard drive.  Because of the way that the battery works with the motherboard, make a backup is not easy with a dead battery.

    See you soon,.

    Ed.

    My mistake, double post.

    http://supportforums.BlackBerry.com/T5/testing-and-deployment/do-not-wipe-dev-Alpha-update-10-0-9-Bu...

  • Write a SQL query with lines in columns

    All the

    I need help in writing a SQL query with lines in columns, let give u an example...

    drop table activity;

    CREATE TABLE 'ACTIVITY '.

    (

    "PROJECT_WID" NUMBER (22.0) NOT NULL,

    VARCHAR2 (150 CHAR) "PROJECT_NO."

    VARCHAR2 (800 CHAR) 'NAME '.

    );

    Insert in the ACTIVITY (PROJECT_WID, PROJECT_NO, NAME) values (1683691, '10007', 12-121');

    Insert in the ACTIVITY (PROJECT_WID, PROJECT_NO, NAME) values (1684994, '10008', 12-122');

    Insert in the ACTIVITY (PROJECT_WID, PROJECT_NO, NAME) values (1686296, '10009', 12-123');

    Insert in the ACTIVITY (PROJECT_WID, PROJECT_NO, NAME) values (2225222, '9040', 12-124');

    drop table lonet;

    CREATE TABLE 'LONET.

    (

    VARCHAR2 (150 CHAR) "NAME."

    NUMBER OF THE "ROOT."

    VARCHAR2 (150 CHAR) "ENTRYVALUE".

    );

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ("GAC", 1683691, "LDE");

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('NAM', 1683691, 'LME');

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('BAG', 1683691, 'ICE');

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('PAP', 1683691, 'IKE');

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('NAM', 1686291, "QTY");

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('PAP', 1686291, 'MAX');

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ("GAC", 1684994, "MTE");

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('PAP', 1684994, 'MAC');

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('FMT', 1684994, 'NICE');

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('FMR', 1684994, 'RAY');

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('BAG', 1686296, "CAQ");

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ("PAP", 1686296, "QAQ");

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ("VANESSA", 1686296, "THEW");

    INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ("ANDR", 1686296, "REYL");

    commit;

    Link: activity.project_wid = lonet.root

    look like output

    Project_wid Project_no NAME GAC NAM BAG RAC
    16836911000712-121LDELMELCELKE
    16849941000812-122MTEnullnullMAC
    16862961000912-123nullnullCAQQAQ
    2225222904012-124nullnullnullnull

    two problems, in that I am running

    1. I dono how simply we can convert rows to columns

    2. for root = 1683691, there are double NAM and RAC in lonet table... ideally these data should not be there, but since its here, we can take a MAX so that it returns a value

    3. There are undesirables who should be ignored

    Once again my thought process is that we join the activity and 4 alias table lonet.

    ask for your help in this

    Thank you

    Hello

    This is called pivoting.

    Here's a way to do it:

    WITH relevant_data AS

    (

    SELECT a.project_wid, a.project_no, b.SID

    , l.name AS lonet_name, l.entryvalue

    Activity one

    LEFT OUTER JOIN lonet l.root = a.project_wid l

    )

    SELECT *.

    OF relevant_data

    PIVOT (MAX (entryvalue)

    FOR lonet_name IN ("GAC" IN the gac

    "NAM" AS nam

    'BAG' IN the bag

    "RAC" AS cars

    )

    )

    ORDER BY project_wid

    ;

    Output:

    PROJECT_WID PROJECT_NO GAC NAM BAG RAC NAME

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

    1683691 12 - 10007 121 LDE LME LCE LKE

    1684994 MAC MTE 10008 12-122

    1686296 12 - 10009 123 QAC QAQ

    2225222 9040 12 - 124

    To learn more about swivel, see the FAQ in the Forum: Re: 4. How can I convert rows to columns?

    Thanks for posting the CREATE TABLE and INSERT statements; It's very useful!

  • SQL dev to connect via odbc to non-oracle db

    Question asked to me regarding the use of sql dev to connect to a Turbo Image databsae running on a HP-3000 through odbc.  They have odbc drivers, but the front-end client is no longer supported and are looking for an alternative.  I've never used Dev of SQL to connect to a non-oracle database, but it seems as it should, maybe with the OTG for odbc.

    Ideas?

    We are a java application. Yes JDBC.

    And we offer only 3rd connectivity to help migration of Oracle. Currently we do not support Turbo-Image of database migration to Oracle.

    There are however several ODBC database generic tools out there.

  • Several SQL statements with zero executions in the region of SQL

    Hello

    one of my databases has a large number of statements in the SQL box with zero executions. Some of them analyzed several times without a single run. Why the database stores these statements and how to avoid or reduce them?

    My problem is that the only time or zero time sql statements take the largest part of the area of sql:

    -sql statement and only once and without executing sql statements

    Select

    Count (1) num_sql_total,.

    sum (decode (executions, 1, 1, 0)) num_one_use_sql,.

    sum (decode (executions, 0, 1, 0)) num_no_use_sql,.

    Sum (RUNTIME_MEM) / 1024/1024 mb_used,.

    sum (decode (executions, sharable_mem, 1, 0)) / 1024/1024 mb_for_one_use_sql,.

    sum (decode (executions, 0, sharable_mem, 0)) / 1024/1024 mb_for_no_use_sql

    Of

    GV$ sqlarea

    where

    RUNTIME_MEM > 0;

    NUM_SQL_TOTAL NUM_ONE_USE_SQL NUM_NO_USE_SQL MB_USED MB_FOR_ONE_USE_SQL MB_FOR_NO_USE_SQL

    23318

    8739

    8027

    1420,95619106293

    381,41183757782

    530,999855041504

    Concerning

    Thomas

    This is not unusual. Another app could analyze for example hard the most often used SQLs in upstairs app - making benefit of further processing (in theory) of sweet analysis when you use these SQLs.

    In fact, I remember reading something to this effect as a performance for some factor or another Oracle document or note?

    So unless you have serious questions of shared pool, why bother with these sliders? What would be the problem?

Maybe you are looking for