[4.0EA2]Is there a way to simply pass through SQL commands?

Hello out there,
I wonder if there is a way to pass through some commands without SQL Developer trying to parse or otherwise process them.
In 3.2 I could do something like this when connected to a MySQL database:
/*sqldev:stmt*/begin;
delete from test where some_condition=1;
/*sqldev:stmt*/rollback;
Now I get the following error:
SELECT command denied to user 'tsn'@'pc259.vu2k.vertriebsunion.de' for table 'all_tab_cols'
It seems that SQL Developer tries do do some magic that does not work on non-Oracle databases.
So is there some magic comment like /*sqldev:stmt*/ that just passes through the command without further parsing?
The best solution would be SQL Developer supporting transactions on MySQL though...
I know, I posted a similar question some time ago for 4EA1, but did not get an answer for that.
Regards,
dhalek

Hi Dhalek,
Just tried out a small example and it works ok in SQL Dev 4
drop table t1;
create table t1 (col1 int);
insert into t1 values (1);
insert into t1 values (2);
insert into t1 values (3);
select * from t1;
/*sqldev:stmt*/BEGIN;
DELETE FROM t1;
SELECT * FROM t1;
/*sqldev:stmt*/ROLLBACK;
SELECT * FROM t1;
---- RESULT ----
table T1 dropped.
table T1 created.
1 rows inserted.
1 rows inserted.
1 rows inserted.
col1      
1         
2         
3         
/*sqldev:stmt*/BEGIN
3 rows deleted.
col1      
/*sqldev:stmt*/ROLLBACK
col1      
1         
2         
3        
Regards,
Dermot
SQL Developer Team

Similar Messages

  • Is there any way to control automator through voice commands?

    is there any way to control automator through voice commands?
    Im simply trying to program my macbook pro early 2011 8gigs ram to resound to voice commands using automator but I haven't found any discuss on the subject.

    I have some AppleScript that expects a Pages (v5.2.2) document opened. It will then then speak the document name, and the count of words in the document. Or, I can trigger Speakable items and tell it to, "Switch to Pages" which it does immediately, because this is part of its repertoire of built-in commands. Then speak Word Count?
    In Automator, I created an Application, in which I dragged/dropped the Library > Utilities > Run AppleScript action into the workflow window. I replaced the AppleScript boilerplate with my existing AppleScript code that speaks the word count, and saved the Application into <login dir>/Library/Speech/Speakable Items folder as Word Count? (without the .app extension). It can also be saved in the Application Speakable Items > Pages sub-folder under the general Speakable Items folder.
    Next, I turned on Speakable Items in System Preferences > Accessibility > Speakable Items.
    It took several tries to get a spoken result from the Automator application, but it did work. Even with a calibrated microphone, and speaking about 18 inches from it. About 2 successes for ten tries. If I just put the AppleScript (without extension) in the same folder, my success rate would improve to 5/10. You may grow very weary of the repetition necessary to get Speakable Items to work. A small pink text banner also appears with the spoken content in it — below the Speakable Items monitor on the screen.
    Automator is scriptable. This means that in AppleScript, you can dynamically build an Automator workflow, and then execute it.

  • ITunes 11.0.4. can't locate thousands of files (they are still on the harddisk though) - is there a way to simply relocate them (without having to do it for each individual song which would take forever)?

    After updating to iTunes 11.0.4.,
    iTunes 11.0.4. can't locate thousands of files (they are still on the harddisk though).
    is there a way to simply relocate them (without having to do it manually for each individual song which would take forever)?

    Are these "thousands of files" in an iTunes library that simply cannot be found?
    If so, assuming you know exactly where they are, hold the "Option" key while opening iTunes from your dock.  You will then be given a "Choose Library" option.  Choose it and point to your library.

  • Is there no way to simply remove realplayer from the blocked list?

    ...My issue is someone disabled the realplayer extension / addon /
    plug in for some ungodly reasoning due to some block list.
    I'm over here cussing a blue streak at this choice of blocking,
    especially when I cant goto my "add ons" area and simply click
    "options/ turn on / enable etc" and what have you. Everything is greyed out thanks to an annoying block list filter.
    Which, from my understanding doesnt even apply to my version of firefox. I have had realplayer on here for YEARS and it has never once caused me any problems.
    And now because some one decides it causes issues with firefox version whatever, they're going to block it on a master block list for some reasoning? Tch.
    Is there NO WAY to simply remove realplayer from this said block list? I know I can go into about;config and disable the -whole- list, which I dont want to do.
    Cant someone make this thing a little more user friendly with the block list? Put some damn check boxes next to it so I can filter what I want.
    And if someone tells me to update something or another... -twitch-
    Everything had been working just fine for me until someone started playing with the ^%$#&ing block list.
    https://addons.mozilla.org/en-US/firefox/blocked/ <--- top two.

    It says: ''users can re-enable it from the Add-ons Manager if necessary''
    *https://addons.mozilla.org/en-US/firefox/blocked/i106
    *https://addons.mozilla.org/en-US/firefox/blocked/i107
    <blockquote>Why was it blocked?<br />
    The RealPlayer Browser Record extension is causing significant problems on Flash video sites like YouTube. This block automatically disables the add-on, but users can re-enable it from the Add-ons Manager if necessary.</blockquote>
    You can try to delete the files extensions.* (e.g. extensions.sqlite, extensions.ini, extensions.cache) and compatibility.ini in the Firefox profile folder to reset the extensions registry.
    *https://support.mozilla.org/kb/Profiles
    New files will be created when required.
    If you see disabled, not compatible, extensions in "Tools > Add-ons > Extensions" then click the Tools button at the left side of the Search Bar (or click the "Find Updates" button in older Firefox versions) to check if there is a compatibility update available.
    See "Corrupt extension files":
    *http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
    *https://support.mozilla.org/kb/Unable+to+install+add-ons

  • I would like to take a iTunes play list and put it on a USB drive for my car radio to stay in my car. Is there a way to do this through iTunes so you have all the song info and there's no number in front of the name of the song? Is there a program?

    I would like to take a iTunes play list and put it on a USB drive for my car radio to stay in my car. Is there a way to do this through iTunes so you have all the song info and there's no number in front of the name of the song? Is there a program?

    iTunes only syncs to Apple devices.
    Assuming the media is not DRM protected, any of the media can be dragged and dropped from iTunes onto other drives (external, flash, etc) as the user chooses.

  • Is there a way to fast forward through audio files?  Like a lecture class I am taking?  thanks!

    Is there any way to fast forward through audio files in I-Tunes?  I have some lecture recordings that I need to review....  If you cannot do it in I-Tunes, is there a program you could recommend?
    Thanks!

    Buzzsaw252 wrote:
    This will help - what I was really looking to do was to "speed up" the audio (smoothly) so I could listen while it was playing to search for a particular part I needed.....
    You need QuickTime 7.
    You can get it here -> http://support.apple.com/kb/HT3678?viewlocale=en_US&locale=en_US
    Then see this -> http://apple.stackexchange.com/questions/48265/how-do-i-make-itunes-play-slower- or-faster

  • Is there any way to launch Shared Services in command prompt for migration?

    Hi All,
    We are on 11.1.1.1.3 Is there any way to launch Shared Services in command prompt for migration purposes? The purpose is we need to automate the migration process from Dev to Prod. Currently we are exporting artifacts by using LCM in shared service by file management and then exporting that folder to prod server and then importing by using LCM. So we need to automate the whole process.
    So is there any way we can launch shared services/LCM in command prompt to launch the migration for export/import artifacts?
    Any suggestions will be great help.

    Did you see the bit in the documentation called "Creating Migration Definitions"?
    See: http://download.oracle.com/docs/cd/E12825_01/epm.111/epm_lifecycle_management/ch06s03s01.htm
    Also, if you follow this link, the docs explain how to (sort of) generate the xml:
    http://download.oracle.com/docs/cd/E12825_01/epm.111/epm_lifecycle_management/ch06s03.htm
    Regards,
    Cameron Lackpour

  • Is there a way to get long running SQL Agent jobs information using powershell?

    Hi All,
    Is there a way to get long running SQL Agent jobs information using powershell for multiple SQL servers in the environment?
    Thanks in Advance.
    --Hunt

    I'm running SQL's to fetch the required details and store it in centralized table. 
    foreach ($svr in get-content "f:\PowerSQL\Input\LongRunningJobsPowerSQLServers.txt"){
    $dt = new-object "System.Data.DataTable"
    $cn = new-object System.Data.SqlClient.SqlConnection "server=$svr;database=master;Integrated Security=sspi"
    $cn.Open()
    $sql = $cn.CreateCommand()
    $sql.CommandText = "SELECT
    @@SERVERNAME servername,
    j.job_id AS 'JobId',
    name AS 'JobName',
    max(start_execution_date) AS 'StartTime',
    max(stop_execution_date)AS 'StopTime',
    max(avgruntimeonsucceed),
    max(DATEDIFF(s,start_execution_date,GETDATE())) AS 'CurrentRunTime',
    max(CASE WHEN stop_execution_date IS NULL THEN
    DATEDIFF(ss,start_execution_date,stop_execution_date) ELSE 0 END) 'ActualRunTime',
    max(CASE
    WHEN stop_execution_date IS NULL THEN 'JobRunning'
    WHEN DATEDIFF(ss,start_execution_date,stop_execution_date)
    > (AvgRunTimeOnSucceed + AvgRunTimeOnSucceed * .05) THEN 'LongRunning-History'
    ELSE 'NormalRunning-History'
    END) 'JobRun',
    max(CASE
    WHEN stop_execution_date IS NULL THEN
    CASE WHEN DATEDIFF(ss,start_execution_date,GETDATE())
    > (AvgRunTimeOnSucceed + AvgRunTimeOnSucceed * .05) THEN 'LongRunning-NOW'
    ELSE 'NormalRunning-NOW'
    END
    ELSE 'JobAlreadyDone'
    END)AS 'JobRunning'
    FROM msdb.dbo.sysjobactivity ja
    INNER JOIN msdb.dbo.sysjobs j ON ja.job_id = j.job_id
    INNER JOIN (
    SELECT job_id,
    AVG
    ((run_duration/10000 * 3600) + ((run_duration%10000)/100*60) + (run_duration%10000)%100)
    +
    STDEV
    ((run_duration/10000 * 3600) + ((run_duration%10000)/100*60) + (run_duration%10000)%100) AS 'AvgRuntimeOnSucceed'
    FROM msdb.dbo.sysjobhistory
    WHERE step_id = 0 AND run_status = 1
    GROUP BY job_id) art
    ON j.job_id = art.job_id
    WHERE
    (stop_execution_date IS NULL and start_execution_date is NOT NULL) OR
    (DATEDIFF(ss,start_execution_date,stop_execution_date) > 60 and DATEDIFF(MINUTE,start_execution_date,GETDATE())>60
    AND
    CAST(LEFT(start_execution_date,11) AS DATETIME) = CAST(LEFT(GETDATE(),11) AS DATETIME) )
    --ORDER BY start_execution_date DESC
    group by j.job_id,name
    $rdr = $sql.ExecuteReader()
    $dt.Load($rdr)
    $cn.Close()
    $dt|out-Datatable
    Write-DataTable -ServerInstance 'test124' -Database "PowerSQL" -TableName "TLOG_JobLongRunning" -Data $dt}
    You can refer the below link to refer out-datatable and write-dataTable function.
    http://blogs.technet.com/b/heyscriptingguy/archive/2010/11/01/use-powershell-to-collect-server-data-and-write-to-sql.aspx
    Once we've the table details, I'm sending one consolidated email to automatically.
    --Prashanth

  • Is there ANY way to send something through Bluetooth to an android phone?

    Is there ANY way to send something through Bluetooth to an android phone?

    I think I sorted it out:
    On your Mac, go to the Bluetooth preferences panel after pairing your (your android phone) to the Mac.
    Select (your android phone) in the left-hand menu, then use the little cog to pull down a list of options.
    Select "Edit serial ports..."
    Click the '+' icon, and in the Port Settings section, select OBEX Object Push.
    Protocol should be automatically set to RS-232. Click "apply" (and probably "require pairing" to be nice n secure) et voila!!
    so far, so good

  • Is there any way to send sms through j2me

    hi all,
    is there any way to send sms through j2me or any way to communicate with real device through emulator or from emulator to another emulator
    any sugesstions appriciated
    abdul rafiq jani
    applitech solution limted

    what special API where i can get it any link or information about that APi
    regards
    abdul rafiq jani
    Applitech Solution Limited

  • HT1222 Is there a way to password / pass code the Numbers app?

    Is there a way to password / pass code the numbers app???

    Not that I'm aware of. The iPad is designed to be a single user device, so you can passcode the whole thing, or nothing at all.
    There are a few apps that you can lock out with restrictions, but I don't think Pages is amongst them. You can look in settings and restrictions and see what you can lock down.

  • I have a password protected Numbers document I created on my MAC and share via DROPBOX. Is there any way to simply view this doc on my IPAD without purchasing NUMBERS for the IPAD?

    I use NUMBERS on my MAC to create a password protected document.  I share this doc via DROPBOX.  Is there any way I can view the doc on my IPAD without purchasing NUMBERS for the IPAD?  The doc opened fine on the IPAD before protecting it with a password.

    Using the term "opened" may have been incorrect on my part.  Before password protection, I simply viewed the doc by selecting it within my DROPBOX app.  No revisions could be made, but I could view the doc.    Now, with the doc password protected, the IPAD states this file can not be viewed.
    The IPAD users guide gives a list of files IPAD can view. Unfortunately, I find no info on how to open/view that file should it be protected. If
    THANKS

  • Is there any way to hook into the SQL report pagination process?

    I have a SQL report (based on EMP) with a radiogroup row selector.
    The scenario 1 and 2 are in place
    1) When the employee row radio group is clicked the P900007_JOB the text item is populated with the JOB for the employee.
    2) When the page is initially displayed or submitted via the button the first row’s radio group is programmatically clicked and therefore populates the additional job information in P900007_JOB
    Info (radio Group) Employee No Name
    (+) 7369 SMITH
    () 7499 ALLEN
    () 7521 WARD
    P900007_JOB CLERK
    1-3 Next>
    Once the report has been displayed and the next or previous pagination is used then none of the radio groups will be selected and the data in the P900007_JOB text item will still display the job of the last selected employee row.
    What I require is on pagination some sort of mechanism to either
    a) Call the page_init() that should then set the first row as selected and populate the text item via the programmatic click. (preferred option)
    b) OR blank out the additional text item P900007_JOB.
    Is there any way to hook into the pagination process?
    I have a work around – Set the ‘Enable Partial Page Refresh’ to ‘No’ but this means a full refresh every time the pagination is used.
    Details of my page
    Report Region (Based on EMP table) – radio group as a row selector
    select     APEX_ITEM.RADIOGROUP(1,EMPNO,'X21',null) CHECKRG, EMPNO,
         ENAME,
         JOB
    from     EMP
    Report Attributes -
    Report template :- P900007_ROWTEMPLATE (custom template see later)
    Report Attributes Substitution :- id="emp_report" (used in page_init see later)
    Enable Partial Page Refresh :- Yes
    Columns – All columns are selected as show but job is left out of the template below.
    P900007_JOB - Text item in report region (disabled does not save state). Populated with the employees job when the radio group is clicked.
    Control region :- HTML region that just holds a button <GO> just to submit the page and redirect back to the same page.
    P900007_ROWTEMPLATE (named column row template)
    Row template 1
    <tr style="cursor: hand; cursor: pointer;" onmouseover="row_mouse_over(this, 1)" onmouseout="row_mouse_out(this, 1)" #HIGHLIGHT_ROW# ">
    <td class="t15data" onclick="selectRow('#JOB#');">#CHECKRG# </td>
    <td class="t15data">#EMPNO# </td>
    <td class="t15data">#ENAME# </td>
    </tr>
    Before rows
    <table class="t15standard" summary="" #REPORT_ATTRIBUTES# id="report_#REGION_STATIC_ID#" >
    <th class="t15header" #ALIGNMENT# >Info</th>
    <th class="t15header" #ALIGNMENT# >Employee Number</th>
    <th class="t15header" #ALIGNMENT# >Name</th>
    After Rows
    <tr>
    <td colspan="99" class="t15afterrows">
    <span class="left">#EXTERNAL_LINK##CSV_LINK#</span>
    <table style="float:right;text-align:right;" summary="pagination">
    #PAGINATION#</table>
    </td>
    </tr>
    </table>
    *Javascript in page Header*
    <script src="#WORKSPACE_IMAGES#apex_show_hide_region.js" type="text/javascript"></script>
    <script language="JavaScript" type="text/javascript">
    <!--
    function selectRow(pJob)
    /* console.log('pete got here!'+pJob)*/
    $x('P900007_JOB').value =pJob;
    /* Start Page init*/
    function *page_init*()
    /* Used to set radio groups on reports */
    /*console.log('START pete got here!');*/
    var is_checked = false;
    var l_check = $x_FormItems($x('emp_report'), 'radio');
    /*Loop and set flag if checked*/
    for(var i=0,len=l_check.length;i<len;i++)
    if(l_check.checked){
    is_checked = true;
    /*end loop*/
    /*If none checked force a click*/
    if(!is_checked){
    /*no longer need as doing click below*/
    l_check[0].checked=true;
    /*Force a click on the first radio group - extra details should then be
    populated*/
    var l_click = l_check[0].click();
    /* console.log('END pete got here!');*/
    /*END page_init*/
    // -->
    </script>
    *Application shared component.* – This fires a DB packaged procedure when the page is loaded.
    P330_PART_NO_HIST
    Process Point On load after Body region
    Process Text show_hide_memory.part_no_history_details();
    *Packaged Procedure* – This kicks off the page_init javascript in the header (earlier) to click on the radio group in the first row.
    PROCEDURE part_no_history_details AS
    BEGIN
    htp.prn('<script type="text/javascript">' || CHR(10));
    htp.prn('<!--' || CHR(10));
    htp.prn('page_init();'|| CHR(10));
    htp.prn('//-->' || CHR(10));
    htp.prn('</script>' || CHR(10));
    END part_no_history_details;
    Thanks Pete
    Edited by: Pete @ LSC on 26-Jan-2010 06:56

    Anybody any ideas? Should I be looking down the route of using my own pagination buttons and adding my code to this?
    There seems to be a routine $a_report that I can use for the pagination but I am finding it difficult to get the current first and last record values that I would need to pass. I've seen references to below in the form but when I'm using partial refresh they do not seem to change.
    wwv_flow.g_flow_current_min_row
    wwv_flow.g_flow_current_max_rows
    wwv_flow.g_flow_current_rows_fetched
    wwv_flow.g_request
    Thanks Pete

  • HT1212 my phone screen is broken and I bought a new phone but I want to get everything off my old phone. It will not sync to i tunes because it has a passlock on it. Is there any way to get passed this?

    My iphone screen and lock button are broken, I bought a new phone and want to get all the information off my old phone. My old phone will not sync with itunes because it has a pass code on it. I have no way to enter the pass code. Is there any way to get around this so I can still retrieve my information from it?

    If you are using the computer that you normally sync with, it should sync without entering the passcode. However, if this is not the computer you normally sync with, you cannot get past the passcode, it has to be entered.

  • I need to redownload songs from the last month. Is there any way to do this through itunes?

    I had to get a new ipod touch through a warranty because of technical problems so I could not transfer my last few purchases (about one month).  Is there any way that I would be able to get these downloads back with out redownloading my entire library.

    From the iTunes Help menu...
    "It’s important to make backups of your purchases from the iTunes Store. If you lose a purchased item for any reason and haven’t backed it up, you’ll have to buy it again."
    With iTunes open, from the menu bar click Help / iTunes Help.
    In the search field on the right type in backup
    Select:  Back up your iPod touch, iPhone, or iPad
    I had to get a new ipod touch through a warranty because of technical problems
    Unfortunately, if you didn't backup your iTunes media to an external source, you might be out of luck but, click here.
    http://www.apple.com/support/itunes/
    Then click: iTunes Store Account and Billing
    Then click: Billing Inquiries
    Then click: Email.
    Stranger things have happened where Apple bent a rule or two.

Maybe you are looking for

  • Com.sap.tc.webdynpro.services.exceptions.PDFDocumentCreationException

    Hi all 1. I am trying to deploy my first adobe interactive app. 2. When I do that I get: The initial exception that caused the request to fail, was:    com.sap.tc.webdynpro.services.exceptions.PDFDocumentCreationException: ../../local/TutWD_OnlineInt

  • Adobe Connect 9 and IE 9 can't open add-in

    I was working with a client, have Adobe Connect 9, they were using IE 9 and were not able to access any other web browser. I had provided them with the download link for the add-in and they said their IT person had installed it. When I gave them righ

  • First time MacBook pro user - Why is my MacBook very slow??!

    HELP !!!. Got my first MacBook - and I am really dissapointed by the performance. My Toshiba Ultrabook is 20 times faster for these task's!!!! Running the below MacBook, with a PhotoBook application named Hofmann - response time from moving the point

  • I mac keeps restarting from sleep mode

    HI recently upgraded to mountion lion but from sleep mode computer starts up by itself usuly at night can anyone help ?

  • Inapp purchases implementation

    Hi Team, I need transaction more then $1000/- from in-app purchase on my application for just upgrading some account level of user's. But unfortunately i am not able to create products for price more than $999.99/-  according to Price Tier. What will