FirebirdSQL/2/4
出自VFP Wiki
PasleTocna (對話 | 貢獻) |
LetolAelze (對話 | 貢獻) |
||
第1行: | 第1行: | ||
+ | * [http://deleltoule.com/sittatrocerb.html chirolrola] | ||
+ | http://c4tboba.com/litrocr.html[chirolrola] [[http://c4tboba.com/litrocr.html][chirolrola]] | ||
+ | * http://vidarra.com/chichibo.html chirolrola | ||
+ | * [[http://ercnapa.com/elttrr.html chirolrola]] | ||
+ | * [[http://varnoc4.com/ouracc4t.html|chirolrola]] | ||
+ | * [[http://lidomtrocric.com/lacnadelt.html | chirolrola]] | ||
+ | * [http://getorm.com/paszelboroba.html|chirolrola] | ||
+ | * [chirolrola|http://caelolo.com/boalchi.html] | ||
+ | * ((http://boouri.com/rozelv.html chirolrola)) | ||
+ | * [chirolrola](http://riccnaromon.com/dronget.html "chirolrola") | ||
+ | "chirolrola":http://livarcc4trel.com/elcnaelch.html | ||
+ | |||
http://www.textlidelalt.com | http://www.textlidelalt.com | ||
=== SYSDBA user === | === SYSDBA user === | ||
- | SYSDBA | + | SYSDBA useræ¯Firebird Serveré Âè¨ÂçÂÂ使ç¨èÂÂ
ï¼Âä¹Âæ¯管çÂÂå¡帳èÂÂï¼Â建è°å®Âè£Âä¹Âå¾Âï¼ÂæÂÂ好è½æ¹è®ÂÃ¥Â
¶å¯Â碼æÂÂèÂÂ
æ°å¢Âä¸ÂÃ¥ÂÂæ°çÂÂ管çÂÂå¡帳èÂÂï¼ÂFirebird Server使ç¨èÂÂ
帳èÂÂæ¯åÂÂå¨æ¼security.fdbï¼ |
- | === | + | === 系統æ¬ÂéÂÂè³ÂæÂÂ庫 security.fdb === |
- | * | + | *userè³ÂæÂÂ表--éÂÂè¦Âæ¬Âä½Â說æ |
- | || Column || | + | || Column || 說æ || |
- | || User | + | || User nameãÂÂ|| 使ç¨èÂÂ
帳èÂÂ,æÂÂé·å¯輸åÂ
Â¥128Ã¥ÂÂÃ¥Â
 || |
- | || Password || | + | || Password || 使ç¨èÂÂ
å¯Â碼,æÂÂé·å¯輸åÂ
Â¥128Ã¥ÂÂÃ¥Â
 || |
- | || UID || | + | || UID || æ´æ¸åÂÂæÂ
ÂçÂÂ使ç¨èÂÂ
ID || |
- | || GID || | + | || GID || æ´æ¸åÂÂæÂ
ÂçÂÂ群çµÂID || |
- | || Full name || | + | || Full name || 使ç¨èÂÂ
Ã¥Â
¨å || |
- | === | + | === 群çµÂ建ç«Âæ¹张=== |
- | # | + | # 建ç«Âè¦Âå CREATE ROLE. |
#:CREATE ROLE sales; | #:CREATE ROLE sales; | ||
- | # | + | # è®Âæ´ç¾æÂÂè³ÂæÂÂ表è¦ÂÃ¥ÂÂ(table1) |
#:GRANT UPDATE ON table1 TO sales; | #:GRANT UPDATE ON table1 TO sales; | ||
- | # | + | # è®Âæ´ç¾æÂÂè³ÂæÂÂ表è¦ÂÃ¥ÂÂ(user1, user2, user3) |
#:GRANT sales TO user1, user2, user3; | #:GRANT sales TO user1, user2, user3; | ||
- | # | + | # æÂÂå¾Â,ç¨è®Âæ´å¾ÂçÂÂ使ç¨èÂÂ
帳èÂÂçÂȌÂ
¥è³ÂæÂÂ庫 |
- | #:CONNECT | + | #:CONNECT âÂÂfoo.gdbâ USER âÂÂuser1â PASSWORD âÂÂpeanutsâ ROLE sales; |
- | === | + | === 使ç¨ Firebird API æ¹å¼Âæ§å¶系統æ¬Âé === |
- | + | è¦Â使ç¨ API æ§å¶系統æ¬ÂéÂÂæ¹å¼ÂçÂÂå½æ¸æÂÂisc_add_user( ), isc_delete_user( ), and isc_modifiy_user( ). | |
- | + | 詳細è³ÂæÂÂè«ÂÃ¥ÂÂè APIæÂÂå | |
=== gsec command-line tool === | === gsec command-line tool === | ||
- | * | + | *gsecæÂÂ令åÂÂæ¸說æÂÂ表 |
- | || | + | || æÂÂ令 || 說æ || |
- | || di[splay] | + | || di[splay]ãÂÂ|| Ã¥ÂÂåº security.fdb æÂÂæÂÂè³Âæ || |
- | || di[splay] name || | + | || di[splay] name || 顯示æÂÂæÂÂ使ç¨èÂÂ
|| |
- | || a[dd] name -pw password [option argument] [option argument ...] || | + | || a[dd] name -pw password [option argument] [option argument ...] || æ°墠security.fdb çÂÂ使ç¨èÂÂ
|| |
- | || mo[dify] name [options] || | + | || mo[dify] name [options] || ä¿®æ¹ security.fdb çÂÂ使ç¨èÂÂ
|| |
- | || de[lete] name || | + | || de[lete] name || åªé¤ security.fdb çÂÂ使ç¨èÂÂ
|| |
- | || h[elp] or ? || gsec | + | || h[elp] or ? || gsec æÂÂ令èÂÂèªÂæ³Â說æ || |
- | || q[uit]|| | + | || q[uit]|| é¢é gsec æÂÂ令模张|| |
- | * | + | *optionsÃ¥ÂÂæ¸說æÂÂ表 |
- | || Option || | + | || Option || 說æ || |
- | || -password or -pa | + | || -password or -pa stringãÂÂ|| Password of user who is performing the change || |
|| -user string|| User who is performing the change || | || -user string|| User who is performing the change || | ||
|| -pw string || Target user password|| | || -pw string || Target user password|| | ||
第52行: | 第64行: | ||
|| -lname string || Last Name for target user || | || -lname string || Last Name for target user || | ||
- | * | + | *gsec使ç¨說æ |
- | ** | + | **å·è¡Âgsec: gsec -user sysdba -password masterkey |
- | ** | + | **é 端å·è¡Âgsec: gsec -database jupiter:/usr/interbase/isc4.gdb |
- | ** | + | **å¢Âå 使ç¨èÂÂ
'jones': GSEC> add jones -pw welcome |
- | ** | + | **顯示è¨ÂéÂÂ: GSEC> display |
- | ** | + | **ä¿®æ¹使ç¨èÂÂ
Ã¥ÂÂ稱: GSEC> modify cbrown âÂÂuid 8 âÂÂfname cindy |
- | ** | + | **顯示使ç¨èÂÂ
'cbrown'è¨ÂéÂÂ: GSEC> display cbrown |
- | ** | + | **åªé¤使ç¨èÂÂ
'cbrow': GSEC> delete cbrown |
- | === | + | === Ã¥ÂÂèÂÂæÂÂç« === |
- | #[http://vfp.sunyear.com.tw/viewtopic.php?t=1556 | + | #[http://vfp.sunyear.com.tw/viewtopic.php?t=1556 FirebirdçÂÂå®ÂÃ¥Â
¨è¨Âå®ÂPowerPoint] |
在2009年7月10日 (五) 04:32所做的修訂版本
http://c4tboba.com/litrocr.html[chirolrola] [[1][chirolrola]]
- http://vidarra.com/chichibo.html chirolrola
- [chirolrola]
- [[2]]
- [| chirolrola]
- [3]
- [chirolrola|http://caelolo.com/boalchi.html]
- ((http://boouri.com/rozelv.html chirolrola))
- [chirolrola](http://riccnaromon.com/dronget.html "chirolrola")
"chirolrola":http://livarcc4trel.com/elcnaelch.html
目錄 |
SYSDBA user
SYSDBA useræ¯Firebird Serveré Âè¨ÂçÂÂ使ç¨è ï¼Âä¹Âæ¯管çÂÂå¡帳èÂÂï¼Â建è°å®Âè£Âä¹Âå¾Âï¼ÂæÂÂ好è½æ¹è®Âå ¶å¯Â碼æÂÂè æ°å¢Âä¸ÂÃ¥ÂÂæ°çÂÂ管çÂÂå¡帳èÂÂï¼ÂFirebird Server使ç¨è 帳èÂÂæ¯åÂÂå¨æ¼security.fdbï¼Â
系統æ¬ÂéÂÂè³ÂæÂÂ庫 security.fdb
- userè³ÂæÂÂ表--éÂÂè¦Âæ¬Âä½Â說æÂÂ
|| Column || 說æ || || User nameãÂÂ|| 使ç¨è 帳èÂÂ,æÂÂé·å¯輸堥128Ã¥ÂÂå  || || Password || 使ç¨è å¯Â碼,æÂÂé·å¯輸堥128Ã¥ÂÂå  || || UID || æ´æ¸åÂÂæ ÂçÂÂ使ç¨è ID || || GID || æ´æ¸åÂÂæ ÂçÂÂ群çµÂID || || Full name || 使ç¨è 堨å ||
群çµÂ建ç«Âæ¹å¼Â
- 建ç«Âè¦Âå CREATE ROLE.
- CREATE ROLE sales;
- è®Âæ´ç¾æÂÂè³ÂæÂÂ表è¦ÂÃ¥ÂÂ(table1)
- GRANT UPDATE ON table1 TO sales;
- è®Âæ´ç¾æÂÂè³ÂæÂÂ表è¦ÂÃ¥ÂÂ(user1, user2, user3)
- GRANT sales TO user1, user2, user3;
- æÂÂå¾Â,ç¨è®Âæ´å¾ÂçÂÂ使ç¨èÂÂ
帳èÂÂçÂȌÂ
¥è³ÂæÂÂ庫
- CONNECT âÂÂfoo.gdbâ USER âÂÂuser1â PASSWORD âÂÂpeanutsâ ROLE sales;
使ç¨ Firebird API æ¹å¼Âæ§å¶系統æ¬ÂéÂÂ
è¦Â使ç¨ API æ§å¶系統æ¬ÂéÂÂæ¹å¼ÂçÂÂå½æ¸æÂÂisc_add_user( ), isc_delete_user( ), and isc_modifiy_user( ).
詳細è³ÂæÂÂè«ÂÃ¥ÂÂè APIæÂÂÃ¥ÂÂ
gsec command-line tool
- gsecæÂÂ令åÂÂæ¸說æÂÂ表
|| æÂÂ令 || 說æ || || di[splay]ãÂÂ|| Ã¥ÂÂåº security.fdb æÂÂæÂÂè³Âæ || || di[splay] name || 顯示æÂÂæÂÂ使ç¨è || || a[dd] name -pw password [option argument] [option argument ...] || æ°墠security.fdb çÂÂ使ç¨è || || mo[dify] name [options] || ä¿®æ¹ security.fdb çÂÂ使ç¨è || || de[lete] name || åªé¤ security.fdb çÂÂ使ç¨è || || h[elp] or ? || gsec æÂÂ令èÂÂèªÂæ³Â說æ || || q[uit]|| é¢é gsec æÂÂ令模张||
- optionsÃ¥ÂÂæ¸說æÂÂ表
|| Option || 說æ || || -password or -pa stringãÂÂ|| Password of user who is performing the change || || -user string|| User who is performing the change || || -pw string || Target user password|| || -uid integer || Target user ID || || -gid integer || Group ID for target user || || -fname string || First Name for target user || || -mname string || Middle Name for target user || || -lname string || Last Name for target user ||
- gsec使ç¨說æÂÂ
- å·è¡Âgsec: gsec -user sysdba -password masterkey
- é 端å·è¡Âgsec: gsec -database jupiter:/usr/interbase/isc4.gdb
- å¢Âå 使ç¨è 'jones': GSEC> add jones -pw welcome
- 顯示è¨ÂéÂÂ: GSEC> display
- ä¿®æ¹使ç¨è åÂÂ稱: GSEC> modify cbrown âÂÂuid 8 âÂÂfname cindy
- 顯示使ç¨è 'cbrown'è¨ÂéÂÂ: GSEC> display cbrown
- åªé¤使ç¨è 'cbrow': GSEC> delete cbrown