📄 radsqlrelay.8
字号:
.\" # DS - begin display.de DS.RS.nf.sp...\" # DE - end display.de DE.fi.RE.sp...TH RADSQLRELAY 8 "19 June 2005" "" "FreeRADIUS helper program".SH NAMEradsqlrelay - relay SQL queries to a central database server.SH SYNOPSIS.B radsqlrelay.RB [ \-d.IR sql_driver ].RB [ \-b.IR database ].RB [ \-f.IR file ].RB [ \-h.IR host ].RB [ \-u.IR user ].RB [ \-p.IR password ].RB [ \-1 ]\fIfile_path\fP.SH DESCRIPTION\fBradsqlrelay\fP tails a SQL \fIlogfile\fP and forwards the queriesto a database server. Used to replicate accounting records to one(central) database, even if the database has extended downtime..PPThe SQL logfile is created by the \fBrlm_sql_log\fP module. The modulemust be configured in the \fBradiusd\fP server before you can use\fBradsqlrelay\fP..SH OPTIONS.IP "\-d \fIsql_driver\fP"Driver to use: mysql, pg, oracle..IP "\-b \fIdatabase\fP"Name of the database to use..IP "\-f \fIfile\fP"Read password from file, instead of command line..IP "\-h \fIhost\fP"Connect to host..IP "\-u \fIuser\fP"User for login..IP "\-p \fIpassword\fP"Password to use when connecting to server..IP "\-1"One-shot mode: push the file to database and exit..IP "file_path"The pathname of the SQL logfile to use..SH NOTES.SS Oracle driverThe command "radsqlrelay -d oracle -b db.domain.tld sql-relay" reads thedatabase description stored in $TNS_ADMIN/tnsnames.ora:.PP.DSdb.domain.tld = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = db.domain.tld)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = <DB SID>) ) ).DE.SH SEE ALSO.BR rlm_sql_log (5).SH AUTHORNicolas Baradakis <nicolas.baradakis@cegetel.net>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -