title: Synonym for a Sequence in Oracle
body: <p>I want to create a synonym for a sequence in oracle and fetch <code>currval</code> from it.</p>
  
  <p>I created a synonym using this statement.</p>
  
  <pre><code>CREATE SYNONYM NUMGEN FOR MY_SEQ;
  </code></pre>
  
  <p>when I fetch the <code>currval</code> or <code>extval</code> from <code>NUMGEN</code> it generate error, synonym doesn't exist.</p>
  
  <pre><code>SELECT NUMGEN.currval FROM dual;
  </code></pre>
  
  <p>Can anyone help me to fetch <code>currval</code> from synonym.</p>