oraParseConParams          package:ROracle          R Documentation

_P_a_r_s_e _a_n _O_r_a_c_l_e _c_o_n_n_e_c_t_i_o_n _s_t_r_i_n_g

_D_e_s_c_r_i_p_t_i_o_n:

     Parse an oracle connections string of the form
     "user/password@dbname" to determine the three Oracle's connection
     parameters "username", "passwd" and "dbname".

_U_s_a_g_e:

     oraParseConParams(username="", password="", dbname=ifelse(usingR(), Sys.getenv("ORACLE_SID"), getenv("ORACLE_SID")))

_A_r_g_u_m_e_n_t_s:

username: a character string of the form "username/passwd@dbname".
          Default is "".

password: an optional password.  If non-empty and there's also a
          password in the connection string 'username', this password
          overrides the one in 'username'. Default is "".

  dbname: an optional database name (Oracle SID).  If non-empty and
          there's also a database name in the connection string
          'username', this database name overrides the one in
          'username'.

_D_e_t_a_i_l_s:

     Both 'username' and 'password' may be emtpy, in which case the
     'username' is set to "/"; this instructs Oracle to use the
     operating system user/password authentication (Oracle needs to be 
     set up to do this.)

_V_a_l_u_e:

     A 3-element character vector with the 'username', 'passwd', and
     'dbname' suitable for a call to 'dbConnect'.

_R_e_f_e_r_e_n_c_e_s:

     http://stat.bell-labs.com/RS-DBI

_S_e_e _A_l_s_o:

     'dbConnect', 'Oracle'

_E_x_a_m_p_l_e_s:

     ## Not run: 
        conParams <- parse.OraConParams("user/pwd@dbname")
     ## End(Not run)

