純好人不用打:白羊
沒(méi)人防:雙子(迷宮)、天平(卡妙的冰箱)、射手(迷宮)
打死:巨蟹(紫龍)、山羊(紫龍自曝)、雙魚(阿瞬)、水瓶(冰河)
沒(méi)打過(guò),放水:獅子(星矢)、天蝎(冰河)、金牛(星矢)、處女(一輝)
這樣看來(lái)紫龍是最NB的,一個(gè)人干掉2個(gè),而且靠他師傅走后門天平不用打,還用天平的武器救了冰河。
冰河和他師傅干了2仗
冰河那段也挺NB,先是在天平被凍個(gè)半死,然后在天蝎被針扎個(gè)半死,最后到了水瓶還能把他師傅干掉
冰河和他師傅是最體現(xiàn)實(shí)力的一仗,純實(shí)力對(duì)扣
合著星矢誰(shuí)也沒(méi)殺,就TM來(lái)打醬油的。。。
簡(jiǎn)單過(guò)一遍,詳細(xì)的以后遇到慢慢研究。
主要的更新在幾個(gè)方面:
1. OUI的改進(jìn)
2. Oracle Restart
3. ASM的增強(qiáng)!??!
New Grid Infrastructure Installation Option
?1. 單點(diǎn)包括:ASM、listener和Oracle Restart(監(jiān)控、管理并自動(dòng)重啟各個(gè)組件)
?2. 集群包括:ASM、listener和Clusterware
New Desktop and Server Class Options?1. Desktop Class:適用于筆記本、臺(tái)式機(jī)
?2. Server Class:適用于服務(wù)器(功能上沒(méi)區(qū)別,多一些高級(jí)配置選項(xiàng))
Daylight Savings Time Upgrade of Timestamp with Timezone Data Type?新的DBMS_DST包,優(yōu)化對(duì)TIMESTAMP WITH TIMEZONE數(shù)據(jù)的管理
SYSASM Privilege?管理ASM需要SYSASM權(quán)限,旨在分清ASM管理和DB管理
Fixup Scripts and Prerequisite Checks?安裝前檢查時(shí),如果遇到不符合要求的配置,OUI會(huì)對(duì)一些檢查項(xiàng)自動(dòng)生成fixup腳本,用root執(zhí)行就可以解決相應(yīng)問(wèn)題。
New Tool to Configure Custom Installation Options?OUI不在提供對(duì)單個(gè)組件的配置功能,如果需要只能用$ORACLE_HOME/bin/chopt命令行進(jìn)行配置。
我想Oracle的趨勢(shì)就是為了讓更多已經(jīng)成熟的配置自動(dòng)化,簡(jiǎn)化使用。Deinstallation Tool?OUI不再用來(lái)刪除oracle軟件,請(qǐng)使用$ORACLE_HOME/deinstall
Intelligent Data Placement?指定ASM磁盤的磁盤范圍,旨在將高頻訪問(wèn)的數(shù)據(jù)放在HOT region(比如磁盤的外道)
Oracle Automatic Storage Management Cluster File System (Oracle ACFS)?為其它文件提供ASM的存儲(chǔ)功能
Data Pump Export and Data Pump Import?Data Pump兼容Export/Import
Use Oracle Restart to Automatically Restart Your Database?1. 針對(duì)單點(diǎn)環(huán)境
?2. 自動(dòng)重啟又問(wèn)題的組件,如:db instance、listener、asm instance
New Method of Installing Oracle Automatic Storage Management?以前,ASM的安裝是伴隨著DB的安裝;現(xiàn)在是伴隨著Software的安裝。
?其實(shí),就是把ASM上升到一個(gè)軟件的高度(以前只是db的一個(gè)組件)
SRVCTL Support for Single Instance Database in a Cluster?SRVCTL統(tǒng)一管理單點(diǎn)(with Restart)和集群數(shù)據(jù)庫(kù)(with Clusterware)
Deprecated in Oracle Database 11g Release 2?不支持裸設(shè)備了:要么用文件系統(tǒng)、要么用ASM,說(shuō)白了,
企業(yè)環(huán)境就必須用ASM?不支持Oracle Ultra Search(9i的一個(gè)什么鳥功能)
重裝完系統(tǒng),mysql不需要重裝,直接當(dāng)綠色版使用,還更干凈
//啟動(dòng)MYSQL
cd $MYSQL_HOME/bin
D:\JAVA\MYSQL\mysql-5.1.53-win32\bin>
mysqld --console??????
110616? 1:26:26 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
110616? 1:26:26? InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
110616? 1:26:26? InnoDB: Started; log sequence number 0 44233
110616? 1:26:27 [Note] Event Scheduler: Loaded 0 events
110616? 1:26:27 [Note] mysqld: ready for connections.
Version: '5.1.53-community'? socket: ''? port: 3306? MySQL Community Server (GPL
)
//簡(jiǎn)單使用mysql>
show databases;
+--------------------+
| Database?????????? |
+--------------------+
| information_schema |
| mysql????????????? |
| test?????????????? |
+--------------------+
3 rows in set (0.03 sec)
mysql>
use mysqlDatabase changed
mysql>
show tables;+---------------------------+
| Tables_in_mysql?????????? |
+---------------------------+
| columns_priv????????????? |
| db??????????????????????? |
| event???????????????????? |
| func????????????????????? |
| general_log?????????????? |
| help_category???????????? |
| help_keyword????????????? |
| help_relation???????????? |
| help_topic??????????????? |
| host????????????????????? |
| ndb_binlog_index????????? |
登陸D:\JAVA\MYSQL\mysql-5.1.53-win32\bin>mysql.exe -uroot
創(chuàng)建數(shù)據(jù)庫(kù)mysql> create database testdb;
--主鍵是非分區(qū)索引,也可以看作是全局
create table test_par1
(
? tdate?? varchar2(8)
primary key)
partition by range ( tdate )
(
???? partition p1 values less than ('20090201'),
???? partition p2 values less than ('20090301'),
???? partition pm values less than (MAXVALUE) ?
) tablespace test;
--主鍵是分區(qū)索引create table test_par2
(
? tdate?? varchar2(8)
)
partition by range ( tdate )
(
???? partition p1 values less than ('20090201'),
???? partition p2 values less than ('20090301'),
???? partition pm values less than (MAXVALUE) ?
) tablespace test;
create index i_tdate2 on test_par2(tdate)
local;
alter table test_par2
add constraint pk_tdate2
primary key(tdate);
--查看test_par2的DDL
select dbms_metadata.get_ddl( 'TABLE', 'TEST_PAR2' ) from dual;
--整理如下create table test_par3
(
? tdate?? varchar2(8),
? constraint pk_tdate3 primary key (tdate)
using index local)
partition by range ( tdate )
(
???? partition p1 values less than ('20090201'),
???? partition p2 values less than ('20090301'),
???? partition pm values less than (MAXVALUE) ?
) tablespace test;
這個(gè)案例也告訴我們,在做DDL時(shí),盡量還是顯示的寫出屬性,一些簡(jiǎn)易語(yǔ)法會(huì)引起不可知的定義。最后都用 get_ddl 再查一下,這才是Oracle真正執(zhí)行的DDL。
列出所有實(shí)例
[db2inst1@dcm ~]$ db2ilist
db2inst1
列出當(dāng)前實(shí)例下的所有數(shù)據(jù)庫(kù)[db2inst1@dcm ~]$ db2 list db directory
?System Database Directory
?Number of entries in the directory = 1
Database 1 entry:
?Database alias?????????????????????? = SAMPLE
?Database name??????????????????????? = SAMPLE
?Local database directory???????????? = /home/db2inst1
?Database release level?????????????? = d.00
?Comment????????????????????????????? =
?Directory entry type???????????????? = Indirect
?Catalog database partition number??? = 0
?Alternate server hostname??????????? =
?Alternate server port number???????? =
啟動(dòng)實(shí)例[db2inst1@dcm ~]$ db2start
07/09/2010 14:24:36???? 0?? 0?? SQL1063N? DB2START processing was successful.
SQL1063N? DB2START processing was successful.
連接到數(shù)據(jù)庫(kù)[db2inst1@dcm ~]$ db2 connect to sample
?? Database Connection Information
?Database server??????? = DB2/LINUX 9.7.1
?SQL authorization ID?? = DB2INST1
?Local database alias?? = SAMPLE
執(zhí)行SQL[db2inst1@dcm ~]$ db2
db2 => select * from staff where dept=20
ID???? NAME????? DEPT?? JOB?? YEARS? SALARY??? COMM??? ?
------ --------- ------ ----- ------ --------- ---------
??? 10 Sanders?????? 20 Mgr??????? 7? 98357.50???????? -
??? 20 Pernal??????? 20 Sales????? 8? 78171.25??? 612.45
??? 80 James???????? 20 Clerk????? -? 43504.60??? 128.20
?? 190 Sneider?????? 20 Clerk????? 8? 34252.75??? 126.50
? 4 record(s) selected.
退出db2 => quit
DB20000I? The QUIT command completed successfully.
斷開(kāi)連接(不斷開(kāi)就不能db2stop)[db2inst1@dcm ~]$ db2 connect reset
DB20000I? The SQL command completed successfully.
關(guān)閉實(shí)例[db2inst1@dcm ~]$ db2stop
07/09/2010 14:29:32???? 0?? 0?? SQL1064N? DB2STOP processing was successful.
SQL1064N? DB2STOP processing was successful.