關於database link的物件型別
SQL> col OBJECT_NAME format a30
SQL> col OBJECT_TYPE format a20
SQL> select object_name,OBJECT_TYPE
2 FROM user_objects
3 where object_name like 'CIQUS%';
OBJECT_NAME OBJECT_TYPE
------------------------------ --------------------
CIQUSR_SYNC.168.3.9 DATABASE LINK
CIQUSR_SYNC.US.ORACLE.COM DATABASE LINK
SQL> select DBMS_METADATA.GET_DDL ('DATABASE LINK','CIQUSR_SYNC.US.ORACLE.COM')
2 from dual;
ERROR:
ORA-31600: invalid input value DATABASE LINK for parameter OBJECT_TYPE in
function GET_DDL
ORA-06512: at "SYS.DBMS_METADATA", line 3773
ORA-06512: at "SYS.DBMS_METADATA", line 3828
ORA-06512: at "SYS.DBMS_METADATA", line 5678
ORA-06512: at line 1
no rows selected
SQL> select DBMS_METADATA.GET_DDL ('DB_LINK','CIQUSR_SYNC.US.ORACLE.COM')
2 FROM DUAL;
DBMS_METADATA.GET_DDL('DB_LINK','CIQUSR_SYNC.US.ORACLE.COM')
--------------------------------------------------------------------------------
CREATE DATABASE LINK "CIQUSR_SYNC.US.ORACLE.COM"
CONNECT TO "ITOWM" IDENTI
SQL> SELECT *
2 from user_db_links;
DB_LINK
--------------------------------------------------------------------------------
USERNAME PASSWORD
------------------------------ ------------------------------
HOST
--------------------------------------------------------------------------------
CREATED
------------
CIQUSR_SYNC.168.3.9
ITOWM
oral_sz
06-SEP-17
DB_LINK
--------------------------------------------------------------------------------
USERNAME PASSWORD
------------------------------ ------------------------------
HOST
--------------------------------------------------------------------------------
CREATED
------------
CIQUSR_SYNC.US.ORACLE.COM
ITOWM
oral_sz
06-SEP-17
SQL> col OBJECT_TYPE format a20
SQL> select object_name,OBJECT_TYPE
2 FROM user_objects
3 where object_name like 'CIQUS%';
OBJECT_NAME OBJECT_TYPE
------------------------------ --------------------
CIQUSR_SYNC.168.3.9 DATABASE LINK
CIQUSR_SYNC.US.ORACLE.COM DATABASE LINK
SQL> select DBMS_METADATA.GET_DDL ('DATABASE LINK','CIQUSR_SYNC.US.ORACLE.COM')
2 from dual;
ERROR:
ORA-31600: invalid input value DATABASE LINK for parameter OBJECT_TYPE in
function GET_DDL
ORA-06512: at "SYS.DBMS_METADATA", line 3773
ORA-06512: at "SYS.DBMS_METADATA", line 3828
ORA-06512: at "SYS.DBMS_METADATA", line 5678
ORA-06512: at line 1
no rows selected
SQL> select DBMS_METADATA.GET_DDL ('DB_LINK','CIQUSR_SYNC.US.ORACLE.COM')
2 FROM DUAL;
DBMS_METADATA.GET_DDL('DB_LINK','CIQUSR_SYNC.US.ORACLE.COM')
--------------------------------------------------------------------------------
CREATE DATABASE LINK "CIQUSR_SYNC.US.ORACLE.COM"
CONNECT TO "ITOWM" IDENTI
SQL> SELECT *
2 from user_db_links;
DB_LINK
--------------------------------------------------------------------------------
USERNAME PASSWORD
------------------------------ ------------------------------
HOST
--------------------------------------------------------------------------------
CREATED
------------
CIQUSR_SYNC.168.3.9
ITOWM
oral_sz
06-SEP-17
DB_LINK
--------------------------------------------------------------------------------
USERNAME PASSWORD
------------------------------ ------------------------------
HOST
--------------------------------------------------------------------------------
CREATED
------------
CIQUSR_SYNC.US.ORACLE.COM
ITOWM
oral_sz
06-SEP-17
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26870952/viewspace-2149370/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- database link 關閉session問題DatabaseSession
- Database Link的建立Database
- JS中資料型別、內建物件、包裝型別物件、typeof關係JS資料型別物件
- 關於long型別的轉換型別
- 關於tc型別的enqueue等待型別ENQ
- oracle database link 的使用OracleDatabase
- database link概述Database
- CREATE DATABASE LINKDatabase
- Database Link使用Database
- 建立Database LinkDatabase
- oracle database linkOracleDatabase
- Management on database linkDatabase
- 關於 Go 中 Map 型別和 Slice 型別的傳遞Go型別
- 關於 PHP 的資料型別 (一)PHP資料型別
- 關於 PHP 的資料型別 (二)PHP資料型別
- 關於 PHP 的資料型別 (三)PHP資料型別
- 關於Oracle字元型別的比較Oracle字元型別
- Oracle Database Link ProblemsOracleDatabase
- 關於flashback databaseDatabase
- Oracle DG Standby Database型別OracleDatabase型別
- 關於結構體型別的學習結構體型別
- 幽默:關於型別的觀點演變型別
- 關於不完全型別的認識型別
- 關於oracle中的sql資料型別OracleSQL資料型別
- JavaScript的型別和物件JavaScript型別物件
- 關於C++列舉型別C++型別
- 關於timestamp資料型別資料型別
- Database Link 建立注意的兩點Database
- Oracle database link 詳解OracleDatabase
- oracle database link 應用OracleDatabase
- 關於Mapreduce Text型別賦值的錯誤型別賦值
- 關於Java和C#的型別對比JavaC#型別
- 關於mysql varchar 型別的最大長度限制MySql型別
- 關於synchronized的理解,共有兩種型別的鎖:synchronized型別
- create database link中的identified by valuesDatabaseIDE
- ORACLE物件型別表Oracle物件型別
- 關於int型別數值的運算問題型別
- 關於MYSQL中FLOAT和DOUBLE型別的儲存MySql型別