Oracle connectivity over long period

Hi
I have a Java process that connects to a Oracle 9i database using JDBC type 4 driver - ojdbc14.jar
My process can run for many hours depending on data.
Now what is happening is that the Oracle automatically drops the Session - created internally - for the connection after about 2 - 2 1/2 hours.
There is no error / exception thrown by the process - it continues to run.
Has anyone encountered such behaviour ?
Is there a solution to the particular issue I am facing ?
Thanks in advance.

Hi
I am taking care to open a Connection then do a transaction and if the transaction is successful i do commit the connection and do a re - connect of the Connection [ by closing the connection and re opening it ]
My issue is that even though my Connection is actively deleting data Oracle drops that session and all data is rolledback.
This does seem strange......

Similar Messages

  • I am using my Ipad on a remote craftshow site and am having problems with battery lasting 8 hrs. Can I use a 12v rv battery to recharge it or atleast maintain the charg over longer periods of time? I have a dc adapter. thanks

    I am using my Ipad on a remote craftshow site and am having problems with battery lasting 8 hrs. Can I use a 12v rv battery to recharge it or at least maintain the charge over longer periods of time? I have a dc adapter. thanks

    You should be able to use the battery if you get a car type charger which recharges mobile devices.
    The full size iPads use a 10-12W charger, whereas the mini uses a 5W charger. Many car chargers only supply 5W. But at 5W, the car charger should give you some extra time on your iPad. It would be best to use a 10-12W car charger.
     Cheers, Tom

  • Time based workflow over long Period

    Hello,
    I'm looking for experiences on Time based workflow over long Period.(Over 1 or 2 years).
    Does any limitation exist ?
    Thanks for your help.

    I dont think there will be anyone who can really verify this information over two years im not sure that they have been in use this long

  • Display Data on waveform chart or XY graph over a long period of time

    Display Data on waveform chart or XY graph over a long period of time
    Can anyone help?
    I am acquiring data from an Ni DAQ card with the following parameters - sample rate = 12800, number of samples = 4096. I want to extract order information so as to track changes in the amplitudes of certain frequency harmonics. So I use the sound and vibration toolkit to extract this information as shown in the attached Vi.  I will like to plot the resulting amplitudes against real-time starting at the time the Vi was run.  I really want the display to show these changes over long periods (eg. days, months and even years).
    Problem.
    I have tried to plot the Y component of the resulting magnitude for a given order on a waveform chart. My choice of the waveform chart is because I also want to display  alarm limits (using the mask and limit vi) (I can't have these lines displayed on an XY graph plot).  I tried adjusting the scale offset using the property node and setting the offset to current time. However, the display on the X-axis can only show a span of  2 minutes as will be seen when you run the attached vi. I want the time display on the x-axis to be over a period of  days, months  and even years.  Is there a way to set the maximum scale on the x-axis to be say a year or so in future.
    I really want the display to be like the one in in the second attachment.
    Attached is a sample VI created using an Ni USB 9234 DAQ card. Any card will do but I am only getting the signal from one channel for this example
    I will appreciate any help that can be given to me.
    Thanks
    Attachments:
    Real-Time Graph Display.vi ‏170 KB
    Sampe screen1.doc ‏37 KB

    Long term testing can be tricky- and we'l get into that later.  Lets start with the basics that you have wrong.
    The vi as you have constructed it has only one memory element, the chart history length (default is 1024.)
    You can change the number of points the Chart will remember by Right-clicking the chart an select Chart History Length from the menu.
    But for a long term test - and one where you want to REMEMBER the first value you need a memeory element that is independant of the application.  Your PC WILL loose power or need to be rebooted eventually.  Heck it might even need to be replaced! you really need to store your data in a file. Preferablly in a file that is backed-up on a regular basis so you don't lose every point of data if the PC dies.  It realy hurts when you have to restart a 2yr test because you've lost the 18months of data you collected.
    For an application like this I would seperate my "collection" and "Evaluation" operations. 
    Have one vi that takes the reading and writes it to a file at a configurable rate  You may want 1reading  per minute for seveal days then 1 per hour for a few weeks- then maybe only once or twice a week for the next couple of years since you are looking for LONG TERM stability.  having too much data to evaluate can take a lot of digging to find the few things that interest you (but always take more that you think you need)
    Have another utility that COPIES the files, reads them and displays the data you are interested in that day.  The data you want to look at won't change over time HOWEVER, you WILL want to analize it in different ways depending on what the data trends look like.  Having seperate routines for collection and display allows you to update the display style and analisys without even stopping the collection vi (much less editing the vi)
    Jeff

  • Not able to connect remote oracle database over VPN

    I can not connect remote oracle database over VPN. tnsping is ok and it shows the server information of remote database. i can also telnet the 1521 port of remote database server. I can connect the same server when it is located in the same LAN. Please help me out this is very urgent.

    6b6c669e-6baa-45c4-a6dc-444aef2d5e7a wrote:
    I can not connect remote oracle database over VPN. tnsping is ok and it shows the server information of remote database. i can also telnet the 1521 port of remote database server. I can connect the same server when it is located in the same LAN. Please help me out this is very urgent.
    First, this is a forum of volunteers.  There is no "urgent" here.
    "Urgent" means one of two things -
    1) people are dying, or
    2) you have a customer-facing, revenue-producing production system that is down.
    (And to get some perspective on the second case, keep the first in mind.)
    For the first, you call whatever civil emergency service seems appropriate.
    For the second, you open an SR with Oracle - which requires a paid-up support contract. For *them* to consider your problem "urgent", you will need to demonstrate that your problem falls under item #2. I seriously doubt your problem fits that criteria.
    You don't have a support contract?  Now you know the exact dollar figure that your company places on the data.
    That said, you need to understand a few things about your specific problem,
    First, port 1521 is only used by the listener to accept a connection request.  Once it gets that request (and finds that it is for a service (sid) that it knows about, it will fork a server process and tell the requesting client that it can communicate with that server process over some other port .. a randomly chosen port number in the "high" range.  It could be your vpn is blocking that other port, whereas your internal firewall is not.
    But this is just an educated guess since I cannot find "can not connect remote oracle database over VPN" in any error message manual. If you had mentioned the VPN along with an actual oracle error message we could be much more precise in our diagnoses and recommendations.
    ---- edit 22 Sep
    It occurred to me that I just assumed you were using the same client machine in both cases ... a laptop that you use both at work (local network) and home (vpn).  If that assumption is false, there are probably problems with your tns setup on the home (vpn) machine.
    But again, it would be much easier to help if you gave us an actual error message.

  • Digital Inputs do not record over long time periods

    I am running Signals Express 2009 with a USB-6009.  I have a project that needs to record the states of 8 digital inputs over a 24 hour period.  The inputs typically do not change state for long periods of time.  When I run the project it does record and gather data if I stop it "soon"(I have gone as long as 30 min.)  When I leave it running overnight it does not appear to record anything.

    If you have not already, you should try turning off display updates in the "Operate »Update Signal Views While Running" menu item.  Set this to Update None.  Also, turn off "Prepare log data for viewing" under the Logging part in the Tools » Options dialog.  
    When I ran your project overnight, it ran out of memory.  The first error it threw was "Not enough memory to complete this operation."  The problem was that SignalExpress saved a great deal of data in memory for easy displaying while it's running, but this grows too big when it runs overnight.  The second error was as follows:
    Logging Stopped:
    Logging was stopped because an error occurred with a Step in the Project. 
    If this error is because of a device buffer overflow, you can improve performance by turning off display updates using the "Operate »Update Signal Views While Running" menu item.
    You can also change the way signals are logged by changing the Logging Options in the Tools»Options dialog.  
    Turning off  the "Prepare log data for viewing" will greatly improve performance. 
    Mark E.
    National Instruments
    Schedule a Free 1-Hour online LabVIEW Tutorial with an NI Applications Engineer

  • IPhone 5 won't stay connected to wifi for a long period of time?

    iPhone 5 won't stay connected to wifi for a long period of time?

    Hi Asdghyvbji!
    I have an article for you that should be able to help you troubleshoot this issue:
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/ts1398
    You may also need to see this article about wireless interference for further troubleshooting on this issue:
    Wi-Fi and Bluetooth: Potential sources of wireless interference
    http://support.apple.com/kb/ht1365
    Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

  • Oracle Connection Pool failure in COM+

    I am having some trouble trying to get a specific database to work with an application that makes use of a COM+ Application. When we point the application at the UAT database everything seems fine, but when we point it to the production database after a few successful calls it ends up failing at the COM+ application recycles. The event viewer provides the following information:
    Event Type:     Error
    Event Source:     COM+
    Event Category:     Unknown
    Event ID:     4786
    Date:          8/5/2007
    Time:          12:54:46 PM
    User:          N/A
    Computer:     APPL_SERVER
    Description:
    The system has called a custom component and that component has failed and generated an exception. This indicates a problem with the custom component. Notify the developer of this component that a failure has occurred and provide them with the information below.
    Component Prog ID: Oracle Connection Pool - tnsnames_alias
    Method Name: IDispenserDriver::CreateResource
    Server Application ID: {30A93CB3-25EB-4258-8C88-5AE103B7B86F}
    Server Application Instance ID:
    {A57C513E-519F-45BD-B46D-DC54B285F534}
    Server Application Name: COM+ Application Name
    The serious nature of this error has caused the process to terminate.
    Exception: C0000005
    Address: 0x7C8327F9
    Call Stack:
    + 0x7c8327f9
    ntdll!RtlFindActivationContextSectionGuid + 0x7d2
    ntdll!RtlInitializeSListHead + 0x175
    ntdll!RtlFindActivationContextSectionGuid + 0x1b7
    msvcrt!malloc + 0x6c
    oracommon9!sktsfMalloc + 0x14
    orageneric9!kpummapg + 0x58
    orageneric9!kghalo + 0xabb
    orageneric9!kghalf + 0x102
    orageneric9!kopo2cpc + 0x61
    orageneric9!kopeini + 0x1d
    orageneric9!kopo2cpc + 0xd2
    orageneric9!kopopgi + 0x117
    OraClient9!koudpnp + 0x712
    OraClient9!koudpnp + 0x101
    OraClient9!kpuinit0 + 0xb19
    OraClient9!kpuinit + 0x38
    OraClient9!OCIEnvInit + 0x1c
    oramts!kpntsrvr::kpntsrvr(class kpntdbid *) + 0x80
    oramts!kpntdbid::allocNewSrvr(struct SIDAND_ATTRIBUTES *) + 0x138
    oramts!kpntdbid::GetSrvr(class kpntsvrl * *,unsigned long) + 0x7df
    oramts!kpntdisp::getNet8conn(class kpntsvrl * *,unsigned long) + 0x41
    oramts!kpntsess::initOCI(void) + 0xec
    oramts!kpntsess::sessionBegin(void) + 0x17b
    oramts!kpntdisp::CreateResource(unsigned long,unsigned long *,long *) + 0xc4
    COMSVCS!DispManGetContext + 0xa3d
    COMSVCS!DispManGetContext + 0x1fee
    oramts!kpntdisp::allocateConnection(class kpntsess * *,unsigned long,class kpntrtyp *) + 0x3c4
    oramts!_kpntsvcgetex + 0x183
    oramts!_kpntsvcget + 0x25
    oramts!kpntctra::getConnectionAndHandles(class kpntrtyp *,struct OCISvcCtx * *,struct OCITrans * *,struct OCIError * *) + 0x87
    oramts!kpntctra::abortBranch(struct xid_t &,class kpntbrnch *,struct BOID *,int,struct BOID *) + 0x15a
    oramts!kpntctra::doAbort(struct BOID *,int,struct BOID *) + 0x454
    oramts!kpntajob::doJob(void) + 0x27
    oramts!kpntjobq::serviceRequest(class kpntjob *) + 0x3e
    oramts!workerThread(void *) + 0xd0
    msvcrt!_endthreadex + 0xa3
    kernel32!GetModuleFileNameA + 0xeb
    Not being an expert in Oracle, I have been able to dig up a little bit of information that might be of use ...
    a) Our tnsnames.ora indicates that the connections are to be DEDICATED and running Toad bares this out -- dllhost ends up with a single connection.
    b) most of the database initial set of parameters seem to be very similar. The only difference I noticed was that the archive log mode and db_cache_advice are ON for production.
    c) We have little control over how the connection strings are being created internally in this COM+ application, but however they are created it works for UAT and doesn't for PROD.
    d) When we go into our web application and hit a page that makes use of the COM+ component to render, it will work the first time but when I do a simple browser refresh it will usually fail on the 2nd or 3rd time. Almost like it is trying to expand the connection pool size and the oracle server is throwing up.
    If I didn't mention earlier the two database instances run on different servers but the application server is exactly the same. We only change the alias we are using for the database (both are defined in tnsnames) and the password used to make its connection.
    Does anyone have any clues on this one? I am really spinning my wheels trying to figure out what could cause this type of situation. Anything at all would be very helpful.

    It appeared to us that the problem was with the Oracle server and that it might have been failing when we were trying to expand our application connection pool size or basically obtain more connections.
    The biggest indicator of this is that we run the same application code against two different databases and one works and one does not work. Having said this, I suppose the problem could be rooted in a data error instead of an oracle server error ...
    Is there a specific trace file on the oracle server that would help me point to any error that is truly an oracle server error? Sorry I am very new to Oracle.

  • Where do changed data values goto if DB is in BACKUP mode for LONG PERIODs

    Where does oracle write if put the database in begin backup mode for LONG PERIODs. Lets say I issued a "ALTER DATABASE BEGIN BACKUP" command in a busy database and forgot about it for a long time.
    I understand that when the DB IS IN BEGIN BACKUP MODE, "the database copies whole changed data blocks into the redo stream." (Page 503 of 11.1 backup and recovery guide). But the redo stream is limited by the number of online redologs. After some time redologs also wont be sufficient for the changed data values after a begin backup is issued. I understand that there are archived redologs.
    Lets say there are 2 redolog groups in this database and Lets say 10 archive log files got generated since the ALTER DATABASE BEGIN BACKUP was issued.
    When i finally issue the "ALTER DATABASE END BACKUP" command, will Oracle sync the datafiles with the changed data blocks reading the data from these 10 archived log files ? What happens if i delete these archive redologs from the archive log destination. ??
    page 504 of 598 in the backup and recovery guide
    Caution : If you fail to take the tablespace out of backup mode,
    then Oracle Database continues to write copies of data blocks in
    this tablespace to the online redo logs, causing performance
    problems. Also, you receive an ORA-01149 error if you try to shut
    down the database with the tablespaces still in backup mode.
    it just says "performance problems", nothing more than that.*
    Any answers ? I am sure this question would have popped to some of you senior DBA people out there.

    user13076519 wrote:
    Where does oracle write if put the database in begin backup mode for LONG PERIODs. Lets say I issued a "ALTER DATABASE BEGIN BACKUP" command in a busy database and forgot about it for a long time. It writes just like it always does, plus it puts some extra in the redo log the [url http://oraclenz.com/2008/07/11/logging-or-nologging-that-is-the-question-part-ii/]first time a block is changed.
    >
    >
    I understand that when the DB IS IN BEGIN BACKUP MODE, "the database copies whole changed data blocks into the redo stream." (Page 503 of 11.1 backup and recovery guide). But the redo stream is limited by the number of online redologs. After some time redologs also wont be sufficient for the changed data values after a begin backup is issued. I understand that there are archived redologs. This appears to be a typo (incompleteness, really) in the backup and recovery guide.
    The redo stream is not limited by the number of of redo logs, only the volume of data. When a log fills up, it gets archived. If all the logs get filled up before the first one is finished archiving, the db will stall until the next redo becomes available. The only limit to archiving is disk space (and bandwidth if that is an issue, which it can be in some configurations).
    >
    Lets say there are 2 redolog groups in this database and Lets say 10 archive log files got generated since the ALTER DATABASE BEGIN BACKUP was issued.
    When i finally issue the "ALTER DATABASE END BACKUP" command, will Oracle sync the datafiles with the changed data blocks reading the data from these 10 archived log files ? What happens if i delete these archive redologs from the archive log destination. ??Archived logs are archived, Oracle only reads them in recovery. You do not understand archive logs, read the concepts manual.
    >
    page 504 of 598 in the backup and recovery guide
    Caution : If you fail to take the tablespace out of backup mode,
    then Oracle Database continues to write copies of data blocks in
    this tablespace to the online redo logs, causing performance
    problems. Also, you receive an ORA-01149 error if you try to shut
    down the database with the tablespaces still in backup mode.
    it just says "performance problems", nothing more than that.*Because it is overgeneralizing.
    >
    Any answers ? I am sure this question would have popped to some of you senior DBA people out there.Oh, you want to send me a gift for showing where in oracle it's documented? See [url http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:271815712711]here for something over a decade old.

  • Spinning rainbow wheel for long periods on File Open commands in Acrobat and Office 365 programs

    Hardware & Software:
    MacBook Pro (17-inch, Mid 2009)
    77GB of free hard disk space
    8GB RAM
    Running OS X Yosemite (Version 10.10.2)
    Over the last few days, when I try to execute a File Open command from Adobe Acrobat or Office 365 programs (even from an innocuous location such as Documents), I get the spinning rainbow wheel for long periods of time (10 seconds to minutes) before I am able to select a file to open. I copied messages from Console after a File Open command for each of Adobe Acrobat and Excel (the selected location was Documents), given below:
    Excel Log Messages
    2/24/15 5:50:50.970 PM     WindowServer[147] disable_update_timeout: UI updates were forcibly disabled by application "Microsoft Excel" for over 1.00 seconds. Server has re-enabled them.
    2/24/15 5:51:01.280 PM     NetAuthSysAgent[684]        AFP error -1 mapped to EIO
    2/24/15 5:51:01.281 PM     NetAuthSysAgent[684]        ERROR: AFP_GetServerInfo - connect failed 5
    2/24/15 5:51:01.281 PM     NetAuthSysAgent[684]        AFP error -1 mapped to EIO
    2/24/15 5:51:01.739 PM     WindowServer[147] common_reenable_update: UI updates were finally reenabled by application "Microsoft Excel" after 11.77 seconds (server forcibly re-enabled them after 1.00 seconds)
    Adobe Acrobat Log Messages
    2/24/15 5:58:22.145 PM     bird[257]        Assertion failed: ![_xpcClients containsObject:client]
    2/24/15 5:58:23.454 PM     WindowServer[147] disable_update_timeout: UI updates were forcibly disabled by application "Acrobat" for over 1.00 seconds. Server has re-enabled them.
    2/24/15 5:58:29.538 PM     NetAuthSysAgent[708]        AFP error -1 mapped to EIO
    2/24/15 5:58:29.538 PM     NetAuthSysAgent[708]        ERROR: AFP_GetServerInfo - connect failed 5
    2/24/15 5:58:29.538 PM     NetAuthSysAgent[708]        AFP error -1 mapped to EIO
    2/24/15 5:58:29.722 PM     WindowServer[147] common_reenable_update: UI updates were finally reenabled by application "Acrobat" after 7.27 seconds (server forcibly re-enabled them after 1.00 seconds)
    Can anyone give me an idea of what these messages mean and how I can solve this problem?
    If I'm not in the correct Community for this question, could someone kindly tell me where I should re-post?
    Thanks.
    David Walker

    Yes; I have previously connected to an iMac at this location using File Sharing.  However, in my attempts to solve this problem last week, I had already unchecked File Sharing in System Preferences.  Tonight, I also deleted the folder from the window in the File Sharing System Preferences page, then rebooted.  The problem still persists.
    I try not open files across a server line, i.e., I try always to copy a file to the local computer and open it there.  I may have gotten careless and tried to open a file from the Windows server with either or both Acrobat and Office 365.  Although this was an SMB share, is it possible that these programs are now trying to connect to the Windows server on a File Open?
    I had about decided to quit chasing this problem; we spend about two weeks every two months at this Boston location, and I'll be returning to my Florida home this weekend.  So I decided I would see what the situation was when I returned to my native habitat, although I may be chasing this problem again in our trip to the Boston area in April.
    The other thing I wondered (I guess I can't quite let it go), is whether there is a command line in Terminal that would kill all AFP shares.
    In any case, thanks for your help; you're very knowledgeable.

  • Remote Desktop Connection no longer works.

    After verifying that all Remote Desktop Connection settings and firewall settings match the requirements, I cannot connect to the host computer running Windows 8.1 Pro with Media Center from a client computer running Windows 7 Home Premium SP1 over my
    home (private) network. I was previously able to connect these same two computers when the host computer was running Windows XP Pro, but now that I have upgraded its operating system to Win 8.1 Pro the connection no longer works. The Windows Troubleshooter
    cannot find the problem. What is wrong?

    If you turn off a firewall in a router it is still using NAT which will also act like a firewall. In my experience its better to let your router be the firewall.
    On most routers that have an SPI firewall you have to setup 2 rules to allow remote connections. One would be the firewall rule and other would be the port forwarding(NAT) rule.
    Are you forwarding the correct ports to your mac from the router? Does your Mac have a fixed IP address?

  • TC 2 TB A1409 Wan internet connection no longer working but light is still green?

    TC 2 TB A1409 Wan internet connection no longer working but light is still green?
    My TC and modem have been up and running for at least the last 2 years without any issues.
    It recently started acting up and I would have restart it as I had no internet access. All of a sudden My TC stopped connecting to internet regardless of restart. Utility shows i have no internet connection. I had all the correct green lights on my modem. I figured it might be the modem and connected directly to single ethernet port in modem to my mac book and it worked. When I reconnect modem to TC and restart Modem, TC still shows no internet connection in utility even though I'm getting green sync light on TC.
    Help Please.
    I'm out of warranty, I have not reset to default yet, Im not sure if I will loose my TC back up data.
    please advice
    Remy

    The Gen4 has some nasty faults.. mostly unrepairable...
    If the WAN is gone it becomes pretty well useless at least in its current role as router.
    You might still be able to plug it in by ethernet to a LAN port in bridge.
    Do try a full factory reset.. always worth a go.
    No files will be lost on the hard disk.
    The Factory Reset universal
    Unplug your TC/AE. Hold in reset. and power the TC/AE back on..  all without releasing reset and keep holding in for about 10sec. The time is not important.. it is the front LED rapid flashing that indicates you are in factory mode.
    Release reset.
    If it doesn’t flash rapidly you have released reset at some point and try again.
    Be Gentle! Feel the switch click on. It has a positive feel..  add no more pressure after that.
    TC/AE will reboot after a couple of minutes with default factory settings and will wipe out previous configurations.
    No files are deleted on the hard disk.. No reset of the TC deletes files.. to do that you use erase from the airport utility.
    Check the ethernet LED is going on.. both on the modem and the TC WAN port.
    Do you have any applecare on a computer? If so it might cover the TC.. the rules are complicated but if the TC was bought within 2years before or after the computer it is covered up to max of 3years. You can still get coverage therefore if the TC is over 1 year but less than 2 years by buying applecare now on a computer or an Apple TV which is not too expensive. You can sell off the Apple TV without even opening it.. but use the applecare on it to get your TC replaced.
    Only the very first Gen4 will be up to 3years.
    Did you have a lightning storm or something btw?? Sometimes the modem can survive and pass the parcel to the TC which seems rather fragile.
    There is also a trick to test..
    You must have v5 airport utility.. any older Macs, or windows computer you can load on 5.6 utility .. even dual boot/parallels mac.
    Go to the WAN setup.. and set the ethernet port to 10mbit half duplex.
    Sometimes a damaged port can still manage the slowest speed.. by magic.

  • Certificates in lieu of Oracle connection Manager for our Applets -- Help!!

    I support an application named IDEA out of New York. The IDEA application is an INTRANET application for use within our company Firewall.
    Currently, the IDEA application's front end resides on a Windows 2000 Server running IIS 5 and JRun 3.0. The back-end runs on Oracle 8.1.7 database on a UNIX Database Hosting Utility (DHU). Our applets communicate with the back-end database using Oracle Connection Manager that is installed on the Web Host.
    We are trying to migrate to the DWeb environment (Linux cluster). The linux cluster is running Apache Tomcat. We have been told that installing Oracle connection manager is not a viable solution (our company does not support it). Because of this our applets cannot communicate with our database. Below is a brief description of this limitation and also the work-around.
    ====================================================================================================================================================
    Connecting to the Database through the Applet
    The most common task of an applet using the JDBC driver is to connect to and query a database. Because of applet security restrictions, unless particular steps are taken an applet can open TCP/IP sockets only to the host from which it was downloaded (this is the host on which the Web server is running). This means that without these steps, your applet can connect only to a database that is running on the same host as the Web server.
    If your database and Web server are running on the same host, then there is no issue and no special steps are required. You can connect to the database as you would from an application.
    As with connecting from an application, there are two ways in which you can specify the connection information to the driver. You can provide it in the form of host:port:sid or in the form of a TNS keyword-value syntax.
    For example, if the database to which you want to connect resides on host prodHost, at port 1521, and SID ORCL, and you want to connect with user name scott with password tiger, then use either of the two following connect strings:
    using host:port:sid syntax:
    String connString="jdbc:oracle:thin:@prodHost:1521:ORCL";
    conn = DriverManager.getConnection(connString, "scott", "tiger");
    using TNS keyword-value syntax:
    String connString = "jdbc:oracle:thin:@(description=(address_list=
    (address=(protocol=tcp)(port=1521)(host=prodHost)))
    (connect_data=(sid=ORCL)))";
    conn = DriverManager.getConnection(connString, "scott", "tiger");
    If you use the TNS keyword-value pair to specify the connection information to the JDBC Thin driver, then you must declare the protocol as TCP.
    However, a Web server and an Oracle database server both require many resources; you seldom find both servers running on the same machine. Usually, your applet connects to a database on a host other than the one on which the Web server runs. There are two possible ways in which you can work around the security restriction:
    You can connect to the database by using the Oracle8 Connection Manager.
    or:
    You can use a signed applet to connect to the database directly.
    These options are discussed in the next section, "Connecting to a Database on a Different Host Than the Web Server".
    Connecting to a Database on a Different Host Than the Web Server
    If you are connecting to a database on a host other than the one on which the Web server is running, then you must overcome applet security restrictions. You can do this by using either the Oracle8 Connection Manager or signed applets. ====================================================================================================================================================
    It was suggested that we implement signed applets (it is our only alternative at this time). This is where, hopefully, you can help me. We are unfamiliar with using certificates and signing applets. We need to obtain certificates that will allow our applets to connect to our oracle database on the DHU. What kind of certificates do we use? Are their coding examples of how to use these certificates? We have a CA within our company but they cannot tell us what kind of certificates we need. How many certificates do we need? Do we install any certificates on the backend database server? Any information would be greatly appreciated. We are basically trying to get our applet to work outside the sandbox by establishing a connection to the database server.Thanks in advance for your time.

    or:
    You can use a signed applet to connect to the database directly.
    These options are discussed in the next section, "Connecting to a Database on a Different Host Than the Web Server".
    If you want to connect to the database from the applet there is a third option.
    Since this is an intranet application you have control over the desktops using this
    application. In our company the jre ignores signed applets (as it should) because
    it gives control to the user to run potentially harmfull applets from the Internet.
    The way to dish out special privileges to applets is the policy, put a policy file on
    you intranet and have the jre use it by specifying its URL in the java.security.
    Here is some more info about security configuration of the jre:
    http://forum.java.sun.com/thread.jspa?threadID=646161&tstart=45
    reply 3
    We use Oracle jinitiator to run Oracle forms but I am not involved in that project
    and do not know a lot about it. It does perform quite good though.

  • How to install oracle connection manager on solaris 10

    I have installed oracle application server 10.1.2 on solaris 10. How do i install oracle connection manager utility.
    My end goal is to use applets/jdbc.
    Thanks

    Thank you Zettabyte!!
    Folks, network printers should NOT BE configured like this:
    lpadmin -p somequeue -s someprinter
    that creates a remote style queue and puts all the I/O and processing capability on the basic LPD listener present on network printer interfaces. This will cause problems down the road, not to mention that you cannot control access, get any logging, filter content, or control banner pages.
    Network printers should use any software (or PPD file) supplied by the vendor over the basic lpadmin/netstandard config.
    You can install CUPS, but Oracle won't support it until it's part of the OS (S11, apparently).
    The "System Administration Guide: Solaris Printing" is highly recommended for those administering printers on Solaris.

  • RMI Hang after long period of no use

    Occaisonally one of our lightly used RMI servers decides to not accept a new connection. This happens after a long period of no use. The last time it happened I captured a thread dump (THREAD DUMP#1) of the RMI server process.
    Just for comparison I then started another client and tried to connect again. See THREAD DUMP#2.
    Any suggestions where I should start looking in my code? I have checked the Java bugs database without success.
    Thanks.
    Tom
    *** THREAD DUMP #1
    *** THREAD DUMP #1
    *** THREAD DUMP #1
    Full thread dump Java HotSpot(TM) Client VM (1.4.2_05-b04 mixed mode):
    "RMI TCP Connection(5)-156.34.214.173" daemon prio=1 tid=0x082e39b0 nid=0x4f03 waiting for monitor entry [4d247000..4d248854]
         at sun.rmi.server.LoaderHandler.getDefaultCodebaseURLs(Unknown Source)
         - waiting to lock <0x489b0950> (a java.lang.Class)
         at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
         at java.rmi.server.RMIClassLoader$2.loadClass(Unknown Source)
         at java.rmi.server.RMIClassLoader.loadClass(Unknown Source)
         at sun.rmi.server.MarshalInputStream.resolveClass(Unknown Source)
         at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
         at java.io.ObjectInputStream.readClassDesc(Unknown Source)
         at java.io.ObjectInputStream.readArray(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Unknown Source)
         at java.io.ObjectInputStream.readObject(Unknown Source)
         at sun.rmi.transport.DGCImpl_Skel.dispatch(Unknown Source)
         at sun.rmi.server.UnicastServerRef.oldDispatch(Unknown Source)
         at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
         at sun.rmi.transport.Transport$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "RMI TCP Connection(4)-156.34.214.173" daemon prio=1 tid=0x082e13e8 nid=0x4f03 waiting on condition [4d2c8000..4d2c9854]
         at sun.net.www.ParseUtil.decode(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.getPermission(Unknown Source)
         at sun.rmi.server.LoaderHandler.addPermissionsForURLs(Unknown Source)
         at sun.rmi.server.LoaderHandler.access$300(Unknown Source)
         at sun.rmi.server.LoaderHandler$Loader.<init>(Unknown Source)
         at sun.rmi.server.LoaderHandler$Loader.<init>(Unknown Source)
         at sun.rmi.server.LoaderHandler$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.server.LoaderHandler.lookupLoader(Unknown Source)
         - locked <0x489b0950> (a java.lang.Class)
         at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
         at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
         at java.rmi.server.RMIClassLoader$2.loadClass(Unknown Source)
         at java.rmi.server.RMIClassLoader.loadClass(Unknown Source)
         at sun.rmi.server.MarshalInputStream.resolveClass(Unknown Source)
         at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
         at java.io.ObjectInputStream.readClassDesc(Unknown Source)
         at java.io.ObjectInputStream.readArray(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Unknown Source)
         at java.io.ObjectInputStream.readObject(Unknown Source)
         at sun.rmi.transport.DGCImpl_Skel.dispatch(Unknown Source)
         at sun.rmi.server.UnicastServerRef.oldDispatch(Unknown Source)
         at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
         at sun.rmi.transport.Transport$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "DestroyJavaVM" prio=1 tid=0x0805b220 nid=0x4f03 waiting on condition [0..bfffc374]
    "GC Daemon" daemon prio=1 tid=0x082e74d0 nid=0x4f03 in Object.wait() [4d146000..4d146854]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x44b87598> (a sun.misc.GC$LatencyLock)
         at sun.misc.GC$Daemon.run(Unknown Source)
         - locked <0x44b87598> (a sun.misc.GC$LatencyLock)
    "RMI Reaper" prio=1 tid=0x081f5a08 nid=0x4f03 in Object.wait() [4d0c5000..4d0c5854]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x44b86a68> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         - locked <0x44b86a68> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         at sun.rmi.transport.ObjectTable$Reaper.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "Thread-1" daemon prio=1 tid=0x081f2618 nid=0x4f03 in Object.wait() [4d044000..4d044854]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x44b86d58> (a java.util.TaskQueue)
         at java.lang.Object.wait(Unknown Source)
         at java.util.TimerThread.mainLoop(Unknown Source)
         - locked <0x44b86d58> (a java.util.TaskQueue)
         at java.util.TimerThread.run(Unknown Source)
    "RMI TCP Accept-10056" daemon prio=1 tid=0x081f6998 nid=0x4f03 runnable [4cfc3000..4cfc3854]
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         - locked <0x44b86ab8> (a java.net.PlainSocketImpl)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "Signal Dispatcher" daemon prio=1 tid=0x080a5e90 nid=0x4f03 waiting on condition [0..0]
    "Finalizer" daemon prio=1 tid=0x08091448 nid=0x4f03 in Object.wait() [41fd8000..41fd8854]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x44b77a08> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         - locked <0x44b77a08> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
    "Reference Handler" daemon prio=1 tid=0x080908a0 nid=0x4f03 in Object.wait() [41f57000..41f57854]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x44b77a70> (a java.lang.ref.Reference$Lock)
         at java.lang.Object.wait(Unknown Source)
         at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
         - locked <0x44b77a70> (a java.lang.ref.Reference$Lock)
    "VM Thread" prio=1 tid=0x0808f660 nid=0x4f03 runnable
    "VM Periodic Task Thread" prio=1 tid=0x080a86d0 nid=0x4f03 waiting on condition
    "Suspend Checker Thread" prio=1 tid=0x080a5478 nid=0x4f03 runnable
    *** THREAD DUMP #2
    *** THREAD DUMP #2
    *** THREAD DUMP #2
    Full thread dump Java HotSpot(TM) Client VM (1.4.2_05-b04 mixed mode):
    "RMI TCP Connection(6)-156.34.214.173" daemon prio=1 tid=0x082e2890 nid=0x4f03 waiting on condition [4d1c6000..4d1c7854]
         at java.io.ObjectStreamClass.matchFields(Unknown Source)
         at java.io.ObjectStreamClass.getReflector(Unknown Source)
         at java.io.ObjectStreamClass.<init>(Unknown Source)
         at java.io.ObjectStreamClass.lookup(Unknown Source)
         at java.io.ObjectStreamClass.<init>(Unknown Source)
         at java.io.ObjectStreamClass.lookup(Unknown Source)
         at java.io.ObjectStreamClass.<init>(Unknown Source)
         at java.io.ObjectStreamClass.lookup(Unknown Source)
         at java.io.ObjectStreamClass.<init>(Unknown Source)
         at java.io.ObjectStreamClass.lookup(Unknown Source)
         at java.io.ObjectOutputStream.writeObject0(Unknown Source)
         at java.io.ObjectOutputStream.writeObject(Unknown Source)
         at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
         at sun.rmi.server.UnicastServerRef.oldDispatch(Unknown Source)
         at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
         at sun.rmi.transport.Transport$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "RMI TCP Connection(5)-156.34.214.173" daemon prio=1 tid=0x082e39b0 nid=0x4f03 waiting for monitor entry [4d247000..4d248854]
         at sun.rmi.server.LoaderHandler.getDefaultCodebaseURLs(Unknown Source)
         - waiting to lock <0x489b0950> (a java.lang.Class)
         at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
         at java.rmi.server.RMIClassLoader$2.loadClass(Unknown Source)
         at java.rmi.server.RMIClassLoader.loadClass(Unknown Source)
         at sun.rmi.server.MarshalInputStream.resolveClass(Unknown Source)
         at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
         at java.io.ObjectInputStream.readClassDesc(Unknown Source)
         at java.io.ObjectInputStream.readArray(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Unknown Source)
         at java.io.ObjectInputStream.readObject(Unknown Source)
         at sun.rmi.transport.DGCImpl_Skel.dispatch(Unknown Source)
         at sun.rmi.server.UnicastServerRef.oldDispatch(Unknown Source)
         at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
         at sun.rmi.transport.Transport$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "RMI TCP Connection(4)-156.34.214.173" daemon prio=1 tid=0x082e13e8 nid=0x4f03 waiting on condition [4d2c8000..4d2c9854]
         at sun.net.www.ParseUtil.decode(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.getPermission(Unknown Source)
         at sun.rmi.server.LoaderHandler.addPermissionsForURLs(Unknown Source)
         at sun.rmi.server.LoaderHandler.access$300(Unknown Source)
         at sun.rmi.server.LoaderHandler$Loader.<init>(Unknown Source)
         at sun.rmi.server.LoaderHandler$Loader.<init>(Unknown Source)
         at sun.rmi.server.LoaderHandler$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.server.LoaderHandler.lookupLoader(Unknown Source)
         - locked <0x489b0950> (a java.lang.Class)
         at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
         at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
         at java.rmi.server.RMIClassLoader$2.loadClass(Unknown Source)
         at java.rmi.server.RMIClassLoader.loadClass(Unknown Source)
         at sun.rmi.server.MarshalInputStream.resolveClass(Unknown Source)
         at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
         at java.io.ObjectInputStream.readClassDesc(Unknown Source)
         at java.io.ObjectInputStream.readArray(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Unknown Source)
         at java.io.ObjectInputStream.readObject(Unknown Source)
         at sun.rmi.transport.DGCImpl_Skel.dispatch(Unknown Source)
         at sun.rmi.server.UnicastServerRef.oldDispatch(Unknown Source)
         at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
         at sun.rmi.transport.Transport$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "DestroyJavaVM" prio=1 tid=0x0805b220 nid=0x4f03 waiting on condition [0..bfffc374]
    "GC Daemon" daemon prio=1 tid=0x082e74d0 nid=0x4f03 in Object.wait() [4d146000..4d146854]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x44b87598> (a sun.misc.GC$LatencyLock)
         at sun.misc.GC$Daemon.run(Unknown Source)
         - locked <0x44b87598> (a sun.misc.GC$LatencyLock)
    "RMI Reaper" prio=1 tid=0x081f5a08 nid=0x4f03 in Object.wait() [4d0c5000..4d0c5854]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x44b86a68> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         - locked <0x44b86a68> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         at sun.rmi.transport.ObjectTable$Reaper.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "Thread-1" daemon prio=1 tid=0x081f2618 nid=0x4f03 in Object.wait() [4d044000..4d044854]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x44b86d58> (a java.util.TaskQueue)
         at java.lang.Object.wait(Unknown Source)
         at java.util.TimerThread.mainLoop(Unknown Source)
         - locked <0x44b86d58> (a java.util.TaskQueue)
         at java.util.TimerThread.run(Unknown Source)
    "RMI TCP Accept-10056" daemon prio=1 tid=0x081f6998 nid=0x4f03 runnable [4cfc3000..4cfc3854]
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(Unknown Source)
         - locked <0x44b86ab8> (a java.net.PlainSocketImpl)
         at java.net.ServerSocket.implAccept(Unknown Source)
         at java.net.ServerSocket.accept(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "Signal Dispatcher" daemon prio=1 tid=0x080a5e90 nid=0x4f03 waiting on condition [0..0]
    "Finalizer" daemon prio=1 tid=0x08091448 nid=0x4f03 in Object.wait() [41fd8000..41fd8854]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x44b77a08> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         - locked <0x44b77a08> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
    "Reference Handler" daemon prio=1 tid=0x080908a0 nid=0x4f03 in Object.wait() [41f57000..41f57854]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x44b77a70> (a java.lang.ref.Reference$Lock)
         at java.lang.Object.wait(Unknown Source)
         at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
         - locked <0x44b77a70> (a java.lang.ref.Reference$Lock)
    "VM Thread" prio=1 tid=0x0808f660 nid=0x4f03 runnable
    "VM Periodic Task Thread" prio=1 tid=0x080a86d0 nid=0x4f03 waiting on condition
    "Suspend Checker Thread" prio=1 tid=0x080a5478 nid=0x4f03 runnable

    According to this thread dump the remote object is
    quite prepared to accept a new connection (waiting in
    PlainSocketImpl.accept()) but some other remote method
    implementation is blocked reading the RMI header.
    Perhaps this is the one that is stalling? You may need
    to check for too much synchronization, i.e. possible
    deadlocks, in your remote method implementations.I do have a limited amount of synchronization in my server side code (too much code to post here) but if my code is deadlocking then won't I see my method(s) in the stack trace? None of my remote methods are synchronized, just some of the server side methods they call. Also, if my code is deadlocking won't this tend to happen during busy periods rather than slack periods?
    I have reviewed my code for synchronization deadlock potential but the logon code only ever locks one object.
    Could you tell me the difference between "waiting for condition" and "waiting for monitor"? I assume the "waiting for monitor" means the thread waiting get the lock on an object.
    Thanks for your suggestions.
    By the way, I forgot to mention in my original post that I'm running Java 1.4.2_05.

Maybe you are looking for

  • Ipad & VGA Connection

    Help! My client works in social marketing and wants to connect his ipad to our vga screen using the vga addapter to show his tweeting/facebooking - without an ipad of my own to test this im not sure whether it will work or not? Has anyone tried to do

  • My latest two extension updates constantly show up as tabs each time I start FireFox. Where should I look to make this stop?

    WebMail and Xmarks have constantly and consistently shown up as update notification tabs each time I start FireFox. That never used to happen. Is there somewhere I can look to shut off this annoying action. Thanks.

  • Lightroom import problem, or damaged catalogue

    Hi, tried to import a large file of large raw pics directly from flash card into lightroom. the file was a bit big and it crashed. now it wont import at all, even one pic from hard disk. I ran the catalog optimiser. no change.  I upgraded from 2.6 to

  • SSIS error working with Server 2012

    Hi, I have a class library that creates, delete, update ssis packages programatically. What could be the reason for an error message that I get in front of the server 2012. Against a server 2008 It works good. Unable to cast COM object of type 'Syste

  • Trying to Order Macbook Pro with Japanese Keyboard - From Canada

    Hi everyone, I'm a university student majoring in Japanese and I have been trying to order a Macbook Pro with a Japanese keyboard. Apple.com seems to let you order a Macbook in a number of different languages but Apple.ca only gives English and Canad