MySQL環境中用於使用者身分識別驗證和授權管理的系統是靈活而且功能強大的。不僅能夠管理哪些可以進行什麼操作,而且能夠控制使用者可以從哪些主機串連到伺服器,這樣增加了一些安全性。我的機器是Linux系統,首次建立MySQL時,使用者名稱是root,密碼是自己設定的,首先登入到MySQL中:$mysql -u root -p ******然後就可以建立使用者了:格式:$grant perssions on databases.tables to 'username'@'permittedhost'
修改備份檔案的有效時間(必須用spfile啟動資料庫)SQL> alter system set control_file_record_keep_time=30 scope=both; System altered.先啟動歸檔SQL> startup mountOracle instance started.Total System Global Area 314572800 bytesFixed
---Oracle調試: set serveroutput on; sho errorsset autotrace on;select text from user_source where name='SP_LZW_ZJ201101300004';---linux通過過程定期取數:#!/bin/sh##ZJ201101300004_fee.sh##每月定期計費資料## 0 7 6 * * /gmcc_data/zj/zjlzw/wg/shell/ZJ201101300004
複製(Replication):通過複製執行過的語句或者資料集從主伺服器上複製到一個或多個從伺服器上實現多個資料庫伺服器之間資料庫的同步。MySQL's built-in replication capability is the foundation for building large, highperformance applications on top of MySQL.MySQL supports two kinds of replication: statement-based
建立不了Oracle表,就登陸伺服器看下了,我試著建立了一個表,提示資料表空間不足,那這個好辦擴大資料表空間就OK了唄,正在得意洋洋的時候,出現了如下的2個錯誤:ORA-01157: cannot identify/lock data file 10 - see DBWR trace file ORA-01110: data file 10:
DECLARE userid WEB_SITE.USERID%TYPE;id WEB_SITE.ID%TYPE;CURSOR site IS select id,userid from web_site;beginOPEN site; LOOPfetch site into id,userid;EXIT WHEN site%NOTFOUND; INSERT INTO web_model