BASIC web authentication against Oracle database?

Hello,
Here's what I want in a nutshell. When someone goes to one of my webpages
under WLS 8.1, I want them to be presented with a BASIC authentication
dialog. That part is configured between web.xml and weblogic.xml and I
think I'm OK with doing that. But the part I don't have quite figured out
is how to get do authentication against a table in an Oracle (or any other,
for that matter) database.
Can someone point me (or do you have) any examples that accomplish this?
I'm sure I'm not the only one who's tried to do this. As far as I can
tell, I need to create a custom Authenticator (and possibly a custom
Asserter) and my implementation of those would do the search against the
database. Correct?

Hi
You probably need to develop a custom login module. WLS uses JAAS so do some JAAS
research the go to
http://dev2dev.bea.com/products/wlserver/security.jsp
then click
http://dev2dev.bea.com/codelibrary/code/security_prov.jsp and get and customize
the sample code.
The example code does NOT show how to use form based authentication with your
custom LoginModule, I'm still working on that, but I assume the WLS servlet container
creates and appropriate CallbackHandler so you can access the supplied username
and pw which you can then use to authenticate against your RDBMS
I need to create a custom LoginModule for Blockade and am going down this track,
still working on it.
"KissFan 1973" <[email protected]> wrote:
Hello,
Here's what I want in a nutshell. When someone goes to one of my webpages
under WLS 8.1, I want them to be presented with a BASIC authentication
dialog. That part is configured between web.xml and weblogic.xml and
I
think I'm OK with doing that. But the part I don't have quite figured
out
is how to get do authentication against a table in an Oracle (or any
other,
for that matter) database.
Can someone point me (or do you have) any examples that accomplish this?
I'm sure I'm not the only one who's tried to do this. As far as I
can
tell, I need to create a custom Authenticator (and possibly a custom
Asserter) and my implementation of those would do the search against
the
database. Correct?

Similar Messages

  • How to call web services from oracle database 10g

    Hi all ,
    How can i call web services from oracle database 10g ?
    thanks ...

    abdou123 wrote:
    but how can i get complex result
    for example
    i pass input parameter like National Id Number
    and get the person details ( name , age , date of birth , ............ ) .Basic approach to web services using UTL_HTTP explained in {message:id=10448611}.
    An example of using a pipeline table function as a data transformation process (turning web data into rows and columns) in {message:id=10158148}.

  • Authentication against a database table

    Hi,
    I would like to know if there are way of doing the authentication of weblogic against a database table.
    I already saw the authentication working against the database users, but not against a database table.
    thanks
    rjc

    Anonymous - It is not necessary to login to the HTML DB application if you set it up that way. But I think you mean you'd like the user to be able to login to the "other" application (what technology does it use?) and then (in the same browser session I presume) be able to link to the HTML DB application which would then recognize the authenticated user (from the other app) and allow access. If the user accessed the HTML DB app without having authenticated to the other app first, the user would be challenged for credentials using a page of some sort from the other app. If this is sort of on-the-mark, please search this forum for an example of authentication using mod_ntlm (search ntlm) and take a look at the page sentry code that's been posted and used successfully by others. There's also a document here: http://htmldb.oracle.com/pls/otn/f?p=18326:44:::::P44_ID:1722 .
    Scott

  • JAVA WEB SERVICE AND ORACLE DATABASE

    Hi,
    I working with Oracle database 10g, Oracle Bpel 10.1.2.0 and JDeveloper 10g on windows xp home.
    I have created a java class with incapsulated sql statement (jdbc protocol).
    All it's ok when the class runs from command line (JCreator).
    After that i created the web service from java classes (with JDeveloper) and I connected (with success) database to OC4J and run the web service, i have this xml message like result:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <SOAP-ENV:Body>
    - <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server.Exception:</faultcode>
    <faultstring>java.lang.NullPointerException</faultstring>
    <faultactor>/DipendentiWebService/DipendentiWebService</faultactor>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Which's my error?
    Thanks

    Hi Frank,
    thank you for the reply, but i don't undertsand what do you mean "add print statement to java class".
    follows the java class code that loads a mail address from database oracle:
    import sqlj.runtime.*;
    import sqlj.runtime.ref.*;
    import java.sql.SQLException;
    import java.util.*;
    import java.sql.*;
    import utility.*;
    import java.lang.*;
    import java.io.*;
    public class DipendentiWS{
    protected static String matricola = null;
    protected static String email = null;
    private static DBConnectionManager connMgr;
    private static Connection conn = null;
    private static Statement st = null;
    private static PreparedStatement pstmt;
    private static ResultSet rs = null;
    private static final String FIND_BY_MATRICOLA = "SELECT Email FROM ARDIP.DIPENDENTI " +
                                                           "WHERE Matricola = ?";
    // metodo ausiliario per il rilascio delle risorse
    * @webmethod
         public static String leggiMail(String matricola)throws SQLException{
         // Caricamento dati Dipendente da DB
         try {
    connMgr = DBConnectionManager.getInstance();
         Connection conn = connMgr.getConnection("access");
    if (conn != null) {
         conn.setAutoCommit(false);
    st = conn.createStatement();
    pstmt = conn.prepareStatement(FIND_BY_MATRICOLA);
                   pstmt.setString(1, matricola);
                   rs = pstmt.executeQuery();
    if (rs.next()) {
    email =rs.getString(1);
    conn.commit();
    // conn.setAutoCommit(true);
    catch(SQLException e){
         e.printStackTrace();
         System.err.println("ATTENZIONE!!!!");
              finally {
         try {st.close();}
         catch(SQLException ex){ ex.printStackTrace();}
              return email;      
         }

  • About the installation of  "semantic web technology" on Oracle database 11g

    Dear Oracle Semantic Technology Users:
    Recently I am evaluating the Semantic Web technology supported by oracle database 11g, but when I try to install this technology according to the document "Semantic Technologies Developer's Guide" under "Product Documentation: Oracle® Spatial Resource Description Framework (RDF) 11g Release 1 (11.1) Manual," I logged in by "sys as sysdba", and executed the script $ORACLE_HOME/md/admin/catsem11i.sql, the SQL Plus console shows no error and installed successfully, but when I check it on SQL Developer interface, I can't find the schema, views and tables related to the semantic web functions which should be created.
    Then I tried to execute the same sql script (catsem11i.sql) by SQL developer, it came out a window and ask me the value of COMP_FILE, and the execution is interrupted.
    So I would like to ask that do you have any idea, what kind of problems or mistake could it happen? I installed Oracle 11g on windows XP platform with the enterprise edition default installation.
    Thanks for your help in advance :)
    Best Regards,
    Feng-Chien Chung
    Metadata Architecture and application team
    Academia Sinica, Taiwan

    Hi,
    Actually, you are pretty close :) You need to invoke sem_apis.create_sem_network('<YOUR_TABLESPACE_NAME>');
    After that, please check the following tutorial for a good end-to-end example.
    http://www.oracle.com/technology/obe/11gr1_db/datamgmt/nci_semantic_network/nci_Semantics_les01.htm
    Cheers

  • NLS_NCHAR_CHARACTERSET in Forms 10.1.2.0.2 against Oracle Database 10gR2

    Hi,
    I have the "¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿"-Problem in Forms 10.1.2.0.2 with russian text.
    Environment:
    1. Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    2. NLS of database
    NLS_LANGUAGE GERMAN
    NLS_TERRITORY GERMANY
    NLS_CHARACTERSET WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET AL16UTF16
    3. Developer Suite 10gR2(10.1.2.0.2)
    NLS_LANG=GERMAN_GERMANY.UTF8 (default.env)
    3. Developer Suite 10g (9.0.4)
    NLS_LANG=GERMAN_GERMANY.UTF8 (default.env)
    4. Developer 10g and 10gR2 are on the same workstation
    Steps:
    1. Create a table:
    CREATE TABLE TEST_NCHAR
    C_NVARCHAR NVARCHAR2(100)
    2. I import a file (unicode little endian) of russian words in the table with the sql*loader (10.2.0.1.0) and following import.ctl:
    LOAD DATA
    CHARACTERSET UTF16
    INFILE 'russisch2.txt'
    BADFILE 'russisch.bad'
    DISCARDFILE 'russisch.dsc'
    APPEND
    INTO TABLE test_nchar
    FIELDS TERMINATED BY X'000A'
    TRAILING NULLCOLS
    (c_nvarchar)
    3. I try the same steps in Forms 10g (9.0.4) and 10.1.2.0.2
    a) Open the Forms Builder
    b) Generate a form with the assistant from the table test_nchar
    c) create a when-new-form-instance-trigger (message(get_application_property(user_nls_lang));
    d) Start the oc4j with the changed default.env
    e) Start the form
    -> in the status bar I get in both version GERMAN_GERMANY.UTF8
    -> I execute the query
    - In 10g (9.0.4) I get in the form the russian text
    - In 10gR2 (10.1.2.0.2) I get in the form "¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿"
    Why I get "¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿"?
    thanks in advance,
    Lars

    No idea's, link,...

  • Authentication against oracle

    Hi
    How does one configure an authenticator which uses oracle accounts and passwords? We have an existing database (and users), and would like to write jdeveloper + ADF applications. Is it necessary to write your own code for this or is there an existing provider which can authenticate against the existing user accounts?
    thanks

    Hi,
    How does one configure an authenticator which uses oracle accounts and passwords?
    if you want to authenticate against database user schema then you need to write a custom authentication provider. If the user is stored in a database table then you can use the default SQL authentication provider
    Frank

  • Windows authentication for Oracle Databases

    Steps Followed For OS Authentication.
    OS      : Windows 2000 Server with latest Service Pack 4
    Database: Oracle 9i.
    Objective: We are having a server in which Oracle 9i database is residing.We want to create
    a user that will be autheticated by Windows 2000 OS and not by Database.
    The server itself is used both as a server and a client.
    1. The init<sid>.ora file was modified and the parameter OS_AUTHENT_PREFIX="" was added.
    2. The Oracle Instance was started using Init<sid>.ora file and not SP file.
    3. An operating system account was created say Test.
    4. Two groups OSDBA,OSOPER were created and Test user was made member of Administrator,Osdba,Osoper.
    5. Connected to the SQL PLUS as SYS then issued the commands
    Create user Test identified externally;
    Grant connect,resource,create session to Test;
    6.Logged off from the machine and logged into the same machine with user Test and with its
    corresponding password.
    7.From command prompt we tried sqlplus CONNECT / .
    Ideally it should connect as the user Test but it is not connecting.
    NB All the above operation was carried out in the same machine on which the database is
    residing.

    %ORACLE_HOME%\DATABASE\SPFILE%
    Given this command also..SQL>create pfile from spfile;
    >>
    you can see the initSID.ora in the directory where
    your spfile iswhere to see that?see in %ORACLE_HOME/database/initsid.ora
    edit the initSID.ora add the line
    What to edit?its a text file ,open in notepad add the line
    OS_RULES=TRUE
    then save the file
    start the system by
    startup pfile='c'it can be any path or any specific path.no it is the one from
    startup pfile='c:%ORACLE_HOME\database\initsid.ora
    Hope this will help
    You need a pfile to chnage the server settings
    Or else
    issue
    SQL>alter system set Os_rules=true scope=spfile;
    THen restart the database as suugested by Dbaron

  • WISM Web Authentication against MS IAS

    Does anybody know if Radius Web auth is supported with MS IAS radius server or is it working with cisco ACS only ?
    Thanks

    I've just readed in a previous post that the service-type must be login instead of framed in the remote access policies.
    That was my issue with IAS
    Thanks

  • How to run local host web application in win 7 64 bit with oracle database?

    Hi all,
    Hope doing well,
    sir i am running my local host web application with oracle database in win 7 32 bit. it's working fine.
    but when i am running the same thing in win 7 64 bit. it's showing login error.
    not going to home page even i checked with this published file open in visual studio it's working fine.
    how to run it correctly?
    thanks in advance.

    The number of times you have been asked to post sufficient details for your questions, we would expect you to have got the message by now... but clearly not.
    952646 wrote:
    but when i am running the same thing in win 7 64 bit. it's showing login error.What error? You haven't posted an error. There are millions of possible errors in computing and you're expecting people to guess which one.
    not going to home page even i checked with this published file open in visual studio it's working fine.
    how to run it correctly?No code, no database version, no details...... = NO HELP.
    When are you going to learn.

  • Connection pooling and auditing on an oracle database

    Integration of a weblogic application with an oracle backend,
    Connection pooling, and auditing ,2 conflicting requirements ?
    Problem statement :
    We are in the process of maintaining a legacy client server application where
    the client is
    written in PowerBuilder and the backend is using an Oracle database.
    Almost all business logic is implemented in stored procedures on the database.
    When working in client/server mode ,1 PowerBuilder User has a one-to-one relation
    with
    a connection(session) on the oracle database.
    It is a requirement that the database administrator must see the real user connected
    to the database
    and NOT some kind of superuser, therefore in the PowerBuilder app each user connects
    to the database
    with his own username.(Each user is configured on the database via a seperate
    powerbuilder security app).
    For the PowerBuilder app all is fine and this app can maintain conversional state(setting
    and
    reading of global variables in oracle packages).
    The management is pushing for web-based application where we will be using bea
    weblogic appserver(J2EE based).
    We have build an business app which is web-based and accessing the same oracle
    backend app as
    the PowerBuilder app is doing.
    The first version of this web-based app is using a custom build connector(based
    on JCA standard and
    derived from a template provided by the weblogic integration installation).
    This custom build connector is essentially a combination of a custom realm in
    weblogic terms
    and a degraded connection pool , where each web session(browser) has a one-to-one
    relation
    with the back end database.
    The reason that this custom connector is combining the security functionality
    and the pooling
    functionality , is because each user must be authenticated against the oracle
    database(security requirement)
    and NOT against a LDAP server, and we are using a statefull backend(oracle packages)
    which would make it
    difficult to reuse connections.
    A problem that surfaced while doing heavy loadtesting with the custom connector,
    is that sometimes connections are closed and new ones made in the midst of a transaction.
    If you imagine a scenario where a session bean creates a business entity ,and
    the session bean
    calls 1 entity bean for the header and 1 entity bean for the detail, then the
    header and detail
    must be created in the same transaction AND with the same connection(there is
    a parent-child relationship
    between header and detail enforced on the back end database via Primary and Foreing
    Keys).
    We have not yet found why weblogic is closing the connection!
    A second problem that we are experincing with the custom connector, is the use
    of CMP(container managed persistence)
    within entity beans.
    The J2EE developers state that the use of CMP decreases the develoment time and
    thus also maintenance costs.
    We have not yet found a way to integrate a custom connector with the CMP persistence
    scheme !
    In order to solve our loadtesting and CMP persistence problems i was asked to
    come up with a solution
    which should not use a custom connector,but use standard connection pools from
    weblogic.
    To resolve the authentication problem on weblogic i could make a custom realm
    which connects to the
    backend database with the username and password, and if the connection is ok ,
    i could consider this
    user as authenticated in weblogic.
    That still leaves me with the problem of auditing and pooling.
    If i were to use a standard connection pool,then all transaction made in the oracle
    database
    would be done by a pool user or super user, a solution which will be rejected
    by our local security officer,
    because you can not see which real user made a transaction in the database.
    I could still use the connection pool and in the application , advise the application
    developers
    to set an oracle package variable with the real user, then on arrival of the request
    in the database,
    the logic could use this package variable to set the transaction user.
    There are still problems with this approach :
    - The administrator of the database can still not see who is connected , he will
    only see the superuser connection.
    - This scheme can not be used when you want to use CMP persistence , since it
    is weblogic who will generate the code
    to access the database.
    I thought i had a solution when oracle provided us with a connection pool known
    as OracleOCIConnectionPool
    where there is a connection made by a superuser, but where sessions are multiplexed
    over this physical pipe with the real user.
    I can not seem to properly integrate this OCI connectionpool into weblogic.
    When using this pool , and we are coming into a bean (session or entity bean)
    weblogic is wrapping
    this pool with it's own internal Datasource and giving me back a connection of
    the superuser, but not one for the real user,
    thus setting me with my back to the wall again.
    I would appreciate if anyone had experienced the same problem to share a possible
    solution with us
    in order to satisfy all requirements(security,auditing,CMP).
    Many Thanks
    Blyau Gino
    [email protected]

    Hi Blyau,
    As Joe has already provided some technical advice,
    I'll try to say something on engineering process level.
    While migrating an application from one technology to
    other, like client-server to n-tier in you case, customers and
    stakeholders want to push into the new system as many old
    requirements as possible. This approach is AKA "we must
    have ALL of the features of the old system". Mostly it happens
    because they don't know what they want. Ad little understanding
    of abilities of the new technology, and you will get a requirement
    like the one you have in you hands.
    I think "DBA must see real user" is one of those. For this
    type of requirements it can make sense to try to drop it,
    or to understand its nature and suggest alternatives. In this
    particular case it can be a system that logs user names,
    login and logout times.
    Blind copying of old features into an incompatible new architecture
    may endanger the whole project and can result in its failure.
    Hope this helps.
    Regards,
    Slava Imeshev
    "Blyau Gino" <[email protected]> wrote in message
    news:[email protected]...
    >
    Integration of a weblogic application with an oracle backend,
    Connection pooling, and auditing ,2 conflicting requirements ?
    Problem statement :
    We are in the process of maintaining a legacy client server applicationwhere
    the client is
    written in PowerBuilder and the backend is using an Oracle database.
    Almost all business logic is implemented in stored procedures on thedatabase.
    When working in client/server mode ,1 PowerBuilder User has a one-to-onerelation
    with
    a connection(session) on the oracle database.
    It is a requirement that the database administrator must see the real userconnected
    to the database
    and NOT some kind of superuser, therefore in the PowerBuilder app eachuser connects
    to the database
    with his own username.(Each user is configured on the database via aseperate
    powerbuilder security app).
    For the PowerBuilder app all is fine and this app can maintainconversional state(setting
    and
    reading of global variables in oracle packages).
    The management is pushing for web-based application where we will be usingbea
    weblogic appserver(J2EE based).
    We have build an business app which is web-based and accessing the sameoracle
    backend app as
    the PowerBuilder app is doing.
    The first version of this web-based app is using a custom buildconnector(based
    on JCA standard and
    derived from a template provided by the weblogic integrationinstallation).
    This custom build connector is essentially a combination of a custom realmin
    weblogic terms
    and a degraded connection pool , where each web session(browser) has aone-to-one
    relation
    with the back end database.
    The reason that this custom connector is combining the securityfunctionality
    and the pooling
    functionality , is because each user must be authenticated against theoracle
    database(security requirement)
    and NOT against a LDAP server, and we are using a statefull backend(oraclepackages)
    which would make it
    difficult to reuse connections.
    A problem that surfaced while doing heavy loadtesting with the customconnector,
    >
    is that sometimes connections are closed and new ones made in the midst ofa transaction.
    If you imagine a scenario where a session bean creates a business entity,and
    the session bean
    calls 1 entity bean for the header and 1 entity bean for the detail, thenthe
    header and detail
    must be created in the same transaction AND with the same connection(thereis
    a parent-child relationship
    between header and detail enforced on the back end database via Primaryand Foreing
    Keys).
    We have not yet found why weblogic is closing the connection!
    A second problem that we are experincing with the custom connector, is theuse
    of CMP(container managed persistence)
    within entity beans.
    The J2EE developers state that the use of CMP decreases the develomenttime and
    thus also maintenance costs.
    We have not yet found a way to integrate a custom connector with the CMPpersistence
    scheme !
    In order to solve our loadtesting and CMP persistence problems i was askedto
    come up with a solution
    which should not use a custom connector,but use standard connection poolsfrom
    weblogic.
    To resolve the authentication problem on weblogic i could make a customrealm
    which connects to the
    backend database with the username and password, and if the connection isok ,
    i could consider this
    user as authenticated in weblogic.
    That still leaves me with the problem of auditing and pooling.
    If i were to use a standard connection pool,then all transaction made inthe oracle
    database
    would be done by a pool user or super user, a solution which will berejected
    by our local security officer,
    because you can not see which real user made a transaction in thedatabase.
    I could still use the connection pool and in the application , advise theapplication
    developers
    to set an oracle package variable with the real user, then on arrival ofthe request
    in the database,
    the logic could use this package variable to set the transaction user.
    There are still problems with this approach :
    - The administrator of the database can still not see who is connected ,he will
    only see the superuser connection.
    - This scheme can not be used when you want to use CMP persistence , sinceit
    is weblogic who will generate the code
    to access the database.
    I thought i had a solution when oracle provided us with a connection poolknown
    as OracleOCIConnectionPool
    where there is a connection made by a superuser, but where sessions aremultiplexed
    over this physical pipe with the real user.
    I can not seem to properly integrate this OCI connectionpool intoweblogic.
    When using this pool , and we are coming into a bean (session or entitybean)
    weblogic is wrapping
    this pool with it's own internal Datasource and giving me back aconnection of
    the superuser, but not one for the real user,
    thus setting me with my back to the wall again.
    I would appreciate if anyone had experienced the same problem to share apossible
    solution with us
    in order to satisfy all requirements(security,auditing,CMP).
    Many Thanks
    Blyau Gino
    [email protected]

  • Web Service and Oracle HTTP Server

    I have a web environment with Oracle Database 10.2.0.3 , oracle http server (using mod_plsql), Oracle pl/sql web toolkit. I need to create a web service that is accessed externally which will interact with the database (select, insert, delete). Is it possible to publish a web service to the Oracle Http Server or to implement web services with the environment above

    Hello,
    In RDBMS 10g you cannot directly expose WS from the DB you need to use the OracleAS Web Service Runtime to do it, following this documentation:
    - Developing Web Services that Expose Database Resources
    This is true if we are talking about "tooling/runtime/API" but after all Web Services are mainly XML (WSDL and SOAP) so it is still possible to create by hands (PL/SQL & static files) but it is probably a long work depending of the complexity of your services.
    Also, in RDBMS 11, you can now directly expose WS from the DB using the embedded HTTP server, see this Oracle 11g New Features Document
    Note that before taking one approach you must take time to write up your requirement regarding Web Services eg: do I need security, which time of encoding, interoperability, ..., ... For example WS-Security that is the standard to secure SOAP messages is not (yet) supported by the Oracle 11g RDBMS Native Web Services... where when you do use the WS-Runtime you can secure the Web Service..
    Regards
    Tugdual Grall

  • Export import - using TOAD FOR ORACLE  and ORACLE DATABASE 10G EXPRESS or s

    Hi all,
    Could you please kindly help me?
    I am using TOAD FOR ORACLE to export a table to flat file A. The tool just supports to distinguish fields by "spaces".
    And the web page of ORACLE DATABASE 10G EXPRESS to import the data from flat file A to another database. To load data to a table from a text file, the web page bases on "comma" to distinguish fields.
    So could you have any suggestion for me? I need to export data via TOAD FOR ORACLE. And then import it to another database by the home page of ORACLE DATABASE 10G EXPRESS or sqlplus.
    Thank you so much for your help!

    Dont use TOAD for exporting your data. Use PL/SQL. Below is the code given in Asktom.com that does what you want.
    create or replace function  dump_csv( p_query     in varchar2,
                                          p_separator in varchar2 default ',',
                                          p_dir       in varchar2 ,
                                          p_filename  in varchar2 )
    return number
    is
        l_output        utl_file.file_type;
        l_theCursor     integer default dbms_sql.open_cursor;
        l_columnValue   varchar2(2000);
        l_status        integer;
        l_colCnt        number default 0;
        l_separator     varchar2(10) default '';
        l_cnt           number default 0;
    begin
        l_output := utl_file.fopen( p_dir, p_filename, 'w' );
        dbms_sql.parse(  l_theCursor,  p_query, dbms_sql.native );
        for i in 1 .. 255 loop
            begin
                dbms_sql.define_column( l_theCursor, i, l_columnValue, 2000 );
                l_colCnt := i;
            exception
                when others then
                    if ( sqlcode = -1007 ) then exit;
                    else
                        raise;
                    end if;
            end;
        end loop;
        dbms_sql.define_column( l_theCursor, 1, l_columnValue, 2000 );
        l_status := dbms_sql.execute(l_theCursor);
        loop
            exit when ( dbms_sql.fetch_rows(l_theCursor) <= 0 );
            l_separator := '';
            for i in 1 .. l_colCnt loop
                dbms_sql.column_value( l_theCursor, i, l_columnValue );
                utl_file.put( l_output, l_separator || l_columnValue );
                l_separator := p_separator;
            end loop;
            utl_file.new_line( l_output );
            l_cnt := l_cnt+1;
        end loop;
        dbms_sql.close_cursor(l_theCursor);
        utl_file.fclose( l_output );
        return l_cnt;
    end dump_csv;
    /Here is the link to this thread in asktom.
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:95212348059

  • Oracle Database 12.0 OTN dev license trial terms

    Hi,
    I'm DBA and my company asked me to demonstrate VPD and proxy authentication of Oracle database EE 10.2 .
    I need to learn these things and test some examples described in documentation .
    May I for these purposes install on my notebook 10.2 EE database downloaded from OTN under Development license ?
    XE doesn't contain these features :)
    Is the trial period restricted to 21 days ?
    regards
    Janus

    1) The license says you can only use the database to
    create a[i] single prototype. No real ambiguity, is there? Just need to answer
    whether 'learning' does fit into the definition of
    'creating a prototype'?
    OK there isn't. Or have I understood it properly that Application X using one purely development schema appowner means one prototype. And as soon as one creates second schema on the same DB or different DB then it is the second prototype.
    So nice until now. Of course the question remains - what is that kind of licence worth because I've yet to be find an app developed just on single schema all its lifecycle including development and test. OK even if such app exists I'd better won't use it :)
    2) It does go on to say that the prototype can not be
    put into production - internal use or commercial -
    without getting an appropriate license. The question about test and other possible development instances is not 100% percent clear to me although I'm quite sure that these must be more than one prototype...
    >
    Fine - this ensures the dev license is not inherited
    by the prototype
    3) It states that any other use requires contacting
    Oracle sales for an appropriate license.OK this is the bright side of life because it means negotiations and these almost always leads to some compromises :)
    4) You may not: [some lines skipped] - continue to
    develop your application
    If 'learning' IS permitted under the definition of
    prototype, then what is an application? Can a single
    SQL statement be defined as an application?Yeahhh and at least to my mind it definitely cannot be described as "indefinite development purpose".
    Bottom lines:
    1) If it's simple SQL you are wanting to learn, use
    Oracle Express Edition;
    2) If you wat to learn all of Oracle capability AND
    want to stay perfectly legal, purchase the relatively
    inexpensive Personal Edition - it has all otyhe
    features of Oradle Enterprise Edition and is actually
    less expensive than Microsoft Office Professional.Of course this absolutely contradicts to the goal of developing an app on the as much as possible close environment as real production will be...
    So the bottom bottom line is - speak and get __written__ licencing contract from your sales rep for everything anyway, isn't it? :)
    Gints Plivna
    http://www.gplivna.eu

  • How to integrate android application with oracle database using oracle mobile database server.

    Hi,
    I developed one web application using oracle database. I want to implement same web application in android. My problem is how to integrate android application with existing oracle database using oracle database mobile server. Can u please guide me how to install oracle database mobile server and how to integrate android app with existing oracle database..
    Thank you.

    In the Database Mobile Doc set there is an entire book that covers the Installation of Oracle Database Mobile Server.   Chap 4 of that book contains screen shots and all kinds of information that will help guide you through the installation.   We also have a doc on the different mobile clients.  Chap 2 of that guide covers installs and integration of an android app. 
    thanks
    mike

Maybe you are looking for

  • How do I Get my library back on I tunes? I had to replace my hard drive.

    I had to replace the hard drive of my macbook. Now when I open itunes, it is completely empty! is there anyway to get my music back or atleast the music I purchased from itunes? I can access my account it shows record of my purchases, but my library

  • Portege 3500 loads start up files but will not setup XP

    When I purchased this 3500 it did not have an OS. I managed to find a PCMCIA CD-Rom (thanks to this forum) which it will recognize the Windows XP CD. This loads the Startup files but when we get to the Windows setup it closes the computer down reques

  • IPhone has no service but signal is strong and wifi available

    I am traveling abroad and called my carrier from home to be sure I could get and send texts. My phone says no service but I have wifi in this hotel and my iPad works. iPad is AT&T but iPhone is Verizon.

  • External monitor recommendations please!

    I'm switching from my troublesome iMac to the Macbook Pro - I've had so much trouble with my iMac display that I'm not sure about buying the Apple Cinema Display. I was wondering if there are any graphic designers out there that could recommend a goo

  • Task is taking more time, while creating more number of jobs in PLSQL.

    Hi, I want to know regarding distributing a task to no. of scheduler jobs. On which basis we should have to define no. of jobs and also what will be advantage or disadvantage of increasing the number of such jobs for a particular task ?