锘??xml version="1.0" encoding="utf-8" standalone="yes"?>
--鍒涘緩琛ㄧ┖闂?/span>
create tablespace XXXXX datafile 'D:\oracle\product\10.2.0\oradata\oral10\xxxxx.dbf' size 100M;
--鍒涘緩鐢ㄦ埛
create user username identified by password default tablespace voice_yasen;
--鐢ㄦ埛鍩烘湰鏉冮檺
grant connect,resource to voice_yasen;
--濡傛灉闇瑕佷嬌鐢↖MP鍊掑叆鏁版嵁錛屾渶綆鍗曟柟寮忕粰浠朌BA鏉冮檺
grant dba to voice_yasen;
]]>
鏁版嵁鐨?/span>SQL璇彞濡傦細(xì)
select taskindex||'|'||commonindex||'|'||tasktype||'|'||to_number(to_char(sysdate,'YYYYMMDD')) from sys_user;
spool銆銆銆 //銆銆銆銆//鍚姩鐨勮剼鏈腑鐨勬瘡涓?/span>sql銆銆//鍛戒護(hù)澶勭悊鐨勮褰曟潯鏁幫紝緙虹渷涓?/span>on
set heading off;杈撳嚭鍩熸爣棰橈紝緙虹渷涓?/span>on
set pagesize 0;杈撳嚭姣忛〉琛屾暟錛岀己鐪佷負(fù)24,銆?/span>
set termout off;鏄劇ず鑴氭湰涓殑鍛戒護(hù)鐨勬墽琛岀粨鏋滐紝緙虹渷涓?/span>on
set trimout on;鍘婚櫎鏍囧噯杈撳嚭姣忚鐨勬嫋灝劇┖鏍鹼紝緙虹渷涓?/span>off
set trimspool on;鍘婚櫎閲嶅畾鍚戯紙spoolsqlplus -s username/password@sid
set trimspool on;
set linesize 120;
set pagesize 2000;
set newpage 1;
set heading off;
set term off;
spool sys_user.txt;
select col1||','||col2||','||col3||','||col4||'..' from sys_user;
spool off;
exit;
]]>
ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL server
瑙e喅鏂規(guī)硶錛?br />
1銆?鏀硅〃娉曘傚彲鑳芥槸浣犵殑甯愬彿涓嶅厑璁鎬粠榪滅▼鐧婚檰錛屽彧鑳藉湪localhost銆傝繖涓椂鍊欏彧瑕佸湪localhost鐨勯偅鍙扮數(shù)鑴戯紝鐧誨叆mysql鍚庯紝鏇存敼 "mysql" 鏁版嵁搴撻噷鐨?"user" 琛ㄩ噷鐨?"host" 欏癸紝浠?localhost"鏀圭О"%"
mysql -u root -pvmwaremysql>use mysql;mysql>update user set host = '%' where user = 'root';mysql>select host, user from user;
2. 鎺堟潈娉曘備緥濡傦紝浣犳兂myuser浣跨敤mypassword浠庝換浣曚富鏈鴻繛鎺ュ埌mysql鏈嶅姟鍣ㄧ殑璇濄?br />
GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;
濡傛灉浣犳兂鍏佽鐢ㄦ埛myuser浠巌p涓?92.168.1.3鐨勪富鏈鴻繛鎺ュ埌mysql鏈嶅姟鍣紝騫朵嬌鐢╩ypassword浣滀負(fù)瀵嗙爜
GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.1.3' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'10.10.40.54' IDENTIFIED BY '123456' WITH GRANT OPTION;