بتاريخ: 13 فبراير 201016 سنة comment_184867 الأخوة الأعزاء السلام عليكم ورحمة الله وبركاتهباذن الله تعالى سنبدا خطوة بخطوة فى تنزيل الراك بالستخدام الاصدار 10gr2 على نظام تشغيل لينكس ( علما بان نسخة اللينكس المستخدمة هى RedHat Enterprise 5.4 )اولا نبدا بشرح فكرة الراك وعذرا لو كان الشرح بالانجليزية RAC (Real Application Cluster) is more than one instance that can connect to single database This database id stored in shared storage area that can be not in any one of local serverswe will split This process into small process:--install Linux os and configure kernel parameter for installing oracle software-create oracle groups and users and directories on both nodes-configure ssh for oracle user in both linux servers ( both nodes )-how to create ASM disks that will be used for data files storage and for store OCR and Voting disks-install oracle clusterware in tow nodes and running needed scripts-create and install ASM instance in tow nodes-install oracle software-create database-patching clustwrware and ASM instance and database-configure database services on tow nodes- configure Fail over and load balance-Enjoy your RAC Configure_linux_OS_For_RAC_Install.txt تقديم بلاغ
بتاريخ: 13 فبراير 201016 سنة comment_184872 السلام عليكم ورحمة الله وبركاتهممتاز يا استاذ وإلى الأمامممكن بعد اذنك يكون الشرح بالتفصيلشكراً [email protected] تقديم بلاغ
بتاريخ: 13 فبراير 201016 سنة كاتب الموضوع comment_184874 Now we come to the first step which it is how to configure you Linux OS for installing RAC and how to configure ssh 1- install Linux os and configure kernel parameter for installing oracle software----------------------------------------------------------------------------------------------First you must have at least tow network cards one for public IP and the second for private that will take an ip but in different range from public ip as same as the hosts file writtenI thinks on this step the only thing we can do is how to update kernel parameter ( i mean we can not explan how to install linux os here as there is many posts explain that )all we have to do here is to take the following steps and execute then after installing your linux os-go to hosts file in path /etc/hosts and add the following lines# Public addresses10.20.0.101 Your_Node_Name110.20.0.102 Your_Node_Name2# Private Interconnect 10.0.0.1 Your_Node_Name1-priv10.0.0.2 Your_Node_Name2-priv# Public Virtual IP (VIP) addresses 10.20.0.103 Your_Node_Name1-vip10.20.0.104 Your_Node_Name2-vipNOTE : Replace the word Your_Node_Name with your server (node) namenow we come to create user oracle and oinstall and dba groups -/usr/sbin/groupadd -g oinstall/usr/sbin/groupadd -g dba/usr/sbin/useradd -m -g oinstall -G dba -d /home/oracle -s /bin/bash -c "Oracle Software Owner" oracle- setting oracle passwordpasswd oracleenter your password and press enter and reenter it again-now the step for create specified directories that will hold that clusterware data (OCR+Voting disks)and ASM and datafiles and change the owner for those directories for oracle and oinstall# Oracle Base directory-mkdir -p /u01/app/oraclechown -R oracle:oinstall /u01/app/oraclechmod -R 775 /u01/app/oracle# Oracle Home Directory# crs will hlod clusterware filesmkdir -p /u01/app/oracle/product/10.2.0/crschown -R oracle:oinstall /u01/app/oracle/product/10.2.0/crschmod -R 775 /u01/app/oracle/product/10.2.0/crs# Oracle ASM homemkdir -p /u01/app/oracle/product/10.2.0/+ASMchown -R oracle:oinstall /u01/app/oracle/product/10.2.0/+ASMchmod -R 775 /u01/app/oracle/product/10.2.0/+ASM# Oracle Database Homemkdir -p /u01/app/oracle/product/10.2.0/db_1chown -R oracle:oinstall /u01/app/oracle/product/10.2.0/db_1chmod -R 775 /u01/app/oracle/product/10.2.0/db_1-When you create oracle user there is file called .bash_profile will be created in path /home/oracleopen this file with vi command and add the following lines to it ************* Begin of lines to be added ************# .bash_profile# Get the aliases and functions# User specific environment and startup programsexport ORACLE_BASE=/u01/app/oracleexport ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1export ORA_CRS_HOME=/u01/app/oracle/product/10.2.0/crsexport ORACLE_PATH=$ORACLE_BASE/common/oracle/sql:.:$ORACLE_HOME/rdbms/adminexport CV_JDKHOME=/usr/local/java# Each RAC node must have a unique ORACLE_SID. (i.e. racdb1, racdb2,...)export ORACLE_SID=racdb2export PATH=.:${JAVA_HOME}/bin:${PATH}:$HOME/bin:$ORACLE_HOME/binexport PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/binexport PATH=${PATH}:$ORACLE_BASE/common/oracle/binexport ORACLE_TERM=xtermexport TNS_ADMIN=$ORACLE_HOME/network/adminexport ORA_NLS10=$ORACLE_HOME/nls/dataexport NLS_DATE_FORMAT="DD-MON-YYYY HH24:MI:SS"export LD_LIBRARY_PATH=$ORACLE_HOME/libexport LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/libexport LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/libexport CLASSPATH=$ORACLE_HOME/JREexport CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlibexport CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlibexport CLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlibexport THREADS_FLAG=nativeexport TEMP=/tmpexport TMPDIR=/tmp***************************End of lines************************************** this files should be updated in both nodes and for NODE1 ORACLE_SID paramter should be racdb1 and for NODE2 =racdb2- There is some kernel parameter should be updated for oracle and those updates must be updated according to Linux release that you use and way just make those -open /etc/sysctl.conf with any editor and add kernel.shmmni = 4096kernel.sem = 250 32000 100 128fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000net.ipv4.ip_local_port_range = 32768 65000net.core.rmem_default=1048576net.core.rmem_max=1048576net.core.wmem_default=262144net.core.wmem_max=262144Save and close the file- open /etc/security/limits.conf and addoracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536Save and close the fileopen the file /etc/pam.d/login session required /lib/security/pam_limits.sosave and colse file open file /etc/profile if [ \$USER = "oracle" ]; then if [ \$SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi umask 022fisave and colse open file /etc/csh.login if ( \$USER == "oracle" ) then limit maxproc 16384 limit descriptors 65536endifsave and closeand reboot your tow machines after making those updates *************************************************************************************************************NOTE : The following steps must be made in tow nodes*************************************************************************************************************- Now come to configure ssh for oracle user on tow nodes (making oracle user to make ssh for the other oracle user in the other node without passwordlog in tow one node with user oracle and do the following -mkdir -p ~/.sshchmod 700 ~/.ssh-generate RSA keys/usr/bin/ssh-keygen -t rsa press enter and enter until finishing generating the keys ( do note enter any passwords )-generate DSA keys/usr/bin/ssh-keygen -t dsa press enter and enter until finishing generating the keys ( do note enter any passwords )-create file that will hold the rsa and dsa contentstouch ~/.ssh/authorized_keyschmod 600 ~/.ssh/authorized_keys- Now go to the other node and execute the previous steps and after this copy the contents for rsa and dsa file to authorized file (from node1 with user ORACLE login) ssh Your_Node_Name1 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keysssh Your_Node_Name1 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keysssh Your_Node_Name2 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keysssh Your_Node_Name2 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys- copy the authorized_keys to Node2scp ~/.ssh/authorized_keys Your_Node_Name2:.ssh/authorized_keys-After this we will test ssh from one node to anther node -from node1 with oracle user dossh node1 datessh node2 datessh node1-priv datessh node2-priv dateif any command ask you about password enter the password for oracle user and re enter the command again on second time you execute the ssh command it should not ask you about any password -Now go to the second node and do the same ssh commandsUNTIL this steps we will go the INSTALL ORACLE CLUSTEWRWARE on both nodes and this will be in the next lesson and this will be screen shoots pics Configure_linux_OS_For_RAC_Install.txt تقديم بلاغ
بتاريخ: 13 فبراير 201016 سنة comment_184875 السلام عليكم ورحمة الله وبركاتهسؤال ممكن اسطب الـ RAC على وندوز XPولا لازم اللينكسوشكراً[email protected] تقديم بلاغ
بتاريخ: 13 فبراير 201016 سنة كاتب الموضوع comment_184882 This step will take us to oracle clusterware installation on tow nodesfirst go to oracle website and download clusterware and database softwareالرابـــــطand then login to linux os with root user and issue كـود SQL unzip /you_path_which_you_put_files/10201_clusterware_linux_x86_64.cpio.gzthis will give you 10201_clusterware_linux_x86_64.cpio filethen issue cpio -idmv << 10201_clusterware_linux_x86_64.cpiothis will give Disk1 go to the top directory for Disk1 and issuechmod -R 775 /path_for Disk1and make the same thing for database file when you download itالرابــــــط- first go to node1 and log in with oracle user and go to the path for clusterware then issue ./runInstaller1_5.rar تقديم بلاغ
بتاريخ: 13 فبراير 201016 سنة كاتب الموضوع comment_184884 اسف لانه هناك خطوات يجب ان تسبق الوصول الى تنزيل ال Clusterwareوهى تهيئة وانشاء البارتشنز الازمة ل ASM Instanceوهى ما سنتناولة فى الدرس القادم ان شاء الله تم تعديل 13 فبراير 201016 سنة بواسطة searcher تقديم بلاغ
بتاريخ: 13 فبراير 201016 سنة كاتب الموضوع comment_184886 الاخ محمد من الافضل انك تنزل virsual machine on vmware and install linux on it and go on تقديم بلاغ
بتاريخ: 14 فبراير 201016 سنة comment_184981 السلام عليكم ورحمة الله وبركاتهاستاذي العزيز ممكن تقولي منين احصل على نسخة لينكس وازاي اسطبهاشكراً لك جدا جدا جدا[email protected] تقديم بلاغ
بتاريخ: 14 فبراير 201016 سنة كاتب الموضوع comment_184988 الاخ محمد منتدى اللينكس حفيدك كتير ابحث فيه تقديم بلاغ
بتاريخ: 14 فبراير 201016 سنة comment_184997 السلام عليكم ورحمة الله وبركاتهوجدت redhat Enterprise 5.3على الرابطhttp://www.araboug.org/ib/index.php?showtopic=35024تؤدي الغرض واللا لازم redhat Enterprise 5.4[email protected] تم تعديل 14 فبراير 201016 سنة بواسطة محمد جمعه تقديم بلاغ
بتاريخ: 15 فبراير 201016 سنة كاتب الموضوع comment_185018 الاخ محمد النسخة الموجودة تؤدى الغرضولكن هناك بعض التغيرات سوف الفت نظرك اليها عند المجىء للنقط التى تتطلب ذلك وهى (oracleasm) تقديم بلاغ
بتاريخ: 15 فبراير 201016 سنة كاتب الموضوع comment_185028 الأخوة الأعزاءنعود الى الجزء المفقود الذى نوهت له قبل تنزيل oracle clusterware وهو تهيئة الاماكن التى ستخزن فيها OCR and Voting disk وايضا data files and archive logs هنا سوف نستخدم تقنية ASM لتخزين data files and archive log files اما ال OCR and Voting disks will be stored in raw devicesNow to configure ASM disks that will hold data files that will be in shared storage Note :Here I used HP storage EVA 4000 but most of us will make it in his test so you can use open-filer software and you must create a third virsual machine in vmware to install open filer that will be instead of my storage You can download it from this linkالــــرابـــــــــــــــــطــــ Now we come to how to create asm disksafter you install your Linux OS and update you kernel parameter as explained in previous postissue this command to know your kernel versionuname -rthis will return your kernel version like >> 2.6.18-164.el5xenaccording to you kernel version you must download the suitable Oracle ASM library driver from this websiteالـــرابــــــــطafter downloading the Oracle ASM library driver filesThere is tow files attached with this post download them and put them in same folder with your asm library driver for your kernel which you previously downloaded and then install the three files as following :[root@your_node_name1 /]#cd /your_path_for_asm_filesthen issue this command :[root@your_node_name1 /]# rpm -Uvh oracleasm-support-2.1.3-1.el5.x86_64.rpm \ oracleasmlib-2.0.4-1.el5.x86_64.rpm \ oracleasm-2.6.18-164.2.1.el5-2.0.5-1.el5.x86_64.rpmملحوظة هامة:-فى الامر السابق تم تنزيل 3 rpms الاخيرة هى التى سوف يتم تغيرها حسب اصدار الكيرنل الخاص بنظام التشغيل اى انها تختلف من حسب النسخة المستخدمة after completing the installationlogin to your linux machine with root user and issue the following :- [root@your_node_name1 /]# /etc/init.d/oracleasm configureit will ask you about the owner of of the driver and the group enter oracle as user and dba as group and complete the question by entering (y) as answer for any question like the following Configuring the Oracle ASM library driver. This will configure the on-boot properties of the Oracle ASM library driver. The following questions will determine whether the driver is loaded on boot and what permissions it will have. The current values will be shown in brackets ('[]'). Hitting without typing an answer will keep that current value. Ctrl-C will abort. Default user to own the driver interface []: oracle Default group to own the driver interface []: dba Start Oracle ASM library driver on boot (y/n) [n]: y Fix permissions of Oracle ASM disks on boot (y/n) [y]: y Writing Oracle ASM library driver configuration [ OK ] Creating /dev/oracleasm mount point [ OK ] Loading module "oracleasm" [ OK ] Mounting ASMlib driver filesystem [ OK ] Scanning system for ASM disks [ OK ]now we finished oracleasm configurationwe will create ASM DISKS laterThanks oracleasm_driver.rar تم تعديل 15 فبراير 201016 سنة بواسطة searcher تقديم بلاغ
بتاريخ: 9 يوليو 201015 سنة comment_196299 اخي الكريماي نسخة من اليونكس استخدامتها مع الراك كيف يكمن الحصول عليها وشكرا تقديم بلاغ
بتاريخ: 25 يوليو 201015 سنة كاتب الموضوع comment_197387 يفضل الرد هات اى اصدار ان استخدم 5.0 تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.