title: PLS-00201: identifier 'T_CHAR' must be declared
body: <p>This problem is driving me mad. This function compiles in One schema Successfully but When I try to recreate it in a different schema I get error:</p>
  
  <pre><code>PLS-00201: identifier 'T_CHAR' must be declared
  </code></pre>
  
  <p>Here Is My function:</p>
  
  <pre><code>CREATE OR REPLACE FUNCTION TMP_SPLIT(p_val VARCHAR2)
  RETURN t_char IS
  v_res t_char;
  BEGIN
  v_res := t_char(SUBSTR(p_val,1,1));
  v_res.extend(LENGTH(p_val)-1);
  FOR i IN 2..LENGTH(p_val) LOOP
      v_res(i) := SUBSTR(p_val,i,1);
  END LOOP;
  RETURN v_res;
  END;
  /
  </code></pre>
  
  <p>What is going on here??</p>