1. 介紹一下使用同義字訪問相同的對象:(1)方便訪問其它使用者的對象(2)縮短對象名字的長度2.建立同義字SQL> create synonym syn_emp for scott.emp;同義字已建立。3.刪除同義字SQL> drop synonym syn_emp;同義字已刪除。註:在建立之後,在一個sqlplus視窗中可以訪問,再開啟一個sqlplus視窗後訪問不到,所以應加上public,為:SQL> create public synonym syn_emp
當遠端連線MySQL資料庫的時候顯示Can't connect to MySQL server (10060),我們從以下幾個方面入手,找出錯誤的原因:1.網路不通。檢查能不能ping通。2.防火牆設定。防火牆是否放過mysql的進程,是否屏蔽了mysql的3306連接埠。3.mysql的賬戶設定。mysql賬戶是否不允許遠端連線。如果無法串連可以嘗試以下方法:mysql -u root -p //登入MySQLmysql> GRANT ALL
Oracle ref 動態資料指標:create or replace procedure pro_cursor_type_V ast_tmp table3%rowtype;type c_type is ref cursor;cur c_type; v_taname varchar2(100);beginv_taname:='aa';open cur for 'select * from table3 where taname=:a order by taid desc'
支援的平台支援的Oracle Database 版本在當前的Oracle GoldenGate 10.4版本中,支援如下Oracle Database版本Oracle 8i (DML support only)Oracle 9.1 and 9.2 (DML and DDL support)Oracle 10.1 and 10.2 (DML and DDL support)Oracle 11g (DML and DDL
今天使用imp匯入dmp格式的Database Backup的時候,發現匯入出錯,提醒對象已經存在,才記起來要先刪除所有表才能匯入,如果資料庫有幾十上百個表的話,一個一個去刪除真浪費時間。為了方便,就寫了一條語句來查詢所有表和產生大量刪除的語句:select 'drop table '||table_name||';' as sqlscript from user_tables;SQLSCRIPT--------------------------------------------drop
deferred_segment_creation導致EXP-00003在11g的版本新特性,為了避免浪費資源,當建立非分區的空表的時候會延遲建立segment,也包括該表相關對象LOBS和INDEX.官方文檔解釋:DEFERRED_SEGMENT_CREATIONspecifies the semantics of deferred segment creation. If set totrue, then segments for non-partitioned tables and