DB_BUFFER_CACHE is static or not in Oracle10g v.2....?????
Hi ,
I would like you to confirm if the database's buffer size area in SGA is static or dynamic according to the system needs....
I have somehow been blocked as :
SQL> select * from v$sga;
NAME VALUE
Fixed Size 1248600
Variable Size 125829800
Database Buffers 159383552
Redo Buffers 7139328In the above sql statement the database buffers are not included in the variable size of the sga.... so can it be assumed that it is a static component ..????
The above values are confirmed (they cannot be otherwise....) in the results of the following statement:
SQL> select * from v$sgainfo;
NAME BYTES RES
Fixed SGA Size 1248600 No
Redo Buffers 7139328 No
Buffer Cache Size 159383552 Yes
Shared Pool Size 109051904 Yes
Large Pool Size 4194304 Yes
Java Pool Size 12582912 Yes
Streams Pool Size 0 Yes
Granule Size 4194304 No
Maximum SGA Size 293601280 No
Startup overhead in Shared Pool 37748736 No
Free SGA Memory Available 0However , there is a table in the Oracle Admininistation e-book which titled "Automatically Sized SGA Components and Corresponding Parameters" and includes , among others , the Buffer Cache component......!!!!!
So , what is true......?????
They seem to be one contrary to the other....!!!!!
Thanks , a lot
Simon
Hi ,
I have just been blocked because in the followng sql statement:
SQL> select * from v$sga;
NAME VALUE
Fixed Size 1248600
Variable Size 130024104
Database Buffers 155189248
Redo Buffers 7139328The database buffers is not included in the variable size but in an individual section.....
However , as you have pointed out right executing the statement:
SQL> select * from v$sga_dynamic_components
2 /
COMPONENT CURRENT_SIZE MIN_SIZE MAX_SIZE USER_SPECIFIED_SIZE OPER_COUNT LAST_OPER_TYPE LAST_OPER_MODE LAST_OPER_TIME GRANULE_SIZE
shared pool 113246208 109051904 0 0 1 GROW IMMEDIATE 26/03/2007 18: 4194304
large pool 4194304 4194304 0 0 0 STATIC 4194304
java pool 12582912 12582912 0 0 0 STATIC 4194304
streams pool 0 0 0 0 0 STATIC 4194304
DEFAULT buffer cache 155189248 155189248 0 0 1 SHRINK IMMEDIATE 26/03/2007 18: 4194304
KEEP buffer cache 0 0 0 0 0 STATIC 4194304
RECYCLE buffer cache 0 0 0 0 0 STATIC 4194304
DEFAULT 2K buffer cache 0 0 0 0 0 STATIC 4194304
DEFAULT 4K buffer cache 0 0 0 0 0 STATIC 4194304
DEFAULT 8K buffer cache 0 0 0 0 0 STATIC 4194304
DEFAULT 16K buffer cache 0 0 0 0 0 STATIC 4194304
DEFAULT 32K buffer cache 0 0 0 0 0 STATIC 4194304
ASM Buffer Cache 0 0 0 0 0 STATIC 4194304The database buffers is a dynamic parameter.........if of course the automatic shared memory management is active.....
Thanks,
Simon
Similar Messages
-
Is a DB cloass acees should be public static or not.
Hiiiiiiiii,
I have a java class which query database or insert or update database.Class have separate method for each functionality and during this design I have something to know. IS the method will be public static or not. If I made the methods public static and after that want to make it a t*hread safe with synchronized* then there will be c*lass level lock,*so it will prevent to access other method. But in opinion of my senior it must be public static.
Please providing me a solution with proper reason which will give me a ground to get into field.ejp wrote:
Because a class that only has static methods is generally an indication of bad design, especially if it also has static data members. Usually such a class should be converted to the Singleton pattern.Which is bad design, formalized. -
Reflection - how can I find out whether method is static or not.
Hi all,
I'm using reflection to get a reference to a method. Is there a way to find out whether this method is static or not ?
There is no such method "boolean isStatic()" in the Method class.
HolgerYou're so close. You use the getModifiers method in
Method which returns an int. Then use the
java.lang.reflect.Modifier class's static methods. In
this case you use public static boolean isStatic(int
mod)
The int that you pass into the isStatic method is the
same int that you get out of the getModifiers method.
Hope it helpsThanks. I didn't read the documentation carefully enough - only looking for the key word "static" in the javadoc of class Method. May the duke be with you ! -
[SOLVED] netcfg static IP not persisting across reboots in VM
I ran into an issue with netcfg static IP not persisting across reboots in a VM. I figured it out, but it took me awhile as a brand new user, so I thought I'd post it.
Setup
Using VMWare Workstation 8.0.3 build-703057 with bridged networking
Host OS: Linux Mint 14 64-bit
Guest OS: Arch Linux 2013.03.01 x86_64
Given a fresh install on the guest, setup netcfg:
cd /etc/network.d
cp examples/ethernet-static ./myprofile
nano myprofile
# customize this file. I also added NETMASK='255.255.255.0'
systemctl enable netcfg@myprofile
systemctl start netcfg@myprofile
Test the configuration. It should be successful:
ping google.com
Problem
See if the changes survive a reboot.
reboot
ping google.com
I got the error "connect: Network is unreachable".
Check the logs:
journalctl
G
I found the following netcfg failure..
[email protected]: main process exited, code=exited, status=1/FAILURE
..prior to the following device initialization:
kernel: e1000 0000:02:00.0 eth0: Intel(R) PRO/1000 Network Connection
system-udevd[117]: renamed network interface eth0 to emp2s0
Solution
It looks like netcfg is being started before the device it depends on has been initialized. Inform systemd of the
dependency so they start in the proper order:
# nano /etc/systemd/system/multi-user.target.wants/[email protected]
# Add the following to [Unit]. Remember to replace enp2s0 with your device name.
Requires=sys-subsystem-net-devices-enp2s0.device
After=sys-subsystem-net-devices-enp2s0.device
Test again:
reboot
ping google.com
This should now be successful.fukawi2 wrote:
$ man netcfg-profiles wrote:
Miscellaneous options
IPCFG
Array of arguments to pass to ip. The power of this options is
that it allows both simple and complicated routing
configurations, within the framework of netcfg.
SKIPNOCARRIER
‘yes’/‘no’. Don’t abort interface setup if no carrier is
found.
Thank you, [Solved]. -
Creation of a table with static data(not a DB table)
Hi
I need to display a table with some static data in an OAF page. This table is not a DB table. It is like an HTML table
I have placed the following query
SELECT 'A1','B1' FROM DUAL UNION SELECT 'A2',B2' FROM DUAL in the VO. But it is returning a single row which is acting as the header of the table.
Can anyone help me to create the table with 2 rows inserted in it.
Thanks
Edited by: gsaxena on Aug 4, 2009 3:04 AM
Edited by: gsaxena on Aug 4, 2009 5:24 AMHi
Please execute your VO inside the CO of table region ,right now it is not getting executed,thats y it is giving just column names
use the following code PR method of CO
OAApplicationModule am = pageContext.getApplicationModule(webBean);
OAViewObject oav = (OAViewObject)am.findViewObject("XXVO");
oav.first();
let me know in case of any issue
thanx
Pratap -
Translucent menu bar is static, or not truly transparent (not live)
You can make the menu bar translucent, under: System Preferences / Desktop and Screen Saver, using the check box at the bottom of the Desktop pane.
If you do that while you're using a checkered or patterned desktop background (or wallpaper) image then it's easy to see that the bar does indeed become somewhat transparent, or at the very least, it is no longer opaque (pure white).
However, if like me, you like to make things more interesting, like say, use a screensaver as a desktop background so that your desktop is no longer a static image, but rather, displays dynamic content (i.e., something with motion), you may have used a command like the following, (without the quotes,) using Applications / Utilities / Terminal:
"nice /System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.ap p/Contents/MacOS/ScreenSaverEngine -background &"
... which will launch your currently preferred screensaver as your desktop's dynamic wallpaper. (The "nice" prefix insures that this task will only take up precious CPU resources if it is not used by other programs, so that it doesn't end up slowing you down if you're really busy with something else.) Also, I find that it's easiest to choose a screensaver that draws contrasted lines, like Defocus for example, to make it easier to notice and differentiate the background from the menu bar itself.
Now, while you've got that screensaver as a background, you can toggle the translucence of the menu bar on and off and notice that it does indeed work, however, as the objects (or graphics) move around (or change) on your desktop, the menu bar stays the same; it doesn't update itself! Unlike a minimized quicktime movie (for example,) that keeps playing in the Dock even though it's so tiny, in this case, it's as though the menu bar took a snapshot of what should transpire behind (or through) it at the moment translucence was activated, and is never refreshed again. Meanwhile the transparency of other OS X controls work just fine, like the Dock and the Stacks.
Has anyone else encountered this problem, or does anyone have a solution?lethal wrote:
The translucent display features are only available on intel-based Macs.
This is not true. It has to do with which computers support "core image", which has to do with your video card. I'm not sure of the specific ones that do or do not, but for instance, my Powerbook which has a Radeon 9000 in it does not support core image but my PowerMac which as a Radeon X800XT does support core image and does have the option for the transparent menu. The powerbook doesnt even have the option for the transparent menu bar. -
Non-application specific static files not visible in shared components
Hello,
We recently upgraded to APEX 4.0.2.00.07. In the past we have uploaded a number of static files with no specific application linked to them.
Now, when I search on these files using Shared Components -> Static Files, I don't find them back.
But, if I directly query the view APEX_WORKSPACE_FILES (using the APEX schema owner), I see all the files. They have APPLICATION_ID = 0 and APPLICATION_NAME is empty.
Is this a bug? I couldn't reproduce this with newly added static files, whether I specify an application or not.
Matthias
Edited by: mhoys on Mar 1, 2011 11:40 AMOwen:
Excellent idea/perspective...I did not think of that. Each of our forms/screens has a seperate class file. Each class file has a CreateForm() routine that is called when an instance of the class is intiated behind the menu selection.
Here is a block of code In Main.vb I use to execute a menu selection:
Case "MPA"
'8/30/07 EJD - Work Order Parameters Screen
If GetFormCount(G_MPAMaint_Form_Type).ToString = "0" Then
Dim MPAForm As New MPA
BubbleEvent = False
Else
UpdateStatus("Another MPA maintenance screen is already open", SAPbouiCOM.BoStatusBarMessageType.smt_Error)
BubbleEvent = False
End If
So, I can utilize this code in the case statement where I was doing the ActivateMenu if I hear you right. Now, can you help me with how I would pass the
variables instead of making them Public Shared in the Main class? Or is it ok to expose them that way?
I Appreciate the help,
Ed -
PC static font not displaying correctly on Mac?
Hi,
I have a PC fiash file with static body text that is New Gothic font. The published swf looks great on the PC, though when testing on Mac, none of the text appears. I thought that with static text fields, the font is automatically embedded?
Can anyone offers any suggestions as to how I can get the font to display properly on a Mac?
Thanks,
DanWell there are probably people that know better than me. But I have a rule of not using any fonts that aren't standard fonts everywhere. (Arial, Courier New, and Times New Roman) If you don't already know, fonts are loaded on the local computer, (the user's computer) if they don't have the specific font you selected from all the fonts loaded on your computer, they won't see the work you did in the format you did it in, if at all.
So make your titles sexy and cool and break those apart so they look exactly how you want them, but unfortunately if your project is intended for the world wide web, you have to abide by web standards to ensure the majority of users can view it and this especially applies to text.
Hope this answers your question. I don't know if I'm telling you stuff you already know here, but like I said, others may know better. -
Static library not accessed properly after Solaris Kernel patch update !
Hi,
We are facing a sever issue in our application after our customer updated the Solaris 10 kernel patch u9 to u10.
We have two static libraries libdlib.a and libDLIB.a, with exactly same code base, but these two libraries are scattered across the code base and linked by many shared objects in our application.
However, one of the shared objects that links to "libdlib.a" library tries to access a function from "libDLIB.a". This behavior is causing a crash at a later point, since that shared object is supposed to access the function from "libdlib.a". Moreover, we found this is happening through the use of dbx.
I'm unable to understand why this problem surfaced after kernel patch update, though still the shared object works fine on Solaris 10 u9 patch.
Flow is something like this :
1. syslogrecorder.so gets loaded by one of the processes.
2. syslogrecorder.so is linked to "libdlib.a" at compile time, so it uses "libdlib.a" function DLIB_LoadLibrary and gets a handle to all the function pointers of the loaded library ( The purpose of DLIB_LoadLibrary is to load a shared library dynamically using dlopen )
3. syslogrecorder.so tries to do a "dlsym" and to do that it needs access to the library handle which we got in previous call DLIB_LoadLibrary. So syslogrecorder.so calls another function from DLIB_ProcAddress, which actually gives back the access to the loaded shared library.
Here is a catch in step 3, it is supposed to call DLIB_ProcAddress from the libdlib.a but as we observed from dbx output it does so by calling DLIB_ProcAddress from libDLIB.a and hence fails to give back the access to loaded shared library, causing crash at a later point in code.
Can someone put some light here that why this could happen ??
Thanks
KuldeepTo clarify: You did not modify or rebuild any of your binaries, but after installing a kernel patch, the application stopped working. Most likely, something about your application depended on a accidental behavior of the runtime loader. That accidental behavior changed due to the patch, and your application failed.
For example, if there is a circular dependency among shared libraries, the loader will break the cycle at an arbitrary point to establish an initialization order. By accident, that order might work, in the sense of not causing a problem. A change to the loader could cause the cycle to be broken at a different point, and the resulting initialization order could cause a now-uninitialized object to be accessed. I'm not saying this is what is wrong, but this is an example of a dependency on accidental loader behavior.
Finding your actual problem will require tracing the sequence of operations leading up to the failure. You are more likely to find help in a Solaris linker forum. AFAIK, there are currently no Oracle forums for Solaris, and the old OpenSolaris forums have been converted to mailing lists. You can try the "tools-linking" list found on this page:
http://mail.opensolaris.org/mailman/listinfo
I also suggest you review the paper on best practices for using shared libraries written by Darryl Gove and myself:
http://www.oracle.com/technetwork/articles/servers-storage-admin/linkinglibraries-396782.html
If you have a service contract with Oracle, you can use your support channel to get more help.
Edited by: Steve_Clamage on May 18, 2012 3:21 PM -
Assigning Static IP (not local static, internet) to server
I use linksys router in my office. WRT54GS V4
I have T1 line and my ISP provides 5 Static IP address.
DHCP option is turned on in my router. My server is connected to the router.
If I configure my server with static IP that my ISP provided, my server will not connect to internet.
It seems to me that only way to assign static IP to my server is to get a switch/hub
and connect server and my router to this switch/hub.
Or turn off DHCP option and configure networksetting for each PC n my office. For this case,
I have to assign some with local IP and some with static IP. Can it work?
If you have any suggestion, let me know.
Thanks.
Solved!
Go to Solution.The WRT54GS is a consumer router. It does not support multiple public IP addresses.
The only way it will work is the way you already found: connect a switch to the internet line and then connect the server and the internet port of the WRT to the switch. Of course, you should make sure to configure the firewall on the server very well as it is fully exposed to the internet.
Otherwise you have to get a business router which supports multiple public IP addresses, e.g. the Cisco Small Business series or better. -
MacBook Makes odd Static noise ~NOT SPEAKERS~
I have just recently reinstalled Leopard after a hard drive error (possibly caused when I dropped it 4 feet :P), and everything was fine. But I noticed that my speakers weren't as loud as they were and they sounded kind of muffled. Then the MacBook just started making this subtle popping noise, but that stopped after a day, but now it makes this horrendous loud static noise out of no where, and *it is not the speakers* because I turn them down and it still makes the noise. The noise has stopped for now but if I try to listen to iTunes it is VERY garbled. Could this possibly have something to do with the hard drive or disc drive or any kind of hardware issue? Any comments are greatly appreciated!
Just because you turned down the speaker volume but yet can still here the static noise does not mean that it is not coming from the speakers. Since something is damaged or broken you cannot assume that turning down the speaker volume will keep an errant sound turned down also.
Since you dropped the computer from 4 feet the problem could be just about any hardware component, from the hard drive to the logic board. -
Region Static ID not copied using Copy Page in Apex 3.0.1
When you copy a page that has static region IDs, these are not copied to the new page. I'm not sure if this is a bug or whether it is deliberate? For my purposes, it would suit me best if the static IDs were copied over.
Tony,
Thanks for the info. I don't know what the optimum behavior is but we'll take a look.
Scott -
Hello, i have a little discussion with a colleage of mine about the use of statics.
say we have a class (sqlManager) which is used to do all the sql work including the db connection.
would it be wise to make this class static. in my opinion no. perhaps make it a singleton, but not static.
My colleage thinks otherwise, make it static i do not need an object of it. it makes it easier to code and smaller.. perhaps this is true, i personally find it ugly. any suggestions.
MaqishI think if in the constructor method there are
important things to be executed, then the singleton
pattern will be better. Otherwise, the static
solution is better.There's always a static initializer (static { .. }) for static classes that have the same basic role for static content as constructors do for instance content. Not playing favorites, just pointing it out for any future readers.
If you are sure that the class has features that make
this class immutable, that is, probably it never
will be necessary to inherit the class because of its
characteristics, then you may declare its methods as
final and static.Inheritability is definitely a major factor.
This doubt is only about the architecture of the
application, that is, about its features, that must
be analized to decide what kind of class has to be
developed.As mentioned, I think a good general rule is that if you need singleton behavior, use a singleton. If you just need some utility methods, use static methods. -
ISE version 1.3 and static route not working
This command works without any issues with ISE version 1.1 and 1.2:
ip route 192.168.1.1 255.255.255.255 gateway 127.0.0.1
However, it does NOT work in ISE version 1.3. See below:
ciscoisedev/admin(config)# ip route 192.168.1.1 255.255.255.255 gateway 127.0.0.1
% Warning: Could not find outgoing interface for gateway 127.0.0.1 while trying to add the route.
% Error: Error adding static route.
ciscoisedev/admin(config)#
Any ideas anyone?So it appears that there is no option to lock down access to the shell now that the command that you used to use is no longer valid. What is worse is that there isn't an option to create an ACL in the shell that you could attach to the interface. So I would recommend that you create a defect with Cisco TAC and get this re-added or request that ACL functionality is added.
For the GUI (in case you were not already aware of this), you can restrict access from Administration > Admin Access > Settings > Access > IP Access -
Local static variable not unique between dylib, Xcode 4.4.1 bug?
I am wondering if this is a Xcode bug or it is the way the c++ standart is.
I would expect to see 1 in the console but i see 0.
Anybody know why? Here is the code
In one dylib I have
// Header file
class Foo {
int i_ = 0;
Foo(const Foo&) = delete;
Foo& operator= (Foo) = delete;
Foo()
public:
void inc()
++i_;
int geti()
return i_;
static Foo& get()
static Foo instance_;
return instance_;
Foo( Foo&&) = default;
Foo& operator= (Foo&&) = default;
int initialize()
Foo::get().inc();
return 10;
class Bar
static int b_;
// cpp file
#include "ClassLocalStatic.h"
int Bar::b_ = initialize();
and in my application project i have
// main.cpp
#include <iostream>
#include "ClassLocalstatic.h"
int main(int argc, const char * argv[])
std::cout << Foo::get().geti();
return 0;
Thanksthanks for your answer, You are right there is 2 foo singleton at different memory addresses.
I didn't think about when the dylib was loaded. I can't even tell when it is loaded. But I know if i but breaks point I break in the initialize function before breaking in main, but that might be because of this actual setup. So when does a dylib will be loaded? At the first call a program sees that need the dylib?
Here I'explain why it is done this way. My Singleton is a UnitTestRegistry, the Bar class is a UnitTest class and the static variable b_ is a class containing metadata info on the unit test.
I have a macro to define the unit test it is called Make_UnitTest()
So in a cpp I do
Make_UnitTest(MyTest)
// Test Stuff
The macro will get expanded to
class MyTest_UnitTest: public UnitTestBase
static UniTestMetaData b_;
virtual void executeTest();
int MyTest_UnitTest::b_ = initializeAndRegisterUnitTest("MyTest_UnitTest", factoryFunction);
MyTest_UnitTest::executeTest()
// Test Stuff
And in the function initializeAndRegisterUnitTest I call the getInstance of the unit test registry. This way my unit test are registred at loading time of the program/dll. If you know a better way to automatically register (i know it cuold be manual but i find it too cumbersome), but it wont fix the problem which is that I have two intance of my singleton because the function is inline in a header.
Well this behavior is surprising to me, I didn't know it would do this. But hey it is good to learn right!
Just to make it clear there is no real global!! The singleton is like a global but it is not completly one and the b_ is certainly not global it is a class static memeber...
Maybe you are looking for
-
Please help, I am constanly re importing songs, I have to re sync my ipod to my library each time i plug it in, and I am unable to import songs from my media player, any ideas?
-
Transactional data PIR, IM stock, Open PO's documentation
I have to make a documentation of the process of transactional data loads. transactional data loads pirchase info rec, IM stock, Open PO's the transactional data is live in both sap and legacy, so they have to be even in both systems in all stages of
-
Macbook Pro Hard Drive Problem - Please Help
My macbook pro had a hard drive failure so I went out and bought a new hard drive and got it to work with the Mac OS, although 2 days later it crashed and now it is not being found when I use the disk utility (Cmd-R), I even ran a hardware test and s
-
My Iphone 4 is coming up with an Icloud Backup alert... i cannot get out of it or do anything even though i am pressing the ok button it still stays there and i can't even turn my phone off. I haven't renewed my subscription as yet but want to but ob
-
An error occurred when attempting to change modules (Slideshow)
Not sure what happened as I havent had any trouble before but I created a new catalog with 300 images for a show that is due this sunday and I am getting an error that will not let me switch to the slideshow mode. Any help is appreciated as I am up a