SQL Developer Unit Test

I'm trying out the Unit Test tool in SQL Developer version 3.2.09 and I keep getting the following error on the Teardown Process:
Teardown Table or Row Restore (1/1) failed: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at line 22
I have no idea what line 22 refers to? I cannot seem to find more detailed information in order to correct the problem.
Any insight or help would be great!
Thanks,
Paul

I'm having the same issue with SQL Developer 3.2.20.09 on Oracle 11.2.0.3.0. However, I think it's somewhat data dependent as I've had success and I've also encountered the ORA-06502 error.
I ran a generic test on a very simple table and was successful using the teardown restore of the table. The procedure isn't important in this scenario, but is given as reference to creating the test. The simple, successful case is given first.
Note that in both cases/tests, the original table of data already existed, so I question the error message pointing to data being inserted is longer than the field allows or that data types are somehow different...+unless+ SQL Developer is translating or getting it wrong. ALSO NOTE, running the SQL inserts as given works if run through the worksheet. It's only in the Teardown that I see the ORA-06502 error message.
Data
CREATE TABLE EMPLOYEES (EMPLOYEE_ID NUMBER, COMMISSION_PCT NUMBER, SALARY NUMBER);
Insert into EMPLOYEES (EMPLOYEE_ID,COMMISSION_PCT,SALARY) values (1001,0.2,8400);
Insert into EMPLOYEES (EMPLOYEE_ID,COMMISSION_PCT,SALARY) values (1002,0.25,6000);
Insert into EMPLOYEES (EMPLOYEE_ID,COMMISSION_PCT,SALARY) values (1003,0.3,5000);
CREATE OR REPLACE PROCEDURE AWARD_BONUS AS
BEGIN
null;
END award_bonus;
Startup: Table or Row Copy
description = "TMP$AWARD_BONUS_TEST" := SELECT ROWID AS SRC$ROWID, s.* FROM "EMPLOYEES" s
source = "EMPLOYEES"
temp = "TMP$AWARD_BONUS_TEST"
Teardown: Table or Row Restore
description = "TMP$AWARD_BONUS_TEST" -> "EMPLOYEES"
source = "EMPLOYEES"
key = PRIMARY KEY
temp = "TMP$AWARD_BONUS_TEST"
The above worked without error.
The following did not work.* (Again, the procedure isn't relevant.)
Data
CREATE TABLE "xxdss_fact_detail_history"
"fact_trx_id" NUMBER(15, 0),"number_of_records" NUMBER,
"product_code" VARCHAR2(250 byte),"item_code" VARCHAR2(250 byte),
"item_description" VARCHAR2(250 byte),"trade" VARCHAR2(250 byte),
"item_system" VARCHAR2(250 byte),"unit" VARCHAR2(250 byte),
"fuel_source" VARCHAR2(250 byte),"component" VARCHAR2(250 byte),
"assembly" VARCHAR2(250 byte),"part" VARCHAR2(250 byte),
"symptoms" VARCHAR2(250 byte),"diagnosis_item" VARCHAR2(250 byte),"coa"
VARCHAR2(250 byte),"cchs_parts" VARCHAR2(250 byte),
"region" VARCHAR2(250 byte),"state" VARCHAR2(250 byte),
"county" VARCHAR2(250 byte),"zip" VARCHAR2(250 byte),"vendor_id" NUMBER,
"vendor_site_id" NUMBER,"vendor_name" VARCHAR2(250 byte),
"vendor_site" VARCHAR2(250 byte),"c_service_call_cost" NUMBER,
"c_labor_cost" NUMBER,"c_part_cost" NUMBER,"c_tax" NUMBER,
"c_cchs_oh_cost" NUMBER,"c_cchs_total_low_cost" NUMBER,
"c_cchs_total_high_cost" NUMBER,"c_cchs_avg_total_cost" NUMBER,
"c_nc_c_labor_cost" NUMBER,"c_nc_c_part_cost" NUMBER,"c_nc_tax_cost" NUMBER
,"c_nc_total_low_cost" NUMBER,"c_nc_total_high_cost" NUMBER,
"c_nc_avg_total_cost" NUMBER,"c_flat_low_cost" NUMBER,
"c_flat_high_cost" NUMBER,"c_flat_avg_cost" NUMBER,
"p_cycle_time_day_low" NUMBER,"p_cycle_time_day_high" NUMBER,
"p_cycle_avg_time_day" NUMBER,"p_reasgn_low" NUMBER,"p_reasgn_high" NUMBER,
"p_reasgn_avg" NUMBER,"p_recall_low" NUMBER,"p_recall_high" NUMBER,
"p_recall_avg" NUMBER,"s_sp_nps_score_low" NUMBER,
"s_sp_nps_score_high" NUMBER,"s_sp_avg_nps_score" NUMBER,
"s_cchs_nps_score_low" NUMBER,"s_cchs_nps_score_high" NUMBER,
"s_cchs_avg_nps_score" NUMBER,"cps_cost" NUMBER,"cps_perfrmce" NUMBER,
"cps_sat" NUMBER,"coa_score" NUMBER,"comments" VARCHAR2(4000 byte),
"complete_flag" VARCHAR2(1 byte),"last_update_date" DATE,
"last_updated_by" NUMBER(15, 0),"creation_date" DATE,
"created_by" NUMBER(15, 0),"last_update_login" NUMBER(15, 0),
"vendor_number" VARCHAR2(200 byte)
SET DEFINE OFF;
Insert into XXDSS.XXDSS_FACT_DETAIL_HISTORY (FACT_TRX_ID,NUMBER_OF_RECORDS,PRODUCT_CODE,ITEM_CODE,ITEM_DESCRIPTION,TRADE,ITEM_SYSTEM,UNIT,FUEL_SOURCE,COMPONENT,ASSEMBLY,PART,SYMPTOMS,DIAGNOSIS_ITEM,COA,CCHS_PARTS,REGION,STATE,COUNTY,ZIP,VENDOR_ID,VENDOR_SITE_ID,VENDOR_NAME,VENDOR_SITE,C_SERVICE_CALL_COST,C_LABOR_COST,C_PART_COST,C_TAX,C_CCHS_OH_COST,C_CCHS_TOTAL_LOW_COST,C_CCHS_TOTAL_HIGH_COST,C_CCHS_AVG_TOTAL_COST,C_NC_C_LABOR_COST,C_NC_C_PART_COST,C_NC_TAX_COST,C_NC_TOTAL_LOW_COST,C_NC_TOTAL_HIGH_COST,C_NC_AVG_TOTAL_COST,C_FLAT_LOW_COST,C_FLAT_HIGH_COST,C_FLAT_AVG_COST,P_CYCLE_TIME_DAY_LOW,P_CYCLE_TIME_DAY_HIGH,P_CYCLE_AVG_TIME_DAY,P_REASGN_LOW,P_REASGN_HIGH,P_REASGN_AVG,P_RECALL_LOW,P_RECALL_HIGH,P_RECALL_AVG,S_SP_NPS_SCORE_LOW,S_SP_NPS_SCORE_HIGH,S_SP_AVG_NPS_SCORE,S_CCHS_NPS_SCORE_LOW,S_CCHS_NPS_SCORE_HIGH,S_CCHS_AVG_NPS_SCORE,CPS_COST,CPS_PERFRMCE,CPS_SAT,COA_SCORE,COMMENTS,COMPLETE_FLAG,LAST_UPDATE_DATE,LAST_UPDATED_BY,CREATION_DATE,CREATED_BY,LAST_UPDATE_LOGIN,VENDOR_NUMBER) values (324,2,'L&F-MPP03TR','STCOL-SPL','Straight Cool Split System','HVAC',null,'STCOL-SPL',null,null,null,null,null,null,'REAPIR','N',null,'VA','ASHBURN','20148',22024,118957,'Air Lingus Inc',null,50,55,44,12,180,40,78,76.5,60,50,20,100,180,130,50,110,80,2,8,3.9323148148178,40,60,43,9,10,8.2,100,201,150,20,40,35,50,30,20,100,null,null,to_date('01-JAN-13','DD-MON-RR'),1,to_date('01-JAN-13','DD-MON-RR'),1,null,'122023');
Insert into XXDSS.XXDSS_FACT_DETAIL_HISTORY (FACT_TRX_ID,NUMBER_OF_RECORDS,PRODUCT_CODE,ITEM_CODE,ITEM_DESCRIPTION,TRADE,ITEM_SYSTEM,UNIT,FUEL_SOURCE,COMPONENT,ASSEMBLY,PART,SYMPTOMS,DIAGNOSIS_ITEM,COA,CCHS_PARTS,REGION,STATE,COUNTY,ZIP,VENDOR_ID,VENDOR_SITE_ID,VENDOR_NAME,VENDOR_SITE,C_SERVICE_CALL_COST,C_LABOR_COST,C_PART_COST,C_TAX,C_CCHS_OH_COST,C_CCHS_TOTAL_LOW_COST,C_CCHS_TOTAL_HIGH_COST,C_CCHS_AVG_TOTAL_COST,C_NC_C_LABOR_COST,C_NC_C_PART_COST,C_NC_TAX_COST,C_NC_TOTAL_LOW_COST,C_NC_TOTAL_HIGH_COST,C_NC_AVG_TOTAL_COST,C_FLAT_LOW_COST,C_FLAT_HIGH_COST,C_FLAT_AVG_COST,P_CYCLE_TIME_DAY_LOW,P_CYCLE_TIME_DAY_HIGH,P_CYCLE_AVG_TIME_DAY,P_REASGN_LOW,P_REASGN_HIGH,P_REASGN_AVG,P_RECALL_LOW,P_RECALL_HIGH,P_RECALL_AVG,S_SP_NPS_SCORE_LOW,S_SP_NPS_SCORE_HIGH,S_SP_AVG_NPS_SCORE,S_CCHS_NPS_SCORE_LOW,S_CCHS_NPS_SCORE_HIGH,S_CCHS_AVG_NPS_SCORE,CPS_COST,CPS_PERFRMCE,CPS_SAT,COA_SCORE,COMMENTS,COMPLETE_FLAG,LAST_UPDATE_DATE,LAST_UPDATED_BY,CREATION_DATE,CREATED_BY,LAST_UPDATE_LOGIN,VENDOR_NUMBER) values (465,4,'L&F-MPP03TR','STCOL-SPL','Straight Cool Split System','HVAC',null,'STCOL-SPL',null,null,null,null,null,null,'REPLACE','N',null,'VA','ASHBURN','20148',1768,1090523,'Airmax Heating And Air Conditioning Llc',null,65,50,80,15,110,50,60,70,70,40,20,100,180,130,50,110,80,3,5,0.878969907411374,10,70,20,1,2,2,130,150,140,20,40,60,40,30,30,100,null,null,to_date('01-JAN-13','DD-MON-RR'),1,to_date('01-JAN-13','DD-MON-RR'),1,null,'101767');
CREATE OR REPLACE PROCEDURE dss AS
BEGIN
null;
END dss;
Startup: Table or Row Copy
description = "TMP$DSS_TEST" := SELECT ROWID AS SRC$ROWID, s.* FROM "XXDSS_FACT_DETAIL_HISTORY" s
source = "XXDSS_FACT_DETAIL_HISTORY"
temp = "TMP$DSS_TEST"
Teardown: Table or Row Restore
description = "TMP$DSS_TEST" -> "XXDSS_FACT_DETAIL_HISTORY"
source = "XXDSS_FACT_DETAIL_HISTORY"
key = PRIMARY KEY
temp = "TMP$DSS_TEST"

Similar Messages

  • SQL Developer Unit Testing - Validation with PL/SQL

    Hi,
    I am trying to create Unit tests using SQL Developer UT framework.
    But when i am creating validation using User PL/SQL code option.
    Then how can i check value returned by l_count in code snippet below:
    -- Please raise an exception if the validation fails.
    -- For example:
    DECLARE
    l_count NUMBER;
    wrong_count EXCEPTION;
    BEGIN
    SELECT count(*) into l_count
    FROM test_recon
    WHERE
    match_num = 99836936
    AND Stg_status_flag <> 'E';
    IF l_count = 0
    THEN
    RAISE wrong_count;
    END IF;
    END;
    Also, can someone please refer me to few more demo examples (apart from oracle docs) to implement good test cases with SQL developer.
    I appreciate your help.
    Regards
    Dipali

    Probably not the answer you're looking for, but back when I was playing around with the Unit Test stuff, I didn't have sys privs, and the DBAs were a little busy at the time to set a up a repository for me. Rather than wait, I installed Oracle XE on my machine and created a small dev schema and deployed unit test to that. It's so much easier to perform quick proof of concepts when you have full control.

  • Using SQLCMD variables in SQL Server Unit Test Project

    Is it possible to use SQLCMD variables in my SQL Server Unit Test Project? In my test initialize script I'd like to set a database name variable, something like this:
    :SETVAR MyDatabase "mydatabase"
    SELECT * FROM [$(MyDatabase)].[mytable]
    but I get syntax errors when I run the test. Any suggestions how I can get this to work.
    Result Message: Initialization method
    myTest.TestInitialize threw exception. System.Data.SqlClient.SqlException: System.Data.SqlClient.SqlException:
    Incorrect syntax near ':'..

    Hi Kevin,
    What is the error?
    This should work only thing i could see is no scheme specified.
    SQL Server uses dbo as default schema.
    In your case:
    :SETVAR MyDatabase "mydatabase"
    SELECT * FROM [$(MyDatabase)].dbo.[mytable]
    Also check your instance collation if its Case sensitive then specify database and table name as exact case.
    Example:
    :SETVAR MyDatabase "[mydatabase]"
    :setvar schemavar "[dbo]"
    :setvar tablevar "[mytable]"
    SELECT * FROM $(MyDatabase).$(schemavar).$(tablevar)

  • SQL Developer: Failure -Test failed: IO Error: Got minus one from a read ca

    SQL Developer: Failure -Test failed: IO Error: Got minus one from a read call
    Hi,
    I am sorry I know this is probably most frequently asked question, but I have no idea what I should be searching for.
    I looked up the error above to see if i could find a solution, but unfortunately I did not.
    Right Let me start of with I am a Total Noob.. well it terms of having to install Oracle 11g myself.
    In my University they hosted a database, and assigned us a User & pass thats how I have been using SQL Developer,
    but since I am not longer a university student. I need to use Oracle Database.
    So I downloaded Oracle 11g Enterprise Installed it on my laptop that i don't use much.
    Name the Database: Rudu
    It did all the installation, and seemed to have succeeded, I went on to the https://localhost:1158/em (Though am not sure why em? whats the deal with that? I thought it would be https://localhost:1158/Rudu) anyways....
    Logged in using the System user.
    Went to Users and created a user called: RUDUHR
    Thought yeah its working... went on to my other laptop opened up SQL Developer.
    Created Connection with the following Settings
    Con Name: RK
    User: RUDUHR
    Pass: TEST
    Con Type: Basic
    Role: Default
    Hostname: 192.168.0.8
    Port: 1158
    SID: Rudu
    It don't work though Why is that??????
    192.168.0.8 is laptop that has oracle 11g installed and running.
    I even tried using SYSTEM user to connect, but same error
    also tried changing SID to em, it made no difference I keep getting the error Status: Failure -Test failed: IO Error: Got minus one from a read call
    So ya am clueless... LOL I only know how to create tables and stuff not how to configure a Database.
    and just so you know I did forward the port on me router to correct laptop.

    It don't work though Why is that??????
    192.168.0.8 is laptop that has oracle 11g installed and running.
    It is because you don't read documentation.
    1158 is the default port for Enterprise Manager
    1521 is the default port for Sqlnet.
    Your port number is incorrect.
    Needless to say, you can create your tables in EM too.
    As per the Forums Etiquette post (first link when you get to this page) it is recommended you read documentation before asking Yet Another Doc Question.
    Sybrand Bakker
    Senior Oracle DBA

  • SQL Developer: Failure -Test failed: IO Error: Network Adapter No Conn

    SQL Developer: Failure -Test failed: IO Error: The Network Adapter could not establish the connection
    Hi,
    and sorry this is a really common questions and yes I did do a search, but I don't understand it.
    First let me just tell you that Oracle 11g is installed on my second laptop on the same Network.
    Secondly I can connect to the Database using Oracle SQL Developer on the laptop Oracle 11g is installed on.
    The problem is I want to connect to the database on my main Laptop.
    I put in the correct details Hostname 192.168.0.8 ( this is the laptop oracle is installed and running on)
    Port 1521
    SID dbarudu
    ****** YES I HAVE PORT FORWARDED
    ****** YES I HAVE ALLOWED 1521 on the FIREWALL
    ****** YES I HAVE EVEN SWITCHED OFF THE FIREWALL
    Now one more thing you should know ... I don't know nothing about Oracle Servers ok.... so I have just installed Oracle 11g Enterprise and thought done it should be working now.
    I just need to use oracle db for a project.
    So keep in mind I am a total noob and terms like TNSPING etc mean absolutely nothing to me.
    So please help, but help with step by step guide on how to get Oracle to let me have access from another computer.

    If the Listener is working, then you should not get the error SQL-Developer error you are reporting.
    The listener typically runs using the hostname and port 1521. This means it opens tcp port 1521 on all IP addresses of that platform.
    The database server by default will register itself with the local listener. Thus the listener will know the database SID, the database services, whether there are dispatchers to support shared server connections and so on.
    The client side needs simply to specify 3 pieces of data to connect:
    - the IP of the database server
    - the tcp port of the listener
    - a database identifier (such as Oracle SID or service name) to connect to
    It is really that simple.
    If this does not work, the problem falls into 2 broad categories:
    a) incorrect installation and configuration of the Oracle software (the out-of-the-box install works unless messed up)
    b) some kind of networking issue
    To troubleshoot any problem means reducing the complexity of the problem, eliminating multiple moving parts and focusing on specific ones, in order to isolate the problem.
    For your problem, this will go something as follows:
    - does the listener run? (check if the service is running and whether tcp connections are accepted on the listener port - telnet can be used for the latter)
    - does the database successfully registers itself with the listener? (check the services command of the listener and relevant db initialisation parameters)
    - does a local TNS (tcp network) connection work on that server? (use SQL*Plus and test on that platform client-server connectivity via tcp to the listener)
    - does the client platform have connectivity with the server platform? (use ICMP and telnet to test)
    - repeat the TNS test on the client platform using the same working TNS tested on the server platform
    Do not use JDBC to test the connection - keep it simple and use sqlplus and the standard Oracle Call Interface (OCI). A full client version of the OCI plus sqlplus can be downloaded under the Oracle InstantClient downloads.
    Finally - if you expect to simply install and use Oracle, then use the correct version. Oracle Express Edition aka Oracle XE. Installs and works out-of-the-box. The only manual config change to make is (as far as I recall) to run the listener on all IP addresses of that platform. And this required editing the listener.ora file, changing the HOST parameter and restarting the listener.
    Also keep in mind that you have not presented an Oracle error code and Oracle error message. But a client application error message. And that message is pretty much meaningless - it does not point to a specific Oracle networking or Oracle server problem. To diagnose that, we expect a TNS or ORA error number.

  • SQL Server Unit Tests

    Hi SQL Server Experts,
    About SQL Server Unit Tests (vide
    http://msdn.microsoft.com/en-us/library/jj851203(v=vs.103).aspx), please help with inputs on pros and cons of SQL Server Unit Tests. Any ideal recommendation?
    Thanks

    Blog on the topic: "Database unit testing is used for feature testing of your individual modules (stored procedures, triggers or user defined functions) that is to say your module performs as expected.  Apart from that, it is also used to ensure that
    subsequent changes to the module does not break any functionality.
    At first glace, it looks like this would add overhead to create vs. doing adhoc testing, but Visual Studio lets you automatically generate T-SQL code stubs to test the database object which you can customize as per your need.
    Visual Studio provides Database Unit Test Designer which you can write/define T-SQL scripts (also insert SQL assertion in this code) that calls your module and then evaluates the execution result against the different test conditions which indicates your
    modules execution success or failure."
    LINK:
    SQL Server Unit Testing with Visual Studio 2010
    >Please pardon my ignorance as I am coming back to SQL Server after a brief gap.
    You may have to brush up with T-SQL prior to using a sophisticated tool like this:
    http://www.sqlusa.com/bestpractices/
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • SSDT: Creation of localDB instances from project file - Sql Server Unit testing purposes

    I have a SqlServer Database Project in my solution (VS2013 Professional) which has a corresponding test project with some stored procedure unit tests. Currently I am using a LocalDB and as far as I understand a local database instance is created in C:\Users\[User]\AppData\Local\Microsoft\Microsoft
    SQL Server Local DB\Instances\Projects and the specific .mdf file referenced in the SQL Server Object Explorer is in C:\Users\[User]\AppData\Local\Microsoft\VisualStudio\SSDT\[ProjectName]. The unit tests run fine on my local machine which I have developed
    the project on.
    My issue is we have a box which is configured to check out the project file from our version control, build the project using ms build commands and then run the unit tests using VSTest.Console. Usually with C# Test projects we reference the test project
    dll and the unit tests run fine. I have referenced the dll for the test project with the stored procedure unit tests in. 
    With the Stored Procedure unit tests however we get this exception: 
    Initialization method [project].[spTest].TestInitialize threw exception. System.Data.SqlClient.SqlException: System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. The specified LocalDB instance does not exist.
    After some digging I have realised that the localdb instance seems to be created when the project itself is created in VS not when it is built. Specifically when the localdb is first used and if you look into the appData folder of the test machine there
    is no corresponding mdf file for the project.  
    The question is is there a way to set up a localDB instance on the new machine if all you have the project file? The only purpose of the project on the test machine is to run the unit tests, no other development purposes. VS2013 Professional is installed
    on the test machine but a solution only using config file changes or MSBuild/VSTest commands would be preferable.
    I realise you could change the connection string to an actual test database and run the unit tests of that but we quite like the localdb approach for the testing. I also realise that you could potentially transfer the mdf file (haven't tested this solution)
    as well, though I would prefer if there is a solution to my initial question. 
    http://technet.microsoft.com/en-us/library/hh234692.aspx
    http://msdn.microsoft.com/en-us/library/hh309441(v=vs.110).aspx
    I have been reading up on LocalDB and I assume a automatic LocalDB is created when you create a sql server database project (ie on localdb first use). I have tried adding the database creation to the test project config file but do not really know where
    to go from there. The second link does not really specify when the named localdb will be created if you add the config items and I am not even sure if that is an actual solution.  Here's my test project config file for reference
    <configSections>
    <section name="system.data.localdb" type="System.Data.LocalDBConfigurationSection,System.Data,Version=4.0.0.0,Culture=neutral,PublicKeyToken=[PublicKeyToken]"/>
    <section name="SqlUnitTesting_VS2013" type="Microsoft.Data.Tools.Schema.Sql.UnitTesting.Configuration.SqlUnitTestingSection, Microsoft.Data.Tools.Schema.Sql.UnitTesting, Version=12.0.0.0, Culture=neutral, PublicKeyToken=[PublicKeyToken]" />
    </configSections>
    <system.data.localdb>
    <localdbinstances>
    <add name="SimpleUnitTestingDB" version="11.0" />
    </localdbinstances>
    </system.data.localdb>
    <SqlUnitTesting_VS2013>
    <DatabaseDeployment DatabaseProjectFileName="..\..\..\SimpleUnitTestDB\SimpleUnitTestDB.sqlproj"
    Configuration="Release" />
    <DataGeneration ClearDatabase="true" />
    <ExecutionContext Provider="System.Data.SqlClient" ConnectionString="Data Source=(localdb)\Projects;Initial Catalog=SimpleUnitTestDB;Integrated Security=True;Pooling=False;Connect Timeout=30"
    CommandTimeout="30" />
    <PrivilegedContext Provider="System.Data.SqlClient" ConnectionString="Data Source=(localdb)\Projects;Initial Catalog=SimpleUnitTestDB;Integrated Security=True;Pooling=False;Connect Timeout=30"
    CommandTimeout="30" />
    </SqlUnitTesting_VS2013>
    Thanks in advance for any response. Sorry if there is any misunderstanding, while I have been using VS to develop from the start, this is the first time I have used a Sql Server Database Project. 
    Regards,
    Christopher. 

    Yes, you can create a LocalDB instance manually. You use the SqlLocalDb utility, see here:
    http://technet.microsoft.com/en-us/library/hh212961.aspx
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Unit testing PL/SQL used in APEX application

    question from my customer :
    I am developing an application in Oracle Application Express and am working on unit tests for the PL/SQL stored procedures and packages that are stored in the underlying database and that are used by the APEX application. These unit tests should run within the SQL Developer Unit Test framework.
    The problem is that some of the PL/SQL code stored in the database uses functions like NV('APPLICATION_ITEM') to access items in the apex application. These do not return any values when I try to execute the PL/SQL within the unit test framework, ie through the backend. While it is good that the NV function does not error, NULL do not really work well in my scenario either (for example when the result of this functions is inserted into a NOT NULL column of a table). I can think of a few workarounds, such as creating my own NV function inside the test schema to return desirable values, but nothing seems a really satisfactory solution. I just wonder if there is any best practice recommendation from Oracle for this scenario - how can I run code that uses APEX-specific functions through the back end. I could not find anything in the APEX documentation for this but I'd be interesting to know if there is any recommendation how to best deal with this case.
    I am using SQL Developer version 4.0.0.13.80

    User[[:digit:]*
    Your PL/SQL Package APIs are poorly designed.
    You need to take Tom Kyte's quote to heart:
    "Application come and application go, but data remains forever"
    In short, you need to separate your database processing code (the stuff you need to unit test) from front-end/middle tier code.
    (repetitiveness is for effect.. not rudeness.)
    As such, The PL/SQL code that you need to 'UNIT TEST' must work without needing to run in APEX.
    The PL/SQL code that you need to 'UNIT TEST' must work without needing to run in .NET.
    The PL/SQL code that you need to 'UNIT TEST' must work without needing to run in JSP.
    The PL/SQL code that you need to 'UNIT TEST' must work without needing to run in Jive.
    The PL/SQL code that you need to 'UNIT TEST' must work without needing to run in Ruby.
    The PL/SQL code that you need to 'UNIT TEST' must work without needing to run in Perl::CGI.
    The PL/SQL code that you need to 'UNIT TEST' must work without needing to run in P9.
    The PL/SQL code that you need to 'UNIT TEST' must work without needing to run in <place latest and greatest thing here>.
    Again, I don't mean to sound rude.  I'm just trying to reinforce the idea that you need to separate database code from middle-tier/front-end stuff.
    Basically, you will need to separate all of your packages into multiple parts.
    a _CORE package (that will be unit tested) that does all the hard work
    an _APEX package for APEX infrastructure (this works with NV()/V(), etc.)
    a _NET package for .NET infrastructure when you need it
    a _JSP package for the JSP infrastructure when you need it
    a _JIVE package for the JIVE infrastructure when you need it
    a _<place latest and greatest thing here> for the <place latest and greatest thing here> when you need it.
    MK

  • PL/SQL Unit Testing

    Does anyone know about PL/SQL unit testing software? I'm currently reviewing Quest's Code Tester for Oracle, which seems very good. Are there any others?

    Check here my post
    http://rodenthood.blogspot.com/2010/07/oracle-sql-developer-unit-testing.html
    or here oracle's guide
    http://www.oracle.com/technology/obe/11gr2_db_prod/appdev/sqldev/sqldev_unit_test/sqldev_unit_test_otn.htm

  • Unit testing - problems using £ sign

    Sorry if this has come up before...
    We're using the SQL Developer unit testing functionality in what we thought was a fairly straightforward manner.
    We use a startup to set up some data, run a procedure with specific values for the inputs, compare the outputs with expected values, and then use a teardown to remove the data.
    All works well except for one output field. For reasons I won't bother to go into, it's a varchar2 field that returns an amount, in the format £9.99 - i.e. with a UK pound (£) sign at the start of the string.
    Whenever I try and input an expected value including the pound sign, the whole value gets converted to null - so, £9.50 gets saved as an expected value of null, which then, of course, causes the test to fail (unless we set it to ignore the value which somewhat defeats the point of testing !)
    Playing around a little, it seems that characters such as $ and # are ok, but any string that uses £ anywhere within it (e.g. 876f£ffe) gets saved as null.
    Has anyone else encountered this or have a workaround/fix ?
    (SQL Developer version 3.2.20.09, running on Windows XP 32-bit)

    Have you tried opening a new browser window as the new user? That is:
    1. Hold Shift and right click IE shortcut
    2. Select Run as different user
    3. Enter the new user's credentials
    4. Browse to the SharePoint site
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

  • Unit testing and REF CURSORs

    Hi,
    Does anybody know when/if SQL Developer unit tests will support procedures that return reference cursors?
    Thanks
    Lee

    Support for REF CURSOR is already being considered for a future release although support will probably be under some size constraints as a REF CURSOR can obviously return a massive quantity of data in a production system which is beyond the brief of Unit Testing.

  • Unit Testing and Oracle Sessions

    We have an issue regarding Oracle session and SQL Developer Unit Testing.
    Every time we run a Unit Test in SQLDeveloper a new Oracle session is created. When closing that Unit Test, the session, however, is not disconnected.
    And the only way to close that "Unit Test" session is to close SQLDeveloper.
    This is causing problems with the no. of sessions available to developers.
    Any help would be much appreciated.
    Subboss

    The focus of this forum is report design. The actual testing of reports would be subject to your own internal policies and procedures.
    Jason

  • Variable substitution in Unit Testing validation - Date format?

    Using SQL Developer unit testing, I am having difficulty comparing Date datatype in a validation.
    I use a Dynamic Value Query to set the parameters of an insertion procedure under test.
    select * from (select doc_nbr as p_mstr_doc_nbr, doc_nbr as p_assoc_doc_nbr, sysdate as p_date_added from documents sample(0.01) order by dbms_random.random)  where rownum <= 1;So P_DATE_ADDED is a DATE datatype.
    I wish to validate that the insertion was correct. So I run a Process Validation returning one or more rows.
    SELECT * FROM X100_ASSOC
      WHERE MSTR_DOC_NBR = '{P_MSTR_DOC_NBR}'
        AND ASSOC_DOC_NBR = '{P_ASSOC_DOC_NBR}'
        AND to_char(DATE_ADDED,'dd-MON-yy HH24:MI:SS')  = {P_DATE_ADDED};I understand that the {P_DATE_ADDED} is substituting in a string. From Help page :
    "What is actually substituted is the string representation of the parameter value. For example:
    If P1 is a parameter of type NUMBER and has the value 2.1, the string {P1} will be replaced by the string 2.1.
    If P1 is a parameter of type VARCHAR2 and has the value ABC, the string '{P1}' will be replaced by the string 'ABC'. (Note the single-quotation marks around {P1} in this example.)"
    I need to know the format that the date is cast into as a string. Then I can do the comparision on the where clause.
    Any answers? or details of where is more in depth documentation?
    Thank you,
    Bill

    I agree as a general rule. However in this case, it appears that the variable substitution routine is returning the default format. So to compare my expected data to the returned data I choose to use the default format. If the variable substitution routine specified an explicit format, I would use that. In my original question, I asked if anyone knew the format.
    Regards,
    Bill

  • SQL Developer High Memory Consumption 3.2.20.09.87

    Hello,
    I have been using SQL developer for quite some time and had initially had problems in the past with high memory consuption when I use this tool.
    I have received and applied advice from this forum and while it had helped a little, the majority of the high memory consuption remained an issue.
    I finally got more time to dig around and try to specifically isolate where the problem seems to be coming from and here is what I found.
    *1)* I have removed the Check for Updates feature
    *2)* I have turned off many of the extensions except for DBA Navigator, Real Time SQL Monitoring, SearchBar and Snippet.
    *3)* When I start a fresh SQL Developer Session and initiate a Oracle Connection the application consumes roughly 148 meg fo RAM
    *4)* When I open my Windows Task Manager and watch the memory allocated to SQL Developer I notice it goes up when I move my mouse over the SQL Developer tool and When I run through menus at roughly 5k a second or so and the memory is never released back to the system.
    *5)* When I run a Large SQL to the grid the memory jumps by about 100 meg or so and will continue to do so every time I repeat the SQL until SQL Developer consumes roughly 748 meg of RAM.
    *6)* 748 Meg of RAM seems to be the number when SQL Developer (with one Oracle connection) no longer continues to consume more and then not return the memory to the system.
    Is there a way to have SQL Developer automatically clear up it's active memory usage without closing it down and restarting it?
    Why does SQL Developer continue to consume more and more memory just from moving your mouse over it and/or by navigating menus?
    Here is my About Detail;
    Oracle SQL Developer 3.2.20.09
    Version 3.2.20.09
    Build MAIN-09.87
    Copyright © 2005, 2012 Oracle. All Rights Reserved.
    IDE Version: 11.1.1.4.37.59.48
    Product ID: oracle.sqldeveloper
    Product Version: 11.2.0.09.87
    Version
    Component     Version
    =========     =======
    Java(TM) Platform     1.6.0_35
    Oracle IDE     3.2.20.09.87
    Properties
    Name     Value
    ====     =====
    awt.toolkit     sun.awt.windows.WToolkit
    class.load.environment     oracle.ide.boot.IdeClassLoadEnvironment
    class.load.log.level     CONFIG
    class.transfer     delegate
    file.encoding     Cp1252
    file.encoding.pkg     sun.io
    file.separator     \
    ice.browser.forcegc     false
    ice.pilots.html4.ignoreNonGenericFonts     true
    ice.pilots.html4.tileOptThreshold     0
    ide.AssertTracingDisabled     true
    ide.bootstrap.start     109707460930968
    ide.build     MAIN-09.87
    ide.conf     C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
    ide.config_pathname     C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
    ide.debugbuild     false
    ide.devbuild     false
    ide.extension.search.path     sqldeveloper/extensions:jdev/extensions:ide/extensions
    ide.firstrun     true
    ide.java.minversion     1.6.0_04
    ide.launcherProcessId     3276
    ide.main.class     oracle.ide.boot.IdeLauncher
    ide.patches.dir     ide/lib/patches
    ide.pref.dir     C:\Users\twilliams\AppData\Roaming\SQL Developer
    ide.pref.dir.base     C:\Users\twilliams\AppData\Roaming
    ide.product     oracle.sqldeveloper
    ide.shell.enableFileTypeAssociation     C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\sqldeveloper\bin\sqldeveloperW.exe
    ide.splash.screen     splash.gif
    ide.startingArg0     C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\sqldeveloper\bin\sqldeveloperW.exe
    ide.startingcwd     C:\app\twilliams\product\11.2.0\client_3\SQLDEVELOPER\SQLDEVELOPER\BIN
    ide.user.dir     C:\Users\twilliams\AppData\Roaming\SQL Developer
    ide.user.dir.var     IDE_USER_DIR
    ide.work.dir     C:\Users\twilliams\Documents\SQL Developer
    ide.work.dir.base     C:\Users\twilliams\Documents
    ilog.propagatesPropertyEditors     false
    java.awt.graphicsenv     sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob     sun.awt.windows.WPrinterJob
    java.class.path     ..\..\ide\lib\ide-boot.jar
    java.class.version     50.0
    java.endorsed.dirs     C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\jdk\jre\lib\endorsed
    java.ext.dirs     C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\jdk\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
    java.home     C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\jdk\jre
    java.io.tmpdir     c:\Temp\
    java.library.path     C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\sqldeveloper\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\app\twilliams\product\11.2.0\client_3\bin;C:\app\twilliams\product\11.2.0\client_3;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Lenovo\Access Connections\;C:\Program Files\WinMerge;C:\Program Files\ThinkPad\Bluetooth Software\;.
    java.naming.factory.initial     oracle.javatools.jndi.LocalInitialContextFactory
    java.protocol.handler.pkgs     oracle.jdevimpl.handler
    java.runtime.name     Java(TM) SE Runtime Environment
    java.runtime.version     1.6.0_35-b10
    java.specification.name     Java Platform API Specification
    java.specification.vendor     Sun Microsystems Inc.
    java.specification.version     1.6
    java.util.logging.config.file     logging.conf
    java.vendor     Sun Microsystems Inc.
    java.vendor.url     http://java.sun.com/
    java.vendor.url.bug     http://java.sun.com/cgi-bin/bugreport.cgi
    java.version     1.6.0_35
    java.vm.info     mixed mode
    java.vm.name     Java HotSpot(TM) Client VM
    java.vm.specification.name     Java Virtual Machine Specification
    java.vm.specification.vendor     Sun Microsystems Inc.
    java.vm.specification.version     1.0
    java.vm.vendor     Sun Microsystems Inc.
    java.vm.version     20.10-b01
    jdbc.driver.home     /C:/app/twilliams/product/11.2.0/client_3/
    jdbc.library     /C:/app/twilliams/product/11.2.0/client_3/jdbc/lib/ojdbc6.jar
    line.separator     \r\n
    oracle.home     C:\app\twilliams\product\11.2.0\client_3\sqldeveloper
    oracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG     true
    oracle.jdbc.mapDateToTimestamp     false
    oracle.translated.locales     de,es,fr,it,ja,ko,pt_BR,zh_CN,zh_TW
    oracle.xdkjava.compatibility.version     9.0.4
    orai18n.library     /C:/app/twilliams/product/11.2.0/client_3/jlib/orai18n.jar
    os.arch     x86
    os.name     Windows 7
    os.version     6.1
    path.separator     ;
    reserved_filenames     con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,com7,com8,com9,conin$,conout,conout$
    sqldev.debug     false
    sun.arch.data.model     32
    sun.boot.class.path     C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\jdk\jre\lib\resources.jar;C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\jdk\jre\lib\rt.jar;C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\jdk\jre\lib\sunrsasign.jar;C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\jdk\jre\lib\jsse.jar;C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\jdk\jre\lib\jce.jar;C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\jdk\jre\lib\charsets.jar;C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\jdk\jre\lib\modules\jdk.boot.jar;C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\jdk\jre\classes
    sun.boot.library.path     C:\app\twilliams\product\11.2.0\client_3\sqldeveloper\jdk\jre\bin
    sun.cpu.endian     little
    sun.cpu.isalist     pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
    sun.desktop     windows
    sun.io.unicode.encoding     UnicodeLittle
    sun.java2d.ddoffscreen     false
    sun.jnu.encoding     Cp1252
    sun.management.compiler     HotSpot Client Compiler
    sun.os.patch.level     Service Pack 1
    user.country     US
    user.dir     C:\app\twilliams\product\11.2.0\client_3\SQLDEVELOPER\SQLDEVELOPER\BIN
    user.home     C:\Users\twilliams
    user.language     en
    user.name     twilliams
    user.timezone     America/Los_Angeles
    user.variant     
    windows.shell.font.languages     
    Extensions
    Name     Identifier     Version     Status
    ====     ==========     =======     ======
    Check For Updates     oracle.ide.webupdate     11.1.1.4.37.59.48     Loaded
    Code Editor     oracle.ide.ceditor     11.1.1.4.37.59.48     Loaded
    Component Palette     oracle.ide.palette1     11.1.1.4.37.59.48     Loaded
    Data Miner     oracle.dmt.dataminer     11.2.1.1.09.87     Disabled by user
    Database Connection Support     oracle.jdeveloper.db.connection     11.1.1.4.37.59.48     Loaded
    Database Object Explorers     oracle.ide.db.explorer     11.1.1.4.37.59.48     Loaded
    Database UI     oracle.ide.db     11.1.1.4.37.59.48     Loaded
    Diagram Framework     oracle.diagram     11.1.1.4.37.59.48     Loaded
    Diagram Javadoc Extension     oracle.diagram.javadoc     11.1.1.4.37.59.48     Loaded
    Diagram Thumbnail     oracle.diagram.thumbnail     11.1.1.4.37.59.48     Loaded
    Diff/Merge     oracle.ide.diffmerge     11.1.1.4.37.59.48     Loaded
    Extended IDE Platform     oracle.javacore     11.1.1.4.37.59.48     Loaded
    External Tools     oracle.ide.externaltools     11.1.1.4.37.59.48     Loaded
    File Support     oracle.ide.files     11.1.1.4.37.59.48     Loaded
    Help System     oracle.ide.help     11.1.1.4.37.59.48     Loaded
    History Support     oracle.jdeveloper.history     11.1.1.4.37.59.48     Loaded
    Import/Export Support     oracle.ide.importexport     11.1.1.4.37.59.48     Loaded
    Index Migrator support     oracle.ideimpl.indexing-migrator     11.1.1.4.37.59.48     Loaded
    JDeveloper Runner     oracle.jdeveloper.runner     11.1.1.4.37.59.48     Loaded
    JViews Registration Addin     oracle.diagram.registration     11.1.1.4.37.59.48     Loaded
    Log Window     oracle.ide.log     11.1.1.4.37.59.48     Loaded
    Mac OS X Adapter     oracle.ideimpl.apple     11.1.1.4.37.59.48     Loaded
    Navigator     oracle.ide.navigator     11.1.1.4.37.59.48     Loaded
    Object Gallery     oracle.ide.gallery     11.1.1.4.37.59.48     Loaded
    Oracle IDE     oracle.ide     11.1.1.4.37.59.48     Loaded
    Oracle SQL Developer     oracle.sqldeveloper     11.2.0.09.87     Loaded
    Oracle SQL Developer - 3rd Party Database Browsers     oracle.sqldeveloper.thirdparty.browsers     11.2.0.09.87     Loaded
    Oracle SQL Developer - APEX Listener Administration     oracle.sqldeveloper.listener     11.2.0.09.87     Loaded
    Oracle SQL Developer - Change Mangement     oracle.sqldeveloper.em_cm     11.2.0.09.87     Loaded
    Oracle SQL Developer - DBA Navigator     oracle.sqldeveloper.dbanavigator     11.2.0.09.87     Loaded
    Oracle SQL Developer - Database Cart     oracle.sqldeveloper.dbcart     11.2.0.09.87     Loaded
    Oracle SQL Developer - Extras     oracle.sqldeveloper.extras     11.2.0.09.87     Loaded
    Oracle SQL Developer - File Navigator     oracle.sqldeveloper.filenavigator     11.2.0.09.87     Loaded
    Oracle SQL Developer - Migrations Antlr3 Translator     oracle.sqldeveloper.migration.translation.core_antlr3     11.2.0.09.87     Missing dependencies: oracle.sqldeveloper.migration
    Oracle SQL Developer - Migrations Application Migration     oracle.sqldeveloper.migration.application     11.2.0.09.87     Disabled by user
    Oracle SQL Developer - Migrations Core     oracle.sqldeveloper.migration     11.2.0.09.87     Disabled by user
    Oracle SQL Developer - Migrations DB2     oracle.sqldeveloper.migration.db2     11.2.0.09.87     Disabled by user
    Oracle SQL Developer - Migrations DB2 Translator     oracle.sqldeveloper.migration.translation.db2     11.2.0.09.87     Missing dependencies: oracle.sqldeveloper.migration, oracle.sqldeveloper.migration.translation.core_antlr3
    Oracle SQL Developer - Migrations Microsoft Access     oracle.sqldeveloper.migration.msaccess     11.2.0.09.87     Disabled by user
    Oracle SQL Developer - Migrations Microsoft SQL Server     oracle.sqldeveloper.migration.sqlserver     11.2.0.09.87     Disabled by user
    Oracle SQL Developer - Migrations MySQL     oracle.sqldeveloper.migration.mysql     11.2.0.09.87     Disabled by user
    Oracle SQL Developer - Migrations Sybase Adaptive Server     oracle.sqldeveloper.migration.sybase     11.2.0.09.87     Disabled by user
    Oracle SQL Developer - Migrations T-SQL Translator     oracle.sqldeveloper.migration.translation.core     11.2.0.09.87     Missing dependencies: oracle.sqldeveloper.migration
    Oracle SQL Developer - Migrations Teradata     oracle.sqldeveloper.migration.teradata     11.2.0.09.87     Disabled by user
    Oracle SQL Developer - Migrations Teradata SQL Translator     oracle.sqldeveloper.migration.translation.teradata_translator     11.2.0.09.87     Missing dependencies: oracle.sqldeveloper.migration, oracle.sqldeveloper.migration.translation.core
    Oracle SQL Developer - Migrations Translation UI     oracle.sqldeveloper.migration.translation.gui     11.2.0.09.87     Disabled by user
    Oracle SQL Developer - Object Viewer     oracle.sqldeveloper.oviewer     11.2.0.09.87     Loaded
    Oracle SQL Developer - Real Time SQL Monitoring     oracle.sqldeveloper.sqlmonitor     11.2.0.09.87     Loaded
    Oracle SQL Developer - Reports     oracle.sqldeveloper.report     11.2.0.09.87     Loaded
    Oracle SQL Developer - Scheduler     oracle.sqldeveloper.scheduler     11.2.0.09.87     Disabled by user
    Oracle SQL Developer - Schema Browser     oracle.sqldeveloper.schemabrowser     11.2.0.09.87     Loaded
    Oracle SQL Developer - SearchBar     oracle.sqldeveloper.searchbar     11.2.0.09.87     Loaded
    Oracle SQL Developer - Security     oracle.sqldeveloper.security     11.2.0.09.87     Disabled by user
    Oracle SQL Developer - Snippet     oracle.sqldeveloper.snippet     11.2.0.09.87     Loaded
    Oracle SQL Developer - Spatial     oracle.sqldeveloper.spatial     11.2.0.09.87     Disabled by user
    Oracle SQL Developer - TimesTen     oracle.sqldeveloper.timesten     11.2.0.09.87     Disabled by user
    Oracle SQL Developer - Tuning     oracle.sqldeveloper.tuning     11.2.0.09.87     Loaded
    Oracle SQL Developer - Unit Test     oracle.sqldeveloper.unit_test     11.2.0.09.87     Disabled by user
    Oracle SQL Developer - User Extensions Support     oracle.sqldeveloper.userextensions     11.2.0.09.87     Loaded
    Oracle SQL Developer - Worksheet v2     oracle.sqldeveloper.worksheet     11.2.0.09.87     Loaded
    Oracle SQL Developer - XML Schema     oracle.sqldeveloper.xmlschema     11.2.0.09.87     Loaded
    Oracle SQL Developer Data Modeler     oracle.datamodeler     3.1.4.710     Disabled by user
    Oracle SQL Developer Data Modeler - Reports     oracle.sqldeveloper.datamodeler_reports     11.2.0.09.87     Disabled by user
    PROBE Debugger     oracle.jdeveloper.db.debug.probe     11.1.1.4.37.59.48     Loaded
    Peek     oracle.ide.peek     11.1.1.4.37.59.48     Loaded
    Persistent Storage     oracle.ide.persistence     11.1.1.4.37.59.48     Loaded
    Property Inspector     oracle.ide.inspector     11.1.1.4.37.59.48     Loaded
    QuickDiff     oracle.ide.quickdiff     11.1.1.4.37.59.48     Loaded
    Replace With     oracle.ide.replace     11.1.1.4.37.59.48     Loaded
    Runner     oracle.ide.runner     11.1.1.4.37.59.48     Loaded
    VHV     oracle.ide.vhv     11.1.1.4.37.59.48     Loaded
    Versioning Support     oracle.jdeveloper.vcs     11.1.1.4.37.59.48     Disabled by user
    Versioning Support for Subversion     oracle.jdeveloper.subversion     11.1.1.4.37.59.48     Missing dependencies: oracle.jdeveloper.vcs
    Virtual File System     oracle.ide.vfs     11.1.1.4.37.59.48     Loaded
    Web Browser and Proxy     oracle.ide.webbrowser     11.1.1.4.37.59.48     Loaded
    XML Editing Framework IDE Extension     oracle.ide.xmlef     11.1.1.4.37.59.48     Loaded
    audit     oracle.ide.audit     11.1.1.4.37.59.48     Loaded
    classpath: protocol handler extension     oracle.jdeveloper.classpath     11.1.1.0.0     Loaded
    jdukshare     oracle.bm.jdukshare     11.1.1.4.37.59.48     Loaded
    mof-xmi     oracle.mof.xmi     11.1.1.4.37.59.48     Loaded
    oracle.ide.dependency     oracle.ide.dependency     11.1.1.4.37.59.48     Loaded
    oracle.ide.indexing     oracle.ide.indexing     11.1.1.4.37.59.48     Loaded
    palette2     oracle.ide.palette2     11.1.1.4.37.59.48     Loaded
    status     oracle.ide.status     11.1.1.4.37.59.48     Loaded
    Thanks in advance...
    Tom
    Edited by: ERPDude on Feb 28, 2013 2:46 PM

    Aces!!! You nailed it Gary...
    Thank you.
    I applied fixed noted in Re: Reduce SQLDeveloper memory footprint with JDK 1.7
    For others, to summarize my changes.
    product\11.2.0\client_3\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
    AddVMOption -XX:+UnlockExperimentalVMOptions
    AddVMOption -XX:+UseG1GC
    AddVMOption -XX:MaxGCPauseMillis=50
    AddVMOption -XX:GCPauseIntervalMillis=200
    AddVMOption -XX:MaxPermSize=128M
    AddVMOption -Xms50M
    AddVMOption -Xmx384M
    AddVMOption -XX:MinHeapFreeRatio=10
    AddVMOption -XX:MaxHeapFreeRatio=10
    product\11.2.0\client_3\sqldeveloper\ide\bin\ide.conf
    comment the following two lines as shown below
    #AddVMOption -Xmx640M
    #AddVMOption -Xms128M
    Now SQL Developer runs at roughly 500 meg.
    I guess the only thing I have left to ask others reviewing this would be if there is a way to get these memory values down without having much adverse impacts on SQL Developer based on newer JVM switches/functionalities.
    The posts that drove these changes are old from a technologoical perspective :) 2010.
    Tom

  • SQL Developer table editor does not show anything (no columns, no data,...)

    Hi, I upgraded SQL developer yesterday to the latest version. Now I don't see anything any more in the datagrid, columns, constraints, etc ...
    Connection is OK, in the explorer (to the left) I see tables and columns, in the datagrid (table properties) I don't see anything.
    Here is the contents of the about box
    Many thanks
    About
    Oracle SQL Developer 2.1.1.64
    Version 2.1.1.64
    Build MAIN-64.45
    Copyright © 2005,2009 Oracle. All Rights Reserved.
    IDE Version: 11.1.1.2.36.55.30
    Product ID: oracle.sqldeveloper
    Product Version: 11.1.1.64.45
    Version
    Component     Version
    =========     =======
    Java(TM) Platform     1.6.0_20
    Oracle IDE     2.1.1.64.45
    Versioning Support     2.1.1.64.45
    Properties
    Name     Value
    ====     =====
    awt.toolkit     sun.awt.windows.WToolkit
    class.load.environment     oracle.ide.boot.IdeClassLoadEnvironment
    class.load.log.level     CONFIG
    class.transfer     delegate
    file.encoding     Cp1252
    file.encoding.pkg     sun.io
    file.separator     \
    ice.browser.forcegc     false
    ice.pilots.html4.ignoreNonGenericFonts     true
    ice.pilots.html4.tileOptThreshold     0
    ide.AssertTracingDisabled     true
    ide.bootstrap.start     8627304444140
    ide.build     MAIN-64.45
    ide.conf     C:\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
    ide.config_pathname     C:\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
    ide.debugbuild     false
    ide.devbuild     false
    ide.extension.search.path     sqldeveloper/extensions:jdev/extensions:ide/extensions
    ide.firstrun     true
    ide.java.minversion     1.6.0_04
    ide.launcherProcessId     5928
    ide.main.class     oracle.ide.boot.IdeLauncher
    ide.patches.dir     ide/lib/patches
    ide.pref.dir     C:\Users\johkene\AppData\Roaming\SQL Developer
    ide.pref.dir.base     C:\Users\johkene\AppData\Roaming
    ide.product     oracle.sqldeveloper
    ide.shell.enableFileTypeAssociation     C:\sqldeveloper\sqldeveloper.exe
    ide.splash.screen     splash.gif
    ide.startingArg0     C:\sqldeveloper\sqldeveloper.exe
    ide.startingcwd     C:\sqldeveloper
    ide.user.dir     C:\Users\johkene\AppData\Roaming\SQL Developer
    ide.user.dir.var     IDE_USER_DIR
    ide.work.dir     C:\Users\johkene\Documents\SQL Developer
    ide.work.dir.base     C:\Users\johkene\Documents
    java.awt.graphicsenv     sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob     sun.awt.windows.WPrinterJob
    java.class.path     ..\..\ide\lib\ide-boot.jar
    java.class.version     50.0
    java.endorsed.dirs     C:\Program Files\Java\jdk1.6.0_20\jre\lib\endorsed
    java.ext.dirs     C:\Program Files\Java\jdk1.6.0_20\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
    java.home     C:\Program Files\Java\jdk1.6.0_20\jre
    java.io.tmpdir     C:\Users\johkene\AppData\Local\Temp\
    java.library.path     C:\sqldeveloper;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\Program Files\Gemplus\GemSafe Libraries\BIN;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\Sybase\DLL;C:\Sybase\BIN;C:\Program Files\Sybase\Shared\PowerBuilder\;C:\Program Files\Java\jdk1.6.0_12\bin;C:\apache-maven-2.0.10\bin;C:\Program Files\Liquid Technologies\Liquid XML Studio 2009\XmlDataBinder7\Redist7\cpp\win32\bin;C:\PROGRA~1\ATT\Graphviz\bin;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Belgium Identity Card;C:\Program Files\Common Files\Adobe\AGL;C:\Program Files\Research In Motion\BlackBerry Theme Studio 5.0\bin;C:\Program Files\CVSNT\
    java.naming.factory.initial     oracle.javatools.jndi.LocalInitialContextFactory
    java.runtime.name     Java(TM) SE Runtime Environment
    java.runtime.version     1.6.0_20-b02
    java.specification.name     Java Platform API Specification
    java.specification.vendor     Sun Microsystems Inc.
    java.specification.version     1.6
    java.util.logging.config.file     logging.conf
    java.vendor     Sun Microsystems Inc.
    java.vendor.url     http://java.sun.com/
    java.vendor.url.bug     http://java.sun.com/cgi-bin/bugreport.cgi
    java.version     1.6.0_20
    java.vm.info     mixed mode, sharing
    java.vm.name     Java HotSpot(TM) Client VM
    java.vm.specification.name     Java Virtual Machine Specification
    java.vm.specification.vendor     Sun Microsystems Inc.
    java.vm.specification.version     1.0
    java.vm.vendor     Sun Microsystems Inc.
    java.vm.version     16.3-b01
    jdbc.library     /C:/sqldeveloper/jdbc/lib/ojdbc5.jar
    line.separator     \r\n
    oracle.home     C:\sqldeveloper
    oracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG     true
    oracle.jdbc.Trace     true
    oracle.translated.locales     de,es,fr,it,ja,ko,pt_BR,zh_CN,zh_TW
    oracle.xdkjava.compatibility.version     9.0.4
    orai18n.library     /C:/sqldeveloper/jlib/orai18n.jar
    os.arch     x86
    os.name     Windows Vista
    os.version     6.0
    path.separator     ;
    reserved_filenames     con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,com7,com8,com9,conin$,conout,conout$
    sqldev.debug     false
    sun.arch.data.model     32
    sun.boot.class.path     C:\Program Files\Java\jdk1.6.0_20\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_20\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_20\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0_20\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_20\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_20\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_20\jre\classes
    sun.boot.library.path     C:\Program Files\Java\jdk1.6.0_20\jre\bin
    sun.cpu.endian     little
    sun.cpu.isalist     pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
    sun.desktop     windows
    sun.io.unicode.encoding     UnicodeLittle
    sun.java2d.ddoffscreen     false
    sun.jnu.encoding     Cp1252
    sun.management.compiler     HotSpot Client Compiler
    sun.os.patch.level     Service Pack 2
    svnkit.sax.useDefault     true
    user.country     BE
    user.dir     C:\sqldeveloper\sqldeveloper\bin
    user.home     C:\Users\johkene
    user.language     nl
    user.name     JOHKENE
    user.timezone     Europe/Paris
    user.variant     
    windows.shell.font.languages     
    Extensions
    Name     Identifier     Version     Status
    ====     ==========     =======     ======
    Check For Updates     oracle.ide.webupdate     11.1.1.2.36.55.30     Loaded
    Code Editor     oracle.ide.ceditor     11.1.1.2.36.55.30     Loaded
    Database Connection Support     oracle.jdeveloper.db.connection     11.1.1.2.36.55.30     Loaded
    Database Object Explorers     oracle.ide.db.explorer     11.1.1.2.36.55.30     Loaded
    Database UI     oracle.ide.db     11.1.1.2.36.55.30     Loaded
    Diff/Merge     oracle.ide.diffmerge     11.1.1.2.36.55.30     Loaded
    Extended IDE Platform     oracle.javacore     11.1.1.2.36.55.30     Loaded
    External Tools     oracle.ide.externaltools     11.1.1.2.36.55.30     Loaded
    File Support     oracle.ide.files     11.1.1.2.36.55.30     Loaded
    File System Navigator     oracle.sqldeveloper.filenavigator     11.1.1.64.45     Loaded
    Help System     oracle.ide.help     11.1.1.2.36.55.30     Loaded
    History Support     oracle.jdeveloper.history     11.1.1.2.36.55.30     Loaded
    Import/Export Support     oracle.ide.importexport     11.1.1.2.36.55.30     Loaded
    Index Migrator support     oracle.ideimpl.indexing-migrator     11.1.1.2.36.55.30     Loaded
    JDeveloper Runner     oracle.jdeveloper.runner     11.1.1.2.36.55.30     Loaded
    Log Window     oracle.ide.log     11.1.1.2.36.55.30     Loaded
    Mac OS X Adapter     oracle.ideimpl.apple     11.1.1.2.36.55.30     Loaded
    Navigator     oracle.ide.navigator     11.1.1.2.36.55.30     Loaded
    Object Gallery     oracle.ide.gallery     11.1.1.2.36.55.30     Loaded
    Object Viewer     oracle.sqldeveloper.oviewer     11.1.1.64.45     Loaded
    Oracle Data Modeler Reports     oracle.sqldeveloper.datamodeler_reports     11.1.1.64.45     Loaded
    Oracle Database Browser     oracle.sqldeveloper.thirdparty.browsers     11.1.1.64.45     Loaded
    Oracle IDE     oracle.ide     11.1.1.2.36.55.30     Loaded
    Oracle SQL Developer     oracle.sqldeveloper     11.1.1.64.45     Loaded
    Oracle SQL Developer Data Modeler Viewer     oracle.datamodeler     2.0.0.584     Loaded
    Oracle SQL Developer Extras     oracle.sqldeveloper.extras     1.1.1.64.45     Loaded
    Oracle SQL Developer Migrations     oracle.sqldeveloper.migration     11.1.1.64.45     Loaded
    Oracle SQL Developer Migrations - Antlr3 Translation Core     oracle.sqldeveloper.migration.translation.core_antlr3     11.1.1.64.45     Loaded
    Oracle SQL Developer Migrations - DB2     oracle.sqldeveloper.migration.db2     11.1.1.64.45     Loaded
    Oracle SQL Developer Migrations - Microsoft Access     oracle.sqldeveloper.migration.msaccess     11.1.1.64.45     Loaded
    Oracle SQL Developer Migrations - MySQL     oracle.sqldeveloper.migration.mysql     11.1.1.64.45     Loaded
    Oracle SQL Developer Migrations - SQLServer     oracle.sqldeveloper.migration.sqlserver     11.1.1.64.45     Loaded
    Oracle SQL Developer Migrations - Sybase     oracle.sqldeveloper.migration.sybase     11.1.1.64.45     Loaded
    Oracle SQL Developer Migrations - Teradata     oracle.sqldeveloper.migration.teradata     11.1.1.64.45     Loaded
    Oracle SQL Developer Migrations - Translation Core     oracle.sqldeveloper.migration.translation.core     11.1.1.64.45     Loaded
    Oracle SQL Developer Migrations - Translation Db2     oracle.sqldeveloper.migration.translation.db2     11.1.1.64.45     Loaded
    Oracle SQL Developer Migrations - Translation UI     oracle.sqldeveloper.migration.translation.gui     11.1.1.64.45     Loaded
    Oracle SQL Developer Reports     oracle.sqldeveloper.report     11.1.1.64.45     Loaded
    Oracle SQL Developer SearchBar     oracle.sqldeveloper.searchbar     11.1.1.64.45     Loaded
    Oracle SQL Developer TimesTen     oracle.sqldeveloper.timesten     2.0.0.64.45     Loaded
    Oracle SQL Developer Unit Test     oracle.sqldeveloper.unit_test     11.1.1.64.45     Loaded
    Oracle SQL Developer Worksheet     oracle.sqldeveloper.worksheet     11.1.1.64.45     Loaded
    Oracle XML Schema Support     oracle.sqldeveloper.xmlschema     11.1.1.64.45     Loaded
    PROBE Debugger     oracle.jdeveloper.db.debug.probe     11.1.1.2.36.55.30     Loaded
    Peek     oracle.ide.peek     11.1.1.2.36.55.30     Loaded
    Persistent Storage     oracle.ide.persistence     11.1.1.2.36.55.30     Loaded
    QuickDiff     oracle.ide.quickdiff     11.1.1.2.36.55.30     Loaded
    Replace With     oracle.ide.replace     11.1.1.2.36.55.30     Loaded
    Runner     oracle.ide.runner     11.1.1.2.36.55.30     Loaded
    Snippet Window     oracle.sqldeveloper.snippet     11.1.1.64.45     Loaded
    Sql Monitoring Project     oracle.sqldeveloper.sqlmonitor     11.1.1.64.45     Loaded
    Tuning     oracle.sqldeveloper.tuning     11.1.1.64.45     Loaded
    User Extensions Support     oracle.sqldeveloper.userextensions     11.1.1.64.45     Loaded
    VHV     oracle.ide.vhv     11.1.1.2.36.55.30     Loaded
    Versioning Support     oracle.jdeveloper.vcs     11.1.1.2.36.55.30     Loaded
    Versioning Support for Subversion     oracle.jdeveloper.subversion     11.1.1.2.36.55.30     Loaded
    Virtual File System     oracle.ide.vfs     11.1.1.2.36.55.30     Loaded
    Web Browser and Proxy     oracle.ide.webbrowser     11.1.1.2.36.55.30     Loaded
    oracle.ide.indexing     oracle.ide.indexing     11.1.1.2.36.55.30     Loaded

    Yes this was clean directory (I reinstalled twice already). I'm using Oracle Database 10g express edition and also Oracle 10g Standard Edition (same problem for both databases).
    In the messages log I get:
    oracle.dbtools.raptor.oviewer.table.GridDataEditor java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    ... and then each time I switch table:
    oracle.ide.model.IdeSubject Exception while updating observer[8]: Editor5

Maybe you are looking for

  • WebAS-connection from EP to BW

    Hi, I am just checking the SSO connection from EP6 (SP12) to BW 3.5 SSO is running fine, the connection test from the system object in my PCD succeeds. The WebAS-test fails, saying that the WAS-parameters are valid, but http/s-connection fails. Acces

  • Reports region csv file download: can a dynamic file name be used?

    Application Express 3.1.1.00.09 Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Firefox 3.0.10 Hi All, In Application Builder -> Report Attributes -> Report Export -> Enable CSV output = 'Yes' I want to assign the filename dynamical

  • Doubt in idoc tpssht01

    Hi all, Can any one tell me the mandatory fields to be filled in idoc(tpssht01). Actually now am facing an error delivery no. not relevant for shipment while receiving as inbound. How to resolve it. Thanks in advance, Sakthi

  • Can anybody give the good SAP-HR Material?

    Hi, Could any body please give the SAP-HR material?. Please send to this id : [email protected] Early reply is highely appriciable. Regards, Chow

  • Best shortest path algorithm ??

    Hi I am developing an application to guide a user from one point to another. I need to work out the shortest path between these two points. Is Dijkstra's algorithm the best to use? or should I be looking for a different one? I am looking for speed. T