WebServer/Firewall/Oracle 8i Question

I am having a problem with communications between a WebServer (WinNT/PHP) and Oracle 8i (Sun Solaris). There is a firewall between the two systems. My observation is that the WebServer connect transmits fine to Oracle. However, when the reply is sent back to the WebServer it times out. I "suspect" the reason is because Oracle has changed ports for communication and that the firewall is preventing the flow back.
Can I force Oracle communication to be single treaded ? Possibly a firewall issue ?
Disclaimer, I have limit Oracle Experience and no documentation, this is a product provided by a vendor and they do not have the resources available to address the problem.
Thanks
Steve

Normally Net8 on UNIX uses portsharing, that means that the communication between client and server uses the
listener port (not with MTS configuration).

Similar Messages

  • Need oracle practice question for OCA

    Need oracle practice question for OCA.
    Edited by: 823938 on Dec 27, 2010 10:21 PM

    It's illegal to use dumps.
    Read the following link:
    http://www.certguard.com/braindumps.asp

  • Multiple Oracle Configuration Question

    We have a typical environment setup. I will explain it below:
    Our application works in Online and Offline Mode. For Online mode we connect to Oracle 10g enterprise server and a Local instance of Access and In offline application totally works in Access.
    Now we want to move away from Access and have Oracle PE instead just because we want to use stored procedure and same set of code for offline and online processing.
    So a typical user machine will have a PE instance and a Oracle Client. Currently we use LDAP.ora for Configuring connections. Now i have few questions
    1. How do we ensure that Oracle PE will work when we don't have network connection. Can we have like PE setup with Tnsnames.ORA
    2. What can be the smallest possible package for PE.
    3. Can I use one client to access both PE and Server databases.
    Any help will be highly appreciated.
    Thanks in advance.

    Assuming the "Xcopy installation" refers to using the Windows xcopy command, can you clarify what, exactly, you are installing via xcopy? Are you just using xcopy to copy the ODP.Net bits? Or are you trying to install the Oracle client via that approach?
    If you are concerned about support, you would generally want to install everything via the Oracle Universal Installer (barring those very occasional components that don't use the OUI). Oracle generally only supports software installed via the installer because particularly on Windows, there are a number of registry entries that need to get created.
    You can certainly do a custom install of the personal edition on the end user machines. There are a few required components that I believe have to be installed (that the installer will take care of). I assume your customization will take the form of a response file to the OUI in order to do a silent install?
    Justin

  • Oracle RAC Question

    Question about oracle rac. lets say we have a 3 node RAC database and our tnsnames.ora file is configured to point to node 1. If an application is connected to the database using the database connection information that is on the tnsnames.ora file (pointing to node1), and node 1 is down, how does the application know to point to node 2 or node 3 to connect to the database?

    If you didn't configure node2 and node3 as failover nodes, only the currently connected sessions would failover by the other nodes.
    New connections are no longer possible.
    Sybrand Bakker
    Senior Oracle DBA
    Oracle is not about rocket science. It is about being able and willing to read documentation.

  • Connecting to an oracle database questions

    <p>Our current solution to connecting to our oracle database uses the following code:</p><p>    ReportClientDocument clientDoc = new ReportClientDocument;</p><p>    java.sql.ResultSet rs =  fetchResultSet(driverName, connectStr, userName, password, <u>query</u>);</p><p>    clientDoc.getDatabaseController().setDataSource(rs, <u>tableName</u>,tableName+"_ResultSet"); </p><p>The code for subreports is very similar, but isn&#39;t necessary for my question. The problem w/ this approach is we have to define the SQL query and the table name in the JSP, which we shouldn&#39;t have to do considering both of these are stored in the report. Any changes to the reports&#39; sql would then require someone to edit the jsp, which is just bad.  </p><p>I have been reading up on the ConnectionInfo and ConnectionInfos classes (nice naming convention btw) and the CrystalReportViewer.setDataBaseLogonInfos() method, and I believe a solution may lie here. The problem is the tutorials on using the ConnectionInfo class assume the database name is stored in the report, and we do not want to assume this. We are developing our reports to be used by our customers, who may name their database whatever they want so long as the tables inside it are what we specify. Because of this assumption, I have yet to find a good explanation of how to use the setAttributes(PropertyBag) method which is the only I have seen to specify the database name (within a connection string). I have examples of it, but nothing that defines the key/value pairs required in the PropertyBag to create a connection to an oracle database. </p><p>Is there some documentation on the key/value pairs needed by the PropertyBag? Also, if there is another (easier) solution I am overlooking then please let me know, thanks.</p><p>-Sam Morehouse</p><p>HBF Group, Inc </p><p> </p>

    <p>got it working, here&#39;s some sample code.  </p><p> </p><p><%<br />    try{<br />        ReportClientDocument clientDoc = new ReportClientDocument();<br />        clientDoc.open(reportName, 0);<br />    <br />        ConnectionInfos connInfos = new ConnectionInfos();<br />        IConnectionInfo iConnInfo = new ConnectionInfo();<br /><br />        PropertyBag bag = new PropertyBag();<br />        bag.put("Database Class Name",driverName);    // "oracle.jdbc.driver.OracleDriver"<br />        bag.put("Connection URL",connectStr);        // "jdbc:oracle:thin:@dbName:1521:sid"<br />                            <br />        PropertyBag pb = new PropertyBag();<br />        pb.put(PropertyBagHelper.CONNINFO_CRQE_LOGONPROPERTIES ,bag);<br />        pb.put(PropertyBagHelper.CONNINFO_DATABASE_DLL ,"crdb_jdbc.dll");<br />        iConnInfo.setAttributes(bag);<br />        <br />        iConnInfo.setUserName(userName);<br />        iConnInfo.setPassword(password); <br />                <br />        iConnInfo.setAttributes(pb);<br />            <br />        connInfos.add(iConnInfo);<br />        session.setAttribute(reportName, clientDoc);<br />        session.setAttribute("reportSource", clientDoc.getReportSource());<br /><br />        //Setup viewer. Only going to include the relevant line, the rest can be found</p><p>        //elsewhere.<br /></p><p>        CrystalReportViewer oCrystalReportViewer = new CrystalReportViewer();                   oCrystalReportViewer.setDatabaseLogonInfos(connInfos);                                      }    </p><p>catch(ReportSDKExceptionBase exc)%></p>

  • Oracle Multitenant Questions

    Hi,
    I'm studying about Oracle Multitenant and I'm hoping anyone can help me.
    We have a 86 TB database, with no compression and we're struggling to backup this database.
    So, here is what we thought.
    Compress the whole database (since it's only inserted data on the database, no updates at all) on the current version - 11.2.0.3. We're hoping to compress at a ratio of 60%, so, it would be at 36 TB, but still a huge database to backup and recover.
    The next step would be migrate to 12c and setup Oracle Multitenant and divide this database into 5 instances (we can do it, because the database is divided in several mobile technologies). Let's suppose this division is equal, so, it would be around 6 TB each database, so, it would be manageable.
    Questions:
    - Do you think we could benefit using Oracle Multitenant?
    - This would be transparent to the application? No major changes?
    - How the backup would work? Can we backup each plugable database and restore it individually?
    Thanks in advance

    We have a 86 TB database, with no compression and we're struggling to backup this database.
    Ok - so give us information about the DB:
    1. How is it used
    2. Is it partitioned?
    3. How is it being backed up now? Are you doing complete backups or incremental ones?
    We need details - not just a statement that you are 'struggling'.
    Compress the whole database (since it's only inserted data on the database, no updates at all) on the current version - 11.2.0.3. We're hoping to compress at a ratio of 60%, so, it would be at 36 TB, but still a huge database to backup and recover.
    We need details:
    1. How is data being inserted?
    2. One row at a time by multiple users?
    3. Bulk inserts once a day?
    Less data means there is less to backup. But incremental backups don't backup the entire database anyway so we still need to know HOW the DB is being backed up now: how often and what kind of backups.
    You do NOT need to keep backing up old data that has NOT changed. Are you doing that? If so, why?
    The simplest solution to solve a 'database too big to backup' problem is to change the architecture so you don't have to keep backing up data that has NOT changed. Oracle's incremental backups already do that so maybe you are NOT using them.
    The next step would be migrate to 12c and setup Oracle Multitenant and divide this database into 5 instances (we can do it, because the database is divided in several mobile technologies). Let's suppose this division is equal, so, it would be around 6 TB each database, so, it would be manageable.
    I disagree - the NEXT STEP should be to find the cause of your performance issue.
    Based ONLY on what you posted the most likely problem is the types and frequency of the backups you are taking.
    Have you licensed the partitioning option? If so you can just put each of those 'mobile technologies' into its own partition.
    Again - how is data being inserted? If the new data is based on a value (e.g. a date) that distinguishes it from old data you can EASILY just put the newly inserted data into its own new partijtion by using a DAILY partitioned table.
    Then you don't need to backup the old data at all. And each day you would only back up ONE partition for the previous days data.
    That would be be EASIEST and MOST PERFORMANT solution to your problem.
    Questions:
    - Do you think we could benefit using Oracle Multitenant?
    - This would be transparent to the application? No major changes?
    - How the backup would work? Can we backup each plugable database and restore it individually?
    #1 - impossible to say until you provide the DETAILS ask for above about
    1. HOW you are performing the backups now,
    2. HOW often the data changes
    3. HOW the data changes (e.g. new data for today that distiguishes today's data from yesterday's data)
    4. Why you are performing the backups the way you are
    Multitenant isn't going to help if your data loads and architecture are such that you now have FIVE DBs to backup and they all need to be backed-up/restored together
    #2 - No - multitenant is NOT 'transparent'. You will now have FIVE DBs with data in FIVE places. Your current app is written to use ONE DB. The changes could be minor or could be MAJOR.. Querying data across database links is NOT as efficient as querying data that resides on the same server.
    On the other hand if a typical query only queries data from ONE of those five areas then you might get some significant performance improvements.
    But you might get those same improvements simply by properly partitioning the data or using better indexes.
    #3 - yes - you can backup and restore the PDBs individually. They are separate databases. However there is only ONE set of REDO log files. Those redo logs will contain changes from ALL of the PDBs,
    Also there is only ONE SET of memory management to be done. In multitenant memory is managed for the entire multitenant DB.
    There can be a steep learning curve to learn how to do that properly.
    Multitenant is NOT a magic solution for partitioning data - that is what partitioning is for.
    I suggest you find, and fix, you backup/performance/architecture issues with your current DB. If you need help doing that repost your question (and provide the DETAIL needed) in the General DB forum, the SQL and PL./SQL forum or the Backup/Recovery forums as appropriate..
    General Database Discussions
    PL/SQL
    Recovery Manager (RMAN)

  • Oracle 11i questions

    I had a few questions and would appreciate any help
    A.Is there a Document Warehousing feature/module available within the Oracle CRM suite that can link to various documents ( eg word, ppt etc ) for viewing and changing the data?
    B. Is there a link available to data stored in Lotus Notes database and accessible with the CRM application? Also can we relate data in a specific field to Lotus Notes information eg. Employee name to an Org Chart
    C.Is the interest classification with primary and secondary groups that was available in earlier versions still available in 11i to track clients contact preferences, sectors etc?
    D.Capability to integrate with Data from a SQL Server system that would track
    transactions and have a view from the CRM Sales application?
    Thanks you
    null

    A. In CRM Foundation their is a module called MES (Marketing Encyclopedia System) is a storehouse for Marketing collateral. Not all aplications expose this functionality in the UI but it comes with any CRM app anyway. In addition there are various functions for attachmnets scattered through the apps.
    B. No direct link to Notes per se. However, CRM Foundation has various public API's that might be used to load the information into CRM 11i tables.
    C. I think so but not 100% sure.

  • Oracle + Unix question , Error validation for SQL statements in co process

    Hi,
    If I use co process in a shell script , what is the best way to do the error validation of the execution of any sql statements . I was trying to change the following code to make use of co process concept. When I tried echo $? after the execution of a "wrong statements"
    it is still giving Zero output ( meaning success)
    <<<<<<<<<<<<<<<<<<<<<<<<<<<
    cat ${CFG_DIR}/srs_indx.lst | egrep -v '^#' | egrep -v '^[    ]*$' | while read x
    do
    echo " Processing values :: pre $pre tbl $tbl indx $indx tblspc $tblspc cols $cols param $param" >> ${LOGS_DIR}/srs_indx.log
    sqlplus ${BIZSTG} << EOT >> ${LOGS_DIR}/srs_indx.log
    set verify on timing on term on echo on feedback on serveroutput on
    WHENEVER SQLERROR CONTINUE
    drop index $indx;
    WHENEVER SQLERROR EXIT FAILURE
    alter session set query_rewrite_enabled = true;
    create $pre index $indx on $tbl ($cols)
    tablespace $tblspc
    $param;
    exit
    EOT
    RC=$?
    if ( test $RC -ne 0 )
    then
         ERR_MSG="ERROR in creating index $indx for table $tbl from srs_indx.ksh of $ENVIR : $APP by `whoami`@`hostname` on `date` "
         echo $ERR_MSG >> ${LOGS_DIR}/srs_indx.log
         process_warning ${LOGS_DIR}/srs_indx.log
         exitstat=1
    else
         echo "$indx created at `date`" >> ${LOGS_DIR}/srs_indx.log
    fi
    done
    >>>>>>>>>>>>>>>>>>>>
    Any help will be appreciated .
    with thanks and regards
    Ranjeesh K R

    Hi,
    Thanks for the response, I guess people misunderstood my question .
    My question was about "error handling in case of CO PROCESS". For those who don't know about this, in case CO PROCESS you just need to login once to Oracle. In my above code It is logging in & out for each entry in the list. CO process statements may look Similar to SQL statements in pro*C. In PRO*C we use EXEC, but here print -p statements..
    a sample is given for those who are new to co process.
    sqlplus -s /nolog |& # Open a pipe to SQL*Plus
    print -p -- 'connect user/password@instance'
    print -p -- 'set feed off pause off pages 0 head off veri off line 500'
    print -p -- 'set term off time off'
    print -p -- "set sqlprompt ''"
    print -p -- "select sysdate from dual;"
    read -p SYSDATE
    print -p -- "select user from dual;"
    read -p USER
    print -p -- "select global_name from global_name;"
    read -p GLOBAL_NAME
    print -p -- exit
    echo SYSDATE: $SYSDATE
    echo USER: $USER
    echo GLOBAL_NAME: $GLOBAL_NAME
    But I got stuck during error handling of these SQL statements, especially the $? / $* returns 0 even after an erroneus execution.
    Regards

  • Oracle CPU question with 11.5.10 CU2

    Just a general question. First time trying to apply an Oracle CPU and in this case applying the July 2010 CPU to our Test E-biz 11.5.10 CU2 RUP7 install.
    My configuration is RH Linux ES 4.8 with a 10.2.0.4 database server running admin, db and CCM services and then an app server running forms and web services.
    I'm referring to "Oracle E-Business Suite Releases 11i and 12 Critical Patch Update Knowledge Document (July 2010) [ID 986534.1]" and then the subsequent articles that follow that.
    My questions are:
    Q1. My database level is currently 10.2.0.4. It would appear my steps are first update Opatch (no problem there).
    Then apply 9032412.
    Then it looks like I apply either CPU Patch 9655017, or PSU Patch 9654991.
    But PSU 9654991 REQUIRES PRE-REQUISITE 10.2.0.4.4 so I can't apply that right?
    I will apply 9655017 instead and will that get me to 10.2.0.4.5?
    Q2. My configuration is DB Tier with CCM and an app Tier running forms, reports as mentioned.
    Do I have to worry about the Fusion Middle-ware stuff?
    Q3. Patches to apply to E-Business Suite.
    Looks like 9578142 applies to my environment.
    Check the pre-reqs to ensure I have anything that needs to be applied first.
    Then depending on what modules we use or have installed (does it make a difference) I'll apply subsequent patches say for 'Financials'.
    Q3. Anything else I need to consider? We are patching Test first and when done if it's all good we'll schedule Prod.
    I realize this is a pretty generic question. My main uncertainty is on the db 10.2.0.4 patch and if the 965517 will get me to 102045 or not.
    Update - My first patch is giving me the OUI-67620 superset error which I believe is telling me the new patch contains all the fixes from the existing patch so ok to proceed. Right?
    ApplySession adding interim patch '9032412' to inventory
    Verifying the update...
    Inventory check OK: Patch ID 9032412 is registered in Oracle Home inventory with proper meta-data.
    Files check OK: Files from Patch ID 9032412 are present in Oracle Home.
    The local system has been patched and can be restarted.
    The following warnings have occurred during OPatch execution:
    1) OUI-67620:Interim patch 9032412 is a superset of the patch(es) [  6600051 ] in the Oracle Home
    OPatch Session completed with warnings.
    OPatch completed with warnings.
    Edited by: user6445925 on Sep 23, 2010 3:31 PM

    Hi,
    Q1. My database level is currently 10.2.0.4. It would appear my steps are first update Opatch (no problem there).
    Then apply 9032412.
    Then it looks like I apply either CPU Patch 9655017, or PSU Patch 9654991.
    But PSU 9654991 REQUIRES PRE-REQUISITE 10.2.0.4.4 so I can't apply that right?You can apply this patch -- In the download page, select the patch for 10.2.0.4 database.
    I will apply 9655017 instead and will that get me to 10.2.0.4.5?This is a CPU patch and it will not move you to 10.2.0.4.5 -- Apply either PSU or CPU
    Can E-Business Users Apply Database Patch Set Updates?
    http://blogs.oracle.com/stevenChan/2009/08/can_ebs_users_apply_database_patch_set_updates.html
    Q2. My configuration is DB Tier with CCM and an app Tier running forms, reports as mentioned.
    Do I have to worry about the Fusion Middle-ware stuff?If you do not have Fusion installed, skip the part about its patches.
    Q3. Patches to apply to E-Business Suite.
    Looks like 9578142 applies to my environment.
    Check the pre-reqs to ensure I have anything that needs to be applied first.
    Then depending on what modules we use or have installed (does it make a difference) I'll apply subsequent patches say for 'Financials'.
    Q3. Anything else I need to consider? We are patching Test first and when done if it's all good we'll schedule Prod.Make sure you apply the patches in these docs.
    About Oracle Applications Technology 11i.ATG_PF.H.delta.7 (RUP 7) [ID 783600.1]
    Known Issues On Top of 11i.ATG_PF.H.delta.7 (RUP7) - 6241631 [ID 858801.1]
    I realize this is a pretty generic question. My main uncertainty is on the db 10.2.0.4 patch and if the 965517 will get me to 102045 or not.No (already answered above) -- See these docs.
    Oracle Database Patch Set Update 10.2.0.4.5 Known Issues [ID 1089052.1]
    Changes in the PSU 10.2.0.4.5 release for July 2010 [Video] [ID 1162085.1]
    Critical Patch Update July 2010 Patch Availability Document for Oracle Products [ID 1089044.1]
    Update - My first patch is giving me the OUI-67620 superset error which I believe is telling me the new patch contains all the fixes from the existing patch so ok to proceed. Right?
    ApplySession adding interim patch '9032412' to inventory
    Verifying the update...
    Inventory check OK: Patch ID 9032412 is registered in Oracle Home inventory with proper meta-data.
    Files check OK: Files from Patch ID 9032412 are present in Oracle Home.
    The local system has been patched and can be restarted.
    The following warnings have occurred during OPatch execution:
    1) OUI-67620:Interim patch 9032412 is a superset of the patch(es) [  6600051 ] in the Oracle Home
    OPatch Session completed with warnings.
    OPatch completed with warnings.See (WARNING MESSAGE "OUI-67078" and "OUI-67620" FROM OPATCH WHEN APPLYING 10.2.X PATCHES [ID 553244.1]). If opatch complete with code = 0 then you can ignore this warning.
    Thanks,
    Hussein

  • Oracle OS Question: SolarisX86 or RH Linux?

    I could pose this question on either RH or Sun site, but I am unsure whether or not I would get an unbiased answer.
    I have a choice of running RH or SolarisX86 with Oracle (Sparc is not debatable - Vendor Relationship issue)
    I am interested in hearing from DBAs who handle/maintain/administer large DB/mission critical/hi-volume transactions and what your comfort level would be with respect to Oracle/Solaris X86 vs Oracle/Linux in the area of
    1. OS patch maintenance/sys admin (drivers, kernels, etc..)
    2. OS compatibilities (hardware drivers)
    3. Oracle performance on each OS
    4. OS specific issues (both pros and cons) (related to Oracle only please)
    5 Commercial Support Programs (Sun or RH) : cost/ responsiveness etc..
    6. and lastly, if you were in this seat, would you bet your job on Solaris86 or RH Linux?
    Thanks in advance.
    PS: Please keep Sparc vs. X86 off this thread.

    You should not only consider using RH,but also Enterprise Linux Ref. http://www.oracle.com/technology/tech/linux/index.html.
    RedHat is a very good Operating system, but I would not consider it to be ready for mission critical systems. Ref. http://www.ecommercetimes.com/story/31586.html, http://weblog.infoworld.com/dickerson/000691.html, http://searchopensource.techtarget.com/originalContent/0,289142,sid39_gci1068311,00.html

  • My apologies in advance for Oracle 7 question

    Let me thank you all in advance for your help. I am running Oracle 7.34 on Unix. I keep finding the temp tablespace 99.86% filled. How can I find out who is filling up the Temp tablespace.
    Thanks

    Are you running with the tablespace as "Temporary" ?
    Are you seeing errors in the alert log re: processes failing because of temp space ?
    If yes and no there may not be a problem. Oracle will allocate and manage based on need. It does NOT return the space (to free), but will reuse it.
    Otherwise, I was never able to get a good answer to the question myself.
    Ken

  • Connecting webserver to oracle database 10g didn't work

    Hi,
    I have webserver installed on SuSE Linux ES 10. I want to connect webserver to my oracle database 10 which is installed on SuSE Linux ES 9. I have download the instant client. But there is no success in connecting webserver to database. Can anyone in this forum give me step by step help for configuring this?
    Regards
    Trusha

    Check the documents at http://www.oracle.com/technology/tech/php/index.html
    Your webserver machine will need to have some Oracle libraries installed, e.g. the Oracle Instant Client. There are steps given in a few places including the Underground PHP & Oracle Manual.
    You might need to adjust some paths that differ on Suse.
    -- cj

  • Oracle 10g questions, please

    I looked through Oracle 10g reference documentation, but still have some questions.
    1) Could "Global Temporary" tables contain SDO-type columns now?...
    2) Could O10g AS MapViewer be used not only in browser pages, but in JAVA applications, wrote in Swing etc.?
    3) Where MapViewer's itself and its JAVA-API's documentation locates?.. I haven't found it :(((

    1) Could "Global Temporary" tables contain SDO-type columns now?...Yes, they can. But you cannot create any spatial index on temporary tables:
    ORA-29918: cannot create domain indexes on temporary tables
    2) Could O10g AS MapViewer be used not only in browser pages, but in JAVA applications, wrote in Swing etc.?
    Sure. However, your application will still need to interact with the mapviewer server.
    3) Where MapViewer's itself and its JAVA-API's documentation locates?.. I haven't found it :(((
    Check out: http://www.oracle.com/technology/software/products/mapviewer/index.html
    Albert

  • Oracle/VB question - same newbie different question.

    Hi,
    I've just learned the magic that is getting VB to call stored procedures in Oracle - but now I have a question.
    I have a procedure that runs through a table, this is the loop part :
    loop
    fetch staff_c into surname_str, first_str, salary_str;
    exit when staff_c%notfound;
    dbms_output.put_line('data ' || surname_str || ', ' || first_str || ' - ' || salary_str);
    end loop;
    close staff_c;
    so my question is simply this, I'm using the following VB code to access a stored procedure which is passing a param in, and a param out -
    Dim cmd As ADODB.Command
    Dim conn As ADODB.Connection
    Dim param As ADODB.Parameter
    Set conn = New ADODB.Connection
    conn.Open "dsn=PaulsRescueDB", "x", "y"
    Set cmd = New ADODB.Command
    cmd.ActiveConnection = conn
    cmd.CommandType = adCmdStoredProc
    cmd.CommandText = "lang_count"
    Set param = cmd.CreateParameter("@p_in", adVarChar, adParamInput, 10, "english")
    cmd.Parameters.Append param
    cmd.Execute
    MsgBox cmd.Parameters(1).Value
    conn.Close
    what do I need to do in order to be able to treat the result of the stored procedure as a recordset - or am I mis-understanding something?
    Thanks in advance,
    Ed.

    Just in case anyone else out there was interested here's a brief summary of the solution.
    First lets look at the stored procedure as this is where the first and most important point is to be seen:
    create or replace package types
    as
    type cursorType is ref cursor;
    end;
    so we're creating a cursor type variable called cursortype, this is then used in the following code:
    create or replace procedure getemps( p_in in varchar, p_cursor in out ref cursor
    as
    begin
    open p_cursor for select surname, firstname
    from staff
    where initcap(p_in) = surname;
    end;
    It should be noted that a cursor is effectively an area of memory specific to your session that stores a result set, the cursor is treated as a variable/object.
    In the case of the above code the cursor contains the result of the select statement.
    You will also notice that the code opens the cursor with the contents of the select (this is because whenever you create an object it is null - unless you give it an initial value).
    The variable P_In is a varchar (when defining a procedure you do not specify the size of an int or varchar) and p_cursor is the returned data.
    I do not know why p_cursor is both in and out, out alone would have been the obvious choice.
    So we now have a stored procedure that takes a parameter to pass to a select statement, does a search and then returns a resultset (cursor).
    Now to answer the original question, how do you use this in VB?
    The code below illustrates (ADO):
    Dim cmd As ADODB.Command
    Dim conn As ADODB.Connection
    Dim param As ADODB.Parameter
    Dim rs As ADODB.Recordset
    Set conn = New ADODB.Connection
    conn.Open "dsn=PaulsRescueDB", "x", "y"
    Set cmd = New ADODB.Command
    cmd.ActiveConnection = conn
    cmd.CommandType = adCmdStoredProc
    cmd.CommandText = "getemps"
    Set param = cmd.CreateParameter("@p_in", adVarChar, adParamInput, 10, "foghorn")
    cmd.Parameters.Append param
    Set rs = cmd.Execute
    While Not rs.EOF
    Debug.Print (rs.Fields(1).Value & " " & rs.Fields(0).Value)
    rs.MoveNext
    Wend
    conn.Close
    As you can see I am manually creating an ADODB object, specifying that the commandtype is a stored procedure and then appending a parameter to the command text.
    You will also notice that although the cursor is the second parameter in the stored procedure I do not specify it directly but rather assign the ADO recordset object as the result of the ADO command execution.
    Once I've done this I merely use the recordset as a normal recordset object.
    CREDITS:
    The stored procedure is based on the one supplied by Jens Link in the previous post.
    The VB is a hijacked piece of ASP code modfied for VB.
    If this helps anyone else out there besides me then I'm happy to have been able to give something back to the community that has helped me.
    Ed.

  • Oracle Interview Questions

    Hi All,
    Could you please answer the below important interview questions:
    1)Lets say many oracle DBs are running on one unix server.How would you determine how many are running.
    2)How would you determine that the shared memory segments/semaphores belongs to a particular instance.
    3)Why is it not recommendable to use PCTUSED with Indexes?
    4)Which query is better in terms of performance-SQL using IN or SQL using EXITS operator.
    5)What does shrink command do ?
    6)WHat are the steps to migrate the DB from one version to another?

    1) ipcs -mob | grep <oracle account> | wc -l
    2) disconnect all users from all instances.
    Connect to one instance. Run ipcs -mob | grep <oracle account>:
    the shared memory segment that is used by the instance you are connected to has its NATTACH value incremented by 1 if the database server is configured with dedicated server process.
    Message was edited by:
    Pierre Forstmann

Maybe you are looking for

  • ITunes plus songs - Can I use it in more than one computer?

    Hi, I"m planning to buy songs from iTunes. Now that the songs are iTunes plus, is it possible to copy the song file to a different PC and upload it to iTunes? I've been used to buying songs from Amazon as it is MP3 format and wondering if iTunes plus

  • Itunes one Account, need another account.

    I have a home PC that is shared by a family of 4.  Each family member has there own userid but we only have one Apple account.  My daughter now wants her own account. Will there be a problem when she transfers her music to a new computer?

  • How do I connect my iphone to my itunes?

    I need help! I just boughtmy first iphone and I have no idea how to "sync" it to my itunes account so I can start using it. Help!

  • Asset Number at sub numbers

    Hello Gurus, Our client requires asset at sub number level e.g. Asset Class Furniture & Fixtures. Asset number starts with 1000 and if their are 2000 tables in an organisation, it would be done thru sub asset concept. So my table asset will be groupe

  • Cannot combine sales order item into one DN cause LC exchange rate differ

    Our users want to combine all items into one DN(delivery notice) to save their effort on packing. But it is not possible because some items were added(modified) into the sales order afterward and resulted in a situation where Exchange rate for letter