Lately,
Jordan bank upgraded their ICBS banking software to Oracle 9i and
IDS9i. The Bank also moved from a decentralized to a centralized
system.
We were contracted to monitor and diagnose performance issues during the launching phase of the new system.
The IBM server was equipped with 32 GB of RAM, The Oracle SGA was
around 8GB of RAM. Around 2000 sessions were running on the system.
every now and then, high swapping activity was noticed, and the performance tended to degrade the longer the system is running.
The cause of this phenomenon is attributed to the AIX Virtual
Memory Manager. AIX keeps steeling memory pages to enhance the buffer
of File I/O. Since Oracle SGA is buffer file I/O already, such
Operating System feature is not suitable for Relational Database
Management Systems. Not only that, but SGA blocks end up being paged
from physical memory into paging, causing undesirable performance
impact.
The solution for this memory management problem configure memory
......
1z0-047 ×ÊÁϵÄ×îзÖÏí£¬ÏÂÃæÒ»Ð©ÌâÄ¿ÊÇ´Ó×îеÄÌâ¿âÖо«ÐÄÕûÀí³öÀ´µÄ£¬ÖÊÁ¿ºÜ¸ß£¬ÐèÒªµÄÅóÓÑ¿´¹ýÀ´µÄ°¡¡£
1. Which statements are true? (Choose all that apply.)
A. The data dictionary is created and maintained by the database administrator.
B. The data dictionary views can consist of joins of dictionary base tables and user-defined tables.
C. The usernames of all the users including the database administrators are stored in the data dictionary.
D. The USER_CONS_COLUMNS view should be queried to find the names of the columns to which a constraint applies.
E. Both USER_OBJECTS and CAT views provide the same information about all the objects that are owned by the user.
F. Views with the same name but different prefixes, such as DBA, ALL and USER, use the same base tables from the data dictionary
Answer: CDF
2. Which three statements are true regarding single-row functions? (Choose three.)
A. They can accept only one argument.
B. They can be nested up to only two levels.
C. They can ......
ÏÖÔÚ¿´Ïà¹ØµÄRAC½á¹¹µÄÎÄÕ»¹²»Ì«Àí½â¡£
ÏÖÔÚ¿´Õâ¸ö¾ÍºÜÇå³þÆäÖеÄÒâ˼ÁË¡£
oracle clusterware Ö÷ÒªÓÐÒÔÏÂÖ÷Òª²¿¼þ£º
CSS: ¼¯ÈºÍ¬²½·þÎñ
Ö÷Òª¹ÜÀíÕû¸ö¼¯ÈºÄÚ¸÷¸ö½Úµã¼äµÄÇé¿ö£¬°üÀ¨½ÚµãµÄÌí¼ÓºÍ¼õÉÙ¡£ÓëÖ®¶ÔÓ¦µÄÊÇocssd ½ø³Ì£¬Èç¹û¸Ä½ø³Ì³öÏÖ¹ÊÕϽ«»áµ¼Ö½ڵãÖØÆô¡£Èç¹ûʹÓÃÁ˵ÚÈý·½µÄclusterware£¬css ͨ¹ýµÚÈý·½clusterware ¹ÜÀí½Úµã¼äµÄÐÅÏ¢¡£
¹ØÓÚÊÇ·ñʹÓõÚÈý·½clusterware£¬css µÄ²»Í¬ÔÚinit.crsd ÖÐÓÐÈç϶¨Ò壺
# FAST_REBOOT - take out the machine now. We are concerned about
# data integrity since the other node has evicted us.
# SLOW_REBOOT - We can rely on vendor clusterware to delay sending
# the reconfig to the other node due to its IO fencing
# guarantees. So trigger its diagnostic reboot.
Èç¹ûʹÓÃÁ˵ÚÈý·½µÄclusterware£¬ÊÇ·ñrebootµÄ¾ö¶¨½«½»¸øËüÈ¥¾ö¶¨¡£
CRS: ¼¯Èº¾ÍÐ÷·þÎñ
Ö÷Òª¹ÜÀí×¢²áµ½cluster ÖеÄ×ÊÔ´£¨°üÀ¨vip£¬instance£¬db£¬listener£¬serviceµÈ£©£¬Ëü»á×Ô¶¯ÖØÆôʧ°ÜµÄ×ÊÔ´£¬Ò»°ã»á×Ô¶¯ÖØÆô5´Î£¬Èç¹ûÒÀÈ»²»ÄÜÖØÆô³É¹¦£¬½«·ÅÆúÖØÆô¡£
EVM: ʼþ¹ÜÀíÆ÷
Ö÷Òª·¢² ......
ÔÚOracleÖÐʹÓÃ×Ô¶¯µÝÔöÁÐ
Oracle 沒ÓÐ類ËÆ MS-SQL ¿ÉÒÔÖ±½ÓÐÞ¸Ä欄λ屬ÐÔ£¬設¶¨³É×Ô動編號欄룬ËùÒÔÎÒ們±Ø須͸過 Sequence Îï¼þµÄ nextval ·½·¨£¬È¡µÃÆäÏÂÒ»個Öµ£¬È»áá將´ËÖµÐÂÔöÖÁ TABLE ÖУ¬製Ôì³öÓÐ×Ô動編號µÄЧ¹û¡£
½¨Á¢Sequence Îï¼þµÄ語·¨£º
CREATE SEQUENCE sequence_name
MINVALUE value
MAXVALUE value
START WITH value
INCREMENT BY value
CACHE value;
//½¨Á¢ Table
Create Table MarsTest(
ID_ NUMBER(10,0) NOT NULL,
Content VARCHAR2(250)
);
//½¨Á¢ Sequence
1.ʹÓÃ預設Öµ
Create Sequence Seq_MarsTest;
2.ʹÓÃ×Ô訂
Create Sequence Seq_MarsTest
MINVALUE 1
MAXVALUE 999999999999999999999999999
START WITH 1
INCREMENT BY 1
CACHE 20;
µ÷Óãº
//ÐÂÔö資ÁÏ
INSERT INTO MarsTest(ID_, Content)
VALUES (Seq_MarsTest.NEXTVAL, 'MarsTest');
從ÉÏÃæµÄÀý×Ó£¬ÎÒ們Ò²¿ÉÒÔ ......
ÔÚOracleÖÐʹÓÃGuid
ÔÚOracleÖпÉÒÔÓÃSYS_GUID()À´Éú³ÉÒ»¸öguid,Ï൱ÓÚmsSqlÖеÄnewid()¡£
ÔÚOracle9iºÍOracle 10g ÀïSYS_GUID²úÉúµÃµ½µÄÊý¾ÝÊÇ32 λµÄ£¬È磺234E45F0077881AAE0430AA3034681AA
µ«OracleÖеÄguidÓëmsSqlÖеÄguid¸ñʽ²»ÍêÈ«Ïàͬ¡£
½«OracleÖеÄguid·Ö¸î³ÉΪ Windowsϵͳ ObjectId µÄ¸ñʽ£º{8-4-4-4-12} £¬ÏÂÃæ¸ø³öÁ½ÖÖ½â¾ö·½·¨£º
¡¡¡¡·½·¨Ò»£ºÀûÓÃsubstr½øÐзָ·Ç³£¼òµ¥£¬¾ßÌå´úÂëÈçÏ£º
¡¡¡¡/**
¡¡¡¡* ´´½¨ÏµÍ³Object Id ¸ñʽµÄ×Ö·û´®£¬·µ»ØµÄ½á¹ûÈçÏ£º{234E45F0-077A-81AA-E043-0AA3034681AA}
¡¡¡¡*/
¡¡¡¡function CreateGUID return varchar2
¡¡¡¡is
¡¡¡¡guid varchar(64);
¡¡¡¡begin
¡¡¡¡guid := SYS_GUID();
¡¡¡¡return
¡¡¡¡'{'||substr(guid,1,8)||'-'||substr(guid,9,4)||
¡¡¡¡'-'||substr(guid,13,4)||'-'||substr(guid,17,4)
¡¡¡¡||'-'||substr(guid,21,12)||'}';
¡¡¡¡end CreateGUID;
¡¡¡¡·½·¨¶þ£ºÀûÓÃCONCATº¯Êý½øÐÐÁ¬½Ó£¬¾ßÌå´úÂëÈçÏ£º
¡¡¡¡CREATE OR REPLACE FUNCTION AILDM_GET_GUID
RETURN CHAR
IS
v_guid &nbs ......
oracle°²È«
Óû§¹ÜÀí
DBAÊÚÓ費ͬÓû§²»Í¬È¨Àû£¬Ã¿¸öÓû§¿ÉÒÔÔÚÊÚȨ·¶Î§Äڻ£¬Èκγ¬Ô½È¨ÏÞ·¶Î§µÄ²Ù×÷¶¼ÊÓΪ·Ç·¨¡£
sysÓû§ ÍøÂç¹ÜÀíÔ± ÓµÓÐ×î¸ßȨÏÞ
conn sys/¿ÚÁî as sysdba;
systemÓû§ ±¾µØ¹ÜÀíÔ±
scottÓû§ ʾÀýÊý¾Ý¿â
½¨Á¢Óû§£º£¨±ØÐëÓµÓÐdbaȨÏÞ£©
Create User Óû§Ãû Identified by ¿ÚÁî [Externally] --¿ÚÁîÔÚsqlplusÖбØÐëÊäÈëÒ»¸öÒÔ×Öĸ¿ªÍ·µÄ¿ÚÁÔÚÆóÒµ¹ÜÀíÆ÷ÖпÉÒÔÈÎÒâ
[Default TableSpace ±í¿Õ¼äÃû] -- ȱʡ±í¿Õ¼ä
[Temporary TableSpace ±í¿Õ¼äÃû] --ÁÙʱ±í¿Õ¼ä
[Quota ÕûÊý K|M | UnLimited On ±í¿Õ¼äÃû] --±í¿Õ¼äÖÐʹÓõÄÏÞ¶î¿Õ¼ä »òÕß²»ÏÞ¶¨ÏÞ¶î
±í¿Õ¼ä¸ÅÄîÀàËÆÓÚsql serverÖÐÊý¾Ý¿âµÄ¸ÅÄî
ÏÞÖÆÓû§
Alter User Óû§Ãû account lock;--¼ÓËø
Alter User Óû§Ãû account unlock;--½âËø
Alter Óû§Ãû Password Expire;--¿ÚÁîʧЧ
ɾ³ýÓû§
Drop User Óû§Ãû [Cascade];--±íʾɾ³ýÓû§Ä£Ê½ÖеÄËùÓжÔÏ󣨰üÀ¨Æä´´½¨µÄ±í¿Õ¼äµÈ£©
ȨÏÞ¹ÜÀí
Grant [ÏµÍ³ÌØÈ¨Ãû] [½ÇÉ«] To [Óû§ÃûÁбí] [Public] [With Admin Option];--ÊÚÓèȨÏÞ
Revoke [ÏµÍ³ÌØÈ¨Ãû] [½ÇÉ«] from [Óû§ÃûÁ ......