1.在Linux上,用Oracle使用者登入後,執行:[oracle@h16 oracle]$ sqlplus /nologSQL*Plus: Release 9.2.0.4.0 - Production on Tue Feb 19 16:42:38 2008Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.SQL> connect system/manager as
在Linux下構建web應用時,需要遠端存取MySQL資料庫。我們不推薦在Linux下使用root來登入,而是添加新使用者。1)以root使用者登入#mysql -u root -p2)插入新使用者,host:%;user:jason;pssword:jasonmysql>insert into mysql.user (host,user,password) values('%','jason',PASSWORD('jason'));3)更新密碼mysql>update user
在Ubuntu下MySQL預設是只允許本地訪問的,如果你要其他機器也能遠程夠訪問MySQL資料庫的話,需要設定一些東西 修改/etc/mysql/my.cnf 注釋掉這句話 bind-address = 127.0.0.1 給某一台主機訪問資料庫的許可權 grant all privileges on weguan.* to test@202.101.222.111 identified by 'password' 注意:
由於公司ERP系統的平台為RedHat Linux ES4+Oracle10g,暫時交由我進行維護,所以想藉此機會學習一下Linux,對自己的要求不高,就是能在Linux上安裝成功Oracle,然後會備份和恢複資料庫.首先就在噹噹網上買了一本<基於Linux平台的Oracel Database 10g管理>的書,由清華出版社翻譯的,經過一段時間的閱讀,可以說對我的學習沒有任何實質性的協助,建議初學者不要買這本書.我首先嘗試的是在紅帽Linux
Oracle SQL Developer is a new, free graphical tool that enhances productivity and simplifies database development tasks. With SQL Developer, you can browse database objects, run SQL statements and SQL scripts, and edit and debug PL/SQL statements.
準備MySQL的源碼,版本號碼為Mysql-5.0.20a.tar.gz,當然其它的也行,只做為測試.Linux用Red Hat Linux as 4.安裝步驟:1.解壓Mysql-5.0.20a.tar.gz.命令: tar -zxvf Mysql-5.0.20a.tar.gz2.配置 Mysql命令:./configure --prefix=/usr/local/mysql
order by 排序對效能的影響-***********************************案例示範-***********************************alter system flush shared_pool;set autotrace traceonly explain stat;select * from t3 where sid>90 ;執行計畫---------------------------------------
1. dba,sysdba,sysoper 區別 dba 是一種角色;角色可以包含系統許可權,對象許可權和角色;dba不包含sysdba,sysoper許可權; sysdba ,sysoper 是兩種系統許可權;這兩種許可權比較大最好以sys,system登陸管理,不要賦給普通使用者; 2. Oracle的public public 可以理解為所有使用者的集合; grant dba to public ; 相當於所有使用者都是dba;