ODBC - Procedure & VB6

How to call a Procedure with VB6? I have oracle 9.2.0.1.0 an ODBC driver 9.2.0.4.0
I use this code :
Set StProc = New ADODB.Command
IdRicovero = rs.Fields("IdRicovero")
With StProc
Set .ActiveConnection = DBConnection
.CommandText = "test.testprocedure"
.CommandType = adCmdStoredProc
.Parameters.Append .CreateParameter(, adNumeric, adParamInput)
.Parameters(0).value = Xvariable
.Parameters(0).Size = Len(Xvariable)
Call .Execute
End With
And the procedure is like this :
CREATE OR REPLACE PROCEDURE "test"."testprocedure" (
inparam      IN NUMBER DEFAULT NULL)
AS
BEGIN
END RicreaSpostamentiRicovero;
This code return error "the ODBC driver not support the requested properties".
Anyone have any ideas ???

Thanks for the feedback.
What I'm trying to do is convert a large VB6 application to use ADO instead of RDO, and the Oracle ODBC driver instead of Microsoft ODBC. It's a precursor to conversion to VB.Net. The calls work fine with the Microsoft ODBC driver. So I'm confident the crash is being caused by the Oracle ODBC in some fashion. I suppose I could go down the path of trying to use command type adCmdStoredProc, however this application is very large with many calls to stored procs. It would be a very large undertaking if I had to make that kind of change. I will try to analyze the dumps and possibly open an SR with Oracle.

Similar Messages

  • Can I connect to SAP database directly with ODBC?

    I need to read data from SAP and write them into ms sqlserver. I wrote a RFC in SAP and used VB.NET to call RFC. I wonder that the RFC efficency is very slow while reading a great lot data. RFC also cannot support complex condition string, and it cannot fetch my data flexibly.
    I found that the user who was included in a user group "db<sid>adm" could connect to db2 udb with ODBC in VB6.0 or VB.NET. I also can use the SQL sentence to get data flexibly.
    Please tell me whether I can use this user to read (just using select sentense) data from DB2 UDB directly, or whether I can use the newly created user to get data. Will this method cause any problem ?

    > Will this method cause any problem ?
    Pretty likely: yes, it will.
    You may want to read this thread Retrive Data From SAP Using C Language first (and the blogs I refered to in it).
    What it boils down to is: you're trying a super-low-level access to data in order to perform a high-level business data exchange.
    You could as well hex-read the data files of the database or the blocks from your hard disks.
    There are a bunch of options to remote access data in SAP systems and maybe your RFC can be tuned to better support your needs.
    But don't move over to the 'dark side' of direct database access
    regards,
    Lars

  • Call Oracle Function from ASP++++!

    I have a lot of Oracle function in packages and i would like use it in my ASP pages.
    With Oracle procedure it's all right.
    Sample like this
    set cn = Server.CreateObject("ADODB.Connection")
    connString = "Provider=MSDAORA.1;Data Source=<>;User ID=<>;Password=<>"
    cn.Open connString
    SQL = "{call test.test_asp({resultset 0, cResult})}"
    Set cmd = Server.CreateObject ("ADODB.Command")
    Set cmd.ActiveConnection = cn
    cmd.CommandText = SQL
    cmd.CommandType = 1     'adCmdText
    Set rs = Server.CreateObject ("ADODB.RecordSet")
    Set rs = cmd.Execute
    If NOT (rs.BOF and rs.EOF) Then
    Do while NOT rs.EOF
    <%=rs("dfcountry")%>
    <%=rs("dfname")%>
    rs.MoveNext
    LOOP     
    End if
    And in package TEST i have
    PROCEDURE TEST_ASP(cResult IN OUT ResultCursor)
    IS
    BEGIN
    OPEN cResult FOR
    SELECT *
    FROM tcountry;
    END TEST_ASP;"
    I Hope You help me with similar call a function!!!
    For example, this is one
    FUNCTION test_fun
    RETURN resultcursor
    IS
    vres resultcursor;
    BEGIN
    OPEN vres FOR
    SELECT *
    FROM tcountry;
    RETURN vres;
    END test_fun;

    Stored Procedures
    When executing an Oracle PL/SQL stored procedure using a command, use Oracle native syntax or the ODBC procedure call escape sequence in the command text:
    Oracle native syntax: BEGIN credit_account(123, 40); END;
    ODBC syntax: {CALL credit_account(123, 40)}
    Preparing Commands
    OraOLEDB validates and fetches the metadata only for SELECT SQL statements.
    Command Parameters
    When using Oracle ANSI SQL, parameters in the command text are preceded by a colon. In ODBC SQL, parameters are indicated by a question mark ("?").
    OraOLEDB supports input, output, and input/output parameters for PL/SQL stored procedures and stored functions. OraOLEDB supports input parameters for SQL statements.
    Joel P�rez

  • Purging the cache entries accordingto table and SA

    Hi Gurus,
    I have few questions on Cache purging
    1>How many types of purging.
    2>Is it possible to purge the cache based on tables i.e.(if entries are generated on table A only that entries should purge in cache manager).
    3>Is it possible to purge the cache based on Subject Areas i.e.(if entries generated on subject area A only that entries should purge in cache manager).
    4>supose in cache manager there are 100 entries and i want to purge only selected entries i.e.(if i want to purge 25th, 50th and 75th,100th entries ) how i can achieve this.
    Regards,

    The same you can get it from Helpfile
    To purge the cache manually with the Cache Manager facility
    Use the Administration Tool to open a repository in online mode.
    Select Manage > Cache to open the Cache Manager dialog box.
    Select Cache or Physical mode by selecting the appropriate tab in the left pane.
    Navigate the explorer tree to display the associated cache entries in the right pane.
    Select the cache entries to purge, and then select Edit > Purge to remove them.
    In Cache mode, select the entries to purge from those displayed in the right pane.
    In Physical mode, select the database, catalog, schema or tables to purge from the explorer tree in the left pane.
    In Cache mode, you can purge:
    One or more selected cache entries associated with the open repository.
    One or more selected cache entries associated with a specified business model.
    One or more selected cache entries associated with a specified user within a business model.
    In Physical mode, you can purge:
    All cache entries for all tables associated with one or more selected databases.
    All cache entries for all tables associated with one or more selected catalogs.
    All cache entries for all tables associated with one or more selected schemas.
    All cache entries associated with one or more selected tables.
    SAPurgeCacheByQuery. Purges a cache entry that exactly matches a specified query. For example, using the following query, you would have a query cache entry that retrieves the names of all employees earning more than $100,000:
    select lastname, firstname from employee where salary > 100000;
    The following call purges the cache entry associated with this query:
    Call SAPurgeCacheByQuery('select lastname, firstname from employee where salary > 100000' );
    SAPurgeCacheByTable. Purges all cache entries associated with a specified physical table name (fully qualified) for the repository to which the client has connected.
    This function takes up to four parameters representing the four components (database, catalog, schema and table name proper) of a fully qualified physical table name. For example, you might have a table with the fully qualified name of DBName.CatName.SchName.TabName. To purge the cache entries associated with this table in the physical layer of the Oracle BI repository, execute the following call in a script:
    Call SAPurgeCacheByTable( 'DBName', 'CatName', 'SchName', 'TabName' );
    NOTE: Wild cards are not supported by the Oracle BI Server for this function. Additionally, DBName and TabName cannot be null. If either one is null, you will receive an error message.
    SAPurgeAllCache. Purges all cache entries. The following is an example of this call:
    Call SAPurgeAllCache();
    SAPurgeCacheByDatabase. Purges all cache entries associated with a specific physical database name. A record is returned as a result of calling any of the ODBC procedures to purge the cache. This function takes one parameter that represents the physical database name and the parameter cannot be null. The following shows the syntax of this call:
    Call SAPurgeCacheByDatabase( 'DBName' );
    For Q4:
    SAGetSharedRequestKey. An ODBC procedure that takes a logical SQL statement from the Oracle BI Presentation Services and returns a request key value.
    The following shows the syntax of this procedure:
    SAGetSharedRequestKey('sql-string-literal)
    Pls mark if helps

  • Need to print a letter to bank after every payment run

    HI Gurus,
    i have a weird requirement from businees, i need to print a letter after every payment run for specific pyament mehod through F110. the config for this payment method in FBZP maintained as
    Paymnet mehod for : outgoing payment
    Paymnet method classification : Bank transfer
    this is letter will contain the most of the bank details in vendor master data (like bank account number, bank name, address,......e.t.c)
    Could you please help me in finding if there is any standard form has this details and driver program for this (i mean RFFO*).
    Thanks in Advance.
    Preethi

    See Chapter 11 of Oracle Business Intelligence Server Administration Guide (Version 10.1.3.2 December 2006).
    Oracle BI Administrators can configure the Oracle BI Server to maintain a local, disk-based cache of
    query result sets (query cache). The query cache allows the Oracle BI Server to satisfy many
    subsequent query requests without having to access back-end databases (such as Oracle or DB2).
    This reduction in communication costs can dramatically decrease query response time.
    As updates occur on the back-end databases, the query cache entries can become stale. Therefore,
    Oracle BI Administrators need to periodically remove entries from the query cache using one of the
    following methods:
    ■ Manually. In the Administration Tool, in the Manage menu, select Cache to open the Cache
    Manager. Cache Manager provides the maximum flexibility in choosing which cache entries to
    purge and when to purge them, but it requires direct human involvement. For more information,
    refer to “Using the Cache Manager” on page 255.
    ■ Automatically. In the Administration Tool, you can disable cache for the system, set caching
    attributes for a specific physical table, and use Oracle BI event tables to purge cache
    automatically. For additional information about managing cache, refer to “Monitoring and
    Managing the Cache” on page 234.
    ■ Programatically. The Oracle BI Server provides ODBC-extension functions for purging cache
    entries programmatically. These functions give you the choice and the timing flexibility of Cache
    Manager with the automation of event tables. You can write your own scripts to call these
    functions at times that fit your needs. For more information, refer to “Purging and Maintaining
    Cache Using ODBC Procedures” on page 235.

  • How to call a stored procedure that has Table Of data types in VB6?

    Hi everyone,
    I need to call a stored procedure that has a Table Of data type as an input parameter (possibly even several Table Of input parameters). I can't seem to find any example of how to do this in VB6 using ODBC. Is this even possible?
    Thanks you!
    Steve

    Thanks,
    but I need to test stored procedures that uses type defined in the package.
    e.g.
    if I have s.p.
    PROCEDURE get_risultati_squadra
    ( in_squadra IN VARCHAR2,
    out_serie OUT tab_varchar2_5,
    out_tiporisultato OUT tab_varchar2_5,
    out_n_giornata OUT tab_varchar2_5,
    out_squadre OUT tab_varchar2_200,
    out_risultato OUT tab_varchar2_10,
    out_marcatore OUT tab_varchar2_50,
    out_punti OUT tab_varchar2_3,
    out_rimbalzista OUT tab_varchar2_50,
    out_rimbalzi OUT tab_varchar2_3,
    out_esito OUT tab_varchar2_2);
    I have to define every type external to the package, in this case five new TYPE !!
    Is there another way to solve this problem?
    Thanks

  • ODBC Error connecting to a stored procedure SQL Server 2008 - Crystal 8.5

    I am running a local copy of SQL server 2008 and get an ODBC error when connecting to any stored procedure with or without parameter. The database are running in SQL Server 2000 compatibility mode on the local server.
    Do not get the error when connecting to one or more databse tables or when connecting to a stored procedure on a remote database.
    The error reported is "ODBC error:[Microsoft][ODBC SQL Server driver] Syntax error or access violation"
    I am running Vista OS.
    Any help would be appreciated..

    Hello,
    Interesting combination. All but CR 8.5 is supported on that OS.
    When you created your DSN did you using the 2008 Client or MDAC?
    I suggest you go back to supported platforms for CR 8.5
    If not then start debugging Vista permissions to start with...
    good luck
    Don

  • ODBC 8.1.7 Error when calling a stored procedure that owned by an other user

    I am testing my application VB for certified to use the
    Client 8 with ODBC Driver 8.1.7.0 , because today this application
    have been working with Client 7 and ODBC driver 7.3 version 2.5.
    But i have some surprises:
    Set qy = con.CreateQuery("", "{CALL OFS.INSERT_DEPT (?,?,?)}")
    OFS is the owner of the proc
    (other combinations {BEGIN ...;END;} also doesn't work, except the owner executes the stmt)
    qy(0) = "6"
    qy(1) = "ABCDEF"
    qy(2) = "L88"
    at this point it gives an VB error:
    40041 Object Collection: Couldn't find item indicated by text.
    PS: With previous ODBC Driver 7.3 v2.5 this error doesn4t occur.
    I have the rights to execute the procedure
    GRANT EXECUTE ON OFS.DEPT TO OFS_USERS;
    Is there any other way to get this procedure work? Its a BUG ?
    My Procedure:
    create or replace procedure INSERT_DEPT(
    in_deptno in number,
    in_dname in varchar2,
    in_loc in varchar2)
    is
    begin
    insert into dept(deptno, dname, loc)
    values(in_deptno, in_dname, in_loc);
    end;
    show errors;
    GRANT EXECUTE ON OFS.INSERT_DEPT TO OFS_USERS;
    Environment:
    Client:
    VB 5.0 SP3 (using RDO 2.0)
    NT 4.0 SP6
    Oracle8i Client 8.1.7.0.0
    Oracle ODBC Driver 8.1.7.0.0
    PS: This error already occured with Oracle ODBC Driver 8.1.7.7.0
    Server:
    Oracle8i Enterprise Edition Release 8.1.7.4.1
    Win 2000 SP2
    Thanks in advance.

    I have no problem executing that statement from ODBCTest on my machine
    Client:
    Win2k,
    Oracle ODBC driver 8.1.7.7
    Oracle client 8.1.7.0
    Server:
    Oracle 8.1.7.0
    First, can you try replacing the ?'s with explicit parameters? I can't imagine that an error binding the variables would cause an error like this, but I'd just like to rule it out.
    Second, can you grab the ODBC SDK from Microsoft <http://www.microsoft.com/data> if you haven't already and try that statement from within the ODBCTest sample application? If that works for you, then there must be something in the layers between your application and the ODBC driver which are confusing things. Which API are you actually using from VB? I'm guessing ADO, but I'd like confirmation on that.
    Third, did you set any parameters to non-default values when you configured your DSN? I left everything as-is on my machine, so I'll try to replicate any changes you might have made to see if that changes anything.
    Finally, can you post the connection string you're using?
    Justin

  • Procedure call through InstantClient 10.1.0.4 (ODBC) hangs the session

    Hello,
    The application has been made by Visual Basic 6.0 sp5, it uses MDAC 2.5. RDBMS version is 9.2, server OS Aix 5.2, client OS XP Professional SP2.
    In other ways the application is working properly, but when a user tries to start a report which calls a procedure through ODBC the following happens:
    (1) The workstation processor starts working under a permanent load of 100%.
    (2) The ODBC trace stops here:
    {? = call XXXX_YYYY.ZZZ_AAAAAAAA
    ['BB_BBBB','200511','200511','CCC',null,null,'null','null'}
    (3) The database listener trace (admin, on the server) stops here (287 rows follow which are the result of trying to start a report):
    nsevwait: 1 newly-posted event(s)
    nsevfnt: cxd: 0x1057c390 stage 0: NT events set:
         CONNECTION REQUEST
    nsevfnt: cxd: 0x1057c390 stage 0: NS events set:
         INCOMING CALL
    nsevwait: event is 0x1, on 3
    nsevwait: 1 posted event(s)
    nsglhe: entry
    nsmal: 752 bytes at 0x11060b090
    nsmal: 2800 bytes at 0x110616030
    nsopen: opening transport...
    nttcon: entry
    nttcon: toc = 3
    nttcnp: entry
    ntvlin: entry
    ntvlin: exit
    nttcnp: Validnode Table IN use; err 0x0
    nttcnp: getting sockname
    nttcnp: exit
    nttcnr: entry
    nttcnr: waiting to accept a connection.
    nttcnr: getting sockname
    nttvlser: entry
    nttvlser: valid node check on incoming node xxx.yyy.z.50
    nttvlser: Accepted Entry: xxx.yyy.z.50
    nttcnr: exit
    nttcon: set TCP_NODELAY on 18
    nttcon: exit
    nsopen: transport is open
    nsnainit: answer
    nsnasvnainfo: NA disabled for this connection
    nainit: entry
    nagblini: entry
    nau_gin: entry
    nau_gparams: entry
    nam_gbp: Reading parameter "sqlnet.authentication_required" from parameter file
    nam_gbp: Parameter not found
    nau_gparams: Using default value "FALSE"
    nau_gslf: entry
    nam_gic: entry
    nam_gic: Counting # of items in "sqlnet.authentication_services" parameter
    nam_gic: Parameter not found
    nam_gic: Found 0 items
    nam_gic: exit
    nau_gslf: Using default value "all available adapters"
    nauss_set_state: entry
    nauss_set_state: exit
    nau_gslf: exit
    nau_gparams: exit
    nau_gin: exit
    nagblini: exit
    na_saveprot: entry
    na_saveprot: exit
    nacomin: entry
    nas_init: entry
    nas_init: exit
    nau_ini: entry
    naugcp_get_connect_parameters: entry
    nauss_set_state: entry
    nauss_set_state: exit
    naugcp_get_connect_parameters: exit
    nau_gettab: entry
    nau_tadv: entry
    nau_fad: entry
    nau_fad: exit
    nau_fad: entry
    nau_fad: exit
    nau_fad: entry
    nau_fad: exit
    nau_fad: entry
    nau_fad: exit
    nau_tadv: exit
    nau_gettab: exit
    nau_sini: entry
    nau_sini: exit
    nau_ini: exit
    naeeinit: entry
    nam_gbp: Reading parameter "SQLNET.FIPS_140" from parameter file
    nam_gbp: Parameter not found
    nam_gnsp: Reading parameter "SQLNET.ENCRYPTION_SERVER" from parameter file
    nam_gnsp: Parameter not found
    naequad: Using default value "ACCEPTED"
    nam_gic: entry
    nam_gic: Counting # of items in "SQLNET.ENCRYPTION_TYPES_SERVER" parameter
    nam_gic: Parameter not found
    nam_gic: exit
    naesno: Using default value "all available algorithms"
    naeshow: entry
    naeshow: exit
    naeeinit: exit
    naecinit: entry
    nam_gnsp: Reading parameter "SQLNET.CRYPTO_CHECKSUM_SERVER" from parameter file
    nam_gnsp: Parameter not found
    naequad: Using default value "ACCEPTED"
    nam_gic: entry
    nam_gic: Counting # of items in "SQLNET.CRYPTO_CHECKSUM_TYPES_SERVER" parameter
    nam_gic: Parameter not found
    nam_gic: exit
    naesno: Using default value "all available algorithms"
    naeshow: entry
    naeshow: exit
    naecinit: exit
    nadisc: entry
    nacomtm: entry
    nacompd: entry
    nacompd: exit
    nacompd: entry
    nacompd: exit
    nacomtm: exit
    nas_dis: entry
    nas_dis: exit
    nau_dis: entry
    nau_dis: exit
    naeetrm: entry
    naeetrm: exit
    naectrm: entry
    naectrm: exit
    nagbltrm: entry
    nau_gtm: entry
    nau_gtm: exit
    nagbltrm: exit
    nadisc: exit
    nainit: exit
    nsnainit: NS Connection version: 311
    nsnainit: inf->nsinfflg[0]: 0xd inf->nsinfflg[1]: 0xd
    nsnainit: "or" info flags: 0xd     Translations follow:
         native service(s) is (are) wanted
         NA disabled remotely for this connection
         NA services unavailable on both processes - negotiation not needed
    nsnainit: "or" info flags: 0xd     Translations follow:
         native service(s) is (are) wanted
         NA disabled remotely for this connection
         NA services unavailable on both processes - negotiation not needed
    "and" info flags: 0xd     Translations follow:
         native service(s) is (are) wanted
         NA disabled remotely for this connection
         NA services unavailable on both processes - negotiation not needed
    nsopen: global context check-in (to slot 11) complete
    nsopen: lcl[0]=0x7fe9ff, lcl[1]=0x12003, gbl[0]=0x7e3f, gbl[1]=0x2001, tdu=32767, sdu=8192
    nsdo: cid=11, opcode=65, bl=0, what=0, uflgs=0x0, cflgs=0x2
    nsdo: rank=64, nsctxrnk=0
    nsdo: nsctx: state=7, flg=0x4200, mvd=0
    nsdo: nsctxrnk=0
    nsanswer: deferring connect attempt; at stage 5
    nsevreg: begin registration process for 11
    nsevreg: sgt=0, evn=1, evt[2]=0x0
    nsevreg: begin notification process for 11
    nsevreg: rdm=0, sgt=0, evt[0]=0x20, [1]=0x20, [2]=0x0, nrg=0
    nsevreg: registering for 0x20
    nsglhe: exit
    nsevwait: 10 registered connection(s)
    nsevwait: 0 pre-posted event(s)
    nsevwait: waiting for transport event (1 thru 11)...
    nsevwait: 1 newly-posted event(s)
    nsevfnt: cxd: 0x10606bb0 stage 5: NT events set:
         READ
    nsevfnt: cxd: 0x10606bb0 stage 5: NS events set:
         OUTGOING CALL COMPLETE
    nsevdansw: at STAGE 5
    nsdo: cid=11, opcode=68, bl=2040, what=8, uflgs=0x0, cflgs=0x3
    nsdo: rank=64, nsctxrnk=0
    nsdo: nsctx: state=14, flg=0x4204, mvd=0
    nsdo: gtn=0, gtc=0, ptn=10, ptc=8163
    nscon: doing connect handshake...
    nscon: recving a packet
    nsprecv: reading from transport...
    nttrd: entry
    nttrd: socket 18 had bytes read=262
    nttrd: exit
    nsprecv: 262 bytes from transport
    nsprecv: tlen=262, plen=262, type=1
    nscon: got NSPTCN packet
    nsconneg: vsn=313, lov=300, opt=0x0, sdu=2048, tdu=32767, ntc=0x860e
    nsconneg: vsn=311, gbl=0x1, sdu=2048, tdu=32767
    nscon: got 204 bytes connect data
    nsdo: nsctxrnk=0
    nsevdansw: exit
    nttctl: entry
    nttctl: Clearing non-blocking mode
    nsevwait: event is 0x20, on 11
    nsevwait: 1 posted event(s)
    nsglhe: entry
    nsglfc: Assume establishing a connection: look for SID
    nsglfc: command = establish
    nttaddr2bnd: entry
    nttaddr2bnd: exit
    nlpcaini: entry
    nlpcaini: prg = /oracle9/app/product/9.2.0/bin/oracle
    nlpcaini: arg[0] = oracleaaaaa
    nlpcaini: arg[1] = (LOCAL=NO)
    nlpcaini: env[0] = _=/ddddddd/app/product/9.0.2/bin/lsnrctl
    nlpcaini: env[1] = TMPDIR=/lisatmp
    nlpcaini: env[2] = LANG=en_US
    nlpcaini: env[3] = LOGIN=ddddddd
    nlpcaini: env[4] = PATH=/ddddddd/app/product/9.0.2/dcm/bin:/ddddddd/app/product/9.0.2/opm/bin:/ddddddd/app/product/9.0.2/bin:/usr/local/bin:/usr/ccs/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/ddddddd/bin:/usr/bin/X11:/sbin:.
    nlpcaini: env[5] = NLS_LANG=American_America.we8iso8859P1
    nlpcaini: env[6] = ORACLE_BASE=/ddddddd/app/product
    nlpcaini: env[7] = LC__FASTMSG=true
    nlpcaini: env[8] = CGI_DIRECTORY=/var/docsearch/cgi-bin
    nlpcaini: env[9] = LOGNAME=ddddddd
    nlpcaini: env[10] = TMP=/lisatmp
    nlpcaini: env[11] = USER_NLS_LANG=Finnish_Finland.we8iso8859P1
    nlpcaini: env[12] = MAIL=/usr/spool/mail/ddddddd
    nlpcaini: env[13] = LOCPATH=/usr/lib/nls/loc
    nlpcaini: env[14] = PS1=$PWD[SID=$ORACLE_SID]>$
    nlpcaini: env[15] = LDR_CNTRL=MAXDATA=0x20000000
    nlpcaini: env[16] = DOCUMENT_SERVER_MACHINE_NAME=localhost
    nlpcaini: env[17] = USER=ddddd
    nlpcaini: env[18] = AUTHSTATE=files
    nlpcaini: env[19] = TNS_ADMIN=/ddddddd/app/product/9.0.2/network/admin
    nlpcaini: env[20] = DEFAULT_BROWSER=netscape
    nlpcaini: env[21] = DISPLAY=cccc:0.0
    nlpcaini: env[22] = SHELL=/usr/bin/ksh
    nlpcaini: env[23] = ODMDIR=/etc/objrepos
    nlpcaini: env[24] = DOCUMENT_SERVER_PORT=49213
    nlpcaini: env[25] = ORA_NLS33=/ddddddd/app/product/9.0.2/ocommon/nls/admin/data
    nlpcaini: env[26] = HOME=/home/ddddddd
    nlpcaini: env[27] = TERM=dumb
    nlpcaini: env[28] = MAILMSG=[YOU HAVE NEW MAIL]
    nlpcaini: env[29] = ORACLE_HOME=/oracle9/app/product/9.2.0
    nlpcaini: env[30] = ITECONFIGSRV=/etc/IMNSearch
    nlpcaini: env[31] = PWD=/home/ddddddd
    nlpcaini: env[32] = DOCUMENT_DIRECTORY=/usr/docsearch/html
    nlpcaini: env[33] = TZ=WET-2WET-3,M3.5.0/03:00:00,M10.5.0/04:00:00
    nlpcaini: env[34] = ITECONFIGCL=/etc/IMNSearch/clients
    nlpcaini: env[35] = ITE_DOC_SEARCH_INSTANCE=search
    nlpcaini: env[36] = A__z=! LOGNAME
    nlpcaini: env[37] = ORA_NET2_DESC=4,7
    nlpcaini: env[38] = LIBPATH=/ddddddd/app/product/9.0.2/lib32:/ddddddd/app/product/9.0.2/lib
    nlpcaini: env[39] = NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
    nlpcaini: env[40] = ORACLE_SID=aaaaa
    nlpcaini: exit
    nsbeqaddr: connecting...
    ntpcon: entry
    ntpcon: toc = 1
    sntpcall: entry
    sntpcall: About to exec /oracle9/app/product/9.2.0/bin/oracle
    sntpcall: environ[41] = ""
    sntpcall: detaching from parent with additional fork
    sntpcall: result string is NTP0 33240
    sntpcall: hdl[IR]=23, hdl[IW]=22
    sntpcall: exit
    ntpcon: NT layer IPC connection has been established
    ntpcon: exit
    nttaddr2bnd: entry
    nttaddr2bnd: exit
    nsbeqaddr: doing connect handshake...
    nsbequeath: doing connect handshake...
    ntpwr: entry
    ntpwr: exit
    ntpwr: entry
    ntpwr: exit
    ntpwr: entry
    ntpwr: exit
    ntprd: entry
    ntprd: exit
    ntprd: entry
    ntprd: exit
    nsbequeath: NSE=0
    ntpdisc: entry
    ntpdisc: exit
    nsbeqaddr: connect handshake is complete
    nstimarmed: no timer allocated
    nsdo: cid=11, opcode=98, bl=0, what=0, uflgs=0x40, cflgs=0x2
    nsdo: rank=64, nsctxrnk=0
    nsdo: nsctx: state=2, flg=0x4200, mvd=0
    nsevunreg: cid=11, sgt=0, rdm=0
    nsevunreg: 9 registered connection(s)
    nsdo: nsctxrnk=0
    nsclose: closing transport
    nttdisc: entry
    nttdisc: Closed socket 18
    nttdisc: exit
    nsclose: global context check-out (from slot 11) complete
    nsmfr: 2800 bytes at 0x110616030
    nsmfr: 752 bytes at 0x11060b090
    nsglhe: exit
    nsevwait: 9 registered connection(s)
    nsevwait: 0 pre-posted event(s)
    nsevwait: waiting for transport event (1 thru 10)...
    The procedure call through ODBC is working when we use Oracle9i Client.
    So. All comments are much appreciated!
    Terho

    in addition:
    my main problem is that Oracle ODBC driver does not understand something like
    {call types.test_procedure (?, ?,,?)}
    to pass not all parameters (I whant to use default value for some of parameters)

  • ODBC store procedure NQSSetSessionValue() in OBIEE 10.1.3.2

    How can I call the stored procedure NQSSetSessionValue() to set a session variable?
    There is an option in Oracle BI Admin tool in the Variable property : Enable any user to set the value.
    My requirement is set a session variable programtically in the Presentation layer.

    The steps given by Steve are spot on.
    However there is one minor check that can be made if the issue isnt resolved even after following the steps.
    The Port to be defined in Step 3 needn't always be "9703".
    If the BI Server is installed on your local machine then check the following:
    1) Start --> Programs --> Oracle Business Intelligence --> Presentation Services
    2) A webpage shall open with the login screen. Check the link in the address bar.
    for e.g., http://w0087z-10:9704/analytics/ .
    3) The URL can be decoded as http://<Computer Name>:<Port Number>/analytics/.
    So in the AnalyticsWeb ODBC connection definition you can replace the port number "9703" with the port number specific to your URL.
    This worked for me. Hope this helps.
    Regards
    Kishore

  • How to call PL/SQL stored procedure using ODBC?

    Could anyone tell me how can I call PL/SQL stored procedure using
    ODBC? Are there any sample codes?
    Thanx!
    null

    You are correct on all counts, they all should work.
    Oracle Product Development Team wrote:
    : Hi,
    : I don't know the exact syntax in ODBC, but reasoning by analogy
    : with other API's, I'd bet one of the following works
    : (for a call to: procedure my_proc(n1 number, n2 number);):
    : "{ my_proc(1,2); }"
    : "{ call my_proc(1,2); }"
    : "{ begin my_proc(1,2); end }"
    : "begin my_proc(1,2); end;"
    : "begin my_proc(1,2); end"
    : Hope this helps. - Pierre
    : jiangbuf (guest) wrote:
    : : Could anyone tell me how can I call PL/SQL stored procedure
    : using
    : : ODBC? Are there any sample codes?
    : : Thanx!
    : Oracle Technology Network
    : http://technet.oracle.com
    null

  • Strange download size of on calling packaged stored procedure in VB6

    Hi,
    I tried to use VB6 to call oracle stored procedure with ref cursor as output parameter under a package in 10g database (10.1.03). Oracle client uses windows 9.2 / 10.1.02 (Oracle OLEDB Provider) . I found that when the package size increases(> 1000 lines codes), the data size transfer from database to VB client also increases. I try to trap the binary data flow between VB6 and database when calling packaged stored procedure. I found that VB6(or oracle client ??) will first download package spec then execute the requested stored procedure. This may explain the cause of increasing size.
    However, this large download size for calling only one of the procedure will make my application run slowly when my application uses the package much. How can I solve this problem ? Does this relate to oracle client(p.s. this problem disappear when using Microsoft OLEDB Provider)?
    Thanks
    Steven

    You can use a wrapper to get compiled code and if it's 10g you can do even more by putting it in a library.
    OLEDB from VB6 still using Oracle 'Client' as you call Oracle NET.

  • Call stored procedure(with parameters) via odbc

    In my application I like to use the below statement to call a stored procedure with parameter and return a result set.
    {CALL PP.getPerson('daniel')}
    but this will just return errors to my application.
    If I change the statement to:
    {CALL PP.getPerson(?')}
    and bind a parameter and its value, it will work.
    My question is, is it possible to call a stored procedure via ODBC without binding parameters in application? I mean, what will be my SQL equivalent if I don't want to do parameter binding in my application?
    Thanks in advance. I appreciate any help :-)

    hi 
    Please see the e.g bellow
    create proc proc_test(@SchoolNumber int,@SchoolName
    varchar(100),@StudentNumber int, @StudnentName
    varchar(100)output ,
    @StudentAddress varchar(100) output,
    @Studentbirthdate datetime output,
    @StudentPhoneNumber varchar(100) output,
    @GuardianName varchar(100) output)
    as
    begin
    select @StudnentName varchar=StudnentName ,
    @StudentAddress =StudentAddress,
    @Studentbirthdate =Studentbirthdate ,
    @StudentPhoneNumber =StudentPhoneNumber,
    @GuardianName =GuardianName
    from table where schoolno=@SchoolNumber
    and SchoolName=@SchoolName
    and StudentNumber=@StudentNumber
    return
    end
    http://technet.microsoft.com/en-us/library/ms187004(v=sql.105).aspx
    http://www.lynda.com/SQL-Server-tutorials/Using-input-output-parameters/104964/113058-4.html
    Please mark answered if I've answered your question and vote for it as helpful to help other user's find a solution quicker

  • Calling Stored Procedure from ODBC

    I call a stored procedure that contains a reference to a database link through ODBC.
    I get the following errors (LOAD_PDI is the name of the procedure):
    ORA-02041: Client database did not begin a transaction
    ORA-06512: at "LOAD_PDI" line 16
    ORA-06512: at "LOAD_PDI" line 42
    ORA-06512: at line 1
    The procedure works if called from SQLplus and executes a query on a remote database to insert or update tables in the local data base. In the procedure I define two CURSORS to get data from the remote Database.
    Is there anything unsupported using ODBC ?
    Same error messages calling from Visual Basic using ADO. I have installe dthe last versione of OLEDB driver (8.1.6.2).
    I am using Oracle Enterprise 8.1.6 release 2 on Windows NT server 4.0 with service pack 6.
    Thanks for collaboration.
    null

    The only way I'm aware of to turn off autocommit is to issue the ODBC call
    SQLSetConnectAttr( hdbc, SQL_ATTR_AUTOCOMMIT, SQL_AUTOCOMMIT_OFF, SQL_NTS )
    Note that you'll have to issue a SQLEndTran call with SQL_COMMIT or SQL_ROLLBACK to commit or rollback your changes with autocommit off.
    I'm curious as to whether you saw any documentation which indicated that the way to turn off autocommit was to add the registry entry 'autocommit=F'. That's certainly not an option I'm familiar with, so I'd like to ensure that we don't have incorrect documentation laying around.
    The reason you'll see different behavior using ODBC as opposed to SQL*Plus is because the two have different semantics.
    In SQL*Plus, statements that you execute are not committed until you execute an explicit commit statement. This is pretty standard for database interfaces, and is generally necessary if you want to maintain state in a transaction.
    When Microsoft wrote the ODBC specification, they broke with this convention and specified that ODBC would, by default, commit every statement immediately after is suceeds. This may cause problems if your procedure assumes that it is able to maintain state between uncommitted calls.
    For example, in SQL*Plus, if you issue the command "select empno from emp for update", the "for update" clause places a lock on those elements. Subsequent updates generally assume that those locks are still present. If you issue a "commit", however those locks are discarded.
    In ODBC, if you issue the same command without explicitly turning off autocommit, the statement succeeds, taking out the locks, but then is immediately & automatically committed, releasing those locks. If you turn off autocommit, you get the same behavior you saw with SQL*Plus.
    I suspect that the stored procedure LOAD_PDI maintains some state and that the code on lines 16 & 42 are doing some form of update that relies on this state being present.
    Note that, since you don't specify that you are, I'm assuming that you're not using XA or Microsoft's transaction server to do coordinated multi-machine transactions. If you are using one of these, please let me know.
    Justin Cave
    ODBC Development

  • Calling stored java-procedure in Oracle9i Lite from ODBC

    I've got a problem:
    I try to call a stored java-procedure through ODBC. The stored
    java-procedure in Oracle 9i Lite is called successfully from
    server console (MSQL). When I call my stored java-procedure from
    my web-application (ASP) through ODBC connection (ODBC drivers
    are from Oracle 9i Lite set V3.51) the server returns an error
    (Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [POL-
    8000] could not start the Java Virtual Machine),
    however 'select' without java-procedure calls works
    successfully. PATH and CLASSPATH variables are properly set up.
    File jvm.dll is present.
    Can anybody help me?

    Pass String[] as an argument to mainbook():
    create or replace PROCEDURE openpdffile
    AS LANGUAGE JAVA
    NAME 'pdfopenbook.mainbook(java.lang.String[])';Have you posted it on the Database forum?
    Regards,
    Nick

Maybe you are looking for

  • KT4 Ultra-BSR - Drive problems?

    Yesterday I purchased a KT4 Ultra-BSR. I am doing a clean install. I have an Athlon XP200+, 2 x 512MB DDR Ram (PC2100). On IDE1 I have put 2 x 20GB Western Digital HDs. On IDE2 I have put a Pioneer DVR-A04 as Master, and a  100GB Western Digital HD a

  • Leave Dynpro page

    Dear All, Anyone know what does the following line means in the leave request application page? Display possible as of 04.04.2008 only. Where to configure this? Thanks Regards, Bryan

  • Sound Level

    I have connected my Apple TV to seperate speakers. (Speakers from Bang & Olufson with buildt-in amplifiers, Beosound 4000). Im using my Iphone as remote control. Dont have TV connected, am only interested in sound. But the output sound level from the

  • I am having trouble updating my adobe flash player

    I can't watch any videos on my laptop because it says my adobe flash players out of date. When I try to update it it keeps telling me to put in my password but I don't have one. Help!

  • How to place a stamp annotation at a point on the Page

    Hello I currently have code that allows the suer to pick a pick and place it on the page ( a lot like stamper example ) What I want now is to place the annotation on the top right corner of the page So the use just clicks on a menu button and a stamp