Linux下設定MySQL資料庫允許遠端連線如果通過用戶端工具串連Linux下的MySQL資料庫出現以下錯誤Host '192.168.1.3' is not allowed to connect to this MySQL server 的解決方案:1,在Linux本機下訪問mysql資料庫[root@mail ~]# mysql -u root -p root若出現Can't connect to local MySQL server through socket
Oracle工具之autotrace的開啟與選項說明平台:Oracle 10g , RHEL-5.8步驟如下:1)sys@ORCL> @$ORACLE_HOME/sqlplus/admin/plustrce.sql2)sys@ORCL> grant plustrace to public;關於Autotrace幾個常用選項的說明:Set autotrace off :預設值。Set autotrace on
使用SPFILE將所配置的初始化參數重設為系統預設值使用SPFILE啟動,如果想把初始化參數恢複為系統預設值,使用類似這樣的語句:alter system reset db_create_file_dest ;這個語句修改的是SPFILE中的條目。從實驗中執行兩次重設參數的語句後的出錯提示也可以驗證。1.更改參數BYS@bys1>show parameter db_create_fileNAME TYPE VALUE------------------------------------
Oracle 複製任意表一行的SQL語句(測試Ok),oraclesql測試了很久,網上說的方法很多,其實都是錯誤的,正確的寫法:declare cursor rowAll is select * from tb_news where 1=1; row1 tb_news%rowtype; i int; begin i := 0; for row1 in rowAll loop row1.id :=
類型轉換導致執行計畫不走索引測試案例,執行計畫索引測試環境類比:SQL> drop table t_col_type purge;create table t_col_type(id varchar2(20),col2 varchar2(20),col3 varchar2(20));insert into t_col_type select rownum,'abc','efg' from dual connect by level<=10000;commit;create
Oracle 左外串連的一些測試,Oracle串連測試 為了更加深入左外串連,我們做一些測試,外串連的寫法有幾種形式,我們可以通過10053跟蹤到最終SQL轉換的形式。--初始化資料create table A( id number, age number);create table b( id number, age number);insert into A values(1,10);insert into A values(2,2
ORA-01552 :非系統資料表空間 'xxxx'不能使用系統回退段,ora-01552xxxxORA-01552 :非系統資料表空間‘XXXX’不能使用系統回退段故障分析:UNDO資料表空間資料檔案受損,導致執行更新操作失敗。故障解決:建立的新的undo資料表空間,置為 預設,AUTO,正常開啟資料庫。Microsoft Windows [版本 5.2.3790](C) 著作權 1985-2003 Microsoft Corp.C:\Documents and
Oracle資料泵遠程匯入檔案到本機資料庫,oracle匯入資料庫--以dba身份登入C:\Users\Administrator>sqlplus / as sysdba--建立使用者SQL> create user bfzg0828 identified by bfzg0828 default tablespace users quotaunlimited on users;--授予串連角色,資源角色給使用者SQL> grant connect,resource to