title: pass function argument to cursor in oracle
body: <p>I am getting an error while passing function argument to the cursor. Here is the Below example</p>
  
  <p><br/>
  Create OR Replace FUNCTION UPD_TAB(ID_VAL IN OUT VARCHAR2,SRC_COLUMN IN OUT  VARCHAR2,DEST_COLUMN IN OUT VARCHAR2,OWNER_TAB IN OUT VARCHAR2,SRC_TAB IN OUT VARCHAR2,DEST_TAB IN OUT VARCHAR2)<br/>
  RETURN VARCHAR2<br/>
  IS<br/></p>
  
  <p>&nbsp;&nbsp;   SRC_COL VARCHAR2(30) := SRC_COLUMN;<br/>
  &nbsp;&nbsp;   DEST_COL VARCHAR2(20) := DEST_COLUMN;<br/>
  &nbsp;&nbsp;   ID_VALUE VARCHAR2(20) := ID_VAL;<br/>
  &nbsp;&nbsp;   SRC_TABLE VARCHAR(20) := SRC_TAB;<br/>
  &nbsp;&nbsp;   DEST_TABLE VARCHAR(20) := DEST_TAB;<br/>
  &nbsp;&nbsp;   TAB1 VARCHAR2(40) := OWNER_TAB||'.'||SRC_TAB;<br/>
  &nbsp;&nbsp;   TAB2 VARCHAR2(40) := OWNER_TAB||'.'||DEST_TAB;<br/><br/>
  &nbsp;CURSOR RET_VAL<br/>
  &nbsp;&nbsp;&nbsp;&nbsp;    IS<br/>
  &nbsp;&nbsp;&nbsp;&nbsp;    SELECT C1.SRC_COL,C2.DEST_COL <br/>
  &nbsp;&nbsp;&nbsp;&nbsp;              FROM <b><i>TAB1 C1,TAB2 C2</i></b><br/>
  &nbsp;&nbsp;&nbsp;&nbsp;      WHERE C1.SRC_COL=C2.DEST_COL <br/>
  &nbsp;&nbsp;&nbsp;&nbsp;                AND C1.ID=ID_VALUE;<br/>
  <br/>
  Here in the above example when pass pass the actual database values Schemaname.Tablename 
  eg. grany.Booking . It output the results but when i pass the variable having value TAB1 and TAB2. It shows the following error</p>
  
  <p><br/>
  PL/SQL: ORA-00942: table or view does not exist <br/>
  22/11    PL/SQL: Statement ignored<br/></p>
  
  <p>i searched a lot but didn't find the solution
  I know what error is trying to say but i dont know how to fix the solution for this one.</p>
  
  <p>Any help will be appreciated. Thanks in advance.</p>