Opening multiple sessions in SQL*Plus - Basic Question

Hi All,
I'm trying to issue an update on a table consists of 100 million rows.(update is done on every row). I have queries that updates this table in chunks of 20 million rows. So, if I open 5 sessions in SQL*Plus and run these 5 queries, does that mean Oracle opens up 5 processes in parallel for me ?
If yes, can I use parallel hint in each of these 5 queries and make the update even faster ? How does the above 2 differ ?
I'll be very glad if I hear from anyone,
Thanks,
Madhu.

For every client session there is a server session associated with it. Such as, when you open five session you will have five server session and it serve queires.
Regarding paralle queries, depends whether your table is defined as parallel, how many cpu do you have and also parallel parameters.
Jaffar

Similar Messages

  • How to invoke multiple sessions of sql*plus thru pl/sql program

    Hi
    How to invoke multiple sessions of sql*plus thru pl/sql program.
    Thanks

    How to invoke sql*plus in a procedure?????
    I have to invoke more pl/sql sessions?????No you don't "have to".
    Look at what you are trying to do.
    You have a program running inside the PL/SQL engine. This is running nicely inside the Oracle database and is perfectly capable of issuing other SQL statements, PL/SQL programs etc. inside it's nice cosy Oracle environment.
    You are asking for this PL/SQL to shell out to the operating system, run an external application, for which it will have to supply a username and password (are you planning on hard coding those into your PL/SQL?), and then that external application is supposed to run more SQL or PL/SQL against the database.
    a) Why hold all this code external to the database when it can quite happily reside on the database itself and be executed through jobs or whatever.
    b) Consider what would happen if someone were to replace the external application with their own program of the same file name... they'd be able to capture the username and password for connecting to the database, therefore a major security flaw.
    The whole idea of doing what you want through external calls to SQL*Plus is ridiculous.

  • How to open multiple sessions for one user?

    Sorry for the silly question but I couldn't find it googling or searching through this forum, so I started wondering whether it's possible in SQL Developer to open multiple sessions for one user. I'm fairly new to SQL Developer and databases in general.
    When I open SQL Developer and connect to a schema, a worksheet opens named MYSCHEMA. If I disconnect then connect, another worksheet opens, named MYSCHEMA~1. I assumed these were different sessions, but if I enter into one worksheet:
    select col1 from my_table where row_id = 1
    -- shows result is 1
    update my_table set col1 = 0 where row_id = 1
    select col1 from my_table where row_id = 1
    -- shows result is 0and then enter into the second worksheet:
    select col1 from my_table where row_id = 1
    -- shows result is 0I would have expected the second worksheet to report 1 because the first worksheet did not issue a COMMIT. Thus, I'd guess both worksheets are the same session? Is that right? If so, how do I have two sessions open simultaneously (opened by same user)?
    I'm trying to implement the code at the bottom of this post, for which testing requires at least two sessions:
    Re: Help with Procedure
    Edited by: tem on Apr 18, 2012 6:44 AM

    Thanks Jim,
    Ctrl-Shift-N doesn't do anything for me. I'm on a mac -- by experimenting it looks like command-N does what you're looking for. This appears to be the same as left-clicking on the "New" icon in the top left corner of SQL Developer, or selecting from the pull-down menu, File > New.
    This opens "Create a New" window that appears to be a wizard. What would I select at this point? Options are: Database Connection, Table, View, Package, ...
    I don't see an option for "Worksheet".
    UPDATE:
    OK, I found that if I select "SQL File", a worksheet becomes available. Perhaps this is what you intended. However, when I issue the command
    select col1 from my_table where row_id = 1;it still returns 0 instead of 1. Hmm, maybe my initial assumption was wrong -- if this is a second (e.g. different) session, should I expect the changes made in the first session in SQL Developer (the UPDATE command) WITHOUT a commit, to be observed in this second session? I thought that changes made in one session were not viewable in a different session until these changes are committed in the first session? If so, how to show this in SQL Developer? I must be missing something basic here.
    Or, is SQL Developer issuing some sort of "auto-commit" without my knowledge?
    Edited by: tem on Apr 18, 2012 8:00 AM

  • How to open multiple Sessions in Solution Manager

    Good Day Gurus,
    I am currently working on Solman 7.1 Sp12.My question is :Is it possible to open multiple sessions in Solution Manager? Here is the scenario: The client is working on multiple incidents and instead of logging on to the system again to access the 2nd incident he would like to open another session within the current call he is working on.
    Is this functionality possible in Solman? I have seen the functionality working before  in CRM interaction center not sure if it applies in Solman.
    Your help is highly appreciated.
    Thanks
    Maria

    Hi Maria,
    Options to Call a Function in an SAP System, by entering transaction codes in the command field, the transaction in bold is the one your want for opening multiple sessions.
    You can use the F1 key on the command field to display the following possible entries:
    /N to cancel the current transaction
    /NXXXX to call transaction XXXX directly from another transaction. Without the prefix, you can only call XXXX from the SAP Easy Access screen.
    /O to display the overview of the SAP GUI sessions on your computer
    /OXXXX to call transaction XXXX in a new window directly from another transaction
    /NEND to end the log on session with a confirmation dialog box
    /NEX to end the log on session without a confirmation dialog box
    /I to delete the window you are currently using
    Regards,
    Ruth

  • HOW TO OPEN MULTIPLE TABLES IN SQL DEVELOPER SIMULTANEOUSLY

    hello i m new to sqldeveloper so plz dnt laugh if m asking silly question
    HOW TO OPEN MULTIPLE TABLES IN SQL DEVELOPER SIMULTANEOUSLY

    Use the 'pin' on your table editor
    http://www.thatjeffsmith.com/archive/2011/11/sql-developer-quick-tip-pin-query-result-sets-and-plans/
    Then open your 2nd table. If you want to see both at the same time, right-click on the table editor tab and select 'New Editor Tab Group'
    Not a silly question, but no need to shout :)

  • How to open Multiple session

    I am trying to OPEN multiple SESSION for same application and unable to do this using FIREFOX 7.01
    R 12(Oracle E-Business Suite), we are using FIREFOX for several clients to open the applciation. But i cannot open different session of same applcaition. it is ONLY opening singel JAVA form. In IE 8 or 9, i can do - NO MERGE option or File>New Session option. Is there some workaround for this. I am using Windows 7.

    Hi,
    When you run the form in the browser, it opens a new database session. For sharing the same session, you need to open/call/new form within the form itself.
    For using same JVM, you can use the [JVM Pooling|http://download.oracle.com/docs/cd/B14099_19/web.1012/b14032/jvm.htm] feature (assuming you are on forms >= 10.1.2).
    -Arun

  • How Can I Open a database in SQL/PLUs

    Hi, how can I Open Database with a SQL/Plus (Oracle 8i)

    STARTUP OPEN;
    Check this link
    http://h50.isi.u-psud.fr/docmiage/oracle/doc/server.817/a82950/ch5.htm

  • Instant Client SQL*Plus License Question

    Can anyone shed some light on a license question for me? (I know that most license questions are for Oracle Sales to handle, but this involves a supposedly free product.)
    I want to use SQL*Plus with the Instant Client in a production environment, but I am not sure whether I am entitled to. Does Instant Client "support" SQL*Plus only in the sense that if I already own a license for SQL*Plus I can use it with the Instant Client, or is the Instant Client SQL*Plus package also truly free to deploy and use?
    The download page has links to download a basic Instant Client, plus several optional packages, one of which is SQL*Plus. However, the FAQ does not tell me whether the optional packages (specifically SQL*Plus) is also free to deploy and use in a production environment, and I could not find any other helpful document.
    The FAQ says that "Instant Client is FREE for anyone to use in a development or production environment." It also says immediately following that "Instant Client can be used to run your OCI, OCCI, Pro*C, JDBC, and ODBC applications without installing a full Oracle Client. In addition, Instant Client supports SQL*Plus." [emphasis mine]
    I would appreciate any help on this.
    Thanks in advance,
    Anthony

    Why don't you call Oracle sales? I guess they'll be happy to answer your question.
    Yours,
    Laurenz Albe

  • How to open multiple sessions in CRM 2007 WebClient UI

    Hi guys,
    This simple thing, I am could not figure out. How do I open another session on WebClient UI in CRM 2007.
    Can anybody help.
    Thanks,
    John

    Hi Vijayata,
    Thank you very much for responding. Yes, now I am able to create another browser where I have to put my user id and password again. However, your answer is very useful.
    I have another problem. When I login I see a list of roles and click one  of them to go into the home page.
    I created my own role. My question is, how do I make my role appear in the existing list of roles.
    What I did is, I assigned my role to an Org.Unit. The result is when I login to WebClient UI, it directly takes me to home page of my role.
    What I want is, I want my new role to appear among the existing list of roles. I tried many ways, I couldn't figure out. Can you please give idea.
    Thanks,
    John

  • How to run multiple scripts in sql*plus?

    I would like to run 2 scripts in sql*plus, how do I do this? I tried the following, but it won't run.
    create table student_new
    AS
    select *
    from student
    insert into student_new
    (last_name, first_name
    values
    (Crop, Jenny)
    The above are the two scripts I want to run, what am I doing wrong.
    Thanks

    Do you have a solution to run multiple scripts continuosly, one after the other as one script.
    Say I have file1.sql file2.sql, file3.sql.
    I want to create a script run.sql, where this will run file1.sql,file2.sql,file3.sql one after other without any one running one after the other like follows:
    run.sql should have
    begin
    @file1.sql
    @file2.sql
    @file3.sql
    dbms_output.put_line(select sysdate from dual);
    end;
    If I run run.sql all the three scripts should be executed successfully and then display the current time . All these files have update statements(50,000 updates each file).
    Very urgetn. Can some one hlpe, please.
    Thanks in advance.

  • Single jdbc connection opens multiple connections to sql server

    Hello!
    I'm having a bad problem, because one jdbc connection opens multiple connections to the sql server. I'm working with the open source jdbc driver jtds and the ms sql server. Because I'm using temporary tables that are only visible to one database connection, my code doesn't work. Is this a bug in jtds or is this the normal behaviour of a java.sql.Connection?
    Here a code example:
    Class.forName("net.sourceforge.jtds.jdbc.Driver");
    conn = DriverManager.getConnection(
    "jdbc:jtds:sqlserver://"+dbConnDef.getServer()+"/"+dbConnDef.getDatabase(),
    dbConnDef.getUserName(),
    dbConnDef.getUserPasswd()
    Statement stmt = conn.createStatement();
    stmt.executeUpdate("SET DATEFORMAT YMD");
    stmt.close();
    stmt = conn.createStatement();
    stmt.executeUpdate("CREATE TABLE #tmp (FieldA INT NOT NULL)");
    stmt.close();
    stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery("SELECT * FROM #tmp");
    stmt = conn.createStatement("SELECT FieldA AS sthElse FROM #tmp");
    ResultSet rs2 = stmt.executeQuery("SELECT * FROM #tmp");
    // the strange thing is, that this second query does NOT yet open a
    // new connection, but the next sql command does.
    stmt = conn.createStatement();
    stmt.executeUpdate("DROP TABLE #tmp");
    stmt.close();
    Why is it behaving that strange way? It is absolutely necessary, that EVERYTHING that I do with my connection is really done on the same connection to the SQL server! How can I force a java.sql.Connection not to open multiple sql-server-connections?
    It is very urgent, thus, PLEASE HELP!!!
    Thousand thanks in advance! Marco.

    ...but that means, that the jdbc driver I use, is not working properly, because it should work the following way (please correct me, if I misunderstood the concept):
    I create a Connection object which should represent exactly one physical connection to the database. Then I can create as many Statement instances by conn.createStatement() as I want. There should still exist only one physical connection.
    With each of my Statement objects, I can create one result set.
    This means, I should be able to create as many result sets as I want to with only one Connection object (and therefor one physical connection) by creating multiple Statements, right?!
    If this is correct, the concept is perfect for me and exactly as I'm used to it by other programming languages. Then, only my jdbc driver does not work properly which means I either have to replace it by another one or change it myself (it's open source).

  • Opening Multiple Sessions in Persona

    Hi - We got Persona 2.00 on our EWM environment , we have some reports where on the output user open new window in normal SAP GUI, e.g. hotspot on material number open a new window to display material master. but when we try to do same in persona , it gives error that "Maximum number of sessions reached". We checked in back-end SAP system in  SM04, there is only one session opened for the user. Is there any configuration to allow maximum 6 sessions (like SAP GUI) in Persona, or persona allow only one SAP window to be opened at a time?
    Thanks.
    Harkamal

    For every client session there is a server session associated with it. Such as, when you open five session you will have five server session and it serve queires.
    Regarding paralle queries, depends whether your table is defined as parallel, how many cpu do you have and also parallel parameters.
    Jaffar

  • SQL*Plus Upgrade Questions [Help!!]

    Hello,
    Our project is using Oracle 8i Enterprise Edition Release 8.1.7.3.0 database and Oracle Dev Tools 6i Patch 3 (Form/Report Builder 6.0.8.12.1).
    The SQL*Plus version that comes with this version is 8.0.6.0.0. We would like to upgrade to version 8.1.7.0.0. without having to upgrade the entire tool set [don't ask me why- politics ;)]. How can I do this? Is it even possible? I found some documentation that said all that was required for SQL Plus version 8.1.7.0.0 was Oracle 8i 8.1.7.0.0 database, which we have.
    I grabbed Dev Tools 6i Patch 10 from MetaLink and installed in a seperate directory from one that our developers use as a test [for other unrelated issues]. Well, Patch 10 also comes with SQL Plus verison 8.0.6.0.0, even though it came out in early 2002, well after version 8.1.7.0.0 was released.
    One of our test boxes has Oracle 9i iSuite installed, which does have SQL Plus 8.1.7.0.0. As a lark, I tried various was of simply moving its version (the .exe) and related .dlls to our existing test Dev 6i bin directory. No luck- all sorts of bizarre error messages. After I got through all the .dlls errors, I now get a
    "The procedure entry point OCIUserCallbackRegister could not be located in the dll OCI.dll", even though the updated OCI.dll is in the bin.
    I assume this all means that to upgrade from SQL Plus 8.0.6.0.0 to 8.1.7.0.0 it has to be installed [and not simply dropped]. Since the latest version of our tools [Dev 6i Patch 10] only has version 8.0.6.0.0, how can I install it?
    HELP!!
    Thanks in advance,
    James Walters

    Hello,
    Our project is using Oracle 8i Enterprise Edition Release 8.1.7.3.0 database and Oracle Dev Tools 6i Patch 3 (Form/Report Builder 6.0.8.12.1).
    The SQL*Plus version that comes with this version is 8.0.6.0.0. We would like to upgrade to version 8.1.7.0.0. without having to upgrade the entire tool set [don't ask me why- politics ;)]. How can I do this? Is it even possible? I found some documentation that said all that was required for SQL Plus version 8.1.7.0.0 was Oracle 8i 8.1.7.0.0 database, which we have.
    I grabbed Dev Tools 6i Patch 10 from MetaLink and installed in a seperate directory from one that our developers use as a test [for other unrelated issues]. Well, Patch 10 also comes with SQL Plus verison 8.0.6.0.0, even though it came out in early 2002, well after version 8.1.7.0.0 was released.
    One of our test boxes has Oracle 9i iSuite installed, which does have SQL Plus 8.1.7.0.0. As a lark, I tried various was of simply moving its version (the .exe) and related .dlls to our existing test Dev 6i bin directory. No luck- all sorts of bizarre error messages. After I got through all the .dlls errors, I now get a
    "The procedure entry point OCIUserCallbackRegister could not be located in the dll OCI.dll", even though the updated OCI.dll is in the bin.
    I assume this all means that to upgrade from SQL Plus 8.0.6.0.0 to 8.1.7.0.0 it has to be installed [and not simply dropped]. Since the latest version of our tools [Dev 6i Patch 10] only has version 8.0.6.0.0, how can I install it?
    HELP!!
    Thanks in advance,
    James Walters

  • SQL*Plus Worksheet Question

    I just upgraded to 8.1.6 and started using SQLPlus worksheet. Is there away to set output screen to display horizontal instead of vertical?
    Thank you in Advance
    null

    In some client version (8.1.5 or 8.1.6), I remember I had the same problem. I think that the solution is to use or not the semi-column at th end of the command.
    But, remember that Java SQL*Plus Worksheet is using SQL*Plus. Then if U have a lot of results to display, it's longer with the worksheet version.

  • When firefox launched and kept open, automatically opens multiple sessions for ads and pornography which I have never visited. sessions hide in legitimate ones

    I use firefox exclusively. I open many sessions simultaneously mostly one site per session in a single tab. At times during the day when I keep firefox open, I will return to a previous site/session and before I am able to see it, I am getting browser 'pop-ups' of ads for TJ MAxx (a site I never visit) and hard-core porno (a site i never visit and not part of my browsing demographic). These are completely random and hide behind legitimate browsing sessions and are not listed in history etc. They are not being removed by adware or Norton and they are driving me nuts not to mention the embarassment of trying to launch a legitimate site and getting disgusting porno in your face while working with colleagues. Please help!

    '''Scan for Malware'''
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    '''Reset Firefox'''
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

Maybe you are looking for

  • Geting Error in Crystal Report Generation Hresult =0x800a5036

    I have upgraded the VB 6.0 project to VB .Net 2010, While report created perfectly in VB 6.0 but in upgraded project its throwing error HRESULT = 0x800a5036. Not sure. Any help will be appreciated.

  • Default to "view as icon" in Mail.app messages (with attachments)

    Hello, Other than using Mail Attachments Iconizer (http://lokiware.info/Mail-Attachments-Iconizer), does anyone know of a way to default mail.app to "view as icon" when adding attachments to messages? Working in print design, we're always sending PDF

  • Z77MA G-45 Usb audio issues.

    I recently purchased an MSI Z77MA G-45 motherboard for recording music. I have ran into issues from the start. The usb ports appear to be causing crackling and popping whenever I plug in my M-audio fast track Usb or my Focusrite Saffire 2i2. I have t

  • Standby recovery

    Hi I have a primary database (oracle 9i ) and another database in mount state. ( not a dataguard standby) I transfer the archivelogs manually. I will rebuild dictionary managed tablespaces as locally managed in primary database. My statements are lik

  • Why does my macbook pro, snow leopard get so hot so quickly?

    why does my macbook pro, snow leopard get so hot so quickly? Can someone give helpful suggestions on solving this problem? Thanks! NELLY