How to query the current free memory in the shared pool
HelloSomeone please tell me how to check the current uses of shared pool.
Any query/Tip/document would be appreciated?
If you have found errors ORA-04030 then it is more likely at the PGA instead of the SGA. If you had problems with the shared pool you would probably see shared pool latch wait events and others.
For the ORA-04030 errors, depending on your operating system, can be solved by adding more memory to the operating system or to reduce the amount of work that is performed.
HTH!
Tags: Database
Similar Questions
-
Help, how to query the database using pagination
Hello
How to query the database using paging for large data.
any API for this?
Thank you in advance!Hello
You can specify XmlQueryContext::Lazy as the type of assessment and only call XmlResults:: next() comes as many times as you need.
John
-
How to increase the size of the shared pool?
Hello
How can we increase the size of the shared pool?
can I update "shared_pool_size" parameter in the init.ora file?
Or any other way to change?
Concerning
Rajeshno need to modify the pfile file, if you use 9i or above versions.
If your database uses pfile then issue
SQL > alter system set shared_pool_size =scope = mΘmoire; If your database uses spfile then issue
SQL > alter system set shared_pool_size =scope = both; (to reflect changes made to the next start-up also. otherwise scope = memory will be enough) If your 10g database, you can have SGA_TARGET enabled (by default) in this case it is not necessary to change anything.
If you modify the init.ora file, which will result in the next startup of the database. (means shutdown is required). This isn't average recommeded.
-
How to load the shared entities
Hello guys! I did experiments with Chargeback manager for awhile, but I have a question. So far, I have seen that with Chargeback manager, it is very easy to calculate the cost of features in a virtual infrastructure (for example, ESXi, VM etc) based on several cost models.
But what happens when we talk about shared resources? For example if a (BU) Business Unit uses an ESXi server, it is very easy to load than BU. You have created a cost report that ESXi and you present to the BU.But when, on the other hand, you have DRANK using the same things that ESXi (for example a mail server) can become more complicated. You can still find the cost of this ESXI, but how will you allocate this cost on the BU who use this server? For example, divide the cost by the number of BU? Or divide the cost by the number of BU take the consideration of the number of users in each BU... etc...
So the question is, if Chargeback Manager has additional features that could help this process...
Bravo!
Hello
Yes, but the function is only limited to virtual machines directly added to a folder of chargeback hierarchy. Chargeback has an option to share a VM on records (i.e. from Business units). Please refer to the user guide for "sharing cost of Virtual Machine.
For now, you need to calculate the percentage of shares according to the criteria (number of email users) for a virtual computer and use this Chargeback percentage manually.
Kind regards
Agnes
From: communities emailer [email protected]<>[email protected]>
Reply-To: communities emailer [email protected]<>[email protected]>
To: Agnes Pannem [email protected]kumar<>[email protected]>
Subject: New message: "how to load shared entities.
Http://communities.vmware.com/index.jspaVMware communities >
How to load the shared entities
juan11http://communities.vmware.com/people/juan11response > in VMware vCenter Chargeback - see the discussion complete onhttp://communities.vmware.com/message/2051025#2051025
-
Hi all)
can I use INVALIDHTOMEH packaze hold table in the shared pool?
http://www.orafaq.com/wiki/Pin_Objects_in_the_Shared_Pool
or how keep in the table of a very intensive use of memory?Hello
If you want a chart updated in cache, you just (re) set with the keyword CACHE. INVALIDHTOMEH package is to pin (unpinning) code, not data.
Best regards
Nikolai -
kept in the shared pool.
How I see the objects kept in the shared pool.by query v$ dbobject_cache; _
OWNER VARCHAR2 (64)
NAME VARCHAR2 (1000)
DB_LINK VARCHAR2 (64)
NAMESPACE VARCHAR2 (28)
TYPE VARCHAR2 (28)
NUMBER OF SHARABLE_MEM
NUMBER OF LOADS
NUMBER OF EXECUTIONS
NUMBER OF LOCKS
NUMBER OF PINS
KEPT VARCHAR2 (3)
NUMBER OF CHILD_LATCH
NUMBER OF RADIATION -
Hello everyone,
Oracle version: 12.1.0.1.0 - 64 bit
OS: Linux Fedora Core 17 X86_64
Description of the problem:
I'm reading an interesting book of online oracle named: SQL in PL/SQL
On page 11, it reads the following:
In the absence of a compilation error, the PL/SQL compiler generates an equivalent statement of SQL regular text and stores this with the generated machine code. This instruction uses placeholders where the embedded SQL statement uses identifiers that have been resolved in the PL/SQL unit.
What I understand of this (please, correct me if I'm wrong) is that whenever I write some static/embedded statement SQL within a PL/SQL block in which there are a few local variables in PL/SQL, and then final generated SQL statement (after resolution of identifier) will include placeholders (bind variables) instead of these identifiers the PL/SQL.
I just wanted to see this in practice, so I made the following test:
Test case:
SQL> connect / as sysdba SQL> alter system flush shared_pool system altered
So, normally, after execution of the foregoing the shared_pool on my development environment is now empty.
And then I run the following PL/SQL block
<<b>> declare depid hr.employees.department_id%type := 100; cnt pls_integer := 0; begin select count(*) into b.cnt from hr.employees t1 where t1.department_id = b.depid; end; / -- -- column sql_id new_value sqlid_saved; -- select v1.sql_id from v$sql v1 where v1.sql_text like '%t1.department_id = b.depid%'; -- -- select v1.sql_text from v$sql v1 where v1.sql_id = '&sqlid_saved';
And the result was:
SQL_ID
-------------
687dxvsmrwm9z
g17tjb3f8t94y6 old: v1.sql_id = "& sqlid_saved"
6 new: v1.sql_id = "g17tjb3f8t94y".SQL_TEXT
--------------------------------------------------------------------------------
< < b > > declare depid hr.employees.department_id%type: = 100; CNT pls_in
SEB: = 0; Start select count (*) in b.cnt of
T1 hr. Employees where t1.department_id = b.depid; end;
SQL >What I don't understand is the main part of the SQL_TEXT I put in red.
Instead of
T1.department_id = b.depid
I expected to see something like
T1.department_id = : B
In other words, some bind variable, because depid is a local variable inside my PL/SQL block used in integrated/static SQL statement, so it must be converted to a reserved space in the shared pool instead of the original identifier.
You kindly could you tell me what I misunderstood?
Thanks in advance
> But once again no variable binding in the stored/parsed SQL statement. That's what I don't understand.
Submitted by PL/SQL SQL is "normalized", which includes (among other things) convert uppercase. Your query on v$ sql is looking for '% hr.employees% '.
-
question related to the shared pool
Hi Experts,
Version of DB - Oracle Database 11g Enterprise Edition Release 11.2.0.1.0
OS - Windows 7
(installed on my laptop)
Just started reading concepts DBA. I had a few questions. Please explain indetail/short ;-).
(1) can we see the size of the Cache of the library and Cache data dictionary which are internal units of the Shared pool.
(2) one of the advantages of the package is - when we invoke a single method, oracle loads the whole package into the buffer and for subsequent calls, it will not go to the db files. Here the buffer means library Cache. My understanding is correct.
(3) I am able to see the two parameters shared_pool_size(value =0), shared_pool_reserved_size (value 15099494) to parameter v$. What is the difference between these two parameters.
Thank you very much in advance for your help.See you soon,.
Suri ;-)Your questions:
1 Yes, v$ sgastat
2 Yes, if your terminology is a little loose.
3. the parameters described here, content
-
Hello
The library cache stores the info on them recently use SQL & PL/SQL statements.
The data dictionary cache stores data in database files, tables, etc.
Is there any specific use other than being the container to these 2 Cache the shared pool?user12022313 wrote:
HelloThe library cache stores the information on the SQL & PL/SQL used statements recently.
The data dictionary cache stores data in database files, tables, etc.
Is there any specific use other than being the container to these 2 Cache the shared pool?
The answer is "it depends." The above are only 2 structures of many other many other structures available in the shared pool. Starting from 10 g, even the undo and redo are kept within the shared pool itself. But most of the structures in the town of pool other than Library Cache and data dictionary Cache requires no intervention on our part is why they are more often discussed in almost every document/place.
HTH
Aman... -
How to query the current setting of an element .css?
I have an element on the stage that I'm changing when running.
I need to know the current height of the element to be used in a calculation.
I know how to reset the height, but is it possible, using the script, to determine the current height setting?
TIA,
Carolyn
Any CSS property are accessible as mentioned seano. I would just add sym at the front, since you're on board animate. Just use the correct scope. Then you can use the variable as needed.
var theHeight = sym.$("element1").height ();
-
How to query the data of Contact with multiple fields
How can I query the data of Contact with multiple fields?
For example, I'll get contacts which are changed after a point at the specified time and whose country is US. How could I make the chain of research of the SOAP API "Query"?
And I also want to know how to make a search term for RESTful API for contacts above.
Any suggestions?
Thank you.
Hi Biao,
The following document describes how query for multiple fields using the SOAP API: request a Contact from several fields.
And you can search multiple fields using the REST API with the & operator. For example, to search for a Contact by e-mail address and date of creation:
- " emailAddress ='[email protected]' & converted > = '1369828886'".
Hope this helps and please let us know if you need more information.
Thank you
Fred
-
How to query the total number of columns and lines filled with data?
How to get the number of rows and columns in Exel file data using Excel report?
Since you have posted this question in the forum of LabWindows/CVI, I guess you want to know how to do with CVI.
You need to know how to open and activate the Excel data file.
Depending on the function returns the total number of columns and lines col_count row_count, respectively.
-----------------------------------------------------------------------------------------------------------------------------------------
int CountColumnsAndRows (void)
{
Error HRESULT = 0;
CAObjHandle rangeCurrentRegionHandle = 0;
CAObjHandle rangeColumnsHandle = 0;
CAObjHandle rangeRowsHandle = 0;
unsigned long col_count = 0, row_count = 0;
Must use the 'A1' property and CruuentRegion count the total of columns and lines, including the drafts!
error = CA_VariantSetCString (& MyCellRangeV, 'A1');
error = Excel_WorksheetRange (ExcelWorksheetHandle, NULL, MyCellRangeV, CA_DEFAULT_VAL, & ExcelRangeHandle);
If (error<0) goto="">0)>
error = Excel_GetProperty (ExcelRangeHandle, & ErrorInfo, Excel_RangeCurrentRegion, CAVT_OBJHANDLE, & rangeCurrentRegionHandle);
If (error<0) goto="" error="">0) >
error = Excel_GetProperty (rangeCurrentRegionHandle, & ErrorInfo, Excel_RangeColumns, CAVT_OBJHANDLE, & rangeColumnsHandle);
If (error<0) goto="" error="">0) >
error = Excel_GetProperty (rangeColumnsHandle, & ErrorInfo, Excel_RangeCount, CAVT_LONG, & col_count);
If (error<0) goto="">0)>
error = Excel_GetProperty (rangeCurrentRegionHandle, & ErrorInfo, Excel_RangeRows, CAVT_OBJHANDLE, & rangeRowsHandle);
If (error<0) goto="" error="">0) >
error = Excel_GetProperty (rangeRowsHandle, & ErrorInfo, Excel_RangeCount, CAVT_LONG, & row_count);
If (error<0) goto="">0)>Error:
CA_VariantClear (& MyCellRangeV);
CA_VariantClear (& MyVariant);
ClearObjHandle (& ExcelRangeHandle);
ClearObjHandle (& rangeCurrentRegionHandle);
ClearObjHandle (& rangeColumnsHandle);
ClearObjHandle (& rangeRowsHandle);
If (error<>
ReportAppAutomationError (error);
error return;
} -
How to query the attributes of xml documents
I want to query only the details in the number = "705230" id (id is an attribute)
I tried, but does not help. I should be able to query the value of the core_org_id attribute
Select extract (CLOB_DATA, ' PcrDocument/PcrOrganization/core_org_id) CORE_ORG_ID of pcr_files where existsNode (CLOB_DATA, ' PcrDocument/PcrOrganization/questions/problem [@id = "705230"]') = 1;
-returns nothing...
I tried to extract the value for the id of the issue for R_DATE & R_REVIEW_DATE = 705230, but unable to iam.
The data for all the questions is returned.
Here is the query used...
Select extract (CLOB_DATA, 'PcrDocument, PcrOrganization, questions, problem') ISSUE of pcr_files where existsNode (CLOB_DATA, ' PcrDocument/PcrOrganization/questions/problem [@id = "705230"]') = 1;
Here is the part of the XML document iam mark on...
-< ns1:PcrDocument id = "PCR-13562" title = "disclosures of EU - CE-1060/2009" version = '1' pcrPublishDate = "' 2012-01 - 11 T 12: 49:02" container = "http://www.w3.org/2001/XMLSchema" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1 = "http://integration.mysite.com/ServiceSchema/v3" > "
-ns1:PcrOrganization core_org_id = "345840" >
< ns1:PcrLinkedTo value = "ISSUE" / >
-< ns1:AdditionalInfo >
< ns1:Info type = "AdditionalInfo_QuartelyReport_URL" > < br > < other >MGH< / ns1:Info >
< / ns1:AdditionalInfo >
-< ns1:Issues >
-< ns1:Issue id = "705230" >
-< ns1:AdditionalInfo >
< ns1:Info type = "R_DATE" > credit Release Date: April 9, 2010 < / ns1:Info >
< ns1:Info type = "R_REVIEW_DATE" > credit last review Date: October 12, 2011 < / ns1:Info >
< ns1:Info type = "AdditionalInfo_QuartelyReport_URL" > < br > < other >MGH< / ns1:Info >
< / ns1:AdditionalInfo >
-< ns1:IssueDetail id = "114766798" >
-< ns1:AdditionalInfo >
< ns1:Info type = "R_DATE" > credit Release Date: April 9, 2010 < / ns1:Info >
< ns1:Info type = "R_REVIEW_DATE" > credit last review Date: October 12, 2011 < / ns1:Info >
< ns1:Info type = "AdditionalInfo_QuartelyReport_URL" > < br > < other >MGH< / ns1:Info >
< / ns1:AdditionalInfo >
< / ns1:IssueDetail >
< / ns1:Issue >
-< ns1:Issue id = "727193" >
-< ns1:AdditionalInfo >
< ns1:Info type = "R_DATE" > credit Release Date: April 9, 2010 < / ns1:Info >
< ns1:Info type = "R_REVIEW_DATE" > credit last review Date: October 12, 2011 < / ns1:Info >
< ns1:Info type = "AdditionalInfo_QuartelyReport_URL" > < br > < other >MGH< / ns1:Info >
< / ns1:AdditionalInfo >
-< ns1:IssueDetail id = "117994574" >
-< ns1:AdditionalInfo >
< ns1:Info type = "R_DATE" > credit Release Date: April 9, 2010 < / ns1:Info >
< ns1:Info type = "R_REVIEW_DATE" > credit last review Date: October 12, 2011 < / ns1:Info >
< ns1:Info type = "AdditionalInfo_QuartelyReport_URL" > < br > < other >MGH< / ns1:Info >
< / ns1:AdditionalInfo >
< / ns1:IssueDetail >
< / ns1:Issue >
< / ns1:Issues >
< / ns1:PcrOrganization >
< / ns1:PcrDocument >Select extract (CLOB_DATA, ' PcrDocument/PcrOrganization/core_org_id) CORE_ORG_ID of pcr_files where existsNode (CLOB_DATA, ' PcrDocument/PcrOrganization/questions/problem [@id = "705230"]') = 1;
-returns nothing...Some remarks (apart the obvious syntax error ' to leave'):
-You are missing the namespace declaration in the functions existsNode() and extract()
-You must use extractValue() to extract scalar values
-Given that core_org_id is an attribute, you must use an attribute axis to access (@core_org_id or attribute::core_org_id)SQL> select extractValue( CLOB_DATA 2 , '/PcrDocument/PcrOrganization/@core_org_id' 3 , 'xmlns="http://integration.mysite.com/ServiceSchema/v3"' ) CORE_ORG_ID 4 from pcr_files 5 where existsNode( CLOB_DATA 6 , '/PcrDocument/PcrOrganization/Issues/Issue[@id="705230"]' 7 , 'xmlns="http://integration.mysite.com/ServiceSchema/v3"' ) = 1 8 ; CORE_ORG_ID -------------------------------------------------------------------------------- 345840 SQL> SQL> select extractValue( value(x) 2 , '/Issue/AdditionalInfo/Info[@type="R_DATE"]' 3 , 'xmlns="http://integration.mysite.com/ServiceSchema/v3"' ) as R_DATE 4 , extractValue( value(x) 5 , '/Issue/AdditionalInfo/Info[@type="R_REVIEW_DATE"]' 6 , 'xmlns="http://integration.mysite.com/ServiceSchema/v3"' ) as R_REVIEW_DATE 7 from pcr_files t 8 , table( 9 xmlsequence( 10 extract( t.clob_data 11 , '/PcrDocument/PcrOrganization/Issues/Issue[@id="705230"]' 12 , 'xmlns="http://integration.mysite.com/ServiceSchema/v3"' ) 13 ) 14 ) x 15 ; R_DATE R_REVIEW_DATE -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- Credit Release Date: 09-Apr-2010 Credit Last Review Date: 12-Oct-2011
You don't mention the version of your database.
The foregoing is deprecated in 11.2, use XMLTable/XMLQuery if you're on 11g. -
To get started with Ajax - how to query the db without 'submit' page?
Hi guys,.
I'm building a simple "power point presentation" - essentially a CF page that can display a large jpg [slide]) all n seconds, I want the page to query the db to ask whether it is necessary to change the jpg and as appropriate who jpg to see her now. In this way, we can control the presentation by updating the database on the fly.
So I think I will reach it as follows:
1. a 'view' page that contains javascript that fires every n seconds code
2. that js somehow pass 2 variables (GET?) to an action page (ie the user id and authentication var)
3. the action page will be the query to the db (using the variables passed to step 2)
4. the action page returns a result (path to jpg for display) which somehow (?) is passed back to the view page
5. the view swaps page then the jpg is to show for the one passed to him to step 4
6. Ideally the display page then also pass another variable 2 action page let us know it has received the update and changed the image accordingly
I'm fine with all the code html and cfm stuff--where I'm stuck is bit of js, I've had a look through google and do not seem to make any progress so if someone could tell me please in the right direction I would be very grateful.
Excerpts / very welcome advice
TIA
Nick
As well as the very popular jQuery and prototype libraries already mentioned, ColdFusion uses for its wizardary Ajax extJS library and Adobe also provides the Spry library. Or you can roll you own and upwards, use the function xmlHTTPrequest() JavaScript.
But I would like to especially underline that all these libraries using the xmlHTTPrequest() feature and that really, you apply to the server, you use just of to do behind the scenes so that the user does not see this JavaScript. But in regards to the client browser and the server is what are normal requests HTTP and not different responses so if the user clicked on a link or submitting a form.
-
How to query the object attribute changed his mind in another display object
JDeveloper 10.1.3.4
My requirement is I want to be able to query an object (entity based) view on a nonkey attribute where the value I'm looking on can either be in the database on an existing record or only been experienced by updating a different point of view object based on the same entity (and still commit).
When you query the second display of a value object just updated via a different point of view object, the second view object always returns no rows. I thought that the process is:
EntityA
ViewObjectA based on EntityA
ViewObjectB based on EntityA
ViewObjectA - line query with the key = 123. update the attribute Y with value 456 (attribute Y in the null database). Feature for EntityA cache, touch 123, attribute is updated with the value 456
ViewObjectB - line application with attribute = y. wait record in EntityA just updated cache to be returned. Instead, nothing is returned
Here is the code I was using (where RandScheduleEdit and RandScheduleSearch are the same view the entity RandSchedule object-based objects)
Why not rsSearch finds the S_ID = 7827 record? It seems to only be interviewing new records in the database and ignoring the record updated in cache just updated?public static void main(String[] args) { String amDef = "test.cache.model.AppModule"; String config = "AppModuleLocal"; ApplicationModule am = Configuration.createRootApplicationModule(amDef,config); ViewObject rsEdit = am.findViewObject("RandScheduleEdit"); Key rsKey = new Key(new Object[]{40}); Row[] rsEditRows = rsEdit.findByKey(rsKey,1); Row rsEditRow = rsEditRows[0]; rsEditRow.setAttribute("SId", new Number(7827)); ViewObject rsSearch = am.findViewObject("RandScheduleSearch"); rsSearch.setWhereClause("S_ID = :SId"); rsSearch.defineNamedWhereClauseParam("SId", null, null); rsSearch.setNamedWhereClauseParam("SId",new Number(7827)); rsSearch.executeQuery(); Row rsSearchRow = rsSearch.first(); Configuration.releaseRootApplicationModule(am, true); }
Any help much appreciated.
See you soon,.
BrentrsSearch.setNamedWhereClauseParam ("SId", new Number (7827));
This might help:
rsSearch.setQueryMode (ViewObject.QUERY_MODE_SCAN_ENTITY_ROWS);rsSearch.executeQuery ();
Maybe you are looking for
-
iPhone 6 charge when plugged into computer USB and not an ankle... Help
Ive tried different cables as well as my friends phones... All phones except my fees on the wall units and the computer USB... Mine will load only on the computer USB... Suggestion? Help?
-
Satellite 2450-202: is the scalable graphics card?
Graphics NVIDIA GeForce4 420 GO supplied with the notebook on purchase. Now expired for PC games, for example pixel shader. Need to update, is it possible on this laptop (do not know if the motherboard's video/graphics card integrated etc, and if so
-
Transfer of operating system on new disc
I have a processor dual-core Gateway 2.0 GigaHz. The hard disk starts to become flaky. Bought a new hard drive, 500 GB of Seagate 7200 RPM. Seagate utility had a Clone your automatic diaphragm. I copied the old drive to the new and the system boo
-
No way to backup entire PC image...
On my laptop under Vista, there are: No button "Backup system" in the "backup and Restore Center." No button "Backup" computer in "status and Configuration of backup." How can I make a backup of the whole image Vista PC? Thank you
-
When I receive e-mail "Notepad" and try to open it I get is incomprehensible, that is to say the letters, numbers, etc.