How can I get the same session with jdbc?

HI
After I create or use a JDBC connection,
i do a query.
How can I get the same session next time?
thanks a lot!

Hi qin,
Unless I have misunderstood your question, a 'connection' and a 'session' are the same thing. When you obtain a database connection, you have created a database session. Once you close that connection, the session dies -- it no longer exists. You cannot obtain the same 'session' when you get another database 'connection' (after you closed the first one).
Hope this answers your question.
Good Luck,
Avi.

Similar Messages

  • How can I get the same candy crush level on my phone and iPad?

    How can I get the same candy crush level on my phone and iPad?

    The only way to synchronize is connecting to FaceBook. I just set up my girl friend's iPhone to connect with FaceBook, which then updated the phone's level; then I downloaded the app (again) on her iPad and selected connect to Facebook. I'm not sure what the downfall of synchronizing through FaceBook is.... all I can tell you is it worked and now her iPad shows the same level as her iPhone. Good luck!

  • How can i get the same itunes library on 2 macs

    how can i get the same itunes library on two different macs, without having to pay for icloud please.

    Copy everything from one computer to the other.

  • HT204053 If I have an apple ID for myself and my wife has just got a iPhone for the first time how can she get the same apps as I have for my iPhone and iPad

    If I have an apple ID for myself and my wife has just got a iPhone for the first time how can she get the same apps as I have for my iPhone and iPad by getting it off my iCloud?

    She can't from iCloud without setting up your iCloud account on her phone. But just sync the same apps from your iTunes Library on your computer to her phone.
    Your wife should setup her own iCloud account - which is separate to the iTunes Store accounts.

  • How can I get the element value with namespace?

    I tried to get a element value in xml has namespace but i can't.
    I removed the namespace, i can get a element value.
    How can i get a element value with namespace?
    --1. Error ----------- xml ------------------------------
    <?xml version="1.0" encoding="UTF-8"?>
    *<TaxInvoice xmlns="urn:kr:or:kec:standard:Tax:ReusableAggregateBusinessInformation:1:0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:kr:or:kec:standard:Tax:ReusableAggregateBusinessInformation:1:0 http://www.kec.or.kr/standard/Tax/TaxInvoiceSchemaModule_1.0.xsd">*
    <ExchangedDocument>
    <IssueDateTime>20110810133213</IssueDateTime>
    <ReferencedDocument>
    <ID>318701-0002</ID>
    </ReferencedDocument>
    </ExchangedDocument>
    <TaxInvoiceDocument>
    <IssueID>201106294100</IssueID>
    <TypeCode>0101</TypeCode>
    <IssueDateTime>20110810</IssueDateTime>
    <PurposeCode>02</PurposeCode>
    </TaxInvoiceDocument>
    <TaxInvoiceTradeLineItem>
    <SequenceNumeric>1</SequenceNumeric>
    <InvoiceAmount>200000000</InvoiceAmount>
    <TotalTax>
    <CalculatedAmount>20000000</CalculatedAmount>
    </TotalTax>
    </TaxInvoiceTradeLineItem>
    </TaxInvoice>
    --2. sucess ----------- xml ---------remove namespace---------------------
    <?xml version="1.0" encoding="UTF-8"?>
    <TaxInvoice>
    <ExchangedDocument>
    <IssueDateTime>20110810133213</IssueDateTime>
    <ReferencedDocument>
    <ID>318701-0002</ID>
    </ReferencedDocument>
    </ExchangedDocument>
    <TaxInvoiceDocument>
    <IssueID>201106294100</IssueID>
    <TypeCode>0101</TypeCode>
    <IssueDateTime>20110810</IssueDateTime>
    <PurposeCode>02</PurposeCode>
    </TaxInvoiceDocument>
    <TaxInvoiceTradeLineItem>
    <SequenceNumeric>1</SequenceNumeric>
    <InvoiceAmount>200000000</InvoiceAmount>
    <TotalTax>
    <CalculatedAmount>20000000</CalculatedAmount>
    </TotalTax>
    </TaxInvoiceTradeLineItem>
    </TaxInvoice>
    ---------- program ------------
    procedure insert_table
    l_clob clob,
    wellformed out boolean,
    error out varchar2
    is
    l_parser dbms_xmlparser.Parser;
    xmldoc xmldom.domdocument;
    l_doc dbms_xmldom.DOMDocument;
    l_nl dbms_xmldom.DOMNodeList;
    l_n dbms_xmldom.DOMNode;
    l_root DBMS_XMLDOM.domelement;
    l_node DBMS_XMLDOM.domnode;
    l_node2 DBMS_XMLDOM.domnode;
    l_text DBMS_XMLDOM.DOMTEXT;
    buf VARCHAR2(30000);
    xmlparseerror exception;
    TYPE tab_type is Table of xml_upload%ROWTYPE;
    t_tab tab_type := tab_type();
    pragma exception_init(xmlparseerror, -20100);
    l_node_name varchar2(300);
    begin
    l_parser := dbms_xmlparser.newParser;
    l_doc := DBMS_XMLDOM.newdomdocument;
    dbms_xmlparser.parseClob(l_parser, l_clob);
    l_doc := dbms_xmlparser.getDocument(l_parser);
    l_n := dbms_xmldom.makeNode(l_doc);
    l_nl := dbms_xslprocessor.selectNodes(l_n, '/TaxInvoice/TaxInvoiceDocument');
    FOR cur_tax In 0..dbms_xmldom.getLength(l_nl) - 1 LOOP
    l_n := dbms_xmldom.item(l_nl, cur_tax);
    t_tab.extend;
    t_tab(t_tab.last).ed_id := '5000000';
    dbms_xslprocessor.valueOf(l_n, 'IssueID/text()', t_tab(t_tab.last).tid_issue_id);
    dbms_xslprocessor.valueOf(l_n, 'TypeCode/text()', t_tab(t_tab.last).tid_type_code);
    END LOOP;
    FORALL i IN t_tab.first .. t_tab.last
    INSERT INTO xml_upload VALUES t_tab(i);
    COMMIT;
    dbms_xmldom.freeDocument(l_doc);
    wellformed := true;
    exception
    when xmlparseerror then
    --xmlparser.freeparser(l_parser);
    wellformed := false;
    error := sqlerrm;
    end insert_table;

    l_nl := dbms_xslprocessor.selectNodes(l_n, '/TaxInvoice/TaxInvoiceDocument');try to change as follow
    l_nl := dbms_xslprocessor.selectnodes(l_n,'/TaxInvoice/TaxInvoiceDocument','xmlns="urn:kr:or:kec:standard:Tax:ReusableAggregateBusinessInformation:1:0"');Edited by: AlexAnd on Aug 17, 2011 12:36 AM

  • How Can I Get The Cpu State With Java?

    are there any method to use??
    what's more,I also wanna to know how can I get
    the current ram that the System is using
    and the threads the System are running?
    Will you please share your knowledge here or
    write to tell me at [email protected]?
    Thanks!!

    if you know how to do this in c++, you can write native methods and use them in java.
    native methods forum:
    http://forum.java.sun.com/forum.jsp?forum=52
    tobias

  • How can i get the time detail with messageDateField ?

    Is there any common way of getting the time info with messageDateField ? As far as i research, there is no way of adding the time support of messageDateField such that it can be enabled by setting a parameter to true like getTime="true". Thanks.
    Fatih ER

    Sebahattin,
    You can display the time component by adding the timeStyle attribute:
    <onSubmitValidater>
    <date dateStyle="shortish" timeStyle="short" />
    </onSubmitValidater>
    Unfortunately, in the current release, when you save the date, the time will be lost. We have fixed this for the next release. As a work around, you can continue the route you have chosen with a separate time field.
    To get the time value in your entity object you can add a transient attribute "time" to both your VO and EO. In the UIX page, you create a field with the same name and set persistent="true". Now, the JHeadstart save process will simply send the time field to your EO through your VO, and you can use it to add the time component to your date field.
    Steven davelaar.

  • How can I use the same session for different components acroos application ?

    I am trying to include the components(chat, filesharing, whitboard) in different parts of my application. User should be able to access any of the component. We would like to have a single "ConnectSessionContainer" so that we don't see same user creating a seperate session for each component.
    Is there a better way of dealing with this other than declaring the "ConnectSessionContainer" in the main application ? Is there a way to check if we have a "ConnectSessionContainer" session already established ? Please help . Thanks.

    Thanks for the response. Let me explain what I am trying to do..
    I am trying to create components at different places(screens) of the flex application (not in the same .mxml file).
    Each time I create a component, I am using a "AdobeHSAuthenticator" and "ConnectSessionContainer" which is resulting a new participant in the room.
    For example
    screen1.mxml -
    <mx:Panel>
    <rtc:AdobeHSAuthenticator id="auth" authenticationSuccess="onAuthSuccess(event);" authenticationFailure="onAuthFailure(event);" />
    <rtc:ConnectSessionContainer id="mySession" >
            <rtc:Roster id="myRoster" width="100%" height="100%" />
            <rtc:Chat id="mychat" width="100%" height="100%" />
    </rtc:ConnectSessionContainer>
    </mx:Panel>
    screen2.mxml (in the same application) -
    <mx:Panel>
    <rtc:AdobeHSAuthenticator id="auth" authenticationSuccess="onAuthSuccess(event);" authenticationFailure="onAuthFailure(event);" />
    <rtc:ConnectSessionContainer id="mySession" >
            <rtc:SharedWhiteBoard id="wb" width="100%" height="100%" />
    </rtc:ConnectSessionContainer>
    </mx:Panel>
    Here, I open a screen1 and authenticate as UserA and when I try to open screen2 flex is considering me as another user though I am in the same application.
    1) How can I use different components which are in different flex files as a same User ?
    2) Should I place my <rtc:AdobeHSAuthenticator> and <rtc:ConnectSessionContainer> in the main application which calls the screen.mxml?
    3) What is the best way to do it ?
    Thanks for your time !

  • HT2731 The appleID on my phone is not the same as on my itunes account. How can I get the same on both my iphone and itunes?

    How can I match my apple ID for itunes and my apple ID on my cellphone?

    Do you have multiple accounts or have you updated your account on your computer's iTunes and the update hasn't copied over to your iPhone ? If you've updated your account then tap on your id in Settings > iTunes & App Stores on your phone and log out of it and then log back in with the updated version.
    If you have multiple accounts then you can log out of your account on your phone as above, or your computer's iTunes via the Store > Sign Out menu option, and you can then log in with the other account. But all content is tied to the account that downloaded it.

  • How can i get the same high definition i see on my iPad to mirror to my tv?

    I am using my LGTV to watch shows I am streaming on my iPad. The iPad is small, the picture quality is great. But when I use airstream to push it through my apple TV, the picture is blurry. I realize I am going from a small iPad screen to a large TV screen, but is there any way to sharpen the larger image?

    The content is the same, it would have nothing to do with going from iPad to ATV. There may be an issue with the network.
    Reboot both devices.
    If on wifi try ethernet
    Go to istumbler, netstumbler or similar to get a report of the network, look for signal strength and noise.

  • How can I get the same site on 2 machines?

    I have an iBook G4 and an iMac G5. currently the iBook is where my iWeb site is made and published. I want to have the same site in my iWeb on my iMac. I have tried making a copy of the site files from the iBook and pasting them in my iMacs iweb directory... but iWeb doesnt show my site. It thinks it doesnt have a site yet...
    Any help??
    Rome

    Your iWeb data is stored, not in your actual html files, but in a file called Domain.sites which is stored in your Home/Library/Application Support/iWeb folder. If you want to work on your site on another computer, copy this file to a thumb drive to move it around.
    You should backup this file whenever you make big changes to your site, because if it gets lost or damaged, you will have to start all over. Sadly, many many people learn this the hard way.
    I have an Automator app on my site that will help you backup your Domain file(s). Click here to download it or visit http://iweb.varkgirl.com for more info. The app will make a .zip file of your Home/Library/Application Support/iWeb folder and save it to a location of your choosing.
    Then check out Mozy for an online place to store your backups - I just found this and it seems great. They just recently released a Mac friendly version of their app - it automates the upload and encryption. You select the files you want to backup and it does the rest. You can set it to upload automatically after so many minutes of inactivity or once a day. It does it all in the background so you don't have to worry about it! 2GB of storage are free - plenty of room for most people's iWeb Domain.sites backups!

  • How can I get the same result using single query?

    There are 3 tables
    1) tool_desc -
    a master table for storing tool records,
    columns tool_no, tool_chg,
    # of records = 1.5 Millon
    2) step_desc -
    a master table for storing plan wise step records,
    columns plan_id, step_key,
    # of records = 3700 Million
    3) step_tool - a transaction table storing tools to the steps,
    columns plan_id, step_key, tool_no, tool_chg
    For each step in the step_desc table, I need to randomly fetch 1 to 50 tools from tool_desc and insert them into step_tool table.
    Using PL/SQL block, it is like the following -
    begin
    for x in (select plan_id, step_key from step_desc) loop
    insert into step_tool(
    plan_id,
    step_key,
    tool_no,
    tool_chg)
    select
    plan_id,
    x.step_key,
    tool_no,
    tool_chg
    from
    tool sample(0.1)
    where
    rownum <= trunc(dbms_random.value(1,51))
    commit;
    end loop;
    end;
    I need to do the same using a single query so that I can use the CTAS (create table as select) statement and load the data as a bulk.
    Can I do that?

    If they have parent child releation, you can use connect by prior clause,

  • How can I get the user name with the sy-uname

    Hi
    I need to display the name of the users instead of sy-uname, in witch table I can select this information ?
    Moderator message - Please search before asking - post locked
    Edited by: Rob Burbank on Oct 7, 2009 10:59 AM

    It's not being authenticated..
    getRemoteUser
    public java.lang.String getRemoteUser()Returns the login of the user making this request, if the user has been authenticated, or null if the user has not been authenticated. Whether the user name is sent with each subsequent request depends on the browser and type of authentication. Same as the value of the CGI variable REMOTE_USER.
    Returns:
    a String specifying the login of the user making this request, or null
    I'm assuming it's because it's on your local machine..

  • How can i get the same colors in PS and Bridge

    My pictures is shown with stronger contrast and saturation in bridge than the original PS file in PS.
    Im trying to open the Suite Color Management in Bridge but it says that "Suite Color Management requires that a qualifying product has been launched at least onc to enable this feature". What shoud I do?

    Remember that Photoshop is showing you a rendering of the original file, while Bridge is showing you a rendering of the sRGB preview Bridge itself generates.  Color management plays a huge role in that depending on whether the file is tagged (has an embedded profile) or not.
    As for the illusory "Suite Color Management", Trevor is right in pointing out that it is utterly irrelevant if you only have Photoshop and Bridge but none of the other  applications in a suite.  Besides…
    …Inconsistency between or among applications in the artificial "suites" should come as no surprise.
    The "suite" concept is a fabrication of Adobe marketing and bean-counting types.  The engineering teams are totally independent of each other, they are not only in different buildings but in different cities and states of the American Union, even in different countries.
    The fact that they have little if any communication among them is highlighted by requests occasionally made in these forums by top Adobe engineers to let the other teams know when there are problems in one application that impact our workflow in another one.

  • My question is how can i get the free apps with out a credit card being attched to my ipod touch?

    help me

    If you only want the free apps, take a look here:
    http://support.apple.com/kb/HT2534
    Read the steps carefully as the order in which you follow them is apparently critical. This seems to come and go, or only apply to App Stores in specific countries, so you may not see the option for "None" when asked for a payment type.
    You will of course not be able to get anything other than the free content without entering in some sort of payment method (credit card, prepaid iTunes card, gift certificate, etc.)
    Regards.

Maybe you are looking for

  • Make Safari open PDF in preview automatically, by default

    Is there any way I can make Safari open (download + view) PDF links in Preview? I know that Safari opens PDFs in its own viewer, and then I can use the semi-opaque 4-button toolbar at the bottom of the window (when the toolbar is visible) to Open PDF

  • ITunes Match says I am not subscribed.

    iTunes Match says I am not subscribed when I try to enable my iPad and wifes's new iPhone 4s.  My new iPhone 4s works perfectly with iTunes Match. All these devices share the same iCloud account.  What gives?  I AM subscribed!

  • How to design a table?

    Hi, I need to list some data out of a database... So I was wondering if it's possible to design a table to put the data clearly arranged on the screen. thank you.

  • Connection to the server failed when trying to get e-mail or internet

    Help, I cannot receive or send emails anymore. No internet service. I have a connection and strong signal. Have had phone for over a year. As far as I know nothing has been changed except an old e-mail account was deleted before this happened, not su

  • Upgrade to EHP1

    Hello, I do not know if I'm right here. Here was an upgrade done on EHP1 and there was "Deploy Service" with the old version one point. Which is not available anymore. Does anyone here from what you have done? Thanks.