Get id of current connection

Hello,
i use in my application several connections. I need get id of current connection (in PL/SQL function ). How can i do it?
Thanks in advance.
Pawel Przybyla

SID was added as a USERENV parameter in 9i or 10g.
Either of these will work.
SELECT
     USERENV('SID') sid
FROM
     dual
SELECT
     SYS_CONTEXT('USERENV', 'SID') sid
FROM
     dual
/

Similar Messages

  • Get current connection in Open Tools development(SDK)

    Hi,
    I'm developing an Open Tool(with the SDK) and I need to get the current connection(repository connection) to do some transactions.
    I didn't find a way of getting the current connection but some existing tools are doing it(OdiExportAllScen, OdiExportLog, ...).
    How can I do this ?
    Thank you,
    David
    Edited by: 907730 on 2012-01-16 10:20
    Added the SDK reference
    Edited by: 907730 on 2012-01-17 08:10
    Added "development(SDK)" in the title

    Hi David,
    Please go thru below link
    http://gerardnico.com/doc/odi/webhelp/en/ref_tools/
    Baove link list of all odiexport and other list few are listed for your reference
    snpsexportjournal_.htm for OdiExportLog
    snpsexportmaster.htm for OdiExportMaster
    snpsexportobject for OdiExportObject
    snpsexportscen for OdiExportScen
    snpsexportallscen.htm for OdiExportAllScen
    Hope this will give complete information in detail
    Regards,
    Phanikanth

  • Get users currently connected to iFS

    Hello!
    How can I get list of users who currently connected to iFS( not via SMB)?
    Best regards

    Elvira,
    Unfortunately I don't think there is. We wrote our own to manage concurrent users.
    Regards
    Chris Mayhew

  • How to get the most current file based on date and time stamp using SSIS?

    Hello,
    Let us assume that files get copied in a specific directory. We need to pick up a file and load data. Can you guys let me know how to get the most current file based on date and time stamp using SSIS?
    Thanks
    thx regards dinesh vv

    hi simon
    i excuted this script it is giving error..
       Microsoft SQL Server Integration Services Script Task
       Write scripts using Microsoft Visual C# 2008.
       The ScriptMain is the entry point class of the script.
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    namespace ST_9a6d985a04b249c2addd766b58fee890.csproj
        [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
        public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
            #region VSTA generated code
            enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
                Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
            #endregion
            The execution engine calls this method when the task executes.
            To access the object model, use the Dts property. Connections, variables, events,
            and logging features are available as members of the Dts property as shown in the following examples.
            To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
            To post a log entry, call Dts.Log("This is my log text", 999, null);
            To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
            To use the connections collection use something like the following:
            ConnectionManager cm = Dts.Connections.Add("OLEDB");
            cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
            Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
            To open Help, press F1.
            public void Main()
                string file = Dts.Variables["User::FolderName"].Value.ToString();
                string[] files = System.IO.Directory.GetFiles(Dts.Variables["User::FolderName"].Value.ToString());
                System.IO.FileInfo finf;
                DateTime currentDate = new DateTime();
                string lastFile = string.Empty;
                foreach (string f in files)
                    finf = new System.IO.FileInfo(f);
                    if (finf.CreationTime >= currentDate)
                        currentDate = finf.CreationTime;
                        lastFile = f;
                Dts.Variables["User::LastFile"].Value = lastFile;
                Dts.TaskResult = (int)ScriptResults.Success;
    thx regards dinesh vv

  • The transaction associated with the current connection has completed but has not been disposed. The transaction must be disposed before the connection can be used to execute SQL statements.

    Hello All,
    I am getting below error can you please help me
    Error:-
    The transaction associated with the current connection has completed but has not been disposed. The transaction must be disposed before the connection can be used to execute SQL statements.

    Perhaps this thread will help you out
    http://stackoverflow.com/questions/11453066/error-the-transaction-associated-with-the-current-connection-has-completed-but
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Can't get HP 3050A to connect to wireless router

    Hi,
    I've recently switched from Comcast to AT&T and I cannot get my printer to connect to the new AT&T router. I've gone through the same steps as far as holding down the WPS button and what have you that it states to do on the printer but it just "times out" and won't connect. I had no problem connecting wirelessly when I was using Netgear router and Comcast. Now it won't connect and it's very frustrating. On top of that, I cannot find my printer install CDs. I haven't needed them before, but I have no idea what to do now. Please help. Thank you!
    Darryl

    Hi Darryl,
    I did a little digging, and I have some bad news. I received this information from a Mac subject matter expert regarding this printer in combination with Mavericks:
    The ASU driver does not include a Wi-Fi Setup option. This means, a wireless installation in Mavericks is only possible if the printer is already setup up for the network.
    Unfortunately, this means that unless your printer was already set up on your current wireless network, it can't be set up on a new or different wireless network without a full feature driver. Furthermore, this printer does not have a full feature driver beyond OS X v10.8 Mountain Lion.
    This might not help, but this printer can be set up on a new wireless network for Windows XP, Windows Vista, Windows 7, Windows 8, Mac OS X v10.5 through OS X v10.8.
    For Mavericks, it looks like a USB connection is the only way to print.
    -- ReverseTalk
    I work on behalf of HP.
    Click the thumbs up + button if I have helped you. Mark Accepted Solution if I solved your inquiry.

  • Can't get older mac to connect to wireless router

    I have an older G4 mac, which had an Airport wireless snow type of router. I've currently upgrade to an iMac with an Airport Extreme router. I can't get the old G4 to 'see' the Airport Extreme Network, so I can use the other computer to check email and get on the internet. Do I have to load in the same Airport software on both machines? Any help will be appreciated.

    On my G4, I have the software installed which I used when setting up my other wireless router, the snow M8440. Could this be the problem?
    Yes. Let's take a step back. You can use any computer to configure your new Airport Extreme, but first be sure you have installed the Airport Utility program from the link I posted above. The earlier version of Airport Utility you used for your Snow Airport doesn't have the necessary features to configure your new Airport Extreme.
    The only reason to keep the old Airport Utility program would be to configure your old Snow Airport Base Station, which you're not using any more. So put it aside.
    Since you're having trouble getting your G4 to connect at all, it makes sense to use your new iMac to configure your new AirPort Extreme. So let's use it for now.
    The ability to use the dual band feature of the new Extreme is described starting on page 20 of the following: Apple Airport Networks (early 2009). The document is very lengthy but don't let that bother you - Apple's Airport base stations are extremely versatile and the manual gets very detailed, but most of it won't concern you.
    I made a wireless network named Airport Extreme on my iMac.
    The way you worded this concerned me, so at the risk of sounding Presidential, "let me be clear"
    Technically, you don't want to create a wireless network on your iMac - the wireless network with which you want to connect is created by your Extreme, and you use Airport Utility to make that happen.
    Your Airport icons on all your computers should look like one of these:
    If it looks like this:
    then you have created a "computer to computer network". You don't want that.
    Next: the passage of the Apple Airport Networks manual above also describes how to set up your Airport Network's wireless security...
    I click on the Airport Extreme, the next window comes up with Wireless Security: WEP password. I type in my password I used to set up the Airport Extreme network, and get the following error message: There was an error joining the Airport network "Airport Extreme". ...
    I advocate using no security at first, to eliminate one roadblock when first configuring a network. After everything works, set up WPA or WPA2 Personal. I'm reasonably sure your G4 supports it. The older WEP protocol is no longer considered secure - it amounts to "feel-good" security.
    I trust this gets things pointed in the right direction. If you're still stuck write back and we'll get you un-stuck. Your G4 will work with your new Extreme.

  • Problem with Powerbook G4 - 15 inch, machine ins currently connected to the

    Problem with Powerbook G4 - 15 inch, machine ins currently connected to the DVI/AVI adapter so I can use the powerbook with a monitor attached, and have been doing so for about 3 months so far, with no problems, now, it wont boot up without giving me the grey screen with the "please restart, hold done restart button for several seconds etc". I did the power management reset, take out battery - even though battery dead, and remove adapter, hold down button for 5 seconds etc... it worked, finally booted up, but the DVI/AVI monitor adapter stuff was not connected when it booted up. When i put them back on, and tried to restart, i get the same "please restart, hold done restart button for several seconds etc" what do you think could be happening, could it be the DVI/AVI adapter or something a lot more serious

    Thanks and noted.
    I'd suggest you post in the PowerBook G4 area. This forum is for
    older, pre-G3 PowerBooks and so is probably not the
    most likely place for you to get help with your G4.
    Good luck.

  • Most Recent Devices Not Currently Connected:

    HI,
    I'm getting error Most Recent Devices Not Currently Connected: in iTunes diagnostics for Device Connectivity Tests.
    Device: iPhone 4
    Laptop OS: Windows XP
    iTunes: 10.5.3.3
    I'm not able to restore iphone and it throws errors 1602 and 21 while restoring. I have completely removed and reinstalled iTunes before trying to restore.
    My firewall/antivirus does not block any iphone/itunes service as I have used same PC before with the same iPhone.
    Log is as follows:
    Microsoft Windows XP Professional Service Pack 3 (Build 2600)
    TOSHIBA Portable PC
    iTunes 10.5.3.3
    QuickTime not available
    FairPlay 1.13.37
    Apple Application Support 2.1.6
    iPod Updater Library 10.0d2
    CD Driver 2.2.0.1
    CD Driver DLL 2.1.1.1
    Apple Mobile Device 4.0.0.97
    Apple Mobile Device Driver 1.57.0.0
    Bonjour 3.0.0.10 (333.10)
    Gracenote SDK 1.9.5.502
    Gracenote MusicID 1.9.5.115
    Gracenote Submit 1.9.5.143
    Gracenote DSP 1.9.5.45
    iTunes Serial Number 0012ACEC07B3B468
    Current user is an administrator.
    The current local date and time is 2012-01-30 20:41:48.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is disabled.
    HDCP is not supported.
    Core Media is not supported. (16002)
    Video Display Information
    Mobile Intel(R) 945GM/GU Express Chipset Family
    Mobile Intel(R) 945GM/GU Express Chipset Family
    **** External Plug-ins Information ****
    No external plug-ins installed.
    **** Device Connectivity Tests ****
    iPodService 10.5.3.3 is currently running.
    iTunesHelper 10.5.3.3 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    Universal Serial Bus Controllers:
    Standard OpenHCD USB Host Controller
    Standard Enhanced PCI to USB Host Controller
    Standard OpenHCD USB Host Controller
    Standard Enhanced PCI to USB Host Controller
    Intel(R) 82801G (ICH7 Family) USB Universal Host Controller - 27C8.  Device is working properly.
    Intel(R) 82801G (ICH7 Family) USB Universal Host Controller - 27C9.  Device is working properly.
    Intel(R) 82801G (ICH7 Family) USB Universal Host Controller - 27CA.  Device is working properly.
    Intel(R) 82801G (ICH7 Family) USB Universal Host Controller - 27CB.  Device is working properly.
    Intel(R) 82801G (ICH7 Family) USB2 Enhanced Host Controller - 27CC.  Device is working properly.
    FireWire (IEEE 1394) Host Controllers:
    Texas Instruments OHCI Compliant IEEE 1394 Host Controller.  Device is working properly.
    VIA OHCI Compliant IEEE 1394 Host Controller
    Most Recent Devices Not Currently Connected:
    iPhone 4 (GSM) running firmware version 5.0.1
    Serial Number:   xxxxxxxx (edit: removed for security)
    Please help.
    Regards,
    Yogesh

    Hi susanfromluling,
    Welcome to the Apple Support Community!
    It sounds like your iPod is not showing in iTunes when you connect it and that is what is not allowing you to sync. Please review the attached article to help you troubleshoot this connection.
    iPhone, iPad, or iPod touch not recognized in iTunes for Windows
    Cheers,
    Joe

  • EA3:  Open .sql file in current connection?

    I just upgraded from SQL Developer 1.2 to 1.5 EA3 and love the new Files tab in the navigator since I have tons of .sql files out on my local hard drive.
    The only inconvenience I have opening and running one of these SQL statements is that I must reselect which connection to use for each file that is opened. I have over 50 database/user connection combinations so searching down through that drop-down list gets old fast. Most of the time I'm already going to have a database connection open and want the opened file to share that active connection.
    I think either: 1) dragging the file from the navigator to an open worksheet with a connection, or 2) right-clicking on the file in the navigator and having an additional menu option "Open with current connection" would be a good way the do this.
    Can I do this somehow in 1.5 EA3 or do I need to open a feature request?

    This was planned for this version, but it seems to have fallen out. FWIW, you can still vote on http://htmldb.oracle.com/pls/otn/f?p=42626:39:8861959326134540::NO::P39_ID:4402
    Regards,
    K.

  • I get an "unable to connect" message yet I can connect and use Internet Explorer with no problem. I tried updating to Firefox4 and still get the same message. What do I do?

    I get an "unable to connect" message yet I can connect and use Internet Explorer with no problem. I tried updating to Firefox4 and still get the same message. What do I do?

    JungleTaxi Cabbie wrote:
    Csound1: iCloud: Configuring Mail with Mac OS X v10.6 or iOS 4
    Enter your Incoming Mail Server, User Name, and Password using the following settings:
    Incoming Mail Server: mail.me.com
    User Name: Your iCloud email address (excluding @me.com)
    Password: Your password
    Last Modified: Jun 27, 2013
    Maybe you should test these things before calling people out, because these settings do function perfectly well.
    iCloud is not supported on Snow Leopard or lower, why bother to mention it?
    The OP has an iCloud account, and that can not be opened without Lion or Mountain Lion (on a Mac), IOS5 or 6 (on an iPhone/iPad)
    The document I linked to is Apples documentation for iCloud on current devices,I don't care whether you believe that you know better than they do, but it will affect the people who follow your advice as it won't work
    JungleTaxi Cabbie wrote:
    Also, if you're not running Lion or Mountain Lion, there is no "Mail, Contacts & Calendars" prefpane.
    I never said that there was, perhaps you imagined it.

  • TS1717 Error comes up in iTunes on check for updates "The iTunes update server could not be contacted.  Please check your internet connection, or try again later."  Currently connected to the internet, on HP Laptop running latest version of Windows 7.

    Error comes up in iTunes on check for updates "The iTunes update server could not be contacted.  Please check your internet connection, or try again later."  Currently connected to the internet, on HP Laptop running latest version of Windows 7.
    I get the same problem running the diagnostics.  Says network connections are present and in the green, but unable to connect to iTunes Store.

    I downloaded the Microsoft Autoruns package and ran it.  There are no programs in the LSA Providers tab, and Apple's Bonjour is the only program in the Winsock Providers tab.  I also did the "netsh winsock reset" and rebooted.  It didn't fix the problem.  Any more ideas?

  • Trace Users Currently Connected to Application

    Hi,
    I want to see the list of users who are currently connected to Application.
    I had set the Profile Option "Sign-On Audit" at "Form" level.
    Now I am monitoring the database using "Security:Users -> Monitor" option and throuth the sql query mentioned below. I am getting different output from both the ways.
    select distinct fu.user_name User_Name,fr.RESPONSIBILITY_KEY Responsibility
    from fnd_user fu, fnd_responsibility fr, icx_sessions ic
    where fu.user_id = ic.user_id AND
    fr.responsibility_id = ic.responsibility_id AND
    ic.disabled_flag='N' AND
    ic.responsibility_id is not null AND
    ic.last_connect like sysdate;
    Please let me know how to check the users currently connected to the application and their logged in time.
    Thanks and Regards
    Amith

    After successfully completing the request "Purge Signon Audit" i tried to monitor the users, it shows all the users connected to the Application today. It does't display the users who are currently connected to APPS Server. This is an expected behavior since you have "ic.last_connect like sysdate;" in your query. If you want to check the users who are connect in the last in the past (15/30 minutes or 1 hour) please refer to:
    Note: 295206.1 - How to Count Total Number of Users Connected to ORACLE Application
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=295206.1

  • RV016 , to view current connections

    Hello,
         We recently moved to a new office and currently have three ISPs(DSL, SAT, 4G) because we are unable to get Cable nor Fiber services.  We have anywhere between 7-20 Remote Desktop connections(with lot of file transfers) and 8 VOIP lines.  Basically, we need to bind certain services to specific WAN links in order to make everything work somewhat decent because of the limited bandwidth and/or latency of each ISP.
         I would like to double check if the bindings are working for the specific services, and it has been difficult to verify if the settings in the RV016 are working.  I believe it's not working 100%, and I need a way to check and make sure that my settings are being followed.
         What would be the best way to check the current connections to see if the service is being routed via the WAN link specified in my setting?  My RV016 is HW ver 3, but not the latest firmware.  Purchased about 2 months ago.
         Thank you for your help in advance.
    James     

    Hello Tom,
         Thank you for your input, and I have thought about that but here is the problem.  For example, we use RDP using port 3300 to a specific IP, now we want to distribute lets say 4 RDP clients(different computers) per WAN link.
         Checking the external IP via browser will not work because the binding in this example is specific for RDP service(port 3300) going to external IP w.x.y.z
         HTTP service, port 80, for all clients has its own biding to WAN3 in our office, which when I check the external IP via browser as you mentioned does seem to work fine, but I'm not so sure with the RDP binding using the port and IP...
         I'm thinking I might need to put another device between the RV016 and the ISP modem in question, but I really don't want to do that...

  • ACE Module uneven current connections

    Good morning all,
      I currently have an issue where using the round-robin predictor we are getting some servers being hit with larger numbers of connections than others. This is causing the web servers to drop connections due to being hit very fast in a short period of time.
    This is the output from a show serverfarm showing the issue. MK-HOST15 somehow has 1858 current connections and 48 connection failures ....
    MK-ACE01/001# show serverfarm MK-FARM-sf
    serverfarm     : MK-FARM-sf, type: HOST
    total rservers : 8
                                                    ----------connections-----------
           real                  weight state        current    total      failures
       ---+---------------------+------+------------+----------+----------+---------
       rserver: MK-HOST10
           10.10.1.10:0          8      OPERATIONAL  92         206929     16
       rserver: MK-HOST11
           10.10.1.11:0          8      OPERATIONAL  93         206859     86
       rserver: MK-HOST12
           10.10.1.12:0          8      OPERATIONAL  93         206943     2
       rserver: MK-HOST13
           10.10.1.13:0          8      OPERATIONAL  116        206934     10
       rserver: MK-HOST14
           10.10.1.14:0          8      OPERATIONAL  93         206941     3
       rserver: MK-HOST15
           10.10.1.15:0          8      OPERATIONAL  1858       206896     48
       rserver: MK-HOST16
           10.10.1.16:0          8      OPERATIONAL  93         206935     9
       rserver: MK-HOST17
           10.10.1.17:0          8      OPERATIONAL  95         206838     106
    When this happens the failure counter for MK-HOST15 increases a lot
    MK-ACE01/001# show serverfarm MK-FARM-sf
    serverfarm     : MK-FARM-sf, type: HOST
    total rservers : 8
                                                    ----------connections-----------
           real                  weight state        current    total      failures
       ---+---------------------+------+------------+----------+----------+---------
       rserver: MK-HOST10
           10.10.1.10:0          8      OPERATIONAL  229        345394     80
       rserver: MK-HOST11
           10.10.1.11:0          8      OPERATIONAL  216        345347     126
       rserver: MK-HOST12
           10.10.1.12:0          8      OPERATIONAL  210        345275     201
       rserver: MK-HOST13
           10.10.1.13:0          8      OPERATIONAL  669        345369     106
       rserver: MK-HOST14
           10.10.1.14:0          8      OPERATIONAL  210        345442     32
       rserver: MK-HOST15
           10.10.1.15:0          8      OPERATIONAL  203        345167     309
       rserver: MK-HOST16
           10.10.1.16:0          8      OPERATIONAL  228        345417     59
       rserver: MK-HOST17
           10.10.1.17:0          8      OPERATIONAL  256        345370     108
    This behavior keeps occuring and I am not able to figure out why the current connections shows uneven numbers to such a large degree. The overall connection counters seem approximately even though.
    We are running ACE Code A2(2.3)
    The web servers are running Apache and keepalives are off inline with our production enviroments. TCP-Reuse is also turned off. There is no stickyness configured.
    Any ideas why certain servers keep getting hit with more connections than others ? It's like roundrobin keeps stopping at a server for a second before moving on to the next one. Any suggestions appreciated.
    Thanks.

    Hello,
    Have a look at the Configuring Real Server Rate Limiting section of the ACE documentation.  I think this will meet your needs.
    Hope this helps,
    Sean

Maybe you are looking for

  • Pages 08 will not open

    Pages 08 is very slow to open or will not open at all.  I am using OS X version 10.9.3 and having the same problem on my imac and macbook pro.

  • Report to check Po o/p processing status & details

    Dear experts , Is there a standard SAP report that give me the details of a PO o/p type processing status with details ? Regards Anis

  • Logic 9 downloaded from app-store, crash at start over and over (Lion 10.7.2)

    I just bought a brand new iMac 21, installed with the latest OSX (10.7.2) I installed Logic Pro from the app-store and when launching Logic, it crashes over and over again. Sometimes it lets me see the Logic menue at the top left, but when clicking s

  • Having problem with wake on demand want to downgrade AP Utility

    Having a problem with wake on demand. Some people have had results downgrading firmware to 7.6 from 7.6.1.However in order to do this I need Airport Utility 5.6. I am running Mountain lion and and it won't let me install APU 5.6 Any suggestions??  I

  • External monitor randomly loses signal

    Hello, I have a external monitor connected via a DVI-D/Mini Displayport cable, and maybe once or twice a week the monitor will all of a sudden lose signal. The only way to regain the signal to the monitor is to unplug the cable from my MacbookPro. Ha