真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

達夢數(shù)據(jù)庫php 達夢數(shù)據(jù)庫guan網(wǎng)

關(guān)于達夢數(shù)據(jù)庫的操作

首先,必須強調(diào)的一點是達夢數(shù)據(jù)庫確實是具有自主知識產(chǎn)權(quán)的國產(chǎn)數(shù)據(jù)庫。

創(chuàng)新互聯(lián)公司是專業(yè)的湘潭網(wǎng)站建設公司,湘潭接單;提供成都網(wǎng)站設計、成都做網(wǎng)站,網(wǎng)頁設計,網(wǎng)站設計,建網(wǎng)站,PHP網(wǎng)站建設等專業(yè)做網(wǎng)站服務;采用PHP框架,可快速的進行湘潭網(wǎng)站開發(fā)網(wǎng)頁制作和功能擴展;專業(yè)做搜索引擎喜愛的網(wǎng)站,專業(yè)的做網(wǎng)站團隊,希望更多企業(yè)前來合作!

To 那些連達夢數(shù)據(jù)庫安裝軟件都沒見到過而亂噴的朋友們:

達夢數(shù)據(jù)庫與國外Oracle比起來確實沒有什么優(yōu)勢,達夢數(shù)據(jù)庫確實存在很多問題,但是,達夢在發(fā)展,努力改進產(chǎn)品,努力縮小與國外產(chǎn)品的優(yōu)勢,至少達夢是國產(chǎn)基礎軟件中敢站出來在市場上競爭的。

朋友們,你們一邊用著國內(nèi)外的盜版軟件,一邊噴國產(chǎn)軟件爛,難道你們就沒有一丟丟的內(nèi)疚?軟件的成長不是靠軟件廠商的努力,也需要用戶的配合,為什么提到國產(chǎn)基礎軟件,你們就想噴?有多少人真正實打?qū)嵉挠眠^,評估過?

國產(chǎn)基礎軟件承載了國家的期望,國家給予了一定的支持,你們就說成騙錢了,這么好騙,你倒是騙出一個達夢數(shù)據(jù)庫來看看。

批評可以,如果給達夢數(shù)據(jù)庫指出了具體的問題,達夢一定會認證聽取,努力改進,但是請在噴之前問問自己是不是有理有據(jù)...

還有一點,達夢數(shù)據(jù)庫現(xiàn)在已經(jīng)走出國門了....

已安裝了WAMP環(huán)境,怎么連接達夢數(shù)據(jù)庫啊,求詳細步驟?。?!

Windows系統(tǒng)下加載模塊

步驟:

1) 下載apache的windows版本并安裝,同時修改httpd.conf;

2) 下載php并安裝;

3) 安裝DM DBMS,拷貝bin目錄下php4_dm.dll、php5_dm.dll到php目錄下的extensions目錄中,修改php.ini,添加extension=php5_dm.dll (如果php安裝的是php4版本,則改為extension=php4_dm.dll),添加php.ini中有關(guān)連接的配置;

4) 重啟apache服務器,在瀏覽器中輸入http:\\localhost\php_info.php查看是否有dm模塊項,如有說明加載DM PHP成功。

?php

/* 連接選擇數(shù)據(jù)庫*/

$link = dm_connect("localhost", "SYSDBA", "SYSDBA")

or die("Could not connect : " . dm_error());

print "Connected successfully";

/* 執(zhí)行SQL 查詢*/

$query = " INSERT INTO production.product(name,author,publisher,publishtime, product_subcategoryid,productno,satetystocklevel,originalprice,nowprice, discount,description,photo,sellstarttime)

VALUES('三國演義','羅貫中','中華書局','2005-04-01','4','9787101046121','10', '19.0000','15.2000','8.0','《三國演義》是中國第一部長篇章回體小說!',null,'2006-03-20')"; $result = dm_query($query)

or die("Query failed : " . dm_error());

/* 釋放資源*/

dm_free_result($result);

/* 斷開連接*/

dm_close($link);

?

以上來自官方文檔!

達夢數(shù)據(jù)庫常見參數(shù)調(diào)整

下面是在命令行客戶端工具直接執(zhí)行的腳本(執(zhí)行后,會輸出待調(diào)整參數(shù)):

備注:第一次dminit后就要調(diào)整,獲取的是當前系統(tǒng)可用內(nèi)存。

set serveroutput on

declare

v_maxsess bigint;

v_cpus bigint;

v_mem_mb bigint;

v_bufs bigint;

v_refs bigint;

v_maxdisk_mb bigint;

begin

-- manual set

v_maxsess=5000;

-- reload messages

v_cpus=64;

v_mem_mb=500000;

v_bufs=101;

v_refs=67;

v_maxdisk_mb=100000;

SELECT cast(67434610688*0.8/1024/1024 as int) into v_maxdisk_mb FROM V$SYSTEMINFO ORDER BY DRIVER_TOTAL_SIZE DESC ;

-- SELECT * FROM V$SYSTEMINFO ORDER BY DRIVER_TOTAL_SIZE DESC LIMIT 1 OFFSET 1;

SELECT case when N_CPU8 then 8 3 when N_CPU32 then N_CPU 2 else 64 end n_CPU,FREE_PHY_SIZE/1024/1024 MEM

into v_cpus,v_mem_mb FROM V$SYSTEMINFO LIMIT 1;

with a(val) as(select 5 union all

select 7 union all

select 11 union all

select 13 union all

select 17 union all

select 19 union all

select 23 union all

select 29 union all

select 31 union all

select 37 union all

select 41 union all

select 43 union all

select 47 union all

select 53 union all

select 59 union all

select 61 union all

select 67 union all

select 71 union all

select 73 union all

select 79 union all

select 83 union all

select 89 union all

select 97 union all

select 101),b as(

select rownum rn,val val from a)

select (

select VAL bufs from b where rn=( 3 + CAST( v_mem_mb/1024.0 1.0/2048 100 AS INT))) v_bufs,,(

select VAL refs from b where rn=( 3 + CAST( v_mem_mb/1024.0 1.0/2048 100 AS INT)) )v_refs into v_bufs,v_refs from dual

;

print '

begin

SP_SET_PARA_VALUE(2,''MAX_OS_MEMORY'',100);

SP_SET_PARA_VALUE(2,''MEMORY_POOL'',cast( '||v_mem_mb||' 0.1 as int) );

SP_SET_PARA_VALUE(2,''MEMORY_TARGET'',cast ( '||v_mem_mb||' 0.2 as int) );

SP_SET_PARA_VALUE(2,''MEMORY_MAGIC_CHECK'',1);

SP_SET_PARA_VALUE(2,''VM_POOL_TARGET'',cast( (0.37) '||v_mem_mb||' 1024 0.6/'||v_maxsess||' as int));

SP_SET_PARA_VALUE(2,''SESS_POOL_TARGET'',cast( (0.37) '||v_mem_mb||' 1024 0.3/'||v_maxsess||' as int ) );

SP_SET_PARA_VALUE(2,''CACHE_POOL_SIZE'',cast( (0.37) '||v_mem_mb||' ('||v_maxsess||'/2000.0)*0.55 as int) );

SP_SET_PARA_VALUE(2,''BUFFER'',cast('||v_mem_mb||' * 0.5 as int));

SP_SET_PARA_VALUE(2,''MAX_BUFFER'',cast('||v_mem_mb||' * 0.5 as int));

SP_SET_PARA_VALUE(2,''RECYCLE'',10000*'||v_cpus||'/100);

SP_SET_PARA_VALUE(2,''BUFFER_POOLS'','||v_bufs||');

SP_SET_PARA_VALUE(2,''RECYCLE_POOLS'','||v_refs||');

SP_SET_PARA_VALUE(2,''WORKER_THREADS'','||v_cpus||');

SP_SET_PARA_VALUE(2,''TASK_THREADS'','||v_cpus||');

SP_SET_PARA_VALUE(2,''HJ_BUF_GLOBAL_SIZE'', cast('||v_mem_mb||' * 0.18 as int));

SP_SET_PARA_VALUE(2,''HJ_BUF_SIZE'', cast('||v_mem_mb||' * 0.0018 as int));

SP_SET_PARA_VALUE(2,''HAGR_BUF_GLOBAL_SIZE'',cast('||v_mem_mb||' * 0.12 as int));

SP_SET_PARA_VALUE(2,''HAGR_BUF_SIZE'', cast('||v_mem_mb||' * 0.0024 as int));

SP_SET_PARA_VALUE(2,''DICT_BUF_SIZE'','||v_refs||' 5);

SP_SET_PARA_VALUE(2,''TEMP_SIZE'',5000 '||v_mem_mb||'/1024.0/256);

SP_SET_PARA_VALUE(2,''VM_POOL_SIZE'','||v_refs||' 5);

SP_SET_PARA_VALUE(2,''SESS_POOL_SIZE'','||v_refs||' 5);

SP_SET_PARA_VALUE(2,''MAX_SESSIONS'','||v_maxsess||');

SP_SET_PARA_VALUE(2,''MAX_SESSION_STATEMENT'','||v_maxsess||'*8);

SP_SET_PARA_VALUE(2,''ENABLE_ENCRYPT'',0);

SP_SET_PARA_VALUE(2,''USE_PLN_POOL'',1);

SP_SET_PARA_VALUE(2,''OLAP_FLAG'',2);

SP_SET_PARA_VALUE(2,''OPTIMIZER_MODE'',1);

SP_SET_PARA_VALUE(2,''VIEW_PULLUP_FLAG'',1);

SP_SET_PARA_VALUE(2,''COMPATIBLE_MODE'',2);

SP_SET_PARA_VALUE(2,''MONITOR_TIME'',0);

SP_SET_PARA_VALUE(2,''ENABLE_MONITOR'',1);

SP_SET_PARA_VALUE(2,''SVR_LOG'',0);

end;

';

print '

create tablespace "USER" datafile ''USER01.dbf'' size 200;';

--print '

--alter user SYSDBA default tablespace "USER";';

print '

sp_set_para_value(1,''PWD_POLICY'',0);';

print '

create user DMDBA identified by DMDBA default tablespace "USER";';

print '

GRANT DBA TO dmdba;';

print '

sp_set_para_value(1,''PWD_POLICY'',2);';

print '

ALTER DATABASE MOUNT;

ALTER DATABASE ARCHIVELOG;

ALTER DATABASE ADD ARCHIVELOG ''DEST=/home/dmdba/dmdbms/arch,TYPE=LOCAL,FILE_SIZE=1024,SPACE_LIMIT='||cast(v_maxdisk_mb*0.1 as int)||''';

ALTER DATABASE OPEN;';

print '

sp_set_para_value(1,''BAK_USE_AP'',2);

BACKUP DATABASE FULL TO DMBAK_FULL_00 BACKUPSET ''DMBAK_FULL_00'' COMPRESSED;

';

exception

when others then

raise_application_error (-20001,substr( ' 執(zhí)行失敗, '||SQLCODE||' '||SQLERRM||' '||dbms_utility.format_error_backtrace , 1, 400));

end;

/


當前題目:達夢數(shù)據(jù)庫php 達夢數(shù)據(jù)庫guan網(wǎng)
文章轉(zhuǎn)載:http://weahome.cn/article/hgpoes.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部