gOracleBackend::gOracleBackend(const string &mode, const string &suffix) : GSQLBackend(mode,suffix)
{
try {
- setDB(new SOracle(getArg("dbname"),
- getArg("host"),
- getArgAsNum("port"),
- getArg("socket"),
+ setDB(new SOracle(getArg("tnsname"),
getArg("user"),
getArg("password")));
void declareArguments(const string &suffix="")
{
- declare(suffix,"dbname","Pdns backend database name to connect to","powerdns");
+ declare(suffix,"tnsname","Generic Oracle backend TNSNAME to connect to","powerdns");
declare(suffix,"user","Database backend user to connect as","powerdns");
- declare(suffix,"host","Database backend host to connect to","");
- declare(suffix,"port","Database backend port to connect to","0");
- declare(suffix,"socket","Pdns backend socket to connect to","");
declare(suffix,"password","Pdns backend password to connect with","");
declare(suffix,"basic-query","Basic query","select content,ttl,prio,type,domain_id,name from records where type='%s' and name='%s'");
return mReason;
}
-SOracle::SOracle(const string &database, const string &host, u_int16_t port,
- const string &msocket, const string &user,
+SOracle::SOracle(const string &database,
+ const string &user,
const string &password)
{
d_environmentHandle = NULL;
class SOracle : public SSql
{
public:
- SOracle(const string &database, const string &host="", u_int16_t port=0,
- const string &msocket="",const string &user="",
+ SOracle(const string &database,
+ const string &user="",
const string &password="");
~SOracle();
insert into domains (id,name,type) values (domains_id_sequence.nextval,'netherlabs.nl','NATIVE');
</screen>
</para>
+ <para>
+ Furthermore, use the <command>goracle-tnsname</command> setting to specify which TNSNAME the Generic Oracle Backend
+ should be connectiong to. There are no <command>goracle-dbname</command>, <command>goracle-host</command> or
+ <command>goracle-port</command> settings, their equivalent is in <filename>/etc/tnsnames.ora</filename>.
+ </para>
</sect2>
<sect2><title>Basic functionality</title>