Why commit after must choose to close the database

11.2.0.4

I have a performance issue in sessions that have been opened for some time and who have issued queries that use the database link.

Tracks in session,

query that uses dblink

< some time later new issues, query may minutes waiting for the return >

I can see that the wait event expects dblink.   but there is no reason so he could be waiting (remote DB is fine and said the link is ok) so instead of find me with this problem, Im going to force a closing of the database link after each link request.

change the connection to session database < dblink >;

But I get ora-02080 link is used, so I must issue a commit to get the link to close. (I can replicate this in sqlplus).  John spencer said that he is expected here behavior

Re: Problem with deleting a database link (it is in use)

It is the code is embedded in java applications and I might not always want to do a commit at that time here.

So the question is why does the commit?

Im going to answer myself, or rather quote someone else, JL covers this if you are looking for internet dblink_commit I can't seem to send the link for some reason any.

Tags: Database

Similar Questions

  • Heavy binary files must be stored in the database?

    I was asked an interesting question: If a database contains all the data? Or large binary files must be stored in the file system?

    Example of large binary files: videos or PDFs heavy (+ 200 MB).

    With an old aspx web app (1.1) I tried to open a 200 MB pdf file stored as a BLOB in a base of Oracle 11 g and it has run out of memory.

    However, same asp.net web application had no problem to open the same pdf file stored in the file system on a server. It could be that maybe there is some way to open fields heavy blobs with asp.net.

    For reasons of integrity, I say that all data must be stored in the database, but my cases described showed me that maybe it's not the way.

    SQL Server allows the content of the columns of varbinary (max) to be stored on the file system, maybe there is something similar in Oracle?

    With an old aspx web app (1.1) I tried to open a 200 MB pdf file stored as a BLOB in a base of Oracle 11 g and it has run out of memory.

    It could be that maybe there is some way to open fields heavy blobs with asp.net.

    Depends entirely on how to open BLOB.
    A simple way is enter any value in table (like getArray()). It can be risky when there are great values.
    More sophisticated is to read in chunks.
    In environments such as Java or ASP.net programming should be operable methods BLOB as a stream of data. In Java, it is ResultSet.getBinaryStream)
    You can spend this additional flow, for example the browser connection. It will read the BLOB value into small pieces (or 64K) and pass it to the browser or whatever the customer.

  • Close the database/resources

    It's very specific. I open the database of an MSI file, but cannot change the file until it stops labVIEW.

    I tried different strategies such as use of a node to invoke nearby, or simply close reference, and doesn't work.

    It is clear to everyone what I'm doing wrong?

    Thanks a bunch, it is logic that you guys mentioned. I'll try to implement.

    Thank you!

    Nyne

  • Why two different transfer control numbers of the database for Oracle Enterprise

    The control of the database link in itself speaks of 1528 port number, so why Net manager speaks about 1521?

    Confusion between

    Pointers.

    Thank you

    1521 is the listening port number where all sessions user with the database.

    Concerning
    Asif Kabir

  • Why "Adobe after effects CC 2014 close unexpectedly" at launch?

    I am currently on a MacPro 2012 OS X 10.9.5 with 2x2.66 GHz 6 - Core Intel Xeon Processor, 24 GB memory DDR3.

    I uninstalled in order to download and install Adobe Cloud Creative suite CS5. I was able to get Photoshop upward and running, but I can't run in After Effects. Whenever I try to open it, I get the message:

    "Adobe after effects CC 2014 quit unexpectedly." So, I uninstalled and tried to re - download and restarting my machine. Same result.

    So, please take a look at my report below and made me know if you see any possible solution to this problem. Thanks for any help possible!

    It turns out that I had to trash preferences found in User/Library/Preferences/Adobe/After Effects. I just trashed the entire folder, emptied garbage and After Effects starts very well.

  • Get the "selected lines" value after sql custom query in the database adapter

    We execute a custom query in a database adapter. With other technologies (JDBC, etc.) the result of a query produces not only a game but the number of lines selected results. For example, the output of the script of Oracle SQL Developer will display something like:

    9999 selected lines

    at the end of the output of the script.

    I would like to obtain this value for a BPEL process. Of course, I could run a 2nd interview whose where clause is identical to the first, but select count (*) instead. However, it is not only ineffective but (in rare circumstances in an active database) could be the problem.

    It is not obvious to the novice BPEL how to get the selected value and the result set row in an Invoke. Is this possible?

    Maybe it's not the only solution - but this is how I did in the past.

    After step to invoke the adapter, use a step of the having-right/copy to fill a variable of integer type BPEL using the xpath count function...






    That should affect the number of records returned by the query.

    I hope this helps.

    Rod.

    Published by: Tunnels of Rod on December 15, 2009 13:16

  • Installation/uninstallation program has stopped working.__A problem caused the blocking of the program works correctly. Windows will close the program and notify you if a solution is available.

    I tried to download a program: System Mechanic Professional 9.0 www.Iola.com
    I recorded it on the desktop, right-click to run as administrator, at this stage, it starts to download but the following message comes to the screen: install/uninstall program has stopped working.
    A problem caused the blocking of the program works correctly. Windows will close the program and notify you if a solution is available.
    Of course, nothing happens after that and I close the message. I bought this on the internet and I have the activation code. It's good for 3 pc. I put it on my desktop and it works very well. My laptop is Vista Home Premium with 64-bit operating system. Everything else seems to work fine on my laptop but I desperately need this program. Laptop is so slow and Firefox takes forever to open the pages. I get a lot of messages it does not!
    So I appreciate any help you can offer.


    Hi luv2shop,.

    This problem may occur because of the conflict by the present security software on the computer.

    I suggest you try the following steps:

    Step 1: Disable security software, follow the steps mentioned below

    http://Windows.Microsoft.com/en-us/Windows-Vista/disable-antivirus-software

    Important: Activate security software once everything is done.

    Step 2: use the Windows Installer Cleanup utility for delete all entries that are related to the product you have installed wrong:

    Download and then install the Microsoft Windows Cleanup utility. To do this, see the Microsoft Web site:

    http://download.Microsoft.com/download/e/9/d/e9d80355-7ab4-45b8-80e8-983a48d5e1bd/msicuu2.exe

    Save the file to the desktop. When the download is complete, double-click the file and then follow the directions. When the installation is complete, click Start, point to all programsand then click Windows Installer Cleanup.

    In the list of the products installed , delete all entries that are related to the product you have installed wrong. If there are too many entries, click select all, and then click Remove. When you have deleted all entries, click exit, and then start the installation of the product

    Description of the Windows Installer Cleanup utility

    http://support.Microsoft.com/default.aspx/kb/290301

    Step 3: Set the clean boot computer and try to install the program

    Follow step 1 in the link below,

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7 
    http://support.Microsoft.com/kb/929135

    Important: n ' forget not the computer to start normal follow step 7 in the link.

    If the problem persists, you can check with iolo for known problems

    http://www.iolo.com/customercare/

    Note: Make sure that (double check), you install the right version (32bit\64bit) for your computer.

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How Controlfile SNA remain synchronized after moving the database with the cold backup

    Hello DBAs,

    I doubt that:

    Every time you pass a cold backup database. We create a new controlfile with new locations of data/redologs etc.

    And then we execute "create controlfile reuse...". noresetlogs...; "to create the controlfile.

    After that, we will open the database as > > alter database open;

    Now the question is:

    We are able to open the database without clause "resetlogs.

    Here, we create a new controlfile so SNA to controlfile will not be synchronized with the SCN of the datafile and redo the file.

    Please let me know how the new controlfiles' SNA is synchronized with the data file and redofile and wea are able to open the database without resetlogs clause.

    Oracle: 11.2.0.4

    OS: Linux

    If your cold backup also includes online redo logs, a RESETLOGS is not necessary.

    The controlfile is created if it does not have a SNA, it reads the data file headers the YVERT database. For a cold backup, all the headers of data file are consistent.  (This is also the reason why a RECOVERY is not required).

    Hemant K Collette

  • Close the pop-up

    I have an AM method which is exposed to the client and is used within a popup like a button 'Action '.

    How can I close the popup programmatically after the execution of the AM method when this button is clicked.

    Thank you

    1) create liaison for the popup in the myPopup say managed bean

    (2) in the command in the context menu button, have an action listener method in the managed bean that calls the method corresponding in the AM thru the operationbinding as below:

    DCBindingContainer links = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
    OperationBinding operationBinding = bindings.getOperationBinding("operation_name");
    operationBinding .getParamsMap () .put ("parameter_name", parameterValue);
    the operationBinding. execute();

    (3) the execution of the method, after this statement to close the pop-up window.

    this.myPopup.hide ();

    Thank you
    Nini

  • After starting on the database

    Hi all

    For my needs, I need to create a startup after the outbreak of the database, the database, there are 2 diagrams, within each schema a procedure must be executed in the database trigger body.

    Is it possible to create such a release.

    Thank you
    Rambeau

    Raghu Hi, Hi user2361373

    The user2361373 solution is basically correct.
    However, it will review procedures schema1.proc and schema2.proc are passed as the owner of the trigger to start, possibly SYS. Maybe it's that it's ok, but it may be also that you want to perform the procedures as long as the user schema.

    This isn't a real problem. You can create basically AFTER STARTUP ON DATABASE triggers for each user, i.e. also for users schema1 and schema2. then, each trigger will be executed separately as user schema1 and schema2.
    To create such a release, you must have extended privileges (DBA or such), ordinary users normally do not have these. However, you can temporarily grant DBA to these users and revoke, when the triggers were created. Or you can let a user with DBA privileges create the trigger for users schema1 and schema2.

    To run these triggers, no privileges are required.

    Concerning
    Christoph

  • ADF business components: persistent negative IDs in the database

    Hello

    We use ADF 11 g with ADF BC as the model layer. All our database tables have a column ID, which is populated by a sequence and never shown to the user. ("IDs techniques".) In British Colombia ADF we have configured our entity objects with the attribute Id set as primary key. The type of the attribute is set to "oracle.jbo.domain.DBSequence". On the tab sequence, we set the name of the sequence in the sequence that corresponds to the table (we have a sequence for each table in the database).

    Our problem is the following. If we create a new record in our ADF Faces UI and a business on the database rule generates an error during validation after which correct us the error and resubmit the registration, a record with a negative identification gets in the base. If there was no error in business rule, we get an ID that corresponds to the 'nextval' in the sequence, as expected.

    Even though I know that ADF BC uses negative ID in the cache of objects entity for new records, I have no idea how and why these negative ID end up in the database. So far, they have been any problem in the database. But since this is unexpected behavior, I'm not entirely sure that the negative ID will not cause problems in the future. My questions:
    < ul > < li > is this design 'by' behavior or is it a bug? < /li >
    < li > if it is "by design": these are negative IDs guaranteed as being unique? < /li >
    < li > could it be caused by a configuration error in our model project? Where should I start looking for such a mistake? < /li >
    < li > could it be caused by a configuration error in our database? Where should we start to look for such a mistake? < /li >
    < li > would it be a bug in the ADF BC? < /li > < /ul >

    Best regards
    Bart kummel

    Bart,

    (1) it's by design
    (2) No.
    (3) No.
    (4) No.
    (5) no

    ;)

    Now for the explanation. Sequence name you set up is just for information purposes only - it is not actually cause ADF fill the value using the sequence. To do this, you must either write database triggers or you can use an extension framework class to have occur in the model layer - in my view, such an extension class is documented in the developer gude (search for DBsequence, I've not worn to hand at the moment). Negative numbers are only temporary placeholders.

    John

  • Can not find the file init for the database instance

    I have installed Oracle 10 g under Linux CentOS, run netca to create listener.ora and tnsnames.ora files, then I run dbca to create the myodb database and orcl instance.



    Now when I run dbstart, in the boot log, that it is said that he could not find the file orcl example init. so that the database myodb, he says:

    < em > / oracle/product/10.2.0/db_1/bin/dbstart: database instance "myodb' hot began.





    < /em > my questions:



    1. why it is said when I run dbstart both myodb & orcl are instances of database, I created myodb as the General database, while orcl corresponds to the instance, here it says:

    instance of < em > data treatment "orcl": journal file /oracle/product/10.2.0/db_1/startup.log

    Database instance "myodb' of treatment: save the /oracle/product/10.2.0/db_1/startup.log file



    < /em > is the name of the General database is considered an instance itself and can be used alternatively with the instance of word?



    2 when I created the database using dbca, I made the password for users of SYSTEM & SYS.



    When I try to connect to sqlplus using the system/mypassword, here it says:



    < strong > < em > ORA-01034: ORACLE is not available

    ORA-27101: shared memory realm does not exist

    Linux error: 2: no such file or directory < /em > < / strong >



    3. the database myodb started but it is not mentioned in my tnsnames file or the listener, while one mentioned is orcl has not begun, how is it? I know I'm missing a dir for /orcl in/oracle/home/admin, something that we find for the myodb, where there is/oracle/home/admin/myodb/pfile/init file.



    How can I fix this?



    4. What is the use of the command sql, < strong > edit < facilities > system registry, told me in another thread to connect to an idle instance with sqlplus and run this command, here what I got:



    < em > ERROR on line 1:

    ORA-01034: ORACLE not available



    < /em > 5 - can I just rely on the name of the General database and forget the thing of the Forum? I'm just confused about the difference and do not know how the orcl instance was created, it has not been created with dbca, because when I run dbca he says it's already there, create another instance, so I commented the sid parameter and now I amn't during its creation and how to retrieve its files if I need to re - create it again.



    Note: it is located in the bash_profile as $ORACLE_SID = orcl, why it's the only game, while General MYODB database name is not set, can be there rather than on the instance or SID in the bash_profile?





    Sorry for the many questions, this is the thing of the instance and their related discipline, I appreciate your help.



    Thanks in advance.




    If you have only 1 instance "orcl" then the oratab file should have only 1 entry - only for "orcl". Along, only one instance "myodb" {with the db_name "myodb"} must be started.
    The database Instance is identified by the SID - IE the ORACLE_SID.

    Normally, the SID and DB_NAME are the same - and they do like default value is the same when you run dbca. You have changed probably manually the db_name in dbca.

    If the listener is running on port 1521 and is started before the database instance, the database instance automatically saves with the listener. If the listener is started after the database instance, and then the command 'ALTER SYSTEM REGISTER' in the database instance indicates PMON to register with the listener.
    If you do not want to depend on the automatic check of the database with the listener instance, then you can include the information database (SID!) in the listener.ora. In addition, which would be caused if the listener is not on the default port 1521.

    See my posting in this thread: oracle sid and database the name of for more notes.

    A database can contain multiple schemas - each schema is a different database account. In other implementations of database (non-Oracle), what is called a "database", it is called a 'plan' in Oracle - but that is created as a database account. Database accounts are listed in DBA_USERS - if a user "owns" objects, it's a 'plan', otherwise, it is only a user. {Oracle also provides a CREATE SCHEMA command to create multiple objects in a single command.}

    Hemant K Collette
    http://hemantoracledba.blogspot.com

    Published by: Hemant K grapple on November 6, 2008 09:31
    corrected "orcl" to "myodb.

  • How to retrieve the database SYSTEM datafile get corrupted?

    Database is in ARCHIVELOG mode, and the system tablespace data file is corrupt. Until when can I recover the database?

    A. until the last commit.
    (B) until the moment where you are recovering.
    (C) until the moment when the data file has been corrupted.
    D. you may not recover the SYSTEM tablespace and you must be re - create the database.


    --
    and 1 more doubt:

    If redologfiles are not multiplexed and blocks redolog get damaged in Group 2, archiving stops and. All redolog files are filled and database activity is interrupted.
    DBWR wrote everything on the drive. What command allows you to go further?

    A. retrieve the block logfile Group 2;
    B. change the database drop logfile Group 2;
    C. change the database group claire logfile 2;
    D. change the group database recover logfile 2;
    E. change the database clear no archived lofile Group 2;

    Published by: user642367 on September 18, 2008 20:45

    1A. Because the DB is in archivelog mode, so you can always restore and recover the entire DB including system tablespace datafile to latter YVERT generated provided that redo record is available in in line/Archives log files.

    2 E. Because only redolog corrupt archive so only proceed where a blockage of the db is obvious, then, in order to proceed further you must clear (a journal archived file) online and then db will work as usual. There you must take a full backkup of DB (cold backup insofar as possible) as soon as possible after the issuance of this order. Like now, you do not repeat information in the archivelog files to recover the db in case of crash.

    Please go through Oracle 10 g DB Administrator's guide (available on OTN) for more details.

    Thank you

  • Improvement of the database from 9i to 11.2.0.4

    Hi all

    I want to upgrade a database independent 9i to 11.2.0.4. Please suggest prerequisites and post the steps of the task to the high-gradation or share a link.

    Can I directly go from 9i to 11.2.0.4?

    Import/Export or Rman which will be better please suggest?


    Please let us know the steps in the import/export method?


    Thank you and best regards,


    Arya


    Arya,

    If you chose to export / import method, you might need to know what is the disadvantage and advantage. If you do the fragmentation of import/export segment will be deleted (it is good), that once we offer the downtime and run two tasks (1.upgrade 2) Fragmentation), but you will need to spend time to complete the upgrade of database.

    You may need to consider your database size and the total downtime you get?

    We will be able to parallelize export and import and finish faster. example, you can split the table export and import / diagram of first level (if you have a PK/FK relationship you need to retain the same).

    Here are the questions in my mind.

    (1) 9i database runs in Server A, you want to upgrade this database on the same server? If so have you checked OS and RDBMS software certification?

    (2) If you want to be updated on the same server by using export / import, then you have enough space to create the new database and to import?

    (3) If you perform import on 11 g that is created on the same server (SERVER A), then you have RAM / CPU to speed up the process?

    (4) you can consider database upgrade (on the same server) using the manual upgrade or DBUA, which has no more than space and your upgrade will of--> current in 9.2.0.8 to 11.2.0.4 version

    (5) manual / DBUA may take time depends on component installed in this database and the invalid invalid objects (if you have very less upgrade then total until 11.2.0.4 can take 2 hours max).

    If you think that you must upgrade the database to the new server, then you may need to review below.

    (a) how the data will be moved to the new server? is where your network speed is good?

    (b) will pass it data before the upgrade? OR after the upgrade to upgrade?

    (c) you can generate waiting for the current version--> that will move data before the end of the upgrade, if once graceful failover you can upgrade of database using DBUA / manual (described in point 5)

    (c) If you want to move the database after upgrade--> you can upgrade the database and build the day before for this in the new database on the new server (this may not be a good option)

    (d) If you want to move database during the upgrade--> you can export and import (this also takes time and your networks in question).

    In my opinion, export and import in a good option if you are very good to have the right amount of downtime and if you want to achieve upgrade and fragmentation at the same time.

    Post your question if you have

    Thank you

  • AMT: cannot allocate memory - is there limit to the databases on a single box num

    Hello

    Specification of the server:
    Windows 2008 R2 x 64 with all updates applied

    Oracle 11.2.0.1 Standard Edition with Patch 16 applied (which corresponds to all the live database version)

    10 GB OF RAM

    I have a standby server that has all my databases to watch over him

    Recently, I added about 8 new databases on hold to take to 102 and since then I get an intermittent error of TNS. AMT-12531: TNS: cannot allocate memory

    I have scripts that loop in all databases one at a time, they start the standby database, apply the new recovery logs archived and close the database

    It worked perfectly for years but I started having problems after you have added a few other databases, it probably defective 1-3 times so it is inconsistent.

    With all databases only idling server use 6 GB out of the 10 GB RAM available so there is a lot of memory free

    If I withdraw half a dozen databases in the scripts, it starts working again.

    I created 2 new listeners and divide the databases for the half to run on a single listener and the other half on the other, there are still intermittent outages

    Server has been restarted several times and sometimes travel a couple of times before failing and sometimes will fail in the first inning thanks to

    Failures are normally towards the end of the script, IE. has applied the newspapers to 95 databases and fails when the 96th!

    I reorded the data bases in the script and it still fails at the end, not on a specific database

    I also added restarts listeners for scripts that made no difference

    I've now changed my scripts, then real windows service does not work for databases and the script makes a net start before applying the newspapers and a net stop eventually. She's now going through without a problem but I would go to the bottom of the issue and keep windows running services in the starting and stopping of their adds time for labour to apply the logs across all databases

    Thank you
    Robert

    Have you tried a note

    AMT-12531 on Windows 64-bit [ID 1384337.1]

    I created 2 new listeners and divide the databases for the half to run on a single listener and the other half on the other, there are still intermittent outages

    I don't think that you need several headphones if a listener is enough to support all of your databases running on a server.

Maybe you are looking for

  • I forgot to turn on the firewall

    After updating Adobe Flash, I forgot to re - activate my firewall. I checked it after noticing that a number of Web sites, I have visited not appeared in my web browser (Firefox). It was late, so I've re-enabled the firewall, turn off my iMac and wen

  • Windows 7 drivers missing HP Pavilion 23

    Hi all I'm looking to do a fresh install of Windows 7 on a HP Pavilion B090EA 23 but miss me the drivers forEthernet controllerNetwork controllerPCI deviceController PCI simple commsUSB controllerAny advice on where to find the windows 7 64 bit drive

  • Zoo Tycoon 2 does not work on Vista 64 bit Ultimate

    When I start the game it gives an error saying that I have 0 MB of RAM installed.I also have a stub GPF. I tried to turn on DEP for all programs and added ZT.exe in exceptional cases.I edit "MSCONFIG" to show only 2 GB of ram. The issue of ram 0 MB g

  • Questions of Smartphones Blackberry Messenger blackBerry on Javelin

    Hi, I just transferred all my 8310 on to my 8900 and now it seems that my BBM is not allow me to change my screen name, any suggestions? Soon x

  • Virtual PC - Windows 7 not found mass storage drivers

    Hello I installed Virtual PC and Windows XP mode on my Windows 7 Enterprise 64-bit. Virtualization options are enabled in the BIOS. I tried to install Windows 7 32 bit in a virtual machine, but he is unable to see the created virtual drive. I get a p