SELECT dbms_metadata.get_ddl
FROM PRESIDENT;
mmm am i missing something perhaps ?
ERROR at line 2:
ORA-00942: table or view does not exist
when i do :
SELECT Table_Name
FROM All_Tables
WHERE OWNER = 'BOB';
I get:
TABLE_NAME
------------------------------
MASTERTB
PRESIDENT
and when i do :
SELECT SUBSTR(Owner,1,10) AS "Owner",
SUBSTR(Table_Name,1,10) AS "Table_Name",
SUBSTR(Grantor,1,10) AS "Grantor",
SUBSTR(Grantee,1,10) AS "Grantee",
SUBSTR(Privilege,1,10) AS "Privilege"
FROM All_Tab_Privs_Recd
WHERE GRANTOR = 'BOB';
i get :
Owner Table_Name Grantor Grantee Privilege
---------- ---------- ---------- ---------- ----------
BOB MASTERTB BOB PUBLIC SELECT
BOB PRESIDENT BOB MYNAME SELECT
so im sure i have access im not sure whats wrong