الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Failover

Featured Replies

بتاريخ:

مرحبا

أريد تطبيق ال failover في معمل يحتوي على ثلاثة أجهزة واحد client و إثنان server يحتويان على إثنان database
هل يمكنكم المساعدة وتزويدى بالخطوات كلة من البداية حتى النهاية لتطبيق ال failover
أرجوكم أريد المساعدة
مع السلامة

بتاريخ:

what is the server name and database name for each database of the 2 databases will be used in the failover environment

بتاريخ:
  • كاتب الموضوع
مرحبا

أريد تطبيق ال failover في معمل يحتوي على ثلاثة أجهزة واحد client و إثنان server يحتويان على إثنان database
هل يمكنكم المساعدة وتزويدى بالخطوات كلة من البداية حتى النهاية لتطبيق ال failover
أسم ال SERVER الأول SERVER1 و ال IP الخاص بة 201.201.201.20 وأسم ال database الخاصة ب SERVER الأول orc1 .
وأسم الSERVER الثانى SERVER2 و ال IP الخاص بة 201.201.201.21 وأسم ال database الخاصة ب SERVER الثانى orc2
أرجوكم أريد المساعدة
مع السلامة
بتاريخ:

Follow these steps

A-on SERVER1:

1-open tnsnames.ora file in this path D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN
2-edit the tnsnames.ora file and modfiy your database service to be like this

ORC1=
(DESCRIPTION=
(FAILOVER=on)
(ADDRESS=(PROTOCOL=tcp)(HOST=SERVER1)(PORT=1521))
(ADDRESS=(PROTOCOL=tcp)(HOST=SERVER2)(PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=ORC1)))

and add another service for the the database ORC2 on SERVER2


ORC2 =
(DESCRIPTION =
(ADDRESS =
(PROTOCOL = TCP)
(HOST = SERVER2)
(PORT = 1521)
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORC2)
)
)


B-On SERVER2

1-open tnsnames.ora file in this path D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN
2-edit the tnsnames.ora file and modfiy your database service to be like this

ORC2=
(DESCRIPTION=
(FAILOVER=on)
(ADDRESS=(PROTOCOL=tcp)(HOST=SERVER2)(PORT=1521))
(ADDRESS=(PROTOCOL=tcp)(HOST=SERVER1)(PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=ORC2)))

and add another service for the the database ORC1 on SERVER1


ORC1 =
(DESCRIPTION =
(ADDRESS =
(PROTOCOL = TCP)
(HOST = SERVER1)
(PORT = 1521)
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORC1)
)
)

C-at this point your databases can failover on each other

D-To test that your configuration is working try to connect an application to or TOAD to the ORC1 database with schema scott/tiger and then open SQLPLUS and shutdown this database
it will be automatically switched on the other database ORC2

I hope this will help you

بتاريخ:
  • كاتب الموضوع

Hi airtifa.
I really appreciated the the command you sent to me
I finally managed to do Failover which I was taking a log time to find you command
bye

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.