   |  | | 10g Database Link DBA_DB_LINKS mystery | 10g Database Link DBA_DB_LINKS mystery 2006-07-03 - By Sinardy Xing
Hi guys,
Can you help me with this?
SQL> select open_mode from v$database;
OPEN_MODE -- ---- -- READ WRITE
SQL> show user USER is "SYS" SQL> select table_name from dictionary where table_name like '%LINK%';
TABLE_NAME -- ---- ---- ---- ---- ---- -- USER_DB_LINKS ALL_DB_LINKS DBA_DB_LINKS V$DBLINK GV$DBLINK
SQL> select count(*) from DBA_DB_LINKS; select count(*) from DBA_DB_LINKS * ERROR at line 1: ORA-00942 (See ORA-00942.ora-code.com): table or view does not exist
SQL> grant dba to a identified by a;
Grant succeeded.
SQL> create database link db_link_a connect to a identified by a using 'CANADA';
Database link created.
SQL> select sysdate from dual@(protected);
SYSDATE -- ------ 03-JUL-06
SQL> select count(*) from dba_db_links; select count(*) from dba_db_links * ERROR at line 1: ORA-00942 (See ORA-00942.ora-code.com): table or view does not exist
SQL> select count(*) from all_db_links;
COUNT(*) -- ---- -- 1
SQL> select banner from v$version;
BANNER -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod PL/SQL Release 10.2.0.1.0 - Production CORE 10.2.0.1.0 Production TNS for 32-bit Windows: Version 10.2.0.1.0 - Production NLSRTL Version 10.2.0.1.0 - Production
Why I can't query my DBA_DB_LINKS?
-- regards,
Sinardy
<div><br clear="all">Hi guys,</div> <div> </div> <div>Can you help me with this?</div> <div> </div> <div><font face="courier new,monospace"> <p>SQL> select open_mode from v$database;</p> <p>OPEN_MODE<br>-- ---- --<br>READ WRITE</p> <p>SQL> show user<br>USER is "SYS"<br>SQL> select table_name from dictionary where table_name like '%LINK%';</p> <p>TABLE_NAME<br>-- ---- ---- ---- ---- ---- --<br>USER_DB_LINKS<br>ALL_DB _LINKS<br>DBA_DB_LINKS<br>V$DBLINK<br>GV$DBLINK</p> <p>SQL> select count(*) from DBA_DB_LINKS;<br>select count(*) from DBA_DB _LINKS<br> *<br>ERROR at line 1:<br >ORA-00942 (See ORA-00942.ora-code.com): table or view does not exist</p> <p><br>SQL> grant dba to a identified by a;</p> <p>Grant succeeded.</p> <p>SQL> create database link db_link_a connect to a identified by a using 'CANADA';</p> <p><br>Database link created.</p> <p>SQL> select sysdate from <a href="mailto:dual@(protected)">dual@(protected)< /a>;</p> <p>SYSDATE<br>-- ------<br>03-JUL-06</p> <p>SQL> select count(*) from dba_db_links;<br>select count(*) from dba_db _links<br> *<br>ERROR at line 1:<br >ORA-00942 (See ORA-00942.ora-code.com): table or view does not exist</p> <p>SQL> select count(*) from all_db_links;</p> <p> COUNT(*)<br>-- ---- --<br> 1</p> <p>SQL> select banner from v$version;</p> <p>BANNER<br>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ <br>Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod<br>PL/SQL Release 10.2.0.1.0 - Production<br>CORE 10.2.0.1.0   ; Production <br>TNS for 32-bit Windows: Version 10.2.0.1.0 - Production<br>NLSRTL Version 10.2.0.1.0 - Production</p> <p></p></font>Why I can't query my DBA_DB_LINKS? <p>-- <br>regards,<br><br>Sinardy </p></div>
|
|
 |