Commits in PL SQL

Hello world

May I know if there is a maximum or optimum of transactions which may occur before a commit is executed?

My problem is caused by the command commit not allowing the use of WHERE CURRENT OF in a loop for updating the current record. The result is a need for research through the large table (3 million records) again so that the record to current day.

(A side note is that using WHERE CURRENT OF reduce the execution time of the script from 20 min to 1 min for a test case 10 k.) A linear calculation means that 3 million records is gong to take 10 days...)

I suggest to my supervisor didn't commit until after the end of the loop, but I need some technical information to explain that it is better validation after validation or loop after each record. What is the advantage and disadavantage of the two of them?

Thanks in advance and sorry that I can not put the original script up due to privacy concerns...

Kind regards
phyrexians

BTW, WHERE COURSES use only the rowid, so if you want the same effect you could simply include the rowid in your cursor and replace WHERE CURRENT OF WHERE rowid = r.rwd. But if it was your code, it is highly likely, you can replace the entire construction with an appropriate SQL UPDATE statement.

Edited by: William Robertson on May 22, 2009 23:11

Tags: Database

Similar Questions

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

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

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

    Thanks for your help...

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

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

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

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

    of svnkit 1.2 to

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

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

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

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

  • RowAlreadyDeletedException so that the line exists in the database

    Hello

    JDev 11.1.2.4

    I put in place the mechanism to keep the current line on the restoration.

    http://andrejusb.blogspot.ch/2013/03/ADF-rollback-and-keep-current-row.html

    In a managed bean I call the restore operation, and if the restoreCurrentRow is called on all your.

    The code is in the VOImpl database which all your runs from:

    protected void restoreCurrentRow() {}

    If (currentRowKey! = null) {}

    _logger.fine ("START RESET CURRENT ROW");

    _logger.info ("restoreCurrentRow" + this.getClass () + "" + currentRowKey + "" + this.getName ());

    this.executeQuery (); < = RowAlreadyDeletedException thrown here

    Key k = new Key (currentRowKey.getAttributeValues ());

    [] Found line = this.findByKey (k, 1);

    If (found! = null & & found.length == 1) {}

    Line r = this.getRow (k);

    this.setCurrentRow (r);

    If (r! = null & & currentRowIndexInRange > = 0) {}

    this.scrollRangeTo (r, currentRowIndexInRange);

    }

    }

    _logger.fine ("FINISHING RESET CURRENT ROW");

    }

    currentRowKey = null;

    }

    For on VO, I get an RowAlreadyDeletedException exception:

    < Utils > < buildFacesMessage > ADF: addition of the following JSF error: line entity with key oracle.jbo.Key [2044346 null] is not in VwWrkdclWrkTitle.

    oracle.jbo.RowAlreadyDeletedException: Houston-25019: line entity with key oracle.jbo.Key [2044346 null] is not in VwWrkdclWrkTitle.

    at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelectForAltKey(OracleSQLBuilderImpl.java:875)

    at oracle.jbo.server.BaseSQLBuilderImpl.doEntitySelect(BaseSQLBuilderImpl.java:552)

    at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:8311)

    at oracle.jbo.server.EntityImpl.populate(EntityImpl.java:6975)

    at oracle.jbo.server.EntityImpl.merge(EntityImpl.java:7314)

    at oracle.jbo.server.EntityCache.addForAltKey(EntityCache.java:1087)

    at oracle.jbo.server.EntityCache.add(EntityCache.java:541)

    at oracle.jbo.server.ViewRowStorage.entityCacheAdd(ViewRowStorage.java:3173)

    at oracle.jbo.server.ViewRowImpl.entityCacheAdd(ViewRowImpl.java:3799)

    at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:5913)

    at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3637)

    at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:3492)

    at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2209)

    at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:5125)

    at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2961)

    at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2817)

    at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:3058)

    at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:2797)

    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1255)

    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:1413)

    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:1319)

    at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:1304)

    at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:7211)

    at org.xxx.common.model.adfbc.base.MyViewObjectImpl.restoreCurrentRow(MyViewObjectImpl.java:238)

    at org.xxx.common.model.adfbc.base.MyViewObjectImpl.afterRollback(MyViewObjectImpl.java:230)

    at oracle.jbo.server.DBTransactionImpl.rollback(DBTransactionImpl.java:2544)

    at oracle.adf.model.bc4j.DCJboDataControl.rollbackTransaction(DCJboDataControl.java:1600)

    VwWrkdclWrkTitle is a SQL view.

    In the managed bean, I call a PL/SQL operation. PL/SQL commits the changes, and then I call the restore operation.

    So I set a breakpoint after the operation of PL/SQL and test the SQL and I get a single record. Because the PL/SQL is committed, before restoring SQL must return the same as the restoreCurrentRow method.

    I do not understand this RowAlreadyDeletedException exception because the line exists.

    Thank you

    I changed to a primary key that is never zero, and it works. Seems to be a bug in the ADF.

  • change the copy and upgrade project options

    Hello

    FSCM90 and tools 8.49

    I opened my project in the application designer. On the upgrade tab, I see that the action is EXEMPLARY and UPGRADE is checked.

    Then I run the following text in the database:

    UPDATE PSPROJECTITEM SET TAKEACTION = 0, UPGRADEACTION = 0 WHERE PROJECTNAME = "MYPROJECT"


    Can I reload the project. But again upgrade tab, I see that the action is EXEMPLARY and UPGRADE is checked.


    Why update table PSPROJECTITEM dose not change my project in the application, update TAB Designer?


    Another way to change them without doing it manually?


    Thank you.

    Update of tables via SQL tools is generally not supported by Oracle.

    Both explanations possible, why you do not see your updates...

    1. You didn't do your update before reloading the project.
    2. More likely, since version psprojectdefn was not changed you reloaded the original project from the cache.

    If you run the application using the Designer 2 levels that you can try to clear the cache of your office after running and committing your update sql. If you run in mode 3 levels you need to clear the cache of application server. Do not try to update the version in psprojectdefn unless the Support of Oracle is ready to provide you with the instructions to do it correctly. It requires corresponding updates to multiple tables.

    Note that upgradeaction = 0 corresponds to the action = COPY, so your sql is not really changed this value.

    In addition, if you want to change the action for all the objects in a project you can do easily in any case app designer - open the project, switch to the upgrade tab and open the grid details for any object type, and then either right-click on any object (or select Edit-> update from the main menu) and then set the Action for the project and choose copy or delete.

    You can not change flag for upgrade to a draft set of the designer of the app, but you can change it for all objects of a given type. Open the details for the type of object from the upgrade tab, and then click in the top left box in the grid (next to the heading "key ") to select all, then right click and choose UNTAG ro Tag for upgrade. Alternatively, you can uncheck specific definition types during the copy of the project. If you want to copy the definition of the project without copying the object definitions at all, just click deselect all next to the definition (s) on the database copy Panel (and copy project definition is checked, of course).

    Kind regards

    Bob

  • Prevent overlap date (date)

    Hello

    I use Oracle 11.2.0.3.

    I have table of APPOINTMENT:

    (ID NUMBER PK, FROM_TIME, TIMESTAMP TIMESTAMP TILL_TIME, NOTES VARCHAR2 (200))

    I want to keep end users of appointments that overlaps with other appointments.

    I created this trigger:

    Create or replace TRIGGER  "APPOINTMENT_CK" 
     BEFORE 
      INSERT OR UPDATE ON APPOINTMENT  FOR EACH ROW 
    BEGIN  
    
    IF 
    :new.FROM_TIME  BETWEEN FROM_TIME AND TILL_TIME  
    OR
    :new.TILL_TIME  BETWEEN FROM_TIME AND TILL_TIME  
    THEN 
    raise_application_error
                (-20000
                 , 'Please choose another date/time. The Dr is already busy in that time.'); 
    end if;
    END;
    

    But it seems that I can't use the name of column here. What is the solution?

    Kind regards

    SQL > CREATE TABLE "APPOINTMENT."

    ('ID' NUMBER (4,0) NULL NOT ACTIVATE,)

    ACTIVATE THE LEGEND "FROM_TIME" (6) NOT NULL,

    ACTIVATE THE LEGEND "TILL_TIME" (6) NOT NULL,

    VARCHAR2 (1) 'CONFIRMED' BY DEFAULT 'N',.

    VARCHAR2 (200) "NOTE."

    VARCHAR2 (1) 'CANCELLED' BY DEFAULT 'N',.

    Enable constraint primary key 'APPOINTMENT_PK' ('ID')

    )

    /

    table created "APPOINTMENT".

    SQL > alter the appointment of table add constraint appt_time_range check (till_time > from_time)

    /

    table altered APPOINTMENT.

    SQL > create materialized view appointment with rowid journal

    /

    materialized view created LOG.


    -Materialized view of the type of JOIN. You need the ROWID to compare with the materialized view log.

    -Each overlap will create a line in the materialized view

    SQL > create materialized view appt_no_overlap

    build fast on validation as immediate refresh

    Select a.rowid a_rowid, b.rowid b_rowid

    appointment a, b of appointment

    where a.rowid<>

    and a.from_time<>

    and a.till_time > b.from_time

    /

    materialized view created APPT_NO_OVERLAP.

    -The constraint is always false, meaning if there is no line in the MV of the constraint fails

    SQL > alter table appt_no_overlap add the verification of appt_no_overlap of the constraint (1 = 0) can be delayed

    /

    table altered APPT_NO_OVERLAP.

    SQL > insert into appointment values (1, trunc (sysdate) + interval '8' time, trunc (sysdate) + time-span '9', 'n', null, 'n')

    /

    1 inserted rows.

    SQL > validation

    /

    committed.

    SQL > insert into appointment values (2, trunc (sysdate) + interval '9' hour, trunc (sysdate) + time interval '10', 'n', null, 'n')

    /

    1 inserted rows.

    SQL > validation

    /

    committed.

    SQL > insert into appointment values (3, trunc (sysdate) + interval '7' hour, trunc (sysdate) + time-span '9', 'n', null, 'n')

    /

    1 inserted rows.

    SQL > validation

    Error report:

    SQL error: ORA-12008: error in the path of refresh materialized view

    ORA-02290: check constraint (STEW. APPT_NO_OVERLAP) violated

    SQL > insert into appointment values (3, trunc (sysdate) + interval '9' hour, trunc (sysdate) + time-span '11', 'n', null, 'n')

    /

    1 inserted rows.

    SQL > validation

    Error report:

    SQL error: ORA-12008: error in the path of refresh materialized view

    ORA-02290: check constraint (STEW. APPT_NO_OVERLAP) violated

    -Commit, if there is no line in the MV the constraint fails, everything is restored and the MV becomes empty.

    SQL > select * from appt_no_overlap

    /

    no selected line

  • Supported SQL Server Service Pack

    An existing customer running PO 2.3.4 in production wants to upgrade their servers to database from the basic SQL Server 2008 R2 SP1 or SP2 installation.  Given that these are not called explicitly supported in the product documentation, the client wishes to confirm that by applying a service pack will not consider running an unsupported configuration.

    He is a client of MS running orchestration developed for use AS commitment, while they are not content IAC out-of-the-box running.  If the question arises in a perspective of product support PO.

    Thanks for any information you can provide.

    The specific answer for you is Yes that it is supported. The general answer to MSSQL DB support is that we only document level R (2008 MSSQL or MSSQL 2008 R2) in the compatibility matrix and service packs are supported but not necessarily tested as they come out.

  • PL/SQL NextVal sequence cache?

    Hello!

    (1) I created an element of 'view only '.

    (2) I hold the previous item in the ID.nextval of a table

    now I have a problem is:

    The element correctly take the nextval... ex 540, but if I do not insert any folder to the database and close the page, when I will reopen the page id in the element will be + 1! (541)

    Why this is happening? Any idea? (I set cache to 0 in the sql order)

    Thank you

    Hello

    When the trigger activated sequence as each an adds.it time no matter if you committed it or restore operation

    Example:

    Select double sequence_name.nextval;

  • SQL Developer to crash at startup.

    I made several attempts using different versions of SQL Developer and different versions of Java on the machine with Microsoft Windows 8.1 Build Enterprise (x 64) 9600.

    sqldeveloper - 4.0.1.14.48 - no - jre.zip 235,385,812

    sqldeveloper - 4.1.2.20.64 - no - jre.zip 329,066,864

    sqldeveloper - 4.1.2.20.64 - x 64.zip 399,957,535

    sqldeveloper64 - 3.0.04.34 - no - jre.zip 154,645,086

    sqldeveloper64 - 3.2.20.09.87 - no - jre.zip 182,052,469

    sqldeveloper - 4.1.3.20.78 - no - jre.zip 331,401,110

    Example of process:

    (1) files extracted to sqldeveloper - 4.1.2.20.64 - no - jre.zip

    (2) run sqldeveloper

    (3) window appears asking you to JDK home - click 'Browse '.

    (4) access to the Java/jdk1.8.0_65 - click on "select a folder.

    (5) confirm the path with "OK".

    (6) beginning of the program - the start screen flashes on the screen, but for a short period of time (tenths of a second).

    (7) nothing else is happening.

    (8) for execution sqldeveloper again not questions about the JDK. All splash screen (once again just flash).

    (9) in the Manager of tasks (details) I see for about a half second the process 'sqldeveloper64W.exe '.

    I've tried combinations of different JDK and version of the SQL Developer - some versions display warning on the supported Java versions.

    The latest version I managed to run (ignoring warning) 3.2.20.09 has been building hand - 09.87 using java jdk1.8.0_65.

    No luck with all versions 4 +.

    I also tried to collect debugging information as described in http://www.thatjeffsmith.com/archive/2012/06/how-to-collect-debug-info-for-oracle-sql-developer/

    First attempt was unsuccessful - screen displayed for the second half and then again in line with command prompt is displayed in the CMD window.

    I tried several times and finally was fast enough to press ctr + pause/break in this short time.

    I tried it with versions 4.1.2.20.64 and 4.1.3.20.78. The latest is here:

    
    2016-01-14 15:01:18
    Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.65-b01 mixed mode):
    
    
    "AWT-EventQueue-0" #15 prio=6 os_prio=0 tid=0x00000000160e7800 nid=0x66c runnabl
    e [0x0000000016d7e000]
       java.lang.Thread.State: RUNNABLE
            at com.sun.imageio.spi.FileImageInputStreamSpi.createInputStreamInstance
    (FileImageInputStreamSpi.java:55)
            at javax.imageio.ImageIO.createImageInputStream(ImageIO.java:357)
            at javax.imageio.ImageIO.read(ImageIO.java:1304)
            at oracle.ide.osgi.boot.SplashScreenImpl$ImagePanel.<init>(SplashScreenI
    mpl.java:273)
            at oracle.ide.osgi.boot.SplashScreenImpl.jbInit(SplashScreenImpl.java:18
    7)
            at oracle.ide.osgi.boot.SplashScreenImpl.<init>(SplashScreenImpl.java:15
    2)
            at oracle.ide.osgi.boot.api.SplashScreen$1.run(SplashScreen.java:62)
            at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
            at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
            at java.awt.EventQueue.access$500(EventQueue.java:97)
            at java.awt.EventQueue$3.run(EventQueue.java:709)
            at java.awt.EventQueue$3.run(EventQueue.java:703)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionP
    rivilege(ProtectionDomain.java:76)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
    ad.java:201)
            at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
    java:116)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:105)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    
    
    ^       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    C       at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    
    
    "AWT-Windows" #13 daemon prio=6 os_prio=0 tid=0x00000000160e6800 nid=0x26a8 runn
    able
    [0x0000000016c7f000]
       java.lang.Thread.State: RUNNABLE
      at sun.awt.windows.WToolkit.eventLoop(Native Method)
            at sun.awt.windows.WToolkit.run(WToolkit.java:306)
            at java.lang.Thread.run(Thread.java:745)
    
    
    "AWT-Shutdown" #12 prio=5 os_prio=0 tid=0x00000000160e4000 nid=0x278 in Object.w
    ait() [0x0000000016b7f000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            - waiting on <0x00000000efa047d0> (a java.lang.Object)
            at java.lang.Object.wait(Object.java:502)
            at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:295)
            - locked <0x00000000efa047d0> (a java.lang.Object)
            at java.lang.Thread.run(Thread.java:745)
    
    
    "Java2D Disposer" #11 daemon prio=10 os_prio=2 tid=0x00000000160e3000 nid=0x60 i
    n Object.wait() [0x0000000016a7f000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            - waiting on <0x00000000ef9ff4b0> (a java.lang.ref.ReferenceQueue$Lock)
            at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
            - locked <0x00000000ef9ff4b0> (a java.lang.ref.ReferenceQueue$Lock)
            at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164)
            at sun.java2d.Disposer.run(Disposer.java:148)
            at java.lang.Thread.run(Thread.java:745)
    
    
    "Service Thread" #9 daemon prio=9 os_prio=0 tid=0x0000000015ac0800 nid=0x80c run
    nable [0x0000000000000000]
       java.lang.Thread.State: RUNNABLE
    
    
    "C1 CompilerThread2" #8 daemon prio=9 os_prio=2 tid=0x000000001414d800 nid=0x149
    c waiting on condition [0x0000000000000000]
       java.lang.Thread.State: RUNNABLE
    
    
    "C2 CompilerThread1" #7 daemon prio=9 os_prio=2 tid=0x000000001414b000 nid=0x1f9
    4 waiting on condition [0x0000000000000000]
       java.lang.Thread.State: RUNNABLE
    
    
    "C2 CompilerThread0" #6 daemon prio=9 os_prio=2 tid=0x0000000014146800 nid=0x254
    0 waiting on condition [0x0000000000000000]
       java.lang.Thread.State: RUNNABLE
    
    
    "Attach Listener" #5 daemon prio=5 os_prio=2 tid=0x0000000014144800 nid=0xde0 ru
    nnable [0x0000000000000000]
       java.lang.Thread.State: RUNNABLE
    
    
    "Signal Dispatcher" #4 daemon prio=9 os_prio=2 tid=0x0000000014143000 nid=0x1130
     waiting on condition [0x0000000000000000]
       java.lang.Thread.State: RUNNABLE
    
    
    "Finalizer" #3 daemon prio=8 os_prio=1 tid=0x000000000229b800 nid=0x13bc in Obje
    ct.wait() [0x00000000154af000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            - waiting on <0x00000000ef5870b8> (a java.lang.ref.ReferenceQueue$Lock)
            at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
            - locked <0x00000000ef5870b8> (a java.lang.ref.ReferenceQueue$Lock)
            at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164)
            at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209)
    
    
    "Reference Handler" #2 daemon prio=10 os_prio=2 tid=0x0000000014108800 nid=0xd8c
     in Object.wait() [0x00000000153af000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            - waiting on <0x00000000ef586af8> (a java.lang.ref.Reference$Lock)
            at java.lang.Object.wait(Object.java:502)
            at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:157)
            - locked <0x00000000ef586af8> (a java.lang.ref.Reference$Lock)
    
    
    "main" #1 prio=5 os_prio=0 tid=0x00000000021a3800 nid=0x2274 in Object.wait() [0
    x000000000013e000]
       java.lang.Thread.State: WAITING (on object monitor)
            at java.lang.Object.wait(Native Method)
            - waiting on <0x00000000efa09b08> (a java.awt.EventQueue$1AWTInvocationL
    ock)
            at java.lang.Object.wait(Object.java:502)
            at java.awt.EventQueue.invokeAndWait(EventQueue.java:1313)
            - locked <0x00000000efa09b08> (a java.awt.EventQueue$1AWTInvocationLock)
    
    
            at java.awt.EventQueue.invokeAndWait(EventQueue.java:1294)
            at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1348)
            at oracle.ide.osgi.boot.SplashScreenImpl.SynchronizeWithEdt(SplashScreen
    Impl.java:539)
            at oracle.ide.osgi.boot.api.SplashScreen.createInstance(SplashScreen.jav
    a:66)
            - locked <0x00000000ef9b5698> (a java.lang.Object)
            at oracle.ide.osgi.boot.OracleIdeLauncher.showSplashScreen(OracleIdeLaun
    cher.java:821)
            at oracle.ide.osgi.boot.OracleIdeLauncher.main(OracleIdeLauncher.java:11
    3)
    
    
    "VM Thread" os_prio=2 tid=0x0000000014107800 nid=0x24fc runnable
    
    
    "GC task thread#0 (ParallelGC)" os_prio=0 tid=0x00000000021bb000 nid=0x201c runn
    able
    
    
    "GC task thread#1 (ParallelGC)" os_prio=0 tid=0x00000000021bd800 nid=0xfb4 runna
    ble
    
    
    "GC task thread#2 (ParallelGC)" os_prio=0 tid=0x00000000021bf000 nid=0x1f48 runn
    able
    
    
    "GC task thread#3 (ParallelGC)" os_prio=0 tid=0x00000000021c0800 nid=0x1b4c runn
    able
    
    
    "VM Periodic Task Thread" os_prio=2 tid=0x0000000015af8800 nid=0x408 waiting on
    condition
    
    
    JNI global references: 341
    
    
    Heap
     PSYoungGen      total 38400K, used 6704K [0x00000000ef580000, 0x00000000f200000
    0, 0x0000000100000000)
      eden space 33280K, 20% used [0x00000000ef580000,0x00000000efc0c0a0,0x00000000f
    1600000)
      from space 5120K, 0% used [0x00000000f1b00000,0x00000000f1b00000,0x00000000f20
    00000)
      to   space 5120K, 0% used [0x00000000f1600000,0x00000000f1600000,0x00000000f1b
    00000)
     ParOldGen       total 87552K, used 0K [0x00000000ce000000, 0x00000000d3580000,
    0x00000000ef580000)
      object space 87552K, 0% used [0x00000000ce000000,0x00000000ce000000,0x00000000
    d3580000)
     Metaspace       used 7621K, capacity 7854K, committed 7936K, reserved 1056768K
      class space    used 879K, capacity 968K, committed 1024K, reserved 1048576K
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    Please let me know if all the config files or additional information would help

    Concerning

    Location of these files can cause problems? It does not prevent SQL Developer 3.2 work.

    Apparently. Director of the company may shed some light on why this is true. In practice, you can try to force the SQL Developer user settings in a local folder that is writable, discutΘ in: problem starting sql developer 4.1.1.19.59

    For convenience, here's an excerpt.  Use your 4.1.3.20.78x64 installation.  Choose a path to a local folder, even one on a flash drive.  Should work.

    Add something like this line to the file sqldeveloper.conf to your installation:

    AddVMOption - Dide.user.dir =

  • Select DataSet from the pl/sql table

    Hi Experts,

    I need to create a metric of OEM 12 c extensions. I must create a pl/sql code that can return results to OEM.

    The following code works in OEM. But the problem is that I need to create a permanent table for this case.

    Could you please tell any other option available to do this without creating additional objects at the database level?

    Based on the requirement of the OEM, the end of the script, I have to do something like ' open: 1 to select in the <>' to return the results in a table.

    Thank you.

    ###########################################################################################

    DECLARE

    TYPE cur_type IS REF CURSOR;

    CURSOR c1 IS

    SELECT distinct (owner: '.) ' || queue_table) as queue_table FROM dba_queues;

    l_cur_string VARCHAR2 (200);

    C2 cur_type;

    v_queue VARCHAR2 (128);

    number of v_ready;

    BEGIN

    run immediately "remove sys.testing";

    FOR v_queue_table IN c1 LOOP

    l_cur_string: ='select q_name, count (*) from ' | v_queue_table.queue_table | ' where State = 0 or (State = 1 and sysdate > nvl (delay, enq_time)) q_name group ';

    OPEN c2 FOR l_cur_string;

    LOOP

    C2-FETCH INTO v_queue, v_ready;

    OUTPUT WHEN c2% NOTFOUND;

    run immediately ' insert into sys.testing values (: v_queue,: v_ready) "using v_queue, v_ready;"

    OPEN: 1 for select * from sys.testing;

    commit;

    END LOOP;

    CLOSE C2;

    END LOOP;

    END;

    ###################################################################################

    In addition, committing inside of cursor loops are false.  You should never engage at the end of a business logic operation, NEVER in cursor loops.

    Something along these lines (untested) is probably what you want:

    var refcursor rc;

    declare

    SQL varchar2 (32767).

    Start

    SQL: = q'[select

    table_name,

    TO_NUMBER)

    ExtractValue)

    XmlType)

    dbms_xmlgen. GetXml ("select count (*) c to ' |") table_name | ((' where State = 0 or (State = 1 and sysdate > nvl (delay, enq_time)) q_name group '))

    (("/ LINES/LINES/C ')) County

    from (select distinct owner |'.) ' || queue_table as table_name dba_queues)]';

    Open: rc for sql.

    end;

    /

    print rc;

  • Restore the transaction committed

    I am trying to execute the procedure in Oracle 12 c using SQL Developer

    create table Parent
    (
    ID number(5),
    Name Varchar2(50)
    );
    create table Child
    (
    ID number(5),
    Name Varchar2(50)
    );
    Procedure ParentProc
    begin
    //Doing the Transactions
    insert into Parent values(1,'Parent');
    //calling child proc
    ChildProc;
    rollback;
    end ParentProc;
    
    
    
    
    Procedure ChildProc
    begin
    //Doing the Transactions
    insert into child values(1,'Child');
    commit;
    end ParentProc;
    


    The value in the child table persists even after that the restoration is used in the parent process.

    There is a solution where the validation of the procedure of the child can be eliminated, but as child procedure is called by other sources also directly, if validation is necessary here.

    And also, I don't want to use a variable to separate he was called by any other process, or if called directly.

    I just want to know if I use the valid approach, I am submitting commit or rollback of the calling program

    that I learned from this https://blogs.oracle.com/dev2dev/entry/write_recovery_code_with_transaction

    This article shows everything we said.

    1. the DML is run by the customer

    2. then the command also committed by the customer if the DML succeeded

    Just a question will be the oracle database GET two calls from the calling program

    (1) the first Call When I Sumit the query.

    (2) second call when I submit Commit / Rollback.

    Yes - there are two statements and each of them will be sent to the server separately.

    During this period the uncommitted transaction will be lock on the tables that are in the DML statements. or it is a hidden life?

    Yes - No validated DML may have line and/or table locks. These locks will not come UNTIL the end of transactions - that is, until a commit or rollback is performed.

  • Result of text SQL with Chr (10) (line break) NOT carried over to the HTP. P Javascript Mailto

    [4.2.1.00.08 Express application.]

    Hello, Super gurus!

    Maybe I am still not able to wrap my head around quotes and concatenations, as in this post Re: Mailto PL/SQL block with window.location.href, I would like to ask for your help again.

    I can't get a NEW LINE character to work in my htp.p & javascript.

    Full article: it is an extension of what I worked on, as shown in the link above.  This time, I called a request similar, as shown below, of my 'after Submit PL/SQL anonymous block ' process:

    DECLARE
    TYPE emp_aat IS TABLE OF THE emp % ROWTYPE;
    l_employees emp_aat;
    v_result varchar2 (5000): = ";
    BEGIN
    SELECT *.
    LOOSE COLLECTION l_employees
    WCP
    ORDER BY ename;

    BECAUSE me in 1... l_employees. COUNTY
    LOOP
    v_result: = v_result | l_employees (i) .ename | ' -  '
    || ' Job: ' | l_employees (i) .job | ' ';
    || Chr (10);
    END LOOP;
    Dbms_output.put_line (v_result);
    END;

    The above works well with the Chr (10), where each outcome starts on a new line:

    ADAMS - job: CLERK

    ALLEN - job: SALESMAN

    BLAKE - job: MANAGER

    CLARK - job: MANAGER

    Further down on my PL/SQL block process, the problem I have is that I can not get the v_result is displayed as you like, with the new line:

    HTP.p ("< body > '");

    HTP.p ("< script type =" text/javascript "> '");

    HTP.p ('window.location.href = "mailto:" |) v_logged_on_user_email | ';'

    ||'? "subject = salary increase Request"

    |' & cc ='

    || v_hr_email

    ||';'

    |' & body = '
    ||' \n "

    ||' Two hundred per cent increase for these people to chance! "

    ||' \r\n "

    || v_result

    ||'";'

    );

    HTP.p ("< /script >" ");

    HTP.p ("< /body >" ");

    As a matter of fact, these '\n' and '\r\n' above do seem to not work at all.  And the body of my email has just 1 big piece:

    ADAMS - job: COMMITTED ALLEN - job: SALESMAN BLAKE - job: MANAGER CLARK - job: MANAGER

    Issues related to the:

    -Should I replace "Chr (10)" in my SQL query with something so that javascript would recognize?

    -How is "\n" does not work as expected?

    Please let me know if I did something wrong with the foregoing, and that can be done to correct it.

    Thank you very much!

    It is a HTML problem, you will get best responses from stackoverflow.

    Try % OA

    HTML - mailto link several lines of body - Stack Overflow

  • How to call the PL/SQL of EntityImpl procedure

    Hello

    I have a page that can create/update visitors. When a new customer is created themselves, a line gets inserted into the database table. I use EO for this feature.

    I need to create lines to two or three other table also when a new line is created in the main table. What is the best practice for this feature?

    The 2 options that I know:

    1 create a trigger on the main table and the appeal of trigger for inserting rows in other tables.

    2. call a PL/SQL of EntityImpl procedure after the permanent data is committed to the table. (If this is the best approach, could you please let me know how to get there)

    See you soon

    AJ

    In fact, Java Mail API is included in WLS and JDev, then you can simply add %MIDDLEWARE_HOME%\Oracle_Home\oracle_common\modules\javax.mail_2.0.0.0_1-4-4.jar to your project.

    Dario

  • call scripts sql from a trigger

    I use Oracle Data Miner 11 g in Windows 8. I want to create a trigger that will instantiate some sql scripts when it is executed (that is, whenever I try to insert update a record)
    Relaxation where will call sql scripts. The whole purpose of this is to make some process when I add tuple in the table. Can someone please help me with the correct syntax for it?
    Thank you! ~

    I'm doing some data on my set of data mining techniques. I want to run the data mining process every time I add a new tuple (i.e. record) or update.  For the data extraction process, a script is called that makes data mining and stores the result in a table. That's why I came up with a solution to trigger which in my opinion; would be the perfect way to launch the script and perform the tasks of trigger (on the infeed table) too. The goal is to automate the script to data mining.  Here's my clear understanding?

    No - your 'understanding' is NOT clear or correct.

    1. a trigger runs as PART of a transaction. It was NOT what happens in the trigger and my never be, committed in the database.

    2. that means that the session LIKE NO other can see that data and a script will not be able to access these data until it was committed.

    3. a trigger and the transaction can be rolled back and restarted several times, or can be rollbacked and terminated without a commit never happening.

    4. If all the data your script would be given mine must already exist in the database BEFORE your races and even trigger.

    So these scripts must be a completely separate WORK that run AFTER any validation occurs and the data you want to "mine" actually exist.

    NONE of this is appropriate to be initialized by a trigger, because as I said above, the relaxing activity may not even engaged.

    You must create some PL/SQL (or other) code that controls the steps that must be taken

    1 insert/update data - including your stuff to trigger if there is

    2 validate this transaction

    3 run a DBMS_SCHEDULER job to run if necessary batch files/scripts.

  • SQL solution to the hierarchy of nested game difficulty

    I have a good job pl/sql solution to my problem and I am just curious to know if there is an a sql

    I have a structure of tree for example:
    one
    b and c
    d e f
    g h i j k


    create table tree
    (key primary number (6) ID)
    , number (6) parent_id
    , root_id number (6) not null
    -, lft number 4 not null
    -GTA 4 number not null
    );

    create the table tree_update
    (key primary number (10) ID)
    , lft number (10) not null
    , number (10) of the GTA
    );
    Insert the values of Apple ('a', null, 'a');
    Insert Apple values ('b', 'a', 'a');
    Insert Apple values ('c', 'a', 'a');
    Insert the values of the Apple trees (a ',' b', 'a');
    Insert Apple values ('e', 'c', ' a');
    Insert the values of the Apple trees ('f', 'c', ' a');
    Insert the values of the Apple trees ('g' 'd', 'a' ");
    Insert the values of the Apple trees ('h' 'd', 'a' ");
    Insert the values of the Apple trees ('i', 'e', ' a');
    Insert the values of the Apple trees ('j', 'f', ' a');
    Insert the values of the Apple trees ('k', 'f', ' a');

    The product that uses it also uses 'left' and 'right' value to browse. In this way, that descendants of a node can be calculated using

    Select *.
    tree
    where lft >: node_left
    and GTA are: node_rgt;

    See http://en.wikipedia.org/wiki/Nested_set_model for more details

    Unfortunately the lft and rgt value can get corrupt, especially during simultaneous updates in the rows in the tree. So I need to apply periodic corrections

    I did it using the pl/sql recursive. It's my pl/sql:

    create or replace procedure setLeftRight
    (ParentId in full
    CurrLeft in out integer
    )
    as
    nLeft integer: = CurrLeft + 1;
    Start
    for r in
    (select id
    tree
    where parent_id = ParentId
    or (parent_id is null and ParentId is null)
    order by id
    )
    loop
    insert into tree_update
    (id
    lft
    )
    values
    (r.id
    nLeft,
    );

    setLeftRight
    (r.id
    nLeft,
    );
    end loop;

    Update tree_update
    define the GTA = nLeft
    where id = ParentId
    return of the GTA + 1 in CurrLeft;
    end setLeftRight;
    /
    Sho err

    and it is called with:


    number of GTA var
    exec: GTA: = 0
    exec setLeftRight(null,:rgt)

    leaving the correct answers as

    ID lft GTA

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

    a 22 1

    2 9 b

    3 8 d

    4 5 g

    6-7 pm

    10 21 c

    11 14 e

    I have 12 13

    f 15 20

    16-19 j

    17 18 k

    Again, I am just curious to know if there is a sql solution. I can assign a sequential value to each line using the factoring of the subquery recursive and scope of research first, in both directions. But doing so, then join, then reassess the values lft and rgt seems heavy.

    You should also note that rgt - lft = 2 x < number of descendants > + 1, if they are assigned in the order (which is not really necessary because one order is important). I use this to check my values before committing.

    So is there a solution of elegant sql, in any version of db, but I am currently on 11.2.0.3.

    Thank you

    Ben

    Hi, Ben.

    Yes, you can do it in pure SQL.  See the last answer in the following thread:

    https://community.Oracle.com/thread/2603314

    You don't need a table like tree_update just to cool left and GTA (and root_id, if it gets corrupted, too).  You can use a MERGE statement to derive the correct values and update the table tree directly.

    In the sample data that you have published, all values are strings, but all the columns are numbers.

    You know exactly when the lft and rgt columns are getting corrupted?

    If so, it would be more logical to fix this.

    If you don't know when these columns are getting corrupted, so it seems that these columns would be useless, since you can be sure that the results based on these columns are accurate.

  • vCO and SQL Server

    Hello

    We are a cluster of servers vRO, using SQL Server 2012. After that we report the vRO servers to SQL server (create without and whatnot), we do not see a complete library:

    problem1.png

    Anyone seen this before? I have snapshot isolation and read options committed snapshot enabled on the SQL Server. Before the passage of postgres internal to SQL, the library has been completely filled.

    Thank you

    James

    In your Configuration Orchestrator on the Troubleshooting tab you will need to click on this latest Version reset and restart services (correct names cannot be listed here as running memory). This forces Orchestrator re - import all packages library of plug-ins installed

Maybe you are looking for