Problem in Creation of Oracle Session in Global.asa

Dear all,
I tried to run an ASP example on OO4O and created the following global.asa.
<OBJECT RUNAT=Server SCOPE=Application ID=OraSession
PROGID="OracleInProcServer.XOraSession"></OBJECT>
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Sub Application_OnStart
'Get an instance of the Connection Pooling object and create a pool
of OraDatabase
OraSession.CreateDatabasePool 20,40,200,"XXX", "xxx/xxx", 0
End Sub
Sub Application_OnEnd
OraSession.destroyDatabasePool
End Sub
</SCRIPT>
However, the IIS reported the following error when running.
"An error occurred while creating object 'OraSession'".
I have used the same connection string on a VB project. The connection works perfectly. Could anyone know why the connection cannot setup on ASP?
Thank you very much
Samuel

I am getting the same problem. If you have found any solution, please let me know.

Similar Messages

  • Old Oracle Session with Tomcat is not kiiling automatically

    Hi,
    I am facing a problem of increasing inactive oracle sessions with tomcat, Old Oracle sessions with tomcat are visible with new one.
    if somebaody did not restarted tomcat gracefully, then does Oracle keep the session connected or is there any way that whenever any one restarted tomcat abnormally, Oracle session can be killed.
    I had restart the database to kill session.

    Could you please tell me that where do i set this parameter in parameter file or sql net file and what is the recommended value, do you have any document on this.
    Another thing tomcat is in other server machine and my database is in different server machine, killing process in tomcat server machine manually may not kill linux process on oracle database machine and therefore oracle sessions are still there.
    Is it possible?
    Edited by: user605066 on 28-Aug-2008 04:59

  • Java hibernate oracle sessions never get closed

    Hi all,
    I'm opening some Oracle sessions from a java-hibernate app. When a shutdown my java-hibernate the oracle sessions remain opened, even if the java process is not seen as running with "ps -fea | grep java".
    The problem is that this oracle sessions never die, they remain there and the only way to kill them is to either manually kill oracle process, or to restart the oracle instance or to restart the unix box where oracle resides.
    My java/hibernate app always close the session with a final statement in the source code, no matter what.
    Thanks in advanced.

    Hi all,
    I'm opening some Oracle sessions from a java-hibernate app. When a shutdown my java-hibernate the oracle sessions remain opened, even if the java process is not seen as running with "ps -fea | grep java".
    The problem is that this oracle sessions never die, they remain there and the only way to kill them is to either manually kill oracle process, or to restart the oracle instance or to restart the unix box where oracle resides.
    My java/hibernate app always close the session with a final statement in the source code, no matter what.
    Thanks in advanced.

  • Creation of Material using BDC Session method & global class

    Hi
    Creation of Material using BDC Session method & global class by using oops.
    can anyone plz help me out

    Hi,
    it looks like it's not possible to call this BAPI wihtout material number. Here is a quote from BAPI documentation.
    When creating material master data, you must transfer the material
    number, the material type, and the industry sector to the method. You
    must also enter a material description and its language.
    Cheers

  • Crystal Subreport Oracle Session Problem

    dear all <br /><br />We are using Oracle 9i,Crystal Report 9 and Visual Basic 6 as FrontEnd <br />in which we are using RDC. We have limited sessions in Oracle and we <br />can&#39;t increase them. When we connect a simple report through set data <br />source method it doesn&#39;t occupy any oracle session, but when we use a <br />report in which have subreports,WE get null password given error.If we set connection properties. It takes sessions we just want to open <br />subreports without any extra session. I tried connection properties in <br />code, but it doesn&#39;t work. <br /><br /><br />warrm regards <br />Nikunj

    When you use the setdatasource method to pass a dataset to a report you won't see any additional oracle connections being used because the connection used to create the original recordset will be used. This is called the 'data push' method. When you run a report with sub-reports and you let the report 'pull' the data it will connect to the database and use an oracle connection. In the case of sub-reports I believe it may make one connection per sub-report.
    The way to get around this is to use the setdatasource method on the subreports aswell. If you decide to do this then you will want to uncheck "Verify Stored Procs" in the report designer settings. Are the subs using the same connection/tables as the main? Apparently, calling LogoffServer() helps, even tho LogonServer is not used. It is the main rpt that does not use an Oracle session using a RecordSet? (Push model). If so, use the same for subs, then only the code will connect, and build a recordset and the report will not need to connect at all.
    Rob Horne
    http://diamond.businessobjects.com/blog/10

  • Database creation in oracle 9i

    can any one tell me step of database creation in oracle 9i
    i try many times from 2 days through script because my DBCA is not open
    when i click it. DBCA created orcl during instalation but now
    it is not running. will i have to install it ?
    1)i add db_name=mukesh below db_name=orcl and run script but errors
    2)i crete initm.ora by copy init.ora and change db_name=orcl by db_name=mukesh
    in initm.ora but errors
    1)when i use init.ora without adding db_name=mukesh
    i also change undo_management by AUTO to manual i get
    SQL> shutdown immediate;
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup pfile=D:\oracle\admin\orcl\pfile\init.ora nomount
    ORACLE instance started.
    Total System Global Area 135338868 bytes
    Fixed Size 453492 bytes
    Variable Size 109051904 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 667648 bytes
    SQL> create database mukesh
    2 datafile 'D:\oracle\oradata\mukesh\system01.dbf' size 325m
    3 logfile
    4 group 1 ('D:\oracle\oradata\mukesh\redo01.log') size 100m,
    5 group 2 ('D:\oracle\oradata\mukesh\redo02.log') size 100m,
    6 group 3 ('D:\oracle\oradata\mukesh\redo03.log') size 100m;
    create database mukesh
    ERROR at line 1:
    ORA-01501: CREATE DATABASE failed
    ORA-01504: database name 'mukesh' does not match parameter db_name 'orcl'
    after that i add db_name=mukesh below db_name=orcl
    SQL> shutdown immediate;
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> startup pfile=D:\oracle\admin\orcl\pfile\init.ora nomount
    ORACLE instance started.
    Total System Global Area 135338868 bytes
    Fixed Size 453492 bytes
    Variable Size 109051904 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 667648 bytes
    SQL> create database mukesh
    2 datafile 'D:\oracle\oradata\mukesh\system01.dbf' size 325m
    3 logfile
    4 group 1 ('D:\oracle\oradata\mukesh\redo01.log') size 100m,
    5 group 2 ('D:\oracle\oradata\mukesh\redo02.log') size 100m,
    6 group 3 ('D:\oracle\oradata\mukesh\redo03.log') size 100m;
    create database mukesh
    ERROR at line 1:
    ORA-01501: CREATE DATABASE failed
    ORA-00200: controlfile could not be created
    ORA-00202: controlfile: 'D:\oracle\oradata\orcl\CONTROL01.CTL'
    ORA-27038: skgfrcre: file exists
    OSD-04010: <create> option specified, file already exists

    Hi,
    If you getting a problem with DBCA go for manually process:-
    I had listed steps which I follow
    Step 1: Decide on Your Instance's System Identifier (SID)
    Step 2: Create the Initialization Parameter File
    Note:- Name the copied init.ora file init<SID>.ora because this is the default naming convention that the Oracle server looks for when it tries to start up the instance ORACLE_HOME/dbs directory (exists over the prefered path)
    Edit this file's parameters so that your database and your instance will run effectively on your system.
    DB_NAME Must be set to a text string of eight characters or less. During database creation, the value assigned to DB_NAME is recorded in the database's datafiles, redo log files, and control files. If, when you attempt to start the database instance, the value of DB_NAME as recorded in the initialization parameter file and the database name in the control files are not the same, the database will not start.
    DB_DOMAIN A text string that specifies the network domain where the database is created.
    CONTROL_FILES Is assigned the comma-separated list of control file names to use for the new database. When you execute the CREATE DATABASE statement, the control files listed as values assigned to this parameter are created. If you fail to specify a filename for the CONTROL_FILES parameter, Oracle creates a file with a default operating system dependant filename.
    DB_BLOCK_SIZE Specifies the standard block size of the database. This size is used in the creation of the system tablespace and by default in any other tablespaces created. Take care when determining what this value should be because after the database is created, the value cannot be changed.
    UNDO_MANAGEMENT Determines whether the database starts in automatic undo management mode. A value of AUTO enables automatic undo management; MANUAL enables manual undo management mode. In 9i, AUTO is suggested, but MANUAL is default.
    UNDO_TABLESPACE When the instance starts in automatic undo management mode, it needs to have a tablespace in which to store its undo information. The default is SYS_UNDOTBS and is automatically created if you execute a CREATE DATABASE statement with the UNDO_MANAGEMENT initialization parameter set to AUTO and no UNDO TABLESPACE statement in the CREATE DATABASE statement.
    Step 3: Connect to and Start the Instance
    Connect to the instance as SYSDBA either using operating system authentication or the password file method of authentication and start up the instance using the STARTUP command.
    sqlplus '/ as sysdba'
    If your parameter file is not in the default location or is not named init<SID>.ora, you may need to specify the PFILE clause in the STARTUP command for the instance to start.
    Because you do not yet have a database attached to the instance, you need to start up the instance in NOMOUNT state:
    startup nomount;
    The instance is now started and ready for the CREATE DATABASE command.
    Step 4: Issue the CREATE DATABASE Statement
    create database mydb1 controlfile reuse
    Logfile
    Group 1 ('/mydb1/log1/log01a.log',
    '/mydb2/mydb1/log01b.log') size 50M,
    Group 2 ('/mydb1/log1/log02a.log',
    '/mydb2/log1/log02b.log') size 50M,
    Group 3 ('/mydb1/log1/log03a.log',
    '/mydb2/mydb1/log03b.log') size 50M
    Datafile '/mydb1/mydb1_system.dbf' 250M
    AUTOEXTEND ON MAXSIZE 500M
    Undo tablespace mydb1_undo1
    Datafile '/mydb/mydb1/mydb1_undo1.dbf' 50M
    Default temporary tablespace mydb1temp tempfile
    '/mydb/mydb1/mydb1temp1.dbf' size 75M
    Extent management local
    Character set US7ASCII
    MAXLOGFILES 10
    MAXLOGMEMBERS 10
    MAXLOGHISTORY 1
    MAXDATAFILES 500;
    Thanks
    Pavan Kumar N

  • Problem in creation of HUs through FM HU_REPACK and HU_POST

    Hi Experts
    This is regarding the problem in creation of HUs with function modules HU_REPACK and HU_POST.
    I am sending two Unique Sources HUs with single destination HU for the same material and batch into HU_REPACK and it shows that it is successfully repacked and soon as the HU_REPACK function module passess I have called HU_POST without any parameters except messages..As the data will be picked up auomatically from the internal memory as these function module are related same function group.
    Even the HU_POST FM passes successfully and also it creates a Transfer order but the problem is that THe HU is created with the MULTIPLE LINE ITEMS for the same material and Batch which should not be done at all .
    Please find the example of the HU created in the system
    0 10020000038479 S-DISP 1 EA S DISPNSARY
    1 0024632192 000004 810062 0.250 KG L0533A4172 Lactose
    1 0024632192 000004 810062 24.900 KG L0533A4172 Lactose
    Material is 810062
    Batch is L0533A4172
    Can you please assist me how to acheive single line item HU when we are trying to repack the data for same material and batch as it does while you create the HU through Manual processing i.e HU02 etc

    Hi Sailaja,
    I have similar requirements like this before with HU_PACKING_AND_UNPACKING FM. It was a tough debugging before I came up with the right solution. Unfortunately, I was not able to document that code..
    But here is what I have been doing.
    Youre on track with the solution below, never use BDC as it will only limit the Handling units that you wish to put into.
    The function modules that starts with V5_ plays important role as you need to initialize the global variables and table of this function group with values before calling HU_PACKING_AND_UNPACKING FM
    Debug inside the Function module, and look for the FM that returns SY-SUBRC <> 0 then set a breakpoint.
    Restart the program then debug inside that FM again (and I do not want to go further on the details, I give you the presumption of literacy)
    You will find some items that has no value, try to initialize everything by utilizing the FM for this function group V51S.
    Happy Debugging.

  • Unit Testing and Oracle Sessions

    We have an issue regarding Oracle session and SQL Developer Unit Testing.
    Every time we run a Unit Test in SQLDeveloper a new Oracle session is created. When closing that Unit Test, the session, however, is not disconnected.
    And the only way to close that "Unit Test" session is to close SQLDeveloper.
    This is causing problems with the no. of sessions available to developers.
    Any help would be much appreciated.
    Subboss

    The focus of this forum is report design. The actual testing of reports would be subject to your own internal policies and procedures.
    Jason

  • How to Use Transient View Objects to Store Session-level Global Variables

    hi
    Please consider section "40.8.5 How to Use Transient View Objects to Store Session-level Global Variables"
    at http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcstatemgmt.htm#ADFFD19610
    Based on this documentation I created the example application
    at http://www.consideringred.com/files/oracle/2010/ProgrammaticalViewObjectAndRollbackApp-v0.01.zip
    It behaves as show in the screencast at http://screencast.com/t/qDvSQCgpvYdd
    Its Application Module has a Transient View Object instance "MyEmployeesContextVOVI", as master for the child View Object instance "EmpInCtxJobVI".
    On rollback the Transient View Object instance keeps its row and attribute values.
    Also when passivation and activation is forced (using jbo.ampool.doampooling=false ) the Transient View Object instance seems to keep its row and attribute values.
    questions:
    - (q1) Why does the expression #{bindings.MyEmployeesContextVOVIIterator.dataControl.transactionDirty} evaluate as true when a Transient View Object instance attribute value is changed (as shown in screencast at http://screencast.com/t/qDvSQCgpvYdd )?
    - (q2) What would be a robust approach to make a Transient View Object instance more self-contained, and manage itself to have only one single row (per instance) at all times (and as such removing the dependency on the Application Module prepareSession() as documented in "5. Create an empty row in the view object when a new user begins using the application module.")?
    many thanks
    Jan Vervecken

    Thanks for your reply Frank.
    q1) Does sample 90 help ? http://blogs.oracle.com/smuenchadf/examples/
    Yes, the sample from Steve Muench does help, "90. Avoiding Dirtying the ADF Model Transaction When Transient Attributes are Set [10.1.3] "
    at http://blogs.oracle.com/smuenchadf/examples/#90
    It does point out a difference in marking transactions dirty by different layers of the framework, "... When any attribute's value is changed through an ADFM binding, the ADFM-layer transaction is marked as dirty. ...".
    This can be illustrate with a small change in the example application
    at http://www.consideringred.com/files/oracle/2010/ProgrammaticalViewObjectAndRollbackApp-v0.02.zip
    It now shows the result of both these expressions on the page ...
    #{bindings.MyEmployeesContextVOVIIterator.dataControl.transactionDirty}
    #{bindings.MyEmployeesContextVOVIIterator.dataControl.dataProvider.transaction.dirty}... where one can be true and the other false respectively.
    See also the screencast at http://screencast.com/t/k8vgNqdKgD
    Similar to the sample from Steve Muench, another modification to the example application introduces MyCustomADFBCDataControl
    at http://www.consideringred.com/files/oracle/2010/ProgrammaticalViewObjectAndRollbackApp-v0.03.zip
    public class MyCustomADFBCDataControl
      extends JUApplication
      @Override
      public void setTransactionModified()
        ApplicationModule vApplicationModule = (ApplicationModule)getDataProvider();
        Transaction vTransaction = vApplicationModule.getTransaction();
        if (vTransaction.isDirty())
          super.setTransactionModified();
    }Resulting in what seems to be more consistent/expected transaction (dirty) information,
    see also the screencast at http://screencast.com/t/756yCs1L1
    Any feedback on why the ADF Model layer is so eager to mark a transaction dirty is always welcome.
    Currently, question (q2) remains.
    regards
    Jan

  • Question about BC4J data tags, Oracle sessions and Locking!

    Hi ,
    I have seen numerous examples of JSPs using data tags and in all the examples the data tag for the application module has the "username" and "password" harcoded in it.
    My questions are:
    1) For a stateful application should we be including the username and password in every JSP page. I personally believe that we should not.
    2) If we have a username and password in every JSP page will it not start a new ORACLE user session and if so will it not cause locking problems?
    3) If we don't hard code the username and password in every JSP page, will it reuse the same ORACLE session ?
    4) How do we avoid locking problems when we use data tags?
    5)I can understand the inclusion of username and password in every JSP page if it is a stateless application but again Is there a way we can avoid hardcoding the username and password in every single page?
    I would appreciate if some one can let me know if any of my assumptions are incorrect.
    JDeveloper Team/Juan any advice?

    The username and password are optional. They can be provided via the connections.properties file. The multple entries for username and password don't mean that separate connection are made. The first time the ApplicationModule tag is encountered, your application instance is created. If you are running in reserved mode (look at your releasePageResources tag) the application instance is kept until your Http session times out. If you are running in Stateful or Stateless mode, you application instance is returned to the application pool and retrieved the next time you need an instance. Please refer to the application pool documentation and to the source in oracle\jbo\common\ampool provided in jbohtmlsrc.zip.

  • Problem while invoking a Stateless Session bean from another bean

    Hi,
    I have a peculiar problem while coding with Stateless Session beans. Maybe you guys can help me out over here. The scenario is as follows
    There are 3 Stateless Session beans. Let Us say Bean A, B and C. There are three methods, method1, method2, and method3 inside A, B and C respectively.
    From A.method1(), B.method2(), and C.method3() are being invoked sequentially. Each of these methods does some JDBC operation and then returns.
    The problem is this, if C.method3() throws and exception, then I am unable to rollback the changes made by B.method2(). Those changes get "Committed" to the database.
    All the 3 beans have Bean managed persistence property set. I am using WebSphere 6.1.
    Any insight on why this is happening would be greatly appreciated.
    Thanks In Advance
    Amardeep Verma

    Hi,
    This is a matter of calling all three methods in the same transaction context. Most easy way of doing this is having a 4th session bean containing a method calling the other 3. Make sure that the Transaction Attributes are REQUIRED, which is the default.
    If the calls a to different backends/databases, you need global transactions and therefor XA complient database and drivers.
    HTH Robert

  • Creation of Oracle managed objects - CF's and Destinations

    Hi,
    Is there a way to create Oracle CF's and Destinations apart from AQJmsFactory. What I am looking for is creating these objects through reflection which most of the JMS providers support. This allows using the Generic JMS RA in javabean mode to easily integrate with Oracle AQ. Please reply.
    Also if it is not possible when is Oracle going to change its API to be standardized as most of the JMS providers support?
    Cheers

    Your topic title, "Creation of Oracle model hanging MS SQL 7->8.1.6", caught my eye, but our situations aren't exact.
    Workbench is hanging on me during the Oracle Model creation when it gets to "Mapping tables". I also waited about 24 hours without any results.
    Do you have any insight to my problem?

  • Desktop Intelligence XI 3.1 in 3-tier mode and a lot of Oracle sessions

    Hi All,
    I wanted to set BusinessObjects Enterprise XI 3.1 for our customers (they use BOE XI R2 now).
    But I met with some problem for Desktop Intelligence in 3-tier mode (ZABO formerly).
    Configuration:
    BO Server: BusinessObjects Enterprise XI 3.1
    BO Client: Desktop Intelligence version 12.1.0.882
    BOE Connection Server: version 12.1.0.882 (2.0.0.29)
    Product database (Data Warehouse): Oracle Server 10g
    Database client: Oracle Client 10.2.0.1
    Connection type: http (J2EE Portal) u2013 Tomcat
    Customer DI Documents contain 10 queries on average.
    Problem:
    ConnectionServer create a session in Oracle FOR EACH QUERY from Desktop Intelligence document and BY EACH REFRESH.
    e.g.:
    30 users loaded any reports simultaneously and refresh theirs:
    30 users * 10 queries (per 1 doc on average) = 301 Oracle sessions !!! (300 for queries and 1 for connection)
    second refresh: 301 + 300 = 601 Oracle sessions
    third refresh: 601 + 300 = 901 Oracle sessions
    etc. while Oracle server is not down.
    For DI doc in 2-tier mode (client-server) u2013 only 1 sessionu2026
    Thanks.

    Look at the XI3.0 migration guide on that site.
    From page 333 onward some good info on the subject of calc. engine changes.

  • Oracle session Hangs while calling one package function

    Hi all,
    We are a facing a interesting scenario in our code. Consider that you have 2 pakcages(A,B). Ecah packages is having more than 5 functions in it.
    1. A.function1() makes a call to B.function1() - is working fine
    2 .B.function1() calls B.function2() - is working fine
    3. B.function2() calls A.function2() - oracle session hangs in this call.
    If I copy the scropt code from A.function2() and inline (put) it in B.function1() , the execution gets completed without an issue.
    If i run the A.function2() seperatly it works fine. Only calling from B package it is failing.
    If anyone knows the rooot cause of the issue, please let me know.
    Thanks and regards,
    Vijayaraja

    Do you have/use global variables?
    Moving code from one package to another doesn’t necessarily result in logically equivalent programs. In the version of your program which “hangs” you may have crafted an infinite loop. Instrument your code and see if you really stall or just keep going on forever.
    With this kind of cross-dependencies in your libraries you almost ask for trouble.

  • Creation of Oracle model hanging MS SQL 7- 8.1.6

    Had a question answered yesterday which has got me almost there, for which thank you. Creating the Oracle model now maps almost all the objects in my SQL Server database (apart from a few roles, triggers and stored procedures), up to the point where the log window shows:
    [Timestamp] Mapping Roles mapped: 7, Roles NOT Mapped: 3
    [Timestamp] Mapping Mapping User Privileges
    [Timestamp] Mapping mapped user privilege :
    [Timestamp] Mapping mapped user privilege :
    [Timestamp] Mapping mapped user privilege :
    The process then hangs (it's been 21 hours now). Any ideas?
    Scott Doughty

    Your topic title, "Creation of Oracle model hanging MS SQL 7->8.1.6", caught my eye, but our situations aren't exact.
    Workbench is hanging on me during the Oracle Model creation when it gets to "Mapping tables". I also waited about 24 hours without any results.
    Do you have any insight to my problem?

Maybe you are looking for

  • You are unable to log in...; Network Home directories; 10.4 & 10.5 Servers

    I have a solution! Note: this is a new post because all previous posts dealing with this topic have been archived, MANY without an answer. Problem: Users with Network Home directories can't log in. After entering their correct username and password,

  • HP Pavilion DV6-320 out-of box recovery error: PLEASE HELP!!!!

    Hi I have restored(F11) my laptop to out-of-box factory restore, after fresh installation laptop got rebooted . After entering the system name, location, date.. etc. Before the desktop is loading for the first time i got the error, ' To run this appl

  • BPM Multinline Message

    Hi, i have developed Multi-Mappings Externally via XSLT my XSLT creats a structure like: <?xml version="1.0" encoding="utf-8"?> <Messages>      <Message1>                         <Envelope>data1</Envelope>                         <Envelope>data2</Env

  • Fast playback

    I've got iTunes 7.0 installed on my PC. I'm running Windows XP. Problem: When I'm running iTunes in the background of a game the playback is fast and choppy but that never happened before I installed 7.0 does/has anyone else had this problem and is t

  • HT1420 need to get rid of old expired apple accounts before I can purchase new stuff

    i need to get rid of old expired apple accounts from previous email addresses.  how to do that?