Oracle Lite and OCI

Is it possible to access Oracle Lite 10g using OCI. I am getting an error "ORA-24327: need explicit attach before authenticating a user" when trying to acces the Oracle Lite 10.3.0 using OCI. Can you please tell why it is occuring?
Message was edited by:
user606900

I am using the samples comming with Instant Client SDK.
Some of the relevant portion of the code is given below
static text username = (text ) "system";
static text password = (text ) "manager";
static text connectstring = (text ) "(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = HOSTNAME)(PORT = 1521)) ) (CONNECT_DATA = (SID = POLITE)))" ;
errcode = OCIEnvCreate((OCIEnv **) &envhp, (ub4) OCI_DEFAULT,
(dvoid *) 0, (dvoid * (*)(dvoid *,size_t)) 0,
(dvoid * (*)(dvoid *, dvoid *, size_t)) 0,
(void (*)(dvoid *, dvoid *)) 0, (size_t) 0, (dvoid **) 0);
if (errcode != 0) {
(void) printf("OCIEnvCreate failed with errcode = %d.\n", errcode);
exit(1);
(void) OCIHandleAlloc( (dvoid *) envhp, (dvoid **) &errhp, OCI_HTYPE_ERROR,
(size_t) 0, (dvoid **) 0);
/* server contexts */
(void) OCIHandleAlloc( (dvoid *) envhp, (dvoid **) &srvhp, OCI_HTYPE_SERVER,
(size_t) 0, (dvoid **) 0);
(void) OCIHandleAlloc( (dvoid *) envhp, (dvoid **) &svchp, OCI_HTYPE_SVCCTX,
(size_t) 0, (dvoid **) 0);
(void) OCIServerAttach( srvhp, errhp, connectstring, strlen(connectstring), 0);
/* set attribute server context in the service context */
(void) OCIAttrSet( (dvoid *) svchp, OCI_HTYPE_SVCCTX, (dvoid *)srvhp,
(ub4) 0, OCI_ATTR_SERVER, (OCIError *) errhp);
(void) OCIHandleAlloc((dvoid *) envhp, (dvoid **)&authp,
(ub4) OCI_HTYPE_SESSION, (size_t) 0, (dvoid **) 0);
(void) OCIAttrSet((dvoid *) authp, (ub4) OCI_HTYPE_SESSION,
(dvoid *) username, (ub4) strlen((char *)username),
(ub4) OCI_ATTR_USERNAME, errhp);
(void) OCIAttrSet((dvoid *) authp, (ub4) OCI_HTYPE_SESSION,
(dvoid *) password, (ub4) strlen((char *)password),
(ub4) OCI_ATTR_PASSWORD, errhp);
checkerr(errhp, OCISessionBegin ( svchp, errhp, authp, OCI_CRED_RDBMS,
(ub4) OCI_DEFAULT));
The error I am getting is from this checkerr. For the HOSTNAME in the connectionstring I have given my machine IP. Please let me know your comments.

Similar Messages

  • Oracle Lite and Oracle 8i Client on Win98

    I've had Olite v8i running on my Win98 machine for a while now. I just installed Oracle 8i Client on my machine. Now, my JDBC driver for Oracle Lite does NOT work. What could have happened here??
    Thanks.
    -Jeremy
    null

    HI Jeremy,
    I think, Your PATH was cranked up.
    The JDBC driver for OLite normally does not use any OCI DLLs, so that should not be the problem. As I said, the OLite dlls may be missing now from the PATH.
    Any error messages? "Does not work" is a bit... fuzzy.

  • Oracle lite and Stored Procedures

    Hi, I have just installed Oracle lite, connected to Polite and created dropped tables etc. I notice that in Navigator there is no folder for stored procedures or triggers. I tried to compile a syntacally correct proc in SQL plus and it generated this error: Create or Replace Procedure SCORECARD.Gen_Fiscal_Year_Data AS
    ERROR at line 1:
    OCA-30021: error preparing/executing SQL statement
    [POL-5228] syntax error.
    Does this mean that stored procs are not supported in Oracle lite?
    Thanks, Paul
    null

    Oracle Lite database does not support the usual stored procedures/triggers like an Oracle database. You have to use java classes to create triggers/stored procedures to run them in Oracle Lite database. You can refer the documentation on Oracle 8i Lite for samples/detailed information.

  • Oracle lite and RAC

    We are experiencing difficulties with installing oracle lite with Oracle RAC 10.2. Does anybody knows if this is possible?
    thank's in advance!

    The problem's were mostly implementation specific. What you need to do for RAC is to configure the mobile server to use the thick client in stead of the thin client. There is a metalink document about this (Doc ID: Note:339108.1).
    How to configure the mobile server with a RAC DB
    Solution
    1) Edit the file $ORACLE_HOME/mobile/server/bin/webtogo.ora
    2) Change this Parameter:
    ADMIN_JDBC_URL=jdbc:oracle:thin:@hostname:port:1521
    TO
    ADMIN_JDBC_URL=jdbc:oracle:thin:@DESCRIPTION=(ADDRESS=(PROTO =TCP)(HOST=clora1vip.aem.torin
    .it)(PORT=1521))(ADDRESS=(PROTO =TCP)(HOST=host_name)(PORT=host_port))(LOAD_BALANCE=yes
    (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=sid_name)(FAILOVER_MODE=(TYPE=SELE
    CT)(METHOD=BASIC)(RETRIES=180)(DELAY=5))))
    3) Save the File and restart the mobile server.

  • Oracle Lite and Java 1.3

    Some preliminary testing of Java 1.3 against Oracle Lite 8.1.5 causes an fatal crash that won't allow me to debug through and suspends both the VM and my debugger/IDE for Java.
    Can anyone confirm if it is possible to run Olite and Java 1.3? Same code works great in OLite and Java 1.2.2, and crash doesn't seem to be OS specific (tested under NT and 2000).
    Cheers, DJ

    When you put your code in a try block and print the exception, what does it say:
    String driver = getDriverFromConfigurationFile();
    try
    Class.forName(driver);
    catch(ClassNotFoundException cnfe)
    System.err.println(cnfe);
    Second option is to use DataSource instead.

  • Oracle Lite and VS 2003, VS 2005

    We are looking at using Oracle Lite. Probably version 9i.
    Is this version supported with Visual Studio 2003 or 2005?
    If not, what versions are supported with MS Visual Studio 2003 and what version are supported with MS Visual Studio 2005.
    Terry

    We plan to use VS 2005 with CF 2.0 but Oracle so far only supports CF 1.0 for its ADO.NET provider for Oracle Lite. However, so far we have found no problem using ADO.NET (1.0 implementation) with CF 2.0, although we are still in early stages of development.

  • Oracle Lite and gotchas

    We are currently trying to sell a solution using the Oracle Lite product. I have read most online product info but would like to contact someone who has actually implemented an Oracle Lite solution, particularly with Web-to-go. Please email me with a phone number [email protected] I am based in New Zealand so you may need to include your timezone so we catch up.
    Thanks in advance
    Tim Jones

    Hi Tim,
    Sorry for my english !
    I'm developing a software solution for palmV. I use Oracle lite4.0 plateform with Iconnect Consolidator (Client/Server) architecture for the replication and a Web-to-go listener for the HTTP transport between the Palm and the Database Server Oracle8.1.5. After, i will use Web-to-go for deploying the application for several clients.
    I use Satellite Forms (Puma Technology : www.pumatech.com) to develope the client's screens (Palm V)
    If you are still interested, contact me on my phone number : 00 336 89600527 (France).
    Email : [email protected] / [email protected]
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Tim Jones:
    We are currently trying to sell a solution using the Oracle Lite product. I have read most online product info but would like to contact someone who has actually implemented an Oracle Lite solution, particularly with Web-to-go. Please email me with a phone number [email protected] I am based in New Zealand so you may need to include your timezone so we catch up.
    Thanks in advance
    Tim Jones<HR></BLOCKQUOTE>
    null

  • Oracle Lite and eVB

    I am new to PDA development. I Just went through Oracle 8 Lite installation and the documentation. I found that all development features for windows CE env refer to VC++ as the tool. Is it possible to develop a front end using eVB(Embedded Visual Basic) talking to a oracle lite database using ODBC:CE. Can any one please clarify this doubt of mine.
    Thanks in advance
    -BUGS

    I am working with the same conditions without problems.. What error does it show?
    This piece of code uses the movefirst and movenext without problems. Remember to use de Err object to manage runtime errors in a friendly way.
    Err.Clear
    On Error Resume Next
    rs.open "select distinct .. where .. = '..' order by .., "", 1, 3
    If rs.recordcount > 0 Then
    rs.movefirst
    cs = rs.recordcount
    For i = 1 To cs
    combodesc.AddItem (CStr(rs.fields(0).Value))
    rs.movenext
    Next
    Else
    combodesc.Clear
    End If
    rs.close
    If Err.Number Then
    Exit Function
    End If
    resultvalue = True
    hope this helps..
    bye

  • Oracle Lite and Oracle Forms

    Is it possible to use Oracle Forms with Oracle Lite. I have some problems in connecting Oracle forms 6 with Oracle Lite 8.0.

    Surender,
    It is not possible to use Oracle Forms with Oracle Lite. If you are trying to use Forms with Oracle Database 8i, you might try asking your question in the Oracle Database forum, located here:
    General Database Discussions
    Cheers,
    Junius

  • ORACLE Lite and PalmPilot

    How can I combine Oracle Lite 3.51 Consolidator with my
    PalmPilot? Are there example applications avail.?
    null

    Hi Prashi,
    We have used to connect jdbc-odbc bridge like this, system/manager@jdbc:odbc:webtogo (or)system/manager@jdbc:odbc:olamlite . The two dsn's we have used to connect oracle9iLite with 8i as database.
    Why not u try to connect in this way? Because when i try to connect polite as per u r idea it is connecting but nothing in the polite db.
    Regards,
    anbuseelovan
    Email:[email protected]

  • Oracle Lite and EVB Problem

    My question is, Can I works with
    r.MoveNext
    r.MoveLast
    using Microsoft Embedded Visual Basic and Oracle 9i Lite 5.01 in a Compaq Ipaq 3630?
    I4m probed with this but there is an error.
    I need help please. Thank you

    I am working with the same conditions without problems.. What error does it show?
    This piece of code uses the movefirst and movenext without problems. Remember to use de Err object to manage runtime errors in a friendly way.
    Err.Clear
    On Error Resume Next
    rs.open "select distinct .. where .. = '..' order by .., "", 1, 3
    If rs.recordcount > 0 Then
    rs.movefirst
    cs = rs.recordcount
    For i = 1 To cs
    combodesc.AddItem (CStr(rs.fields(0).Value))
    rs.movenext
    Next
    Else
    combodesc.Clear
    End If
    rs.close
    If Err.Number Then
    Exit Function
    End If
    resultvalue = True
    hope this helps..
    bye

  • TNS - No Listener with Oracle Lite and Win 98

    When I try to do a tcp/ip connection to my oracle 8i lite on windows98 OS I get the ORA-12224 error, that is I can't find a TNS listener server. (where can I find documentation on how to do this)???
    On NT I must start ora80tns service, but under windows98 what must do i do ???
    I've tried to configure the options for the listener using the Oracle Net8 Assistant exactly the same as NT (the NT Oracle 8 Enterprise works) but the Win 98 won't...
    null

    Network issues in Windows, and the impact on Oracle install in general, are discussed here:
    http://download-east.oracle.com/docs/cd/B19306_01/install.102/b14316/reqs.htm#BABIAEEC
    Bottom line - you will need to come up with a useable & consistent IP address (from the loopback adapter, usually you use 127.0.0.1). I'd suggest, then you reinstall XE to use that IP address, get it working locally, then use the Application Express screens to 'enable it for the network'.
    XE has it's own forum. Needs separate registration and needs you to sign in to the forums (daily) to see it after registration. This has been discussed in detail many times in that forum. Registration is at http://www.oracle.com/technology/xe/registration and this link Oracle Database Express Edition (XE) will get you there after signing in again.

  • Installation oracle 9iDS and OCI.dll

    When installing 9iDS, the installation cannot copy the oci.dll file, retry does not work. Installation only proceeds if the copy of oci.dll is ignored.
    Scanning the net, there are numerous occurrneces of end users having problems with oci.dll.
    The problem may lie that the file was not installed during installation in the first place.
    can anyone assist?
    regards
    paulo
    [email protected]

    You might try posting this in the Developer Suite forum. Developer Suite does not use ODBC and the OCI DLL is not part of the ODBC driver, so this probably isn't the best forum.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Android 2.1 and Oracle lite.

    Hi all,
    Can andriod 2.1 device (Samsung galaxy s) be used with oracle lite and mobile server along with a application developed with vb .net?
    I do not see any device platform for this like ARMV4. Will there be similar mechanism of deploying and any work around for this?
    Thanks
    Paninie

    hi there,
    as far as the android is concerned to my knowledge there is no olite client released yet, (please correct me if im wrong).
    what you can do is that you can have the sqllite client on it instead of the olite one.
    there is a chapter describing a rather complicated in my opinion process for making it to work but android has some restrictions and so it is reasonable
    please check
    http://download.oracle.com/docs/cd/E12095_01/doc.10303/e16214/sandroid.htm#BABEIFCJ
    As described on the Android developer Web site at http://developer.android.com, all applications for the Android platform are required to be digitally signed in order to be installed on the Android device. This key is also used to encrypt the SQLite database. Thus, only the user with the key can access the database and perform synchronization.
    Because of the required key, you cannot download and install the SQLite Mobile client binaries unless they are downloaded within the context of a signed application. Thus, there is no option for a manual synchronization through mSync. Instead, all manual synchronization events are invoked through synchronization APIs.
    there is an example following in how you can perform sync through the android MDK_ROOT>Mobile\Sdk\samples\Sync\android\simple_sync_android
    for the versioning you can check
    http://download.oracle.com/docs/cd/E12095_01/doc.10303/e16214/instsqlite.htm#CACDHHED
    Platform Automatic synchronization
    Device management through the DM Agent
    Blackberry
    No
    No
    Android
    No
    No
    Win32
    Yes
    Yes
    WinCE
    Yes
    Yes
    Linux
    Yes
    Yes
    minimum is Android 1.5
    give it a try!thks
    Edited by: vasileios on 10 Μαρ 2011 11:00 μμ

  • Connecting to Oracle lite via VB6

    Hello
    is there a better way to connect to Oracle 10g when using VB6?
    this is what I have:
    Under references I am using Microsoft DAO 3.6 Object library
    I do have a module where I defined the following public variables:
    Public wsOracle As DAO.Workspace
    Public cnOracle As DAO.Connection
    Public strConn As String
    and a function to alllow me to connect to the database:
    Function ConnectDB()
    On Error GoTo Error_DataBaseError
    strConn = "ODBC;DSN=MY_DATABASE;UID=user;PWD=passr"
    Set wsOracle = DBEngine.CreateWorkspace("", "admin", "admin", dbUseODBC)
    wsOracle.DefaultCursorDriver = dbUseClientBatchCursor
    Set cnOracle = wsOracle.OpenConnection("", dbDriverNoPrompt, False, strConn)
    Error_DataBaseError:
    If Err <> 0 Then
    Call ErrorCatching("ConnectDB ()")
    End If
    End Function
    It seems to work but I am having issues, two apps are connected to the same Database one is in power builder y the other in VB6 after a certain time of inactivity I get timed out from the VB app and this gets also into the power builder app.
    but if one app is open for a long time it seems to work just fine. any ideas why?
    I read that I can use the Oracle Lite 40 ODBC Driver
    but I can't seem to find a way to do the call from VB6
    any ideas?
    any enlightenment will be appreciated

    Unfortunately, in 2.0 beta, the Infobus Data Form wizard
    connection editor only supported the Oracle Thin, OCI7 and OCI8
    drivers. For 2.0 production, Oracle Lite and the JDBC-ODBC bridge
    will also be supported.
    Regards,
    JDeveloper Team
    Poorna Byri (guest) wrote:
    : Hi,
    : Can we can connect to Oracle Lite 3.5 from Oracle JDeveloper2.0
    : Beta using Infobus Data Form. When I tried to create a file
    based
    : on "Infobus Based Data Form" wizard it is not displaying Oracle
    : Lite 3.5 driver. Can I create a TNS name for Oracle Lite 3.5
    : database.
    : Any help.
    : Thanks.
    : Poorna Byri
    null

Maybe you are looking for

  • Aufgabenleiste Acrobat Pro 9.0

    Früher gab es eine "Aufgabenleiste"(?) mit weiteren Funktionen, die rechts im Bildschirm sichtbar war. Seit dem Umstieg auf WIN 8.0 ist diese "verschwunden". Wie kann ich diese wieder einblenden? Ich brauche unter anderem die Funktion "Inhalt bearbne

  • Illustrator CS3 Import and Export File Format list?

    Hello, Has anyone typed up an updated supported import and export file format list for CS3? I used to reference a support knowledgebase document, 1001741, (no longer on Adobe's site) that showed the majority of file formats and versions that Illustra

  • Auto Packing in outbound delivery via IDOC

    Hello All, I got a requirement for Auto-packing in outbound delivery via IDOC process. Can anybody through some light on the above requirement in finding Message type, process code and so on... your every suggestion or hint will help me to fulfill th

  • Opera Mini on Nokia 8800 Arte

    Hi there, I accidently deleted Opera Mini from Application > Collections on my 8800 Arte. I'm not too worried about that as I installed the latest version 4.2. However, I have noticed I do not have Opera Mini on the Nokia main menu anymore. I have Wi

  • Activity of server during startup

    Hi All, I wanted to know which logs should i view when i start the Netweaver server from the SAPMMC console. Sometimes its takes a lot time. So which log so i check to know what is happening . Also in case of Netweaver Unix Server how can i check if