SQL Developer 2.1.0.63.73 not displaying constraint violation on commit

I've found an odd case where SQL Developer (2.1.0.63.73) is not displaying an error message on a constraint violation.
CREATE TABLE tmp1 ( id NUMBER, val NUMBER );
CREATE MATERIALIZED VIEW tmp2 REFRESH ON COMMIT AS
SELECT id, SUM(val) AS total FROM tmp1 GROUP BY id;
ALTER TABLE tmp2 ADD CONSTRAINT ck_tmp1 CHECK (total <= 100);
INSERT INTO tmp1 (id, val) VALUES (1, 75);
INSERT INTO tmp1 (id, val) VALUES (1, 25);
INSERT INTO tmp1 (id, val) VALUES (1, 10);
commit;
In SQL Developer I get:
CREATE TABLE succeeded.
CREATE MATERIALIZED succeeded.
ALTER TABLE tmp2 succeeded.
1 rows inserted
1 rows inserted
1 rows inserted
commited
Doing the inserts in SQLPlus, however, gives me the expected output:
SQL> INSERT INTO tmp1 (id, val) VALUES (1, 75);
1 row created.
SQL> INSERT INTO tmp1 (id, val) VALUES (1, 25);
1 row created.
SQL> INSERT INTO tmp1 (id, val) VALUES (1, 10);
1 row created.
SQL> commit;
commit
ERROR at line 1:
ORA-12008: error in materialized view refresh path
ORA-02290: check constraint (PROJECT.CK_TMP1) violated
Is this a bug in SQL Developer?
Edited by: eaolson on Jan 20, 2010 2:50 PM

Similar symptom with SQL Developer 2.1.0.63.73 and now 2.1.1.64. I know how absurd it sounds, but it's definitely happening and I don't know what to do... This must be a bug in SQL Developer!
Script:*
select id, author_id_oid from project where prj_nr = 'xy' ;
delete from project where prj_nr = '0908001' ;
select id, author_id_oid from project where prj_nr = 'xy' ;
commit;
select id, author_id_oid from project where prj_nr = 'xy' ;
SQL Developer output:*
ID AUTHOR_ID_OID 735 50
1 rows deleted
ID AUTHOR_ID_OID
commited
ID AUTHOR_ID_OID
735 50>
TOAD output:*
>
ID AUTHOR_ID_OID
735 50
1 row selected.
1 row deleted.
no rows selected.
commit
Error at line 7
ORA-02091: transaction rolled back
ORA-02292: integrity constraint (RD.PROJECTEDSAV_FK1) violated - child record found
ID AUTHOR_ID_OID
735 50
1 row selected.>
SQuirreL SQL:*
ID     AUTHOR_ID_OID735     50
Query 1 of 1 elapsed time (seconds) - Total: 0.08, SQL query: 0.07, Building output: 0.01
1 Row(s) Deleted
Query 1 of 1 elapsed time (seconds) - Total: 0.06, SQL query: 0.06, Building output: 0
ID     AUTHOR_ID_OID
Query 1 of 1 elapsed time (seconds) - Total: 0.09, SQL query: 0.06, Building output: 0.03
Error: ORA-02091: transaction rolled back
ORA-02292: integrity constraint (RD.PROJECTEDSAV_FK1) violated - child record found
SQLState: 40000
ErrorCode: 2091
Position: 6
ID     AUTHOR_ID_OID
735     50
Query 1 of 1 elapsed time (seconds) - Total: 0.13, SQL query: 0.06, Building output: 0.07>
Thanks in advance for any suggestion!
Edited by: Victor Ott on Mar 20, 2010 2:33 AM

Similar Messages

  • SQL Developer 1.1 Query Builder does not display connection tree

    I have installed SQL Developer 1.1 on a PC running Windows XP SP2. I am connecting to Oracle 9.2.0.7.0.
    After connecting to the database, I right click in the SQL Worksheet and select Query Builder and when the new window is displayed, there are no tables to select from.
    What is causing this?

    Hi Antony,
    Upgrading from SP7 to SP9 fixed a lot of problems for me! It's worth trying.
    Problems solved for me:
    Page requests take about 2 minutes to display page (now within a few seconds)
    KM SQL logging (30-50Mb per minute) problem fixed.
    There are some problems upgrading to SP9, but searching this forum will help you in finding some solutions for this
    Regards,
    Noel

  • SQL Developer 1.1.2.2579 will not start in Vista Ultimate 64 bit

    I have tried both versions of 1.1.2.2579 (with JRE/JDK and without). Both versions give me "The application failed to initialize properly (0xc0000018). Click OK to terminate the application." Build 1557 seems to work fine on the same machine (with UAC off. I have not tried it yet with UAC on).
    Here are some machine details: MS Windows Vista Ultimate 64 bit, default JVM Sun 1.5.0_11 [Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_11-b03, mixed mode)]. Since other folks had some problems with UAC I disabled that to see if it would make any difference. I get the same result with or without UAC when I try to launch the application normally. With UAC on and using "run as administrator" I get nothing at all. That is I get no error but the application never actually launches either. It doesn't appear to do anything at all.
    The version of 1557 that seems to work fine is the one with the JRE.

    And???
    We can't help you if you don't tell us what you tried
    and what happened when you tried it.This is message when try run on vista ultimate x64 "The application failed to initialize properly (0xc0000018). Click OK to terminate the application."
    you can help??? what is happen???
    finally sql developer run or not run on vista x64???
    p.s.: excuse-me... i don´t write in english very well.... waiting replies!!!
    thanks!
    Message was edited by:
    user571753

  • SQL Developer 3.0.04 generated scripts not compatible with Oracle 10g (XE)

    HI,
    I tried to do an export from one XE database (still 10g) to another XE database. (also 10g).
    I tried to do a database copy as well as a separate export and import (by loading the file and running as a script).
    Neither of them work without modifying the files as it seems that SQL Developer generates scripts that are only compatible with Oracle 11g.
    - Create table contains "segment creation automatic"
    - Storage clauses contain parts that are not compatible with 10g
    I ran through the wizard several times but neither can I find an option to choose for compatibility with earlier versions of Oracle.
    Checked the preferences screen as well.
    Is this a well hidden option or is it not possible to make this work for 10g.
    Extra : found workaround by removing the storage clause to the export. Is there another way that does not force me to remove the storage clause?
    Edited by: kcaluwae on 24-jun-2011 6:03

    I'm sure this is far from the supported way to fix this but, seeing that it's apparently an issue with the classpath or something in it, I hacked <sqldeveloper_install>\sqldeveloper\bin\sqldeveloper.bat and added [ORACLE_HOME]\jdbc\lib\ojdbc6.jar to the classpath. At least that gets me started with 3.0 and lets me create TNS connections.
    I'd really appreciate a better solution, if any of you kind folks knows of something.
    Thanks,
    Kelly

  • SQL Developer import from Excel or CSV not creating new table

    I am sure I have done this with previous version of SQL Developer. I am now running 1.5.4 with patches update from 5/27/2009. I am running on Windows XP. When I start the import wizard I get to the point were the varify button appears. I click Verify. Everything is successful. The next button is grayed out. The send to worksheet is not checked. I press the finish button and the new table is not created.
    I don't get any error message. I refresh my table list and the new table is not created. I can create new tables using SQL Developer so I don't think it can be a privelege problem. I know I did this a few weeks ago. I am not sure what version of SQL Developer I was running. But I have updated to the latest and greatest since then.

    I wanted to import and use my table data from MS Excel 2010 in SQL developer Version 3.1.05.
    I was told that SQL does not import .xls data. For that reason, I was searching for a script which Import data from excel to SQL developer. I tried many different forums DBS blogs. Then eventually I found the solution inside the SQL developer itself.
    In your Editor window, There would be options like,
    1. Columns | Data | Constraints |Grants | Sta...... "so on"
    2. In second row, you can find a drop box with certain table options. Select the last option "Import Data"
    THERE YOU GO.
    do accordingly to your need and you will get the data as well its scripts.
    I hope this would help you all. Thanks. :-)

  • SQL developer hangs on Win XP if not admin user

    Hi, I just installed Oracle 11g on Win XP sp2, as admin user.
    Things appear working, except for SQL Developer which runs fine only when logging in to XP as administrator.
    If I log in as a normal user, then SQL Developer hangs forever just after being started up, eating 50% of CPU. Task manager is required to stop it.
    A few more details: it hangs just after asking about file name associations, showing on the left panel the connection I did while being admin.
    SQL Plus runs just fine in any case.
    If I run the alternative version (sqldeveloper.exe), the involved window reports:
    WARNING: Unknown directive: SetSkipJ2SDKCheck
    Using oracle.home=C:\oracle\app\Admin\product\11.1.0\db_1\sqldeveloper
    Using ide.user.dir=null
    Addin: Translator PlSql is trying to register a input type (.plsql) which confli
    cts with translator PlSql who already using this input type
    28-gen-2009 16.49.18 oracle.jdbc.driver.OracleDriver registerMBeans
    GRAVE: Error while registering Oracle JDBC Diagnosability MBean.
    javax.management.InstanceAlreadyExistsException: com.oracle.jdbc:type=diagnosability,name=main11.0
    at com.sun.jmx.mbeanserver.RepositorySupport.addMBean(RepositorySupport.java:452)
    then the ide windows hangs as reported above.
    Any help is appreciated.

    - sqldev is slower - and yes my machine is fast
    - sqldev needs a mouse; the keyboard shortcuts are severely lacking
    - output window is separated from SQL window
    - It doesn't show me anything I couldn't get to before by typing commands & using TextPad
    As far as sqlplusw.exe vs sqlplus.exe, I won't get into that discussion- all I'll say is that the "workarounds" on the Internet have not addressed my concerns. (control-c exits by accident, having to edit every shortcut on every computer/server I touch which either needs admin elevation or shortcut copy/paste or both, etc)
    Either way- thanks again to sperkmandl for the solution (running sqldev as non-administrative user)! I never run on my machine as local admin; I only elevate when needed.

  • SQL Developer Error 12505 TNS:listener does not currently know of SID given

    Hi all I got this error 12505 today when trying to fire up sql developer. I have tried skimming through the forums for a possible solution yet none has been found which workes on my pc.
    My specs are :
    OS: Windows 7 Home Premium*
    DB: Oracle 11g Express Edition
    My listener.ora file
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = XE)
    (ORACLE_HOME = C:\app\Enric0\product\11.2.0\dbhome_3)
    (SID_DESC =
         (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\app\Enric0\product\11.2.0\dbhome_3)
    (PROGRAM = extproc)
         (SID_DESC =
         (SID_NAME = CLRExtProc)
         (ORACLE_HOME = C:\app\Enric0\product\11.2.0\dbhome_3)
         (PROGRAM = extproc)
    my tnsnames.ora
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST= localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    lsnrctl status gives me this
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 12-FEB-2013 22:22
    :14
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Produ
    ction
    Start Date 12-FEB-2013 22:00:29
    Uptime 0 days 0 hr. 21 min. 48 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File C:\oraclexe\app\oracle\product\11.2.0\server\network\a
    dmin\listener.ora
    Listener Log File C:\oraclexe\app\oracle\diag\tnslsnr\Enric0-PC\listener
    \alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Enric0-PC)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    lsnrctl service gives me this
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 12-FEB-2013 22:23
    :34
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    The command completed successfully
    and tnsping xe gives me this
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.2.0 - Production on 12-FEB-2
    013 22:24:12
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Used parameter files:
    C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = Enric0-P
    C)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
    OK (0 msec)
    This error occurred to me before and I reinstalled oracle xe and developer and it worked. Yet now it has returned and I kinda wanna fix it cos it's been buggin' me a lot. Any help would be greatly appreciated. Thanks for your attention.

    986483 wrote:
    Hi all I got this error 12505 today when trying to fire up sql developer. I have tried skimming through the forums for a possible solution yet none has been found which workes on my pc.
    My specs are :
    OS: Windows 7 Home Premium*
    NO Oracle version is ever certified or supported on any Home Edition of Windows.
    It appears that the DB has not yet been started.

  • Oracle SQL Developer v 1.5.3 does not export

    I attempted to export query results using Oracle SQL Developer. I right-clicked on the result and attepted to export data - it failed without explanation - nothing happened.
    I'm a new user with this product - is this a known bug and if so - could you please identify the patch and / or upgrade.
    The Oracle DB version for my appliication is 10.2.0.3. Is there a upgraded SQL Developer that should be used. Let me know - thank you.

    The more exotic the SQL, the more chances it won't export, due to the way they parse and embed your statement in an inner select.
    With every version, quite some cases get fixed, so first upgrade to 2.1. If you still see statements that fail, post them here on the forum, so the developer can debug the feature.
    Thanks,
    K.

  • Query not running in sql developer, neither connecting to database. Following error - java.util.UnknownFormatConversionException: Conversion = '0'. Please reply soon.

    when i try to connect to oracle 11g rdbms, following error occurs -->
    1. sql developer version - 4.0.3.16 (jdk - jdk1.7.0_51 externally installed) -- newly installed, giving following error when try to connect to oracle 11g rdbms.
    2. sql developer version - 3.1.07.42 (jre1.6.0 included) -- used to run earlier.
    java.util.UnknownFormatConversionException: Conversion = '0'
      at java.util.Formatter.checkText(Formatter.java:2547)
      at java.util.Formatter.parse(Formatter.java:2533)
      at java.util.Formatter.format(Formatter.java:2469)
      at java.util.Formatter.format(Formatter.java:2423)
      at java.lang.String.format(String.java:2797)
      at oracle.dbtools.raptor.backgroundTask.internal.SimpleRaptorTaskUI.getFormattedTime(SimpleRaptorTaskUI.java:288)
      at oracle.dbtools.raptor.backgroundTask.internal.RaptorTaskUI.setState(RaptorTaskUI.java:43)
      at oracle.dbtools.raptor.backgroundTask.internal.SimpleRaptorTaskUI.<init>(SimpleRaptorTaskUI.java:63)
      at oracle.dbtools.raptor.backgroundTask.internal.RaptorTaskUI.<init>(RaptorTaskUI.java:36)
      at oracle.dbtools.raptor.backgroundTask.ui.TaskProgressViewer$4.<init>(TaskProgressViewer.java:346)
      at oracle.dbtools.raptor.backgroundTask.ui.TaskProgressViewer.createTaskUI(TaskProgressViewer.java:346)
      at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager.initViewers(RaptorTaskManager.java:373)
      at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager.access$400(RaptorTaskManager.java:45)
      at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$4.run(RaptorTaskManager.java:299)
      at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager.invokeInDispatchThreadIfNeeded(RaptorTaskManager.java:313)
      at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager.addTask(RaptorTaskManager.java:302)
      at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager.addTask(RaptorTaskManager.java:200)
      at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager.addTask(RaptorTaskManager.java:161)
      at oracle.dbtools.worksheet.editor.OpenWorksheetWizard.invoke(OpenWorksheetWizard.java:425)
      at oracle.ide.wizard.WizardManager.invokeWizard(WizardManager.java:446)
      at oracle.ide.wizard.WizardManager.invokeWizard(WizardManager.java:390)
      at oracle.dbtools.worksheet.editor.WorksheetOpenController$1.run(WorksheetOpenController.java:84)
      at oracle.dbtools.worksheet.editor.WorksheetOpenController.openWorksheetWizard(WorksheetOpenController.java:90)
      at oracle.dbtools.worksheet.editor.WorksheetOpenController.handleEvent(WorksheetOpenController.java:49)
      at oracle.ide.controller.IdeAction$ControllerDelegatingController.handleEvent(IdeAction.java:1482)
      at oracle.ide.controller.IdeAction.performAction(IdeAction.java:663)
      at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:1153)
      at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:618)
      at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
      at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
      at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
      at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
      at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
      at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
      at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
      at java.awt.Component.processMouseEvent(Component.java:6505)
      at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
      at java.awt.Component.processEvent(Component.java:6270)
      at java.awt.Container.processEvent(Container.java:2229)
      at java.awt.Component.dispatchEventImpl(Component.java:4861)
      at java.awt.Container.dispatchEventImpl(Container.java:2287)
      at java.awt.Component.dispatchEvent(Component.java:4687)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
      at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
      at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
      at java.awt.Container.dispatchEventImpl(Container.java:2273)
      at java.awt.Window.dispatchEventImpl(Window.java:2719)
      at java.awt.Component.dispatchEvent(Component.java:4687)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
      at java.awt.EventQueue.access$200(EventQueue.java:103)
      at java.awt.EventQueue$3.run(EventQueue.java:694)
      at java.awt.EventQueue$3.run(EventQueue.java:692)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
      at java.awt.EventQueue$4.run(EventQueue.java:708)
      at java.awt.EventQueue$4.run(EventQueue.java:706)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
      at oracle.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
      at oracle.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

    Around a month ago, a similar question appeared on Jeff's block... look for checkText in http://www.thatjeffsmith.com/ask-a-question/
    There was no resolution there, so (as the SQL Developer code in that area has not changed) I would tend to think it might have something to do with
    1. Your Locale affecting the Formatter class's parsing of that pattern; or
    2. A bug in the jdk version in use, probably also related to the Locale.
    I recommend upgrading to the latest jdk1.7.0_xx update.  If that does not solve the issue, then try changing the Locale.

  • Oracle SQL Developer (Not seeing object names within the interface)

    Hello,
    I was finally able to perform an export/import from our production environment to our training environment. Anyway, this was done using the SYS account and for some reason, I have an issue where in Oracle SQL Developer, there are no object names being displayed, but the objects do exist within SQLPLUS if I should query the table.
    The following error message displays when I refresh any of the objects folders within SQL Developer:
    ORA-00942: table or view does not exist
    Any ideas would be greatly appreciated.
    Thank you.

    825084 wrote:
    I'm pretty new to the Oracle DBA space but not to SQL Server Ah. The first thing you need to do is check everything you think you know about rdbms at the door. The similarity between SQL Server and Oracle ends right after SELECT * FROM EMP.
    Even the term "database" has different meanings.
    First thing I see, in your original post, is that you did the export/import as SYS. Was this "as sysdba"?
    From Oracle® Database Utilities
    10g Release 2 (10.2):
    Invoking Export and Import As SYSDBA
    SYSDBA is used internally and has specialized functions; its behavior is not the same as for generalized users. Therefore, you should not typically need to invoke Export or Import as SYSDBA, except in the following situations:
    * At the request of Oracle technical support
    * When importing a transportable tablespace set
    so it's quite possible that I missed something during the import/export of the environments.
    Are there any system tables that get invoked when you click on any of the objects within the connection?

  • Create trigger not audited when run from sql developer Version 3.2.20.09

    Creating or editing a trigger is not being stored in the audit table when run from sql developer.
    Here is a sample script to show the issue:
    Grant Connect,create table,create trigger To testuser Identified By testuser;
    create table testuser.testtab(t1 number);
    Select Count(*) From Dba_Audit_Trail Where Owner='TESTUSER';
    CREATE OR REPLACE TRIGGER testuser.testtab_bi_trg BEFORE
      Insert
          ON testuser.testtab FOR EACH ROW
    begin
      null;
    end;
    Select Count(*) From Dba_Audit_Trail  Where Owner='TESTUSER';
    drop user testuser cascade;
    If I run the script from sql developer the CREATE TRIGGER statement does not get audited.
    If I run the script from sql plus or All Arround Automations PL/SQL Developer the CREATE TRIGGER statement does get audited.
    If I edit the trigger from sql developer the CREATE TRIGGER statement does not get audited.
    If I edit the trigger from  All Arround Automations PL/SQL Developer the CREATE TRIGGER statement does get audited.

    DoyleFreeman wrote:
    Not sure what you mean by "perform the audit".
    Have you tested my script? Does the "Select Count(*) From Dba_Audit_Trail  Where Owner='TESTUSER';" increment by 1 after each of the ddl statements or only after the Create table statement.
    Your question doesn't have ANYTHING to do with sql developer and should be posted in the Database General forum
    https://forums.oracle.com/community/developer/english/oracle_database/general_questions
    Yes - and it works just fine once you ENABLE AUDITING. Your scripIt  does NOT include the statements or code used to ENABLE auditing and, specifically, enable auditing for triggers.
    Auditing doesn't just 'happen'; you have to enable it and you have to specify any non-default auditing that you want to perform.
    Have you read any of the extensive documentation about auditing to learn how to use it?
    See the Database Security Guide
    http://docs.oracle.com/cd/E11882_01/network.112/e16543/auditing.htm
    Also see 'Auditing Functions, Procedures, Packages, and Triggers
    http://docs.oracle.com/cd/E11882_01/network.112/e16543/auditing.htm#BCGBEAGC
    And see the AUDIT statement in the SQL language doc for how to specify auditing of specific operations.
    http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_4007.htm
    Select count(*) From Dba_Audit_Trail  Where (Owner='SCOTT' or username = 'SCOTT')
    and action_name = 'CREATE TRIGGER';
    COUNT(*)
    0
    audit create trigger by scott
    CREATE OR REPLACE TRIGGER emp_copy_bi_trg BEFORE
      Insert
          ON emp_copy FOR EACH ROW
    begin
      null;
    end;
    Select count(*) From Dba_Audit_Trail  Where (Owner='SCOTT' or username = 'SCOTT')
    and action_name = 'CREATE TRIGGER';
    COUNT(*)
    1

  • Oracle sql developer not installing or start on mac os x 10.9

    Hello ,
    i installed oracle sql developer 4 , on macbook pro with retina display , 10.9
    and when i click the icon it's still loading and no response !! i leave it 1 hour and the same problem .
    i have attached the screenshot ,
    please check it 

    i use no problem.

  • Getting error while connecting to DB in PL/SQL developer.

    Hi Experts,
    I am able to connect to the DB in TOAD ,
    but I am not able to connect to the DB in PL/SQL developer.
    PL/SQL developer
    Version 8.0.1.1498
    01.61091 - Unlimited user license
    Windows 7 6.1 Build 7601 (Service Pack 1)
    Oracle 11g
    I am getting the below error
    ORA-12154: TNS could not resolve the connect identifier specified.
    Please help me why I am able to connect in TOAD
    not able to connect in PL/SQL developer.
    Thanks in advance.

    973205 wrote:
    Hi Experts,
    I am able to connect to the DB in TOAD ,
    but I am not able to connect to the DB in PL/SQL developer.
    PL/SQL developer
    Version 8.0.1.1498
    01.61091 - Unlimited user license
    Windows 7 6.1 Build 7601 (Service Pack 1)
    Oracle 11g
    I am getting the below error
    ORA-12154: TNS could not resolve the connect identifier specified.
    Please help me why I am able to connect in TOAD
    not able to connect in PL/SQL developer.
    Thanks in advance.Also note that PL/SQL Developer is not an Oracle product, so this is not the place to ask for support for that product. You should go to the vendors website (http://www.allroundautomations.com/plsqldev.html)

  • Issue in connection with database using SQL Developer.

    Hi,
    I am facing a problem in connecting to a remote oracle database, below are the configuration setting which i am trying to use in sql developer to make the connection
    TNS Configuration Details (SUDHIR)
    SUDHIR=
    (DESCRIPTION=
    (ADDRESS=
    (PROTOCOL=TCP)
    (HOST=52.12.xxx.xxx)
    (PORT=1526)
    (CONNECT_DATA=
    (SERVICE_NAME=sudhir)
    User : system
    Password : xxxxxxxxxxx
    Database : sudhir
    Connect as : Normal
    I got the above credential details from Onsite team I need to connect this in my local sytem SQL Developer I am proving the connection as below
    Hostname : 52.12.xxx.xxx
    Port : 1526
    Service Name : sudhir
    Username : xxxxxxxxxxxxxx
    password : xxxxxxxxxxxxx
    I get following error when say test connection in sql developer.
    "The Network Adapter could not establish the connection."
    Please suggest me using the above details how to make the connection success. Please let me know.
    Thanks
    Sudhir
    Edited by: BluShadow on 30-Mar-2012 11:56
    data anonymised by moderator

    (o_0)
    Hopefully for you, the machine is not reachable from internet !
    Your giving online everything needed to log in as system ! that is quite dangerous. I guess the "Onsite team" would be pretty mad discovering that.
    You should edit your previous post before too much people get to it.
    Regarding your problem, I guess you can't get to the machine itself (maybe in a different network).
    Can you try to ping it from your computer ?ping 51.17.130.121
    This is a made-up IP, you'll have to replace with yours

  • Problems using Quick Migrate in SQL Developer 1.5 for MySQL to Oracle 10g

    Hi all,
    I am trying to use SQL Developer 1.5 migration tools (Quick Migrate) to perform online capture and build source model to migrate from MySQL 5.x to Oracle 10g on Windows platform. I get these errors and the Quick Migrate process fails:
    oracle.dbtools.metadata.persistence.PersistableObject.doInsert(PersistableObject.java:238)
    I did a search and used the sqldeveloper.cmd script but still fails. Then I created a new database and truncated the repository. I now get the above error plus two new ones listed below:
    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    Error loading nls:OALL8 is in an inconsistent state
    Error occurred during capture: Protocol violation
    It fails during the capture process for MySQL 5.1 database
    when it begins to capture the tables from MySQL.
    Does anyone know how to resolve these issues when migrating from MySQL to Oracle 10g using Quick Migrate with SQL Developer 1.5 release?
    Regards,
    Ben Prusinski
    Message was edited by:
    benprusinski
    Message was edited by:
    benprusinski

    Hi all,
    I put the following in my sqldeveloper.cmd file:
    SET ORACLE_HOME=%CD%
    What is very confusing is that with SQL Developer 1.5, there are several levels and several SQL Developer executables! I am really not sure which of these to use:
    I created the SQLDeveloper 1.5 directory called SQLDeveloper1_5 on Windows:
    1) cd C:\sqldeveloper1_5\sqldeveloper-5338
    there exists a sqldeveloper.exe
    2) cd c:\sqldeveloper1_5\sqldeveloper-5338\sqldeveloper\sqldeveloper.exe
    3) cd c:\sqldeveloper1_5\sqldeveloper-5338\sqldeveloper\sqldeveloer\bin\sqldeveloper.exe
    Which SQLDeveloper 1.5 executable should I be using and where should I place the
    sqldeveloper.cmd file?
    Also I did try to use a different database and schema for the repository with Quick Migrate but it appears a bug exists in SQL Developer 1.5 version that causes errors with Quick Migrate for MySQL to Oracle? Is this correct?
    As an update, I ran the following commands:
    cd to
    c:\sqldeveloper1_5\sqldeveloper-5338\sqldeveloper\sqldeveloper\bin
    sqldeveloper.cmd sqldeveloper.exe
    Start sqldeveloper.exe
    Perform standard capture for MySQL using the new mig2 schema as the new repository
    It starts the capture but fails on the errors below:
    Error loading nls:OALL8 is in an inconsistent state
    UPDATE
    ============================
    I tried this again and it worked with the exception of one error message listed below:
    Here are the steps that I followed:
    1. Create a Windows cmd script
    Put the following entries in the script:
    SET ORACLE_HOME=%CD%
    save the command windows script as sqldeveloper.cmd
    Copy this script to the base installation directory for SQLDeveloper
    Example:
    1. cd c:\SQLDeveloper1_5\sqldeveloper-5338\sqldeveloper
    2. Start SQLDeveloper with the command script that you created earlier
    Example:
    Open a Windows shell prompt window and execute the following scripts:
    a) sqldeveloper.cmd sqldeveloper.exe
    b) sqldeveloper.exe
    3) In SQL Developer 1.5
    From the Migrate menu,
    a) Delete current repository and create a new schema in Oracle target database call it mig2.
    b) Then create a new repository in SQL Developer 1.5
    c) Right mouse click on the MySQL 5.x database and choose capture
    It worked with the exception of one error message:
    o.jdbc.driver.OracleDriver     
    Error while registering Oracle JDBC Diagnosability MBean.
    So it looks like something is screwed up with my JDBC drivers and configuration for MySQL. How do I diagnose the JDBC driver issue for MySQL?
    Thanks!!!
    Ben
    Thanks
    Ben

Maybe you are looking for

  • Odd Behavior with Segmented Control (iPhone OS 3.1)

    I have this method, which is supposed to change the color that a shape is to be drawn in when I change the value of a segmented control: - (IBAction)changeColor: (id)sender { UISegmentedControl *control = sender; NSInteger index = [control selectedSe

  • I want to know N8's preloaded content.

    I've bought a new N8 from someone who got it with him from France, the box was open but he told me that this was just because he had to check the purple screen and that he hasn't used the phone before, now I'm a bit skeptic because I couldn't find an

  • PDF page display order

    i'm always creating original documents (for example invoices that can be edited) in microsoft word 2008 for mac version 12.3.3 (120411) - then save them as a PDF file i'm using version 9.5.1 to my desktop - problem is somewhere in the conversion proc

  • I Tunes wouldn't burn MP3 disc-error 4500

    i Tunes wouldn't burn an MP3 disc- mentioned error 4500-anyone know what this relates to?

  • Windows 7 acrobat pro 9 preview pdf in explorer

    I cannot preview pdf files in windows explorer, I am using acrobat pro 9, windows 7 64bit