title: Why does a savepoint error appear in this situation?
body: <p>Why does an error "ORA-01086: savepoint 'X' never established in this session or is invalid" appear on execution of this block?  </p>
  
  <pre><code>begin
  
    savepoint X;
  
    execute immediate 'alter package ANY_EXISTING_PACKAGE compile';
  
    rollback to X;
  
  end;
  </code></pre>